getaddrinfo: use the modules servent and hostent.
[gnulib.git] / ChangeLog
1 2008-11-17  Bruno Haible  <bruno@clisp.org>
2
3         * modules/getaddrinfo (Depends-on): Add servent, hostent.
4         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
5         gl_HOSTENT.
6
7 2008-11-17  Bruno Haible  <bruno@clisp.org>
8
9         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
10         -lnetwork and -lnet. Needed for Haiku and BeOS.
11
12 2008-11-16  Bruno Haible  <bruno@clisp.org>
13
14         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15
16 2008-11-16  Bruno Haible  <bruno@clisp.org>
17
18         Avoid test failure on Haiku.
19         * tests/test-fsync.c: Include <errno.h>.
20         (main): Don't require that fsync (0) fails.
21
22 2008-11-15  Bruno Haible  <bruno@clisp.org>
23
24         New module 'hostent'.
25         * modules/hostent: New file.
26         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27
28 2008-11-15  Bruno Haible  <bruno@clisp.org>
29
30         New module 'servent'.
31         * modules/servent: New file.
32         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33
34 2008-11-15  Bruno Haible  <bruno@clisp.org>
35
36         Avoid generating same test program with two different rules.
37         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38         test-frexp to test-frexp-nolibm.
39         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40         test-frexpl to test-frexpl-nolibm.
41
42 2008-11-15  Bruno Haible  <bruno@clisp.org>
43
44         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45         $(FREXPL_LIBM).
46
47 2008-11-15  Bruno Haible  <bruno@clisp.org>
48
49         * lib/netdb.in.h: Activate the definitions also when the system's
50         <netdb.h> has 'struct addrinfo'.
51         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52         EAI_OVERFLOW or AI_NUMERICSERV.
53         * doc/posix-headers/netdb.texi: Document the problem.
54
55 2008-11-15  Bruno Haible  <bruno@clisp.org>
56
57         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
58
59         Make the 'sched' module work on platforms where <sched.h> exists but
60         is incomplete (such as Haiku).
61         * lib/sched.in.h; Include the system's <sched.h> if it exists.
62         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
63         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
64         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
65         HAVE_STRUCT_SCHED_PARAM.
66         * modules/sched (Depends-on): Add include_next.
67         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
68         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
69         * doc/posix-headers/sched.texi: Document the issue.
70
71 2008-11-13  Jim Meyering  <meyering@redhat.com>
72
73         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
74         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
75         test would fail due to the difference in the Report bugs to ...
76         line.  The expected address is empty, "<>", while the actual
77         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
78
79 2008-11-12  Bruno Haible  <bruno@clisp.org>
80
81         lstat: don't compile lstat.c on systems lacking lstat
82         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
83         which don't have lstat; this is handled by lib/sys_stat.in.h already.
84         Reported by Daniel P. Berrange via Jim Meyering.
85
86 2008-11-12  Jim Meyering  <meyering@redhat.com>
87
88         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89
90 2008-11-12  Simon Josefsson  <simon@josefsson.org>
91
92         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
93         instead.
94
95 2008-11-12  Bruno Haible  <bruno@clisp.org>
96
97         * lib/unicodeio.c: Include unistr.h.
98         (utf8_wctomb): Remove function.
99         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
100
101 2008-11-12  Simon Josefsson  <simon@josefsson.org>
102
103         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
104         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
105         <bruno@clisp.org>.
106         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
107
108 2008-11-12  Simon Josefsson  <simon@josefsson.org>
109
110         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
111         * doc/gnulib.texi: Add section for warnings.
112
113 2008-11-11  Bruno Haible  <bruno@clisp.org>
114
115         * lib/sockets.h: Add a comment.
116
117 2008-11-11  Karl Berry  <karl@gnu.org>
118
119         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
120
121 2008-11-11  Eric Blake  <ebb9@byu.net>
122
123         fdl.texi: avoid git symlinks
124         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
125
126 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
127
128         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
129
130 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
131
132         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
133         (gl_WARN_ADD): Substitute $2 if literal.
134
135 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
136
137         * m4/warning.m4: Remove.
138
139 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
140
141         * m4/warnings.m4: Almost complete rewrite. :-)
142
143 2008-11-10  Simon Josefsson  <simon@josefsson.org>
144
145         * modules/warnings: New module.
146         * m4/warnings.m4: New file.
147         * MODULES.html.sh: Mention warnings module.
148         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
149         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
150
151 2008-11-10  Eric Blake  <ebb9@byu.net>
152
153         fdl.texi: make a symlink to the latest version
154         * doc/standards.texi: Revert today's earlier change.
155         * doc/fdl-1.2.texi: Rename from old fdl.texi...
156         * doc/fdl.texi: ...and replace this with a symlink to the newer
157         fdl-1.3.texi.
158
159 2008-11-10  Bruno Haible  <bruno@clisp.org>
160
161         * tests/test-select-fd.c (main): Accept the result file name as fourth
162         argument.
163         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
164         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
165
166 2008-11-10  Bruno Haible  <bruno@clisp.org>
167
168         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
169         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
170         as autoconf-substituted macros.
171         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
172         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
173         gl_NETDB_H_DEFAULTS. Set these variables.
174         * modules/netdb (Makefile.am): Substitute these variables.
175
176 2008-11-10  Eric Blake  <ebb9@byu.net>
177
178         standards.texi: include correct file for FDL 1.3
179         * doc/standards.texi (GNU Free Documentation License): Change
180         include file to pull in FDL 1.3, not 1.2.
181
182         fdl.texi: revert accidental change to license
183         * doc/fdl.texi: This is FDL 1.2, not 1.3.
184
185 2008-11-10  Bruno Haible  <bruno@clisp.org>
186
187         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
188         cross-compiling guesses also when the native compile gives no result.
189
190 2008-11-10  Bruno Haible  <bruno@clisp.org>
191
192         * lib/spawni.c (__spawni): Force variable into the stack.
193
194 2008-11-10  Bruno Haible  <bruno@clisp.org>
195
196         Add support for Haiku.
197         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
198         glibc and BeOS, but also on Haiku.
199         * lib/fpurge.c (fpurge): Likewise.
200         * lib/freadable.c (freadable): Likewise.
201         * lib/freadahead.c (freadahead): Likewise.
202         * lib/freading.c (freading): Likewise.
203         * lib/freadptr.c (freadptr): Likewise.
204         * lib/freadseek.c (freadptrinc): Likewise.
205         * lib/fseeko.c (rpl_fseeko): Likewise.
206         * lib/fseterr.c (fseterr): Likewise.
207         * lib/fwritable.c (fwritable): Likewise.
208         * lib/fwriting.c (fwriting): Likewise.
209         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
210
211 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
212
213         * lib/config.charset: Treat Haiku like BeOS.
214
215 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
216
217         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
218         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
219
220 2008-11-08  Bruno Haible  <bruno@clisp.org>
221
222         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
223         AC_CACHE_CHECK.
224
225 2008-11-08  Bruno Haible  <bruno@clisp.org>
226
227         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
228
229 2008-11-08  Bruno Haible  <bruno@clisp.org>
230
231         * tests/test-select-fd.c: New file.
232         * tests/test-select-in.sh: New file.
233         * tests/test-select-out.sh: New file.
234         * tests/test-select-stdin.c: New file.
235         * modules/select-tests (Files): Add the new files.
236         (Depends-on): Add gettimeofday.
237         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
238         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
239         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
240
241 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
242             Bruno Haible  <bruno@clisp.org>
243
244         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
245
246 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
247
248         * build-aux/pmccabe2html: Added support for C++ source files.
249
250 2008-11-05  Ben Pfaff  <blp@gnu.org>
251
252         Fix lib/close.c build on Windows.
253         * modules/close (Files): Add lib/w32sock.h.
254
255 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
256
257         Accept Bison's NEWS format.
258         * build-aux/announce-gen (print_news_deltas): Tweak
259         $re_prefix.
260
261 2008-11-04  Bruno Haible  <bruno@clisp.org>
262
263         * modules/random_r (Maintainer): Add glibc.
264
265 2008-11-04  Simon Josefsson  <simon@josefsson.org>
266
267         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
268         by karl@freefriends.org (Karl Berry).
269         * doc/alloca.texi: Likewise.
270         * doc/c-ctype.texi: Likewise.
271         * doc/c-strcase.texi: Likewise.
272         * doc/c-strcaseeq.texi: Likewise.
273         * doc/c-strcasestr.texi: Likewise.
274         * doc/c-strstr.texi: Likewise.
275         * doc/c-strtod.texi: Likewise.
276         * doc/c-strtold.texi: Likewise.
277         * doc/ctime.texi: Likewise.
278         * doc/error.texi: Likewise.
279         * doc/fdl.texi: Likewise.
280         * doc/gcd.texi: Likewise.
281         * doc/getdate.texi: Likewise.
282         * doc/gnulib-intro.texi: Likewise.
283         * doc/gnulib-tool.texi: Likewise.
284         * doc/gnulib.texi: Likewise.
285         * doc/inet_ntoa.texi: Likewise.
286         * doc/maintain.texi: Likewise.
287         * doc/make-stds.texi: Likewise.
288         * doc/quote.texi: Likewise.
289         * doc/regexprops-generic.texi: Likewise.
290         * doc/standards.texi: Likewise.
291         * doc/verify.texi: Likewise.
292         * doc/visibility.texi: Likewise.
293         * doc/gnulib.texi (GNU Free Documentation License): Include
294         fdl-1.3.texi instead of fdl.texi.
295
296 2008-11-04  Simon Josefsson  <simon@josefsson.org>
297
298         * doc/fdl-1.3.texi: New file, from
299         <http://www.gnu.org/licenses/fdl-1.3.texi>.
300         * modules/fdl-1.3: Add.
301         * MODULES.html.sh: Add fdl-1.3.
302
303 2008-11-03  Bruno Haible  <bruno@clisp.org>
304
305         Make determination of absolute name of header file work with AIX xlc.
306         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
307         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
308         preprocessing.
309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
310         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
311
312 2008-11-03  Simon Josefsson  <simon@josefsson.org>
313
314         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
315         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
316         <ludo@gnu.org>.
317
318 2008-11-02  Bruno Haible  <bruno@clisp.org>
319
320         Mark 'strpbrk' obsolete.
321         * modules/strpbrk (Status, Notice): New sections.
322         * modules/strtok_r (Depends-on): Add strpbrk.
323
324 2008-11-02  Bruno Haible  <bruno@clisp.org>
325
326         Mark 'strdup' obsolete.
327         * modules/strdup (Status, Notice): New sections.
328         * modules/findprog (Depends-on): Add strdup.
329         * modules/getaddrinfo (Depends-on): Likewise.
330         * modules/localename (Depends-on): Likewise.
331         * modules/relocatable-lib (Depends-on): Likewise.
332         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
333         * modules/relocatable-prog (Depends-on): Likewise.
334         * modules/trim (Depends-on): Likewise.
335         * modules/unictype/gen-ctype (Depends-on): Likewise.
336         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
337
338 2008-11-02  Bruno Haible  <bruno@clisp.org>
339
340         Mark 'strcspn' obsolete.
341         * modules/strcspn (Status, Notice): New sections.
342
343 2008-11-02  Bruno Haible  <bruno@clisp.org>
344
345         Mark 'rmdir' obsolete.
346         * modules/rmdir (Status, Notice): New sections.
347         * modules/clean-temp (Depends-on): Add rmdir.
348         * modules/openat (Depends-on): Likewise.
349
350 2008-11-02  Bruno Haible  <bruno@clisp.org>
351
352         Mark 'raise' obsolete.
353         * modules/raise (Status, Notice): New sections.
354         (Include): Specify <signal.h>.
355         * modules/stdio (Depends-on): Add raise.
356         * modules/write (Depends-on): Likewise.
357
358 2008-11-02  Bruno Haible  <bruno@clisp.org>
359
360         Mark 'memset' obsolete.
361         * modules/memset (Status, Notice): New sections.
362
363 2008-11-02  Bruno Haible  <bruno@clisp.org>
364
365         Mark 'memmove' obsolete.
366         * modules/memmove (Status, Notice): New sections.
367         * modules/argp (Depends-on): Add memmove.
368         * modules/argz (Depends-on): Likewise.
369         * modules/canonicalize (Depends-on): Likewise.
370         * modules/canonicalize-lgpl (Depends-on): Likewise.
371         * modules/fts (Depends-on): Likewise.
372         * modules/getcwd (Depends-on): Likewise.
373         * modules/human (Depends-on): Likewise.
374         * modules/regex (Depends-on): Likewise.
375         * modules/striconveh (Depends-on): Likewise.
376         * modules/trim (Depends-on): Likewise.
377         * modules/unistr/u8-move (Depends-on): Likewise.
378         * modules/unistr/u16-move (Depends-on): Likewise.
379         * modules/unistr/u32-move (Depends-on): Likewise.
380
381 2008-11-02  Bruno Haible  <bruno@clisp.org>
382
383         Mark 'memcpy' obsolete.
384         * modules/memcpy (Status, Notice): New sections.
385
386 2008-11-02  Bruno Haible  <bruno@clisp.org>
387
388         Mark 'memcmp' obsolete.
389         * modules/memcmp (Status, Notice): New sections.
390         * modules/argmatch (Depends-on): Add memchr.
391         * modules/backupfile (Depends-on): Likewise.
392         * modules/c-strcasestr (Depends-on): Likewise.
393         * modules/crypto/des (Depends-on): Likewise.
394         * modules/csharpcomp (Depends-on): Likewise.
395         * modules/fnmatch (Depends-on): Likewise.
396         * modules/git-merge-changelog (Depends-on): Likewise.
397         * modules/isnand (Depends-on): Likewise.
398         * modules/isnand-nolibm (Depends-on): Likewise.
399         * modules/isnanf (Depends-on): Likewise.
400         * modules/isnanf-nolibm (Depends-on): Likewise.
401         * modules/isnanl (Depends-on): Likewise.
402         * modules/isnanl-nolibm (Depends-on): Likewise.
403         * modules/mbchar (Depends-on): Likewise.
404         * modules/memcoll (Depends-on): Likewise.
405         * modules/quotearg (Depends-on): Likewise.
406         * modules/regex (Depends-on): Likewise.
407         * modules/relocatable-prog (Depends-on): Likewise.
408         * modules/same (Depends-on): Likewise.
409         * modules/signbit (Depends-on): Likewise.
410         * modules/strcasestr-simple (Depends-on): Likewise.
411         * modules/unictype/gen-ctype (Depends-on): Likewise.
412         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
413         * modules/uniname/uniname (Depends-on): Likewise.
414         * modules/unistr/u8-cmp (Depends-on): Likewise.
415
416 2008-11-02  Bruno Haible  <bruno@clisp.org>
417
418         Mark 'memchr' obsolete.
419         * modules/memchr (Status, Notice): New sections.
420         * modules/argp (Depends-on): Add memchr.
421         * modules/base64 (Depends-on): Likewise.
422         * modules/c-strcasestr (Depends-on): Likewise.
423         * modules/chdir-long (Depends-on): Likewise.
424         * modules/fnmatch (Depends-on): Likewise.
425         * modules/getsubopt (Depends-on): Likewise.
426         * modules/git-merge-changelog (Depends-on): Likewise.
427         * modules/glob (Depends-on): Likewise.
428         * modules/strcasestr-simple (Depends-on): Likewise.
429         * modules/strnlen (Depends-on): Likewise.
430
431 2008-11-02  Bruno Haible  <bruno@clisp.org>
432
433         Mark 'atexit' obsolete.
434         * modules/atexit (Status, Notice): New sections.
435         * modules/chdir-long (Depends-on): Add atexit.
436         * modules/wait-process (Depends-on): Likewise.
437
438 2008-11-02  Bruno Haible  <bruno@clisp.org>
439
440         * gnulib-tool: New option --with-obsolete.
441         (func_usage): Document it.
442         (func_modules_transitive_closure): Drop obsolete dependencies if
443         incobsolete is not true.
444         (func_import): Read and save the incobsolete variable to the cache.
445
446 2008-11-02  Bruno Haible  <bruno@clisp.org>
447
448         * modules/TEMPLATE-EXTENDED: New field 'Status'.
449         * gnulib-tool: New option --extract-status.
450         (func_usage): Document it.
451         (sed_extract_prog): Recognize it.
452         (func_get_status): New function.
453
454 2008-10-30  Simon Josefsson  <simon@josefsson.org>
455
456         * modules/sockets (License): Change from LGPL to LGPLv2+.
457
458 2008-10-28  Simon Josefsson  <simon@josefsson.org>
459
460         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
461
462 2008-10-28  Simon Josefsson  <simon@josefsson.org>
463
464         * MODULES.html.sh (Support for systems lacking POSIX:2001):
465         Mention times and sys_times.
466         * modules/sys_times, modules/sys_times-tests: New modules.
467         * modules/times, modules/times-tests: Likewise
468         * m4/sys_times_h.m4: New file.
469         * lib/sys_times.in.h: Likewise
470         * lib/times.c: Likewise.
471         * tests/test-sys_times.c: Likewise.
472         * tests/test-times.c: Likewise.
473         * doc/posix-headers/sys_times.texi: Update.
474         * doc/posix-functions/times.texi: Update.
475
476 2008-10-28  Jim Meyering  <meyering@redhat.com>
477
478         * modules/tempname (Depends-on): Add lstat.
479
480         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
481
482 2008-10-28  Simon Josefsson  <simon@josefsson.org>
483
484         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
485         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
486         using idiom used elsewhere in gnulib.
487
488 2008-10-27  Jim Meyering  <meyering@redhat.com>
489
490         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
491
492 2008-10-27  Simon Josefsson  <simon@josefsson.org>
493
494         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
495         TESTS_ENVIRONMENT, for shell scripts that needs to call built
496         programs.
497         * tests/test-argp-2.sh: Use $EXEEXT when needed.
498
499 2008-10-27  Simon Josefsson  <simon@josefsson.org>
500
501         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
502
503 2008-10-27  Bruno Haible  <bruno@clisp.org>
504
505         * tests/test-lstat.c: Include <stdio.h>.
506
507 2008-10-27  Simon Josefsson  <simon@josefsson.org>
508
509         * modules/lstat-tests: New module.
510         * tests/test-lstat.c: New file.
511
512 2008-10-26  Jim Meyering  <meyering@redhat.com>
513
514         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
515
516 2008-10-26  Simon Josefsson  <simon@josefsson.org>
517             Bruno Haible  <bruno@clisp.org>
518
519         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
520         * modules/configmake (Include): Add a note that the include must come
521         after all system headers.
522         * lib/javaversion.c: Include configmake.h after all other includes.
523
524 2008-10-26  Bruno Haible  <bruno@clisp.org>
525
526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
527         HAVE_STRUCT_RANDOM_DATA to 1.
528         (gl_STDLIB_H): Simplify.
529
530 2008-10-26  Simon Josefsson  <simon@josefsson.org>
531
532         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
533         substitute HAVE_STRUCT_RANDOM_DATA.
534         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
535         random_data.
536         * modules/stdlib (Makefile.am): Substitute
537         HAVE_STRUCT_RANDOM_DATA.
538
539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
540
541         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
542         * doc/gnulib-intro.texi (Copyright): Likewise.
543
544 2008-10-26  Simon Josefsson  <simon@josefsson.org>
545
546         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
547         findings.
548
549 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
550             Bruno Haible  <bruno@clisp.org>
551
552         * lib/unistd.in.h: Include <winsock2.h>.
553         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
554         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
555         Provide dummy declarations.
556         (gethostname): Override.
557         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
558         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
559         gl_PREREQ_SYS_H_WINSOCK2.
560         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
561         * doc/posix-functions/gethostname.texi: More details.
562
563 2008-10-25  Bruno Haible  <bruno@clisp.org>
564
565         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
566         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
567         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
568
569         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
570         here ...
571         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
572         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
573         gl_UNISTD_H_DEFAULTS.
574
575 2008-10-25  Eric Blake  <ebb9@byu.net>
576
577         signbit: avoid spurious compiler failure
578         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
579         declarations inside function.
580
581 2008-10-24  Simon Josefsson  <simon@josefsson.org>
582             Bruno Haible  <bruno@clisp.org>
583
584         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
585         * modules/random_r (Depends-on): Add stdint.
586
587 2008-10-24  Bruno Haible  <bruno@clisp.org>
588
589         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
590         Eggert.
591         * modules/strerror (License): Likewise.
592
593 2008-10-24  Jim Meyering  <meyering@redhat.com>
594
595         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
596         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
597
598 2008-10-24  Eric Blake  <ebb9@byu.net>
599
600         getgroups: fix compilation when getgroups is available
601         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
602         but with <config.h> override of getgroups disabled.
603
604 2008-10-24  Simon Josefsson  <simon@josefsson.org>
605
606         * doc/gnulib.texi (Header files): Add note about C++ problems.
607         Explained by Bruno Haible <bruno@clisp.org>.
608
609 2008-10-23  Bruno Haible  <bruno@clisp.org>
610
611         Define a dummy SA_NODEFER macro on Interix.
612         * lib/signal.in.h (SA_NODEFER): Define fallback.
613         Reported by Aleksey Cheusov <cheusov@tut.by> via
614         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
615
616 2008-10-23  Bruno Haible  <bruno@clisp.org>
617
618         * modules/freadahead (License): Change to LGPLv2+.
619         Suggested by Simon Josefsson.
620
621 2008-10-23  Jim Meyering  <meyering@redhat.com>
622
623         random_r: new module
624         * modules/random_r: New file.
625         * m4/random_r.m4: New file.
626         * lib/random_r.c: New file, from glibc.
627         * modules/random_r-tests: New file.
628         * tests/test-random_r.c: New file.
629         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
630          Declare.
631         (RAND_MAX): Define.
632         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
633         * modules/stdlib: Substitute them, too.
634         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
635         * doc/glibc-functions/initstate_r.texi: Mention the new module.
636         * doc/glibc-functions/random_r.texi: Likewise.
637         * doc/glibc-functions/setstate_r.texi: Likewise.
638         * doc/glibc-functions/srandom_r.texi: Likewise.
639         * config/srclist.txt: Mention it.
640
641 2008-10-23  David Lutterkort  <lutter@redhat.com>
642
643         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
644         link requirement
645
646 2008-10-23  Jim Meyering  <meyering@redhat.com>
647
648         selinux-h: mark parameters of stub functions as intentionally unused
649         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
650         * lib/se-context.in.h: Likewise.
651
652 2008-10-22  Simon Josefsson  <simon@josefsson.org>
653
654         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
655
656 2008-10-22  Simon Josefsson  <simon@josefsson.org>
657
658         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
659
660 2008-10-22  Eric Blake  <ebb9@byu.net>
661
662         glthread/thread: avoid compiler warning
663         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
664         Add unreachable abort to silence compiler.
665
666 2008-10-22  Eric Blake  <ebb9@byu.net>
667
668         netdb: also supply struct addrinfo for cygwin 1.5.x
669         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
670         older cygwin.
671         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
672         cygwin.
673         * doc/posix-headers/netdb.texi (netdb.h): Document this.
674
675 2008-10-22  Bruno Haible  <bruno@clisp.org>
676
677         * users.txt: Update entry about pspp.
678
679 2008-10-21  Bruno Haible  <bruno@clisp.org>
680
681         Simplification.
682         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
683         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
684
685         Simplification.
686         * lib/ioctl.c (ioctl): Don't undefine.
687         * lib/socket.c (socket): Don't undefine.
688
689         Remove unused module indicator macros.
690         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
691         GNULIB_$1 as a C macro.
692
693         * doc/posix-functions/close.texi: Undo last change.
694         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
695         Windows platforms.
696
697 2008-10-21  Bruno Haible  <bruno@clisp.org>
698
699         Add gethostname() declaration to <unistd.h>.
700         * lib/unistd.in.h (gethostname): New declaration.
701         * lib/gethostname.c: Include <unistd.h>.
702         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
703         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
705         and HAVE_GETHOSTNAME.
706         * modules/gethostname (Depends-on): Add unistd.
707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
708         (Include): Specify <unistd.h>.
709         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
710         HAVE_GETHOSTNAME.
711         * tests/test-gethostname.c: Include <unistd.h> first.
712
713 2008-10-21  Bruno Haible  <bruno@clisp.org>
714
715         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
716         * modules/select-tests (Depends-on): Likewise.
717         Reported by Simon Josefsson.
718
719 2008-10-21  Simon Josefsson  <simon@josefsson.org>
720
721         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
722         * lib/accept.c: New file, based on winsock.c.
723         * lib/bind.c: New file, based on winsock.c.
724         * lib/connect.c: New file, based on winsock.c.
725         * lib/getpeername.c: New file, based on winsock.c.
726         * lib/getsockname.c: New file, based on winsock.c.
727         * lib/getsockopt.c: New file, based on winsock.c.
728         * lib/ioctl.c: New file, based on winsock.c.
729         * lib/listen.c: New file, based on winsock.c.
730         * lib/recv.c: New file, based on winsock.c.
731         * lib/recvfrom.c: New file, based on winsock.c.
732         * lib/send.c: New file, based on winsock.c.
733         * lib/sendto.c: New file, based on winsock.c.
734         * lib/setsockopt.c: New file, based on winsock.c.
735         * lib/shutdown.c: New file, based on winsock.c.
736         * lib/socket.c: New file, based on winsock.c.
737         * lib/w32sock.h: New file, based on winsock.c.
738         * lib/winsock.c: Remove file.
739         * modules/accept: Likewise.
740         * modules/bind: Likewise.
741         * modules/connect: Likewise.
742         * modules/getpeername: Likewise.
743         * modules/getsockname: Likewise.
744         * modules/getsockopt: Likewise.
745         * modules/ioctl: Likewise.
746         * modules/listen: Likewise.
747         * modules/recv: Likewise.
748         * modules/recvfrom: Likewise.
749         * modules/send: Likewise.
750         * modules/sendto: Likewise.
751         * modules/setsockopt: Likewise.
752         * modules/shutdown: Likewise.
753         * modules/socket: Use socket.c instead of winsock.c.
754         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
755         * doc/posix-functions/accept.texi: Doc fix.
756         * doc/posix-functions/bind.texi: Doc fix.
757         * doc/posix-functions/close.texi: Doc fix.
758         * doc/posix-functions/connect.texi: Doc fix.
759         * doc/posix-functions/getpeername.texi: Doc fix.
760         * doc/posix-functions/getsockname.texi: Doc fix.
761         * doc/posix-functions/getsockopt.texi: Doc fix.
762         * doc/posix-functions/ioctl.texi: Doc fix.
763         * doc/posix-functions/listen.texi: Doc fix.
764         * doc/posix-functions/recv.texi: Doc fix.
765         * doc/posix-functions/recvfrom.texi: Doc fix.
766         * doc/posix-functions/send.texi: Doc fix.
767         * doc/posix-functions/sendto.texi: Doc fix.
768         * doc/posix-functions/setsockopt.texi: Doc fix.
769         * doc/posix-functions/shutdown.texi: Doc fix.
770         * doc/posix-functions/socket.texi: Doc fix.
771
772 2008-10-20  Bruno Haible  <bruno@clisp.org>
773
774         Take into account the role of SIGABRT_COMPAT on Windows 2008.
775         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
776         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
777         as an alias for SIGABRT.
778         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
779         (sigaction): Map it to SIGABRT.
780         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
781
782 2008-10-20  Bruno Haible  <bruno@clisp.org>
783
784         * lib/fts.c: Don't include lstat.h.
785         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
786
787         Move the lstat() declaration to <sys/stat.h>.
788         * lib/lstat.h: Remove file.
789         * lib/sys_stat.in.h: Add special invocation convention.
790         (lstat): New declaration.
791         * lib/lstat.c (orig_lstat): New function.
792         (rpl_lstat): Use orig_lstat instead of lstat.
793         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
794         AC_C_INLINE. Set REPLACE_LSTAT.
795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
796         and REPLACE_LSTAT.
797         * modules/lstat (Files): Remove lib/lstat.h.
798         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
799         (Include): Specify <sys/stat.h> instead of lstat.h.
800         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
801         REPLACE_LSTAT.
802         * NEWS: Mention the change.
803
804 2008-10-20  Bruno Haible  <bruno@clisp.org>
805
806         * modules/posix_spawn-tests: New file.
807         * tests/test-posix_spawn3.c: New file.
808
809 2008-10-20  Bruno Haible  <bruno@clisp.org>
810
811         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
812         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
813         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
814         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
815         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
816
817 2008-10-20  Bruno Haible  <bruno@clisp.org>
818
819         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
820         of posix_spawn on AIX 5.3.
821
822 2008-10-20  Bruno Haible  <bruno@clisp.org>
823
824         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
825
826 2008-10-20  Bruno Haible  <bruno@clisp.org>
827
828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
829         of AC_LANG_PROGRAM.
830
831 2008-10-20  Simon Josefsson  <simon@josefsson.org>
832
833         * lib/netdb.in.h: Don't define GNU specific constants until they
834         are supported or needed.  Reported by Bruno Haible
835         <bruno@clisp.org>.
836
837 2008-10-20  Simon Josefsson  <simon@josefsson.org>
838
839         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
840
841 2008-10-20  Simon Josefsson  <simon@josefsson.org>
842
843         * lib/getaddrinfo.h: Remove file.
844         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
845         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
846         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
847         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
848         * modules/netdb: Substitute GNULIB_GETADDRINFO.
849         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
850         * tests/test-getaddrinfo.c: Likewise.
851         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
852         * NEWS: Mention change.
853
854 2008-10-19  Bruno Haible  <bruno@clisp.org>
855
856         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
857
858 2008-10-19  Bruno Haible  <bruno@clisp.org>
859
860         * lib/wait-process.c: Include simply <sys/wait.h>.
861         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
862         WIFSTOPPED): Remove fallback definitions.
863         * modules/wait-process (Depends-on): Add sys_wait.
864
865         New module 'sys_wait'.
866         * modules/sys_wait: New file.
867         * lib/sys_wait.in.h: New file, partially copied from
868         lib/wait-process.c.
869         * m4/sys_wait_h.m4: New file.
870         * doc/posix-headers/sys_wait.texi: Mention the new module.
871
872 2008-10-19  Bruno Haible  <bruno@clisp.org>
873
874         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
875
876 2008-10-19  Bruno Haible  <bruno@clisp.org>
877
878         Assume that waitpid() fills an 'int' status, not a 'union wait'.
879         * lib/wait-process.c (WAIT_T): Remove type.
880         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
881         (wait_subprocess): Update.
882
883 2008-10-19  Bruno Haible  <bruno@clisp.org>
884
885         New module 'atoll'.
886         * modules/atoll: New file.
887         * lib/stdlib.in.h (atoll): New declaration.
888         * lib/atoll.c: New file, from glibc with modifications.
889         * m4/atoll.m4: New file.
890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
891         HAVE_ATOLL.
892         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
893         * doc/posix-functions/atoll.texi: Mention the new module.
894
895 2008-10-19  Bruno Haible  <bruno@clisp.org>
896
897         Add strtoull() declaration to <stdlib.h>.
898         * lib/stdlib.in.h (strtoull): New declaration.
899         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
900         Set HAVE_STRTOULL.
901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
902         HAVE_STRTOULL.
903         * modules/strtoull (Depends-on): Add stdlib.
904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
905         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
906         HAVE_STRTOULL.
907
908 2008-10-19  Bruno Haible  <bruno@clisp.org>
909
910         Add strtoll() declaration to <stdlib.h>.
911         * lib/stdlib.in.h (strtoll): New declaration.
912         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
913         Set HAVE_STRTOLL.
914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
915         HAVE_STRTOLL.
916         * modules/strtoll (Depends-on): Add stdlib.
917         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
918         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
919
920 2008-10-19  Bruno Haible  <bruno@clisp.org>
921
922         * modules/bcopy (Depends-on): Add strings.
923         (Include): Specify <strings.h>.
924
925 2008-10-19  Bruno Haible  <bruno@clisp.org>
926
927         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
928
929 2008-10-19  Bruno Haible  <bruno@clisp.org>
930
931         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
932         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
933         mingw.
934
935 2008-10-19  Bruno Haible  <bruno@clisp.org>
936
937         * lib/atanl.c: Don't include isnanl.h.
938         * lib/cosl.c: Likewise.
939         * lib/ldexpl.c: Likewise.
940         * lib/logl.c: Likewise.
941         * lib/sinl.c: Likewise.
942         * lib/sqrtl.c: Likewise.
943         * lib/tanl.c: Likewise.
944
945         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
946         * lib/isnanf.h: Remove file.
947         * lib/isnand.h: Remove file.
948         * lib/isnanl.h: Remove file.
949         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
950         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
951         macros.
952         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
953         HAVE_ISNANF, don't define it as a C macro.
954         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
955         HAVE_ISNAND, don't define it as a C macro.
956         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
957         HAVE_ISNANL, don't define it as a C macro.
958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
959         HAVE_ISNAN[FDL].
960         * modules/isnanf (Files): Remove lib/isnanf.h.
961         (Depends-on): Add math.
962         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
963         (Include): Specify <math.h> instead of isnanf.h.
964         * modules/isnand (Files): Remove lib/isnand.h.
965         (Depends-on): Add math.
966         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
967         (Include): Specify <math.h> instead of isnand.h.
968         * modules/isnanl (Files): Remove lib/isnanl.h.
969         (Depends-on): Add math.
970         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
971         (Include): Specify <math.h> instead of isnanl.h.
972         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
973         HAVE_ISNAN[FDL].
974         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
975         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
976         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
977         * NEWS: Mention the change.
978
979 2008-10-18  Bruno Haible  <bruno@clisp.org>
980
981         Add getusershell(), setusershell(), endusershell() declarations to
982         <unistd.h>.
983         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
984         declarations.
985         * lib/getusershell.c: Include unistd.h.
986         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
987         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
988         HAVE_GETUSERSHELL.
989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
990         and HAVE_GETUSERSHELL.
991         * modules/getusershell (Depends-on): Add unistd, extensions.
992         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
993         (Include): Specify <unistd.h>.
994         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
995         HAVE_GETUSERSHELL.
996
997 2008-10-18  Bruno Haible  <bruno@clisp.org>
998
999         Add a getloadavg() declaration to <stdlib.h>.
1000         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
1001         getloadavg declaration.
1002         (getloadavg): New declaration.
1003         * lib/getloadavg.c: Include <stdlib.h> first.
1004         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
1005         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
1006         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
1007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
1008         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1009         * modules/getloadavg (Depends-on): Add stdlib, extensions.
1010         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1011         (Include): Specify <stdlib.h>.
1012         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
1013         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1014
1015 2008-10-18  Bruno Haible  <bruno@clisp.org>
1016
1017         * lib/dirchownmod.c: Don't include lchmod.h.
1018
1019         Move the lchmod() declaration to <sys/stat.h>.
1020         * lib/lchmod.h: Remove file.
1021         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
1022         (lchmod): New declaration, moved here from lib/lchown.h.
1023         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
1024         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
1025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
1026         and HAVE_LCHMOD.
1027         * modules/lchmod (Files): Remove lib/lchmod.h.
1028         (Depends-on): Add sys_stat, extensions.
1029         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1030         (Include): Specify <sys/stat.h> instead of lchmod.h.
1031         * modules/sys_stat (Depends-on): Add link-warning.
1032         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
1033         definition of GL_LINK_WARNING.
1034         * NEWS: Mention the change.
1035
1036 2008-10-18  Bruno Haible  <bruno@clisp.org>
1037
1038         * lib/fchdir.c: Don't include dirfd.h.
1039         * lib/fts.c: Likewise.
1040         * lib/getcwd.c: Likewise.
1041         * lib/glob.c: Likewise.
1042
1043         Move the dirfd() declaration to <dirent.h>.
1044         * lib/dirfd.h: Remove file.
1045         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
1046         (dirfd): New declaration.
1047         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
1048         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
1049         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
1050         HAVE_DECL_DIRFD.
1051         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
1052         HAVE_DECL_DIRFD.
1053         * modules/dirfd (Files): Remove lib/dirfd.h.
1054         (Depends-on): Add dirent, extensions.
1055         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
1056         (Include): Specify <dirent.h> instead of dirfd.h.
1057         * modules/dirent (Depends-on): Add link-warning.
1058         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
1059         definition of GL_LINK_WARNING.
1060         * NEWS: Mention the change.
1061
1062 2008-10-18  Bruno Haible  <bruno@clisp.org>
1063
1064         Move the euidaccess() declaration to <unistd.h>.
1065         * lib/euidaccess.h: Remove file.
1066         * lib/unistd.in.h (euidaccess): New declaration.
1067         * lib/euidaccess.c: Don't include euidaccess.h.
1068         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
1069         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
1070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
1071         and HAVE_EUIDACCESS.
1072         * modules/euidaccess (Files): Remove lib/euidaccess.h.
1073         (Depends-on): Add unistd.
1074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1075         (Include): Specify <unistd.h> instead of euidaccess.h.
1076         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
1077         HAVE_EUIDACCESS.
1078         * NEWS: Mention the change.
1079
1080 2008-10-18  Bruno Haible  <bruno@clisp.org>
1081
1082         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
1083
1084         Move the getdomainname() declaration to <unistd.h>.
1085         * lib/getdomainname.h: Remove file.
1086         * lib/unistd.in.h (getdomainname): New declaration.
1087         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
1088         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1089         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1090         HAVE_GETDOMAINNAME.
1091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1092         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
1093         * modules/getdomainname (Files): Remove lib/getdomainname.h.
1094         (Depends-on): Add unistd, extensions.
1095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1096         (Includes): Specify <unistd.h> instead of getdomainname.h.
1097         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
1098         HAVE_GETDOMAINNAME.
1099         * NEWS: Mention the change.
1100
1101 2008-10-18  Bruno Haible  <bruno@clisp.org>
1102
1103         * modules/dirent: New file.
1104         * m4/dirent_h.m4: New file.
1105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
1106         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
1107         * modules/fchdir (Files): Remove lib/dirent.in.h.
1108         (Depends-on): Add dirent.
1109         (Makefile.am): Move rules to modules/dirent.
1110         * doc/posix-headers/dirent.texi: Mention the new module.
1111
1112 2008-10-18  Bruno Haible  <bruno@clisp.org>
1113
1114         Avoid -Wunused-parameter warnings in public gnulib header files.
1115         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1116         macro.
1117         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1118
1119 2008-10-18  Bruno Haible  <bruno@clisp.org>
1120
1121         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1122         * doc/glibc-functions/error.texi: Mention the module 'error'.
1123         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1124         * doc/glibc-functions/getdomainname.texi: Mention the module
1125         'getdomainname'.
1126         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1127         * doc/glibc-functions/getpagesize.texi: Mention the module
1128         'getpagesize'.
1129         * doc/glibc-functions/getusershell.texi: Mention the module
1130         'getusershell'.
1131         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1132         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1133         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1134         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1135         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1136         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1137         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1138         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1139         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1140         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1141         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1142         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1143         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1144         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1145
1146 2008-10-17  Bruno Haible  <bruno@clisp.org>
1147
1148         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1149         HP-UX and IRIX, use -0.0L.
1150         * tests/test-ceill.c (minus_zero): Likewise.
1151         * tests/test-floorl.c (minus_zero): Likewise.
1152         * tests/test-frexpl.c (minus_zero): Likewise.
1153         * tests/test-isnan.c (minus_zerol): Likewise.
1154         * tests/test-isnanl.h (minus_zero): Likewise.
1155         * tests/test-ldexpl.c (minus_zero): Likewise.
1156         * tests/test-roundl.c (minus_zero): Likewise.
1157         * tests/test-signbit.c (minus_zerol): Likewise.
1158         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1159         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1160         * tests/test-truncl.c (minus_zero): Likewise.
1161         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1162         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1163         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1164         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1165
1166 2008-10-17  Bruno Haible  <bruno@clisp.org>
1167
1168         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1169         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1170         that it gets activated only for gcc >= 3.0.
1171         * lib/dirent.in.h: Likewise.
1172         * lib/errno.in.h: Likewise.
1173         * lib/fcntl.in.h: Likewise.
1174         * lib/float.in.h: Likewise.
1175         * lib/iconv.in.h: Likewise.
1176         * lib/inttypes.in.h: Likewise.
1177         * lib/locale.in.h: Likewise.
1178         * lib/math.in.h: Likewise.
1179         * lib/netdb.in.h: Likewise.
1180         * lib/netinet_in.in.h: Likewise.
1181         * lib/search.in.h: Likewise.
1182         * lib/signal.in.h: Likewise.
1183         * lib/spawn.in.h: Likewise.
1184         * lib/stdarg.in.h: Likewise.
1185         * lib/stdint.in.h: Likewise.
1186         * lib/stdio.in.h: Likewise.
1187         * lib/stdlib.in.h: Likewise.
1188         * lib/string.in.h: Likewise.
1189         * lib/strings.in.h: Likewise.
1190         * lib/sys_file.in.h: Likewise.
1191         * lib/sys_ioctl.in.h: Likewise.
1192         * lib/sys_select.in.h: Likewise.
1193         * lib/sys_socket.in.h: Likewise.
1194         * lib/sys_stat.in.h: Likewise.
1195         * lib/sys_time.in.h: Likewise.
1196         * lib/sysexits.in.h: Likewise.
1197         * lib/time.in.h: Likewise.
1198         * lib/unistd.in.h: Likewise.
1199         * lib/wchar.in.h: Likewise.
1200         * lib/wctype.in.h: Likewise.
1201         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1202
1203 2008-10-17  Jim Meyering  <meyering@redhat.com>
1204
1205         ignore-value: don't depend on inline module
1206         * modules/ignore-value (Depends-on): Remove 'inline'.
1207         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
1208         Suggestion from Bruno Haible.
1209
1210 2008-10-17  Bruno Haible  <bruno@clisp.org>
1211
1212         New implementation of condition variables for Win32.
1213         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
1214         (gl_linked_waitqueue_t): New type.
1215         (gl_cond_t): Use it.
1216         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
1217         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
1218         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
1219         (glthread_cond_init_func, glthread_cond_wait_func,
1220         glthread_cond_timedwait_func, glthread_cond_signal_func,
1221         glthread_cond_broadcast_func, glthread_cond_destroy_func):
1222         Reimplemented on the basis of gl_linked_waitqueue_t.
1223         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
1224         gl_waitqueue_t.
1225         (gl_rwlock_t): Update.
1226         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
1227
1228 2008-10-17  Simon Josefsson  <simon@josefsson.org>
1229
1230         * modules/recvfrom (Depends-on): Add dependency on getpeername.
1231         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1232
1233 2008-10-17  Jim Meyering  <meyering@redhat.com>
1234
1235         ignore-value: new module
1236         * modules/ignore-value: New file.
1237         * lib/ignore-value.h: New file.
1238         * MODULES.html.sh (Compiler warning management): New section,
1239         just for this module.  More to come.
1240
1241 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1242
1243         open-safer.c: avoid 'signed and unsigned in conditional...' warning
1244         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
1245         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
1246
1247 2008-10-16  Jim Meyering  <meyering@redhat.com>
1248
1249         openat-die.c: avoid 'no previous prototype' warning
1250         * lib/openat-die.c: Include "openat.h".
1251         Reported by Reuben Thomas <rrt@sc3d.org>.
1252
1253 2008-10-16  Simon Josefsson  <simon@josefsson.org>
1254
1255         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1256         * lib/netdb.in.h: Fix typo.
1257         Reported by Bruno Haible  <bruno@clisp.org>
1258
1259         * lib/netdb.in.h: Include sys/socket.h for platforms without
1260         netdb.h, to get structures like hostent on MinGW.
1261         * modules/netdb (Depends-on): Add sys_socket.
1262
1263 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1264
1265         * modules/netdb, modules/netdb-tests: New file.
1266         * m4/netdb_h.m4: New file.
1267         * lib/netdb.in.h: Add, currently just an empty file pending
1268         definitions.
1269         * tests/test-netdb.c: New file.
1270         * doc/posix-headers/netdb.texi: Mention that we replace it if
1271         needed.
1272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1273         netdb.
1274
1275 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1276
1277         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1278         with code.
1279
1280 2008-10-13  Bruno Haible  <bruno@clisp.org>
1281
1282         * lib/glthread/cond.c (glthread_cond_wait_func,
1283         glthread_cond_timedwait_func): Add a comment.
1284
1285 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1286
1287         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1288         * tests/test-select.c: Likewise,
1289
1290 2008-10-13  Bruno Haible  <bruno@clisp.org>
1291
1292         * lib/glthread/cond.c (glthread_cond_wait_func,
1293         glthread_cond_timedwait_func): Fix variable name.
1294         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1295
1296 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1297
1298         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1299         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1300         struct sockaddr.sa_len.
1301         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1302
1303 2008-10-13  Simon Josefsson  <simon@josefsson.org>
1304
1305         * build-aux/pmccabe2html: Add css and css_url parameters.
1306
1307 2008-10-12  Bruno Haible  <bruno@clisp.org>
1308
1309         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1310         calling aclx_get.
1311         Reported by Rainer Tammer <tammer@tammer.net>.
1312
1313 2008-10-12  Bruno Haible  <bruno@clisp.org>
1314
1315         Use msvcrt aware primitives for creation/termination of Win32 threads.
1316         * lib/glthread/thread.c: Include <process.h>.
1317         (glthread_create_func): Use _beginthreadex instead of CreateThread.
1318         (wrapper_func): Update signature.
1319         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1320
1321 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1322             Bruno Haible  <bruno@clisp.org>
1323
1324         Provide a Win32 implementation of the 'cond' module.
1325         * lib/glthread/cond.h [USE_WIN32]: New implementation.
1326         * lib/glthread/cond.c (glthread_cond_init_func,
1327         glthread_cond_wait_func, glthread_cond_timedwait_func,
1328         glthread_cond_signal_func, glthread_cond_broadcast_func,
1329         glthread_cond_destroy_func) [USE_WIN32]: New functions.
1330         * modules/cond (Dependencies): Add gettimeofday.
1331
1332 2008-10-11  Bruno Haible  <bruno@clisp.org>
1333
1334         Make sleep work on older versions of mingw.
1335         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1336         only whether it exists.
1337         * doc/posix-functions/sleep.texi: Mention the problem with older
1338         versions of mingw.
1339
1340 2008-10-11  Bruno Haible  <bruno@clisp.org>
1341
1342         New module 'shutdown'.
1343         * modules/shutdown: New file.
1344         * lib/sys_socket.in.h (shutdown): New declaration.
1345         * lib/winsock.c (shutdown): New function.
1346         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1347         GNULIB_SHUTDOWN.
1348         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1349         * doc/posix-functions/shutdown.texi: Document the new module.
1350
1351 2008-10-11  Jim Meyering  <meyering@redhat.com>
1352
1353         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1354
1355 2008-10-11  Bruno Haible  <bruno@clisp.org>
1356
1357         New module 'fclose'.
1358         * modules/fclose: New file.
1359         * lib/stdio.in.h (fclose): New declaration.
1360         * lib/fclose.c: New file.
1361         * m4/fclose.m4: New file.
1362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1363         REPLACE_FCLOSE.
1364         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1365         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1366         REPLACE_FCLOSE.
1367         * modules/close (Depends-on): fclose.
1368         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1369
1370 2008-10-11  Bruno Haible  <bruno@clisp.org>
1371
1372         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1373         set errno and don't call _close.
1374
1375 2008-10-10  Bruno Haible  <bruno@clisp.org>
1376
1377         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1378         ACL, not afterwards. Fixes test failure on Cygwin.
1379
1380 2008-10-09  Ben Pfaff  <blp@gnu.org>
1381
1382         * build-aux/announce-gen: Fix gnulib version related part of usage
1383         message.  Die with a useful error message if no tarballs are
1384         found.
1385
1386 2008-10-10  Jim Meyering  <meyering@redhat.com>
1387
1388         bootstrap: use git's --depth=N option only if it's supported
1389         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1390         recognize the --depth option.  Reported by Pádraig Brady.
1391
1392 2008-10-09  Bruno Haible  <bruno@clisp.org>
1393
1394         New module 'ioctl'.
1395         * modules/ioctl: New file.
1396         * lib/sys_socket.in.h (ioctl): Remove declaration.
1397         * lib/winsock.c: Include <sys/ioctl.h>.
1398         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1399         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1400         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1401         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1402         * doc/posix-functions/ioctl.texi: Mention the new module.
1403
1404 2008-10-09  Bruno Haible  <bruno@clisp.org>
1405
1406         New module 'sys_ioctl'.
1407         * lib/sys_ioctl.in.h: New file.
1408         * m4/sys_ioctl_h.m4: New file.
1409         * modules/sys_ioctl: New file.
1410         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1411
1412 2008-10-09  Bruno Haible  <bruno@clisp.org>
1413
1414         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1415         * lib/winsock.c: Include <stdarg.h>.
1416         (rpl_ioctl): Change to second argument 'int' and then varargs.
1417
1418 2008-10-09  Bruno Haible  <bruno@clisp.org>
1419
1420         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1421         when the sys_socket module is present and the system has <winsock2.h>.
1422
1423 2008-10-09  Bruno Haible  <bruno@clisp.org>
1424
1425         * doc/posix-functions/close.texi: Mention module 'close' instead of
1426         module 'sys_socket'.
1427
1428 2008-10-09  Bruno Haible  <bruno@clisp.org>
1429
1430         * doc/glibc-headers/sys_ioctl.texi: New file.
1431         * doc/gnulib.texi: Include it.
1432
1433 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1434             Bruno Haible  <bruno@clisp.org>
1435
1436         Combine the two replacements of 'close'.
1437         * lib/sys_socket.in.h (close): Define to a reminder to include
1438         <unistd.h>.
1439         (_gl_close_fd_maybe_socket): New declaration.
1440         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1441         * lib/winsock.c (close): Remove undefinition.
1442         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1443         needed for the gnulib module 'close'.
1444         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1445         define to an error symbol or to a warning, if suitable.
1446         * lib/close.c: Include <sys/socket.h>.
1447         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1448         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1449         UNISTD_H_HAVE_WINSOCK2_H.
1450         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1452         UNISTD_H_HAVE_WINSOCK2_H.
1453         * modules/sys_socket (Files): Add m4/unistd_h.m4.
1454         (configure.ac): Set a module indicator.
1455         (Makefile.am): Substitute GNULIB_CLOSE.
1456         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1457         * modules/poll-tests (Depends-on): Add close.
1458         * modules/select-tests (Depends-on): Likewise.
1459
1460 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1461             Bruno Haible  <bruno@clisp.org>
1462
1463         New module 'close'.
1464         * modules/close: New file.
1465         * lib/unistd.in.h (close): Move declaration out of the
1466         FCHDIR_REPLACEMENT scope.
1467         (_gl_unregister_fd): New declaration.
1468         * lib/close.c: New file.
1469         * lib/fchdir.c (rpl_close): Remove function.
1470         * m4/close.m4: New file.
1471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1472         close.
1473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1474         REPLACE_CLOSE.
1475         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1476         REPLACE_CLOSE.
1477         * modules/fchdir (Depends-on): Add close.
1478
1479 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1480             Bruno Haible  <bruno@clisp.org>
1481
1482         * lib/fcntl.in.h (open): Simplify conditionals.
1483         (_gl_register_fd): New declaration.
1484         * lib/fchdir.c (rpl_open): Remove function.
1485         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1486         also.
1487         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1489         open.
1490
1491 2008-10-09  Jim Meyering  <meyering@redhat.com>
1492
1493         GNUmakefile: use the more name-space-friendly "_version"
1494         * top/GNUmakefile (_dummy): Update.
1495         (_version): Rename from "version".
1496
1497 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1498             Bruno Haible  <bruno@clisp.org>
1499
1500         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1501         rpl_close.
1502         (_gl_register_fd): New function, extracted from rpl_open.
1503         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1504         (rpl_open, rpl_opendir): Use _gl_register_fd.
1505
1506 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1507
1508         Fix organization of 'open' replacement.
1509         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1510         (gl_FUNC_OPEN): Use it.
1511         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1512
1513 2008-10-08  Bruno Haible  <bruno@clisp.org>
1514
1515         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1516
1517 2008-10-08  Simon Josefsson  <simon@josefsson.org>
1518
1519         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
1520         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1521         listen).
1522
1523 2008-10-08  Eric Blake  <ebb9@byu.net>
1524
1525         GNUmakefile: add 'make version' target
1526         * top/GNUmakefile (_curr-ver): Split version update rules...
1527         (version): ...into a target.
1528
1529 2008-10-07  Bruno Haible  <bruno@clisp.org>
1530
1531         Use a more portable replacement expression for -0.0L.
1532         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1533         instead of -0.0L. Fix m4 quotation.
1534
1535         * tests/test-signbit.c: Include <float.h>.
1536         (minus_zero): New variable.
1537         (test_signbitl): Use minus_zero instead of -zero.
1538         * modules/signbit-tests (Depends-on): Add float.
1539
1540         * tests/test-ceill.c: Include <float.h>.
1541         (zero): Remove variable.
1542         (minus_zero): New variable.
1543         (main): Use minus_zero instead of -zero.
1544         * modules/ceill-tests (Depends-on): Add float.
1545
1546         * tests/test-floorl.c: Include <float.h>.
1547         (zero): Remove variable.
1548         (minus_zero): New variable.
1549         (main): Use minus_zero instead of -zero.
1550         * modules/floorl-tests (Depends-on): Add float.
1551
1552         * tests/test-roundl.c: Include <float.h>.
1553         (zero): Remove variable.
1554         (minus_zero): New variable.
1555         (main): Use minus_zero instead of -zero.
1556         * modules/roundl-tests (Depends-on): Add float.
1557
1558         * tests/test-truncl.c: Include <float.h>.
1559         (zero): Remove variable.
1560         (minus_zero): New variable.
1561         (main): Use minus_zero instead of -zero.
1562         * modules/truncl-tests (Depends-on): Add float.
1563
1564         * tests/test-frexpl.c (zero): Remove variable.
1565         (minus_zero): New variable.
1566         (main): Use minus_zero instead of -zero.
1567         * modules/frexpl-tests (Depends-on): Add float.
1568
1569         * tests/test-isnan.c (zerol): Remove variable.
1570         (minus_zerol): New variable.
1571         (test_long_double): Use minus_zerol instead of -zerol.
1572         * modules/isnan-tests (Depends-on): Add float.
1573
1574         * tests/test-isnanl.h (zero): Remove variable.
1575         (minus_zero): New variable.
1576         (main): Use minus_zero instead of -zero.
1577         * modules/isnanl-nolibm-tests (Depends-on): Add float.
1578         * modules/isnanl-tests (Depends-on): Add float.
1579
1580         * tests/test-ldexpl.c (zero): Remove variable.
1581         (minus_zero): New variable.
1582         (main): Use minus_zero instead of -zero.
1583         * modules/ldexpl-tests (Depends-on): Add float.
1584
1585         * tests/test-snprintf-posix.h (zerol): Remove variable.
1586         (minus_zerol): New variable.
1587         (test_function): Use minus_zerol instead of -zerol.
1588         * modules/snprintf-posix-tests (Depends-on): Add float.
1589         * modules/vsnprintf-posix-tests (Depends-on): Add float.
1590
1591         * tests/test-sprintf-posix.h (zerol): Remove variable.
1592         (minus_zerol): New variable.
1593         (test_function): Use minus_zerol instead of -zerol.
1594         * modules/sprintf-posix-tests (Depends-on): Add float.
1595         * modules/vsprintf-posix-tests (Depends-on): Add float.
1596
1597         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1598         (minus_zerol): New variable.
1599         (test_function): Use minus_zerol instead of -zerol.
1600         * modules/vasnprintf-posix-tests (Depends-on): Add float.
1601
1602         * tests/test-vasprintf-posix.c (zerol): Remove variable.
1603         (minus_zerol): New variable.
1604         (test_function): Use minus_zerol instead of -zerol.
1605         * modules/vasprintf-posix-tests (Depends-on): Add float.
1606
1607 2008-10-07  Simon Josefsson  <simon@josefsson.org>
1608
1609         * MODULES.html.sh (Support for building documentation): Mention
1610         pmccabe2html.  Sort entries.
1611
1612         Add pmccabe2html module, from gnupdf.
1613         * build-aux/pmccabe.css: New file.
1614         * build-aux/pmccabe2html: New file.
1615         * m4/pmccabe2html.m4: New file.
1616         * modules/pmccabe2html: New file.
1617
1618 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
1619
1620         flock: new module
1621         * MODULES.html.sh: Add to list of modules.
1622         * lib/flock.c: flock implementation for Windows and Unix systems
1623         which have fcntl.
1624         * doc/glibc-functions/flock.texi: Update documentation.
1625         * lib/sys_file.in.h: <sys/file.h> header file.
1626         * m4/flock.m4: M4 macros.
1627         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1628         * modules/flock: flock module.
1629         * modules/flock-tests: flock tests module.
1630         * modules/sys_file: sys/file.h module.
1631         * tests/test-flock.c: test suite for flock.
1632
1633 2008-10-06  Jim Meyering  <meyering@redhat.com>
1634
1635         bootstrap: check for LT_INIT more portably still ;-)
1636         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1637         Spotted by Bruno Haible.
1638
1639 2008-10-06  Eric Blake  <ebb9@byu.net>
1640
1641         test-signbit: avoid tripping Irix cc bug on -0.0L
1642         * tests/test-signbit.c (minus_zerol): Delete, and replace with
1643         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
1644         entire testsuite consistent and avoids an Irix 6.2 bug.
1645
1646 2008-10-05  Bruno Haible  <bruno@clisp.org>
1647             Jim Meyering  <jim@meyering.net>
1648
1649         Add an option for ignoring EPIPE during close_stdout.
1650         * lib/closeout.h: Include <stdbool.h>.
1651         (close_stdout_set_ignore_EPIPE): New declaration.
1652         * lib/closeout.c: Include <stdbool.h>.
1653         (ignore_EPIPE): New variable.
1654         (close_stdout_set_ignore_EPIPE): New function.
1655         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1656         * lib/close-stream.c (close_stream): Mention the possible EPIPE
1657         failure.
1658         * modules/closeout (Depends-on): Add stdbool.
1659
1660 2008-10-05  Bruno Haible  <bruno@clisp.org>
1661
1662         * modules/accept: New file.
1663         * modules/bind: New file.
1664         * modules/connect: New file.
1665         * modules/getpeername: New file.
1666         * modules/getsockname: New file.
1667         * modules/getsockopt: New file.
1668         * modules/listen: New file.
1669         * modules/recv: New file.
1670         * modules/recvfrom: New file.
1671         * modules/send: New file.
1672         * modules/sendto: New file.
1673         * modules/setsockopt: New file.
1674         * modules/socket: New file.
1675         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1676         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1677         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1678         the particular module is requested. Add a link warning when the
1679         particular module is not requested.
1680         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1681         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1682         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1683         the particular module is requested.
1684         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1685         gl_SYS_SOCKET_H_DEFAULTS): New macros.
1686         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1687         * modules/sys_socket (Depends-on): Add link-warning.
1688         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1689         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1690         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1691         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1692         GL_LINK_WARNING.
1693         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1694         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1695         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1696         * doc/posix-functions/getpeername.texi: Mention the new module
1697         'getpeername'.
1698         * doc/posix-functions/getsockname.texi: Mention the new module
1699         'getsockname'.
1700         * doc/posix-functions/getsockopt.texi: Mention the new module
1701         'getsockopt'.
1702         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1703         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1704         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1705         * doc/posix-functions/send.texi: Mention the new module 'send'.
1706         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1707         * doc/posix-functions/setsockopt.texi: Mention the new module
1708         'setsockopt'.
1709         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1710         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1711         listen, connect, accept.
1712         * modules/select-tests (Depends-on): Likewise.
1713
1714 2008-10-05  Bruno Haible  <bruno@clisp.org>
1715
1716         * lib/winsock.c (strerror): Remove unused #undef.
1717         (rpl_close): Remove unused local variable.
1718
1719         * modules/sys_socket (Depends-on); Add errno.
1720
1721 2008-10-05  Bruno Haible  <bruno@clisp.org>
1722
1723         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1724         (select): Add a link warning when the 'select' module is not used.
1725         * modules/sys_select (Depends-on): Add link-warning.
1726         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1727         Suggested by Paolo Bonzini.
1728
1729 2008-10-05  Jim Meyering  <meyering@redhat.com>
1730
1731         bootstrap: check for LT_INIT more portably
1732         * build-aux/bootstrap: Avoid using grep -E, since it's not
1733         portable enough.  Suggestion from Bruno Haible.
1734
1735 2008-10-05  Bruno Haible  <bruno@clisp.org>
1736
1737         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1738         as being fixed by gnulib.
1739
1740 2008-10-05  Bruno Haible  <bruno@clisp.org>
1741
1742         * modules/select-tests: New file, mostly copied from
1743         modules/sys_select-tests.
1744         * tests/test-select.c: New file, mostly copied from
1745         tests/test-sys_select.c.
1746         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1747         * modules/sys_select-tests (Depends-on): Remove all dependencies.
1748         (Makefile.am): Remove test_sys_select_LDADD.
1749
1750         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1751         to an undefined symbol, for an error message.
1752         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1753         (gl_SYS_SELECT_H_DEFAULTS): New macro.
1754         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1755         winsock-select.c here.
1756         * modules/sys_select (Files): Remove lib/winsock-select.c.
1757         (Depends-on): Remove alloca.
1758         (Makefile.am): Substitute GNULIB_SELECT.
1759         * modules/select: New file.
1760         * doc/posix-functions/select.texi: Update.
1761
1762 2008-10-05  Bruno Haible  <bruno@clisp.org>
1763
1764         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1765         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1766         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1767         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1768         getdtablesize.
1769         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1770         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1771
1772 2008-10-05  Bruno Haible  <bruno@clisp.org>
1773
1774         * modules/getdtablesize-tests: New file.
1775         * tests/test-getdtablesize.c: New file.
1776
1777         New module 'getdtablesize'.
1778         * lib/unistd.in.h (getdtablesize): New declaration.
1779         * lib/getdtablesize.c: New file.
1780         * m4/getdtablesize.m4: New file.
1781         * modules/getdtablesize: New file.
1782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1783         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1784         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1785         HAVE_GETDTABLESIZE.
1786         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1787
1788 2008-10-05  Bruno Haible  <bruno@clisp.org>
1789
1790         * modules/sched (Makefile.am): Fix typo.
1791         Reported by Simon Josefsson.
1792
1793 2008-10-05  Jim Meyering  <meyering@redhat.com>
1794
1795         bootstrap: check for LT_INIT, too
1796         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1797         are deprecated.  Suggestion from Ralf Wildenhues.
1798
1799 2008-10-05  Bruno Haible  <bruno@clisp.org>
1800
1801         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1802         overriding them by ours.
1803         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1804
1805 2008-10-05  Jim Meyering  <meyering@redhat.com>
1806
1807         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1808         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1809         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
1810
1811 2008-10-04  Bruno Haible  <bruno@clisp.org>
1812
1813         * modules/dup2 (License): Change to LGPLv2+.
1814         * modules/sleep (License): Likewise.
1815         * modules/perror (License): Likewise.
1816         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1817         Blake.
1818         * modules/signal (License): Likewise.
1819         * modules/sigprocmask (License): Likewise.
1820         * modules/raise (License): Change to LGPLv2+, with approval by Jim
1821         Meyering.
1822
1823 2008-10-04  Bruno Haible  <bruno@clisp.org>
1824
1825         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1826         Reported by Rainer Tammer <tammer@tammer.net>.
1827
1828 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
1829             Bruno Haible  <bruno@clisp.org>
1830
1831         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1832         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1833         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1834
1835 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
1836
1837         filevercmp: new module
1838         * lib/filevercmp.h: New function filevercmp comparing version strings.
1839         * lib/filevercmp.c: Implementation of filevercmp function.
1840         * modules/filevercmp: Module metadata.
1841         * tests/test-filevercmp.c: Unit test for new module.
1842         * modules/filevercmp-tests: Unit test metadata.
1843         * MODULES.html.sh: Add filevercmp module.
1844
1845 2008-10-03  Bruno Haible  <bruno@clisp.org>
1846
1847         * lib/c-ctype.h: Add comment.
1848         Reported by Jim Meyering.
1849
1850 2008-10-02  Bruno Haible  <bruno@clisp.org>
1851
1852         * modules/posix_spawn-internal (Depends-on): Add 'open'.
1853
1854 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1855
1856         * build-aux/bootstrap: Allow renaming bootstrap, and change the
1857         name of bootstrap.conf accordingly.
1858
1859 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1860
1861         * build-aux/bootstrap: Install git-merge-changelog configuration
1862         items into .gitconfig if needed.
1863
1864 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1865
1866         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1867         git repository, and initialize/update it accordingly.
1868
1869 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
1870
1871         * modules/fsync-tests: New file.
1872         * tests/test-fsync.c: New file.
1873
1874         New module 'fsync'.
1875         * lib/fsync.c: New file.
1876         * m4/fsync.m4: New file.
1877         * modules/fsync: New file.
1878         * lib/unistd.in.h (fsync): New declaration.
1879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1880         GNULIB_FSYNC and HAVE_FSYNC.
1881         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1882         * MODULES.html.sh (posix_functions): Add fsync.
1883         * doc/posix-functions/fsync.texi: Mention the new module.
1884
1885 2008-10-02  Jim Meyering  <meyering@redhat.com>
1886
1887         fts.c: sync with similar code from coreutils' remove.c
1888         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1889         Guard also with "#if defined __linux__", since for now at least,
1890         this code is Linux-kernel-specific.
1891
1892 2008-10-02  Jim Meyering  <meyering@redhat.com>
1893
1894         fts: bug fixes
1895         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1896         Include <sys/vfs.h>, not <sys/statfs.h>.
1897
1898         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1899         Include <sys/vfs.h>, not <sys/statfs.h>.
1900
1901 2008-10-01  Bruno Haible  <bruno@clisp.org>
1902
1903         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1905         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1906         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1907         * doc/posix-functions/posix_spawnp.texi: Likewise.
1908         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1909         whether posix_spawn actually works.
1910         * m4/pipe.m4 (gl_PIPE): Likewise.
1911         * modules/execute (Files): Add m4/posix_spawn.m4.
1912         * modules/pipe (Files): Add m4/posix_spawn.m4.
1913         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1914
1915 2008-10-01  Jim Meyering  <meyering@redhat.com>
1916
1917         remove trailing spaces
1918         * NEWS: Likewise.
1919         * lib/poll.c (poll): Likewise.
1920         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1921         * lib/winsock.c (rpl_close): Likewise.
1922         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1923         * modules/yield: Likewise.
1924         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1925         * tests/test-sys_select.c (connect_to_socket): Likewise.
1926
1927         fts.c: adjust a new interface to be more generally useful
1928         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1929         (fts_build): Adjust caller.
1930
1931 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1932
1933         * modules/cond-tests: New file.
1934         * tests/test-cond.c: New file.
1935
1936 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1937             Bruno Haible  <bruno@clisp.org>
1938
1939         * modules/cond (Dependencies): Add errno, time.
1940         * lib/glthread/cond.h: Include <time.h>.
1941         (gl_cond_define, gl_cond_define_initialized): Use the same definition
1942         across platforms.
1943
1944 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1945             Bruno Haible  <bruno@clisp.org>
1946
1947         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1948
1949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1950             Bruno Haible  <bruno@clisp.org>
1951
1952         * modules/tls-tests (Depends-on): Add thread, yield.
1953         (configure.ac): Remove all checks.
1954         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1955         * tests/test-tls.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_tls): Pass an additional NULL argument to gl_thread_join.
1959
1960 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1961             Bruno Haible  <bruno@clisp.org>
1962
1963         * modules/lock-tests (Depends-on): Add thread, yield.
1964         (configure.ac): Remove all checks.
1965         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1966         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1967         gl_thread_self): Remove definitions. Include glthread/thread.h and
1968         glthread/yield.h instead.
1969         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1970         additional NULL argument to gl_thread_join.
1971
1972 2008-09-30  Bruno Haible  <bruno@clisp.org>
1973
1974         Fix the Win32 implementation of the 'thread' module.
1975         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1976         pointer type.
1977         (gl_thread_self): Invoke gl_thread_self_func.
1978         (gl_thread_self_func): New declaration.
1979         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1980         (do_init_self_key, init_self_key): New functions.
1981         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1982         Remove some fields.
1983         (running_threads, running_lock): Remove variables.
1984         (get_current_thread_handle): New function.
1985         (gl_thread_self_func, wrapper_func, glthread_create_func,
1986         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1987         simplified.
1988
1989 2008-09-30  Bruno Haible  <bruno@clisp.org>
1990
1991         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1992         files.
1993
1994 2008-09-30  Jim Meyering  <meyering@redhat.com>
1995
1996         fts.m4: correct the test for statfs.f_type
1997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1998         when checking for statfs.f_type.
1999
2000 2008-09-15  Simon Josefsson  <simon@josefsson.org>
2001
2002         tests: avoid some compiler warnings
2003         * tests/test-memchr.c (main): Pass NULL indirectly.
2004         * tests/test-getdate.c (main): Remove unused variable 'ret'.
2005
2006 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
2007
2008         getdate.y: disallow countable dayshifts like "4 yesterday ago"
2009         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
2010         exactly specified dayshifts.
2011         (dayshift): New rule.
2012         (rel): Add dayshift.
2013         (relative_time_table) [tomorrow, yesterday, today, now]:
2014         Use tDAY_SHIFT in place of tDAY_UNIT.
2015         * tests/test-getdate.c: Add tests for now-disallowed countable
2016         dayshifts, e.g., "4 yesterday ago".
2017
2018 2008-09-29  Bruno Haible  <bruno@clisp.org>
2019
2020         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
2021         * tests/test-posix_spawn1.in.sh: Renamed from
2022         tests/test-posix_spawn.in.sh.
2023         * tests/test-posix_spawn2.c: New file.
2024         * tests/test-posix_spawn2.in.sh: New file.
2025         * modules/posix_spawnp-tests (Files): Update.
2026         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
2027
2028 2008-09-29  Bruno Haible  <bruno@clisp.org>
2029
2030         Propagate effects of putenv/setenv/unsetenv to child processes.
2031         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
2032         * lib/pipe.c (create_pipe): Likewise.
2033
2034 2008-09-29  Bruno Haible  <bruno@clisp.org>
2035
2036         Enable use of shell scripts as executables in mingw.
2037         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
2038         run the program as a shell script.
2039         * lib/pipe.c (create_pipe): Likewise.
2040         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
2041         resulting array.
2042
2043 2008-09-29  Eric Blake  <ebb9@byu.net>
2044
2045         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
2046
2047 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
2048
2049         * doc/posix-functions/accept.texi: Update mingw problems.
2050         * doc/posix-functions/bind.texi: Update mingw problems.
2051         * doc/posix-functions/close.texi: Update mingw problems.
2052         * doc/posix-functions/connect.texi: Update mingw problems.
2053         * doc/posix-functions/getpeername.texi: Update mingw problems.
2054         * doc/posix-functions/getsockname.texi: Update mingw problems.
2055         * doc/posix-functions/getsockopt.texi: Update mingw problems.
2056         * doc/posix-functions/ioctl.texi: Update mingw problems.
2057         * doc/posix-functions/listen.texi: Update mingw problems.
2058         * doc/posix-functions/recv.texi: Update mingw problems.
2059         * doc/posix-functions/recvfrom.texi: Update mingw problems.
2060         * doc/posix-functions/select.texi: Update mingw problems.
2061         * doc/posix-functions/send.texi: Update mingw problems.
2062         * doc/posix-functions/sendto.texi: Update mingw problems.
2063         * doc/posix-functions/setsockopt.texi: Update mingw problems.
2064         * doc/posix-functions/socket.texi: Update mingw problems.
2065
2066 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
2067             Bruno Haible  <bruno@clisp.org>
2068
2069         * lib/sys_select.in.h: Include sys/time.h.
2070         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
2071         * modules/sys_select: Depend on sys_time.
2072         * tests/test-sys_select.c: Test that sys/select.h defines struct
2073         timeval fully.
2074
2075 2008-09-29  Bruno Haible  <bruno@clisp.org>
2076
2077         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
2078         * lib/sys_select.in.h: Likewise.
2079
2080 2008-09-29  Bruno Haible  <bruno@clisp.org>
2081
2082         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
2083
2084 2008-09-29  Bruno Haible  <bruno@clisp.org>
2085
2086         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
2087         Set LIBSOCKET instead of augmenting LIBS.
2088         * modules/sockets (Link): New section.
2089         * modules/sockets-tests (test_sockets_LDADD): New variable.
2090         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
2091         * modules/poll-tests (test_poll_LDADD): New variable.
2092         * NEWS: Document the change.
2093
2094 2008-09-29  Bruno Haible  <bruno@clisp.org>
2095
2096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
2097         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
2098         ARPA_INET_H directly.
2099         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2100
2101 2008-09-28  Bruno Haible  <bruno@clisp.org>
2102
2103         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
2104         from gl_HEADER_SYS_SOCKET.
2105         (gl_HEADER_SYS_SOCKET): Invoke it.
2106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2107
2108 2008-09-28  Bruno Haible  <bruno@clisp.org>
2109
2110         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
2111         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2112         Needed on OSF/1 4.0.
2113
2114 2008-09-28  Bruno Haible  <bruno@clisp.org>
2115
2116         Override open more carefully.
2117         * lib/open.c (orig_open): New function.
2118         (rpl_open): Use orig_open instead of open.
2119         * lib/fcntl.in.h: Add special invocation convention.
2120         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2121         (gl_FUNC_OPEN): Invoke it.
2122
2123         Override freopen more carefully.
2124         * lib/freopen.c (orig_freopen): New function.
2125         (rpl_freopen): Use orig_freopen instead of freopen.
2126         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2127         (gl_FUNC_FREOPEN): Invoke it.
2128
2129         Override fopen more carefully.
2130         * lib/fopen.c (orig_fopen): New function.
2131         (rpl_fopen): Use orig_fopen instead of fopen.
2132         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2133         (gl_FUNC_FOPEN): Invoke it.
2134         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2135
2136 2008-09-28  Bruno Haible  <bruno@clisp.org>
2137
2138         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2139         SIGPIPE.
2140
2141 2008-09-28  Bruno Haible  <bruno@clisp.org>
2142
2143         * tests/test-sigaction.c (handler, main): Disable the check whether
2144         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2145         glibc systems with LinuxThreads.
2146
2147 2008-09-28  Bruno Haible  <bruno@clisp.org>
2148
2149         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2150
2151         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2152         with AIX xlc.
2153         * lib/fcntl.in.h (open): Likewise.
2154         Reported by Rainer Tammer <tammer@tammer.net>.
2155
2156 2008-09-28  Bruno Haible  <bruno@clisp.org>
2157
2158         * modules/posix_spawnp-tests: New file.
2159         * tests/test-posix_spawn.c: New file.
2160         * tests/test-posix_spawn.in.sh: New file.
2161
2162         New module 'posix_spawnp'.
2163         * modules/posix_spawnp: New file.
2164         * lib/spawnp.c: New file, from GNU libc with modifications.
2165         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2166
2167         New module 'posix_spawn'.
2168         * modules/posix_spawn: New file.
2169         * lib/spawn.c: New file, from GNU libc with modifications.
2170         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2171
2172         New module 'posix_spawnattr_destroy'.
2173         * modules/posix_spawnattr_destroy: New file.
2174         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
2175         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
2176         module.
2177
2178         New module 'posix_spawnattr_setsigmask'.
2179         * modules/posix_spawnattr_setsigmask: New file.
2180         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
2181         modifications.
2182         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
2183         new module.
2184
2185         New module 'posix_spawnattr_getsigmask'.
2186         * modules/posix_spawnattr_getsigmask: New file.
2187         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
2188         modifications.
2189         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
2190         new module.
2191
2192         New module 'posix_spawnattr_setsigdefault'.
2193         * modules/posix_spawnattr_setsigdefault: New file.
2194         * lib/spawnattr_setdefault.c: New file, from GNU libc with
2195         modifications.
2196         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
2197         new module.
2198
2199         New module 'posix_spawnattr_getsigdefault'.
2200         * modules/posix_spawnattr_getsigdefault: New file.
2201         * lib/spawnattr_getdefault.c: New file, from GNU libc with
2202         modifications.
2203         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
2204         new module.
2205
2206         New module 'posix_spawnattr_setschedpolicy'.
2207         * modules/posix_spawnattr_setschedpolicy: New file.
2208         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
2209         modifications.
2210         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
2211         new module.
2212
2213         New module 'posix_spawnattr_getschedpolicy'.
2214         * modules/posix_spawnattr_getschedpolicy: New file.
2215         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
2216         modifications.
2217         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
2218         new module.
2219
2220         New module 'posix_spawnattr_setschedparam'.
2221         * modules/posix_spawnattr_setschedparam: New file.
2222         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
2223         modifications.
2224         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
2225         new module.
2226
2227         New module 'posix_spawnattr_getschedparam'.
2228         * modules/posix_spawnattr_getschedparam: New file.
2229         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
2230         modifications.
2231         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
2232         new module.
2233
2234         New module 'posix_spawnattr_setpgroup'.
2235         * modules/posix_spawnattr_setpgroup: New file.
2236         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
2237         modifications.
2238         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
2239         module.
2240
2241         New module 'posix_spawnattr_getpgroup'.
2242         * modules/posix_spawnattr_getpgroup: New file.
2243         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
2244         modifications.
2245         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
2246         module.
2247
2248         New module 'posix_spawnattr_setflags'.
2249         * modules/posix_spawnattr_setflags: New file.
2250         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2251         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2252         module.
2253
2254         New module 'posix_spawnattr_getflags'.
2255         * modules/posix_spawnattr_getflags: New file.
2256         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2257         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2258         module.
2259
2260         New module 'posix_spawnattr_init'.
2261         * modules/posix_spawnattr_init: New file.
2262         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2263         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2264         module.
2265
2266         New module 'posix_spawn_file_actions_destroy'.
2267         * modules/posix_spawn_file_actions_destroy: New file.
2268         * lib/spawn_faction_destroy.c: New file, from GNU libc with
2269         modifications.
2270         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2271         the new module.
2272
2273         New module 'posix_spawn_file_actions_addopen'.
2274         * modules/posix_spawn_file_actions_addopen: New file.
2275         * lib/spawn_faction_addopen.c: New file, from GNU libc with
2276         modifications.
2277         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2278         the new module.
2279
2280         New module 'posix_spawn_file_actions_adddup2'.
2281         * modules/posix_spawn_file_actions_adddup2: New file.
2282         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2283         modifications.
2284         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2285         the new module.
2286
2287         New module 'posix_spawn_file_actions_addclose'.
2288         * modules/posix_spawn_file_actions_addclose: New file.
2289         * lib/spawn_faction_addclose.c: New file, from GNU libc with
2290         modifications.
2291         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2292         the new module.
2293
2294         New module 'posix_spawn_file_actions_init'.
2295         * modules/posix_spawn_file_actions_init: New file.
2296         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2297         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2298         new module.
2299
2300         New module 'posix_spawn-internal'.
2301         * modules/posix_spawn-internal: New file.
2302         * lib/spawn_int.h: New file, from GNU libc with modifications.
2303         * lib/spawni.c: New file, from GNU libc with modifications.
2304         * m4/posix_spawn.m4: New file.
2305
2306         New module 'spawn'.
2307         * modules/spawn: New file.
2308         * lib/spawn.in.h: New file, from GNU libc with modifications.
2309         * m4/spawn_h.m4: New file.
2310         * doc/posix-headers/spawn.texi: Mention the new module.
2311
2312 2008-09-28  Bruno Haible  <bruno@clisp.org>
2313
2314         * modules/sched-tests: New file.
2315         * tests/test-sched.c: New file.
2316
2317         New module 'sched'.
2318         * modules/sched: New file.
2319         * lib/sched.in.h: New file.
2320         * m4/sched_h.m4: New file.
2321         * doc/posix-headers/sched.texi: Mention the new module.
2322
2323 2008-09-27  Eric Blake  <ebb9@byu.net>
2324
2325         Fix previous patch, and tweak references to $0.
2326         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2327         (func_version, func_gnulib_dir): Don't call this program
2328         gnulib-tool.
2329         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2330         with using $0 in function.
2331         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2332         (func_fatal_error): Reuse the name the user invoked us with.
2333
2334 2008-09-27  Bruno Haible  <bruno@clisp.org>
2335
2336         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2337         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2338         (gl_ICONV_H): Not here.
2339         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2340         instead of assigning ICONV_H directly.
2341
2342         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2344         WCHAR_H directly.
2345
2346 2008-09-27  Bruno Haible  <bruno@clisp.org>
2347
2348         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2349         * modules/arpa_inet (Depends-on): Add link-warning.
2350         (Makefile.am): Insert the definition of GL_LINK-WARNING.
2351         * modules/unistd (Makefile.am): Likewise.
2352
2353 2008-09-26  Bruno Haible  <bruno@clisp.org>
2354
2355         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2356         variables.
2357         (func_version): Essentially copied from gnulib-tool.
2358         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2359         func_readlink): Copied from gnulib-tool.
2360
2361 2008-09-26  Bruno Haible  <bruno@clisp.org>
2362
2363         * gnulib-tool (func_version): Change directory to $gnulib_dir before
2364         invoking git-version-gen.
2365
2366 2008-09-26  Bruno Haible  <bruno@clisp.org>
2367
2368         * posix-modules: Update to directory names changed on 2008-01-19.
2369         Remove commas in output before splitting into words. No more need to
2370         avoid 'ftruncate' since 2007-02-19.
2371
2372 2008-09-26  Bruno Haible  <bruno@clisp.org>
2373
2374         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2375
2376 2008-09-26  Bruno Haible  <bruno@clisp.org>
2377
2378         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2379         * modules/fwriteerror (Depends-on): Add errno.
2380
2381 2008-09-26  Bruno Haible  <bruno@clisp.org>
2382
2383         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2384         * tests/test-vc-list-files-cvs.sh: Likewise.
2385
2386 2008-09-26  Bruno Haible  <bruno@clisp.org>
2387
2388         * doc/posix-headers/sys_resource.texi: Reorder items.
2389
2390 2008-09-26  Jim Meyering  <meyering@redhat.com>
2391
2392         fts: tweak inode comparison function
2393         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2394         inode numbers, as documented.
2395
2396         fts: sort dirent entries on inode number before traversing
2397         This avoids a quadratic, seek-related performance penalty when
2398         operating on a directory containing many entries (measurable at 10k;
2399         3.5 hours at 2 million entries with a cold cache) on certain types
2400         of file systems, including ext3 and ext4, but not tmpfs.
2401         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2402         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2403         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2404         (fs_handles_readdir_ordered_dirents_efficiently): New function.
2405         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2406         (fts_build): Set the stat.st_ino member from D_INO.
2407         If it is likely to be useful, sort dirent entries on inode number.
2408
2409         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2410         and the struct statfs.f_type member.
2411         * modules/fts (Depends-on): Add d-ino.
2412
2413 2008-09-26  Bruno Haible  <bruno@clisp.org>
2414
2415         * modules/sigpipe-die (Depends-on): Add sigpipe.
2416
2417         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2418         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2419         and GNULIB_STDIO_H_SIGPIPE are set.
2420         * lib/stdio-write.c: New file.
2421         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2422         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2423         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2424         REPLACE_STDIO_WRITE_FUNCS.
2425         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2426         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2427         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2428         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2429         * modules/stdio (Files): Add lib/stdio-write.c.
2430         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2431         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2432         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2433         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2434         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2435         REPLACE_FPRINTF_POSIX.
2436         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2437         REPLACE_PRINTF_POSIX.
2438         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2439         REPLACE_VFPRINTF_POSIX.
2440         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2441         REPLACE_VPRINTF_POSIX.
2442         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2443         SIGPIPE issue.
2444         * doc/posix-functions/fputc.texi: Likewise.
2445         * doc/posix-functions/fputs.texi: Likewise.
2446         * doc/posix-functions/fwrite.texi: Likewise.
2447         * doc/posix-functions/printf.texi: Likewise.
2448         * doc/posix-functions/putc.texi: Likewise.
2449         * doc/posix-functions/putchar.texi: Likewise.
2450         * doc/posix-functions/puts.texi: Likewise.
2451         * doc/posix-functions/vfprintf.texi: Likewise.
2452         * doc/posix-functions/vprintf.texi: Likewise.
2453
2454         * modules/safe-write (Depends-on): Add write.
2455
2456         * modules/sigpipe-tests: New file.
2457         * tests/test-sigpipe.c: New file.
2458         * tests/test-sigpipe.sh: New file.
2459
2460         * modules/write: New file.
2461         * lib/unistd.in.h: Include <sys/types.h>.
2462         (write): New declaration.
2463         * lib/write.c: New file.
2464         * m4/write.m4: New file.
2465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2466         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2467         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2468         GNULIB_WRITE, REPLACE_WRITE.
2469         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2470         and the SIGPIPE issue.
2471
2472         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2473         (raise): New declaration.
2474         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2475         (ext_signal): New function.
2476         (rpl_raise): New function.
2477         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2478         GNULIB_SIGNAL_H_SIGPIPE.
2479         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2480         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2481
2482         * modules/sigpipe: New file.
2483         * m4/sigpipe.m4: New file.
2484
2485 2008-09-25  Derek Price  <derek@ximbiot.com>
2486             Bruno Haible  <bruno@clisp.org>
2487
2488         * gnulib-tool (func_import): Report all license incompatibilities, not
2489         just the first one.
2490
2491 2008-09-25  Bruno Haible  <bruno@clisp.org>
2492
2493         * gnulib-tool (func_import): When computing the edits, consider not
2494         only the Makefile.ams that exist but also those that will be generated.
2495
2496 2008-09-25  Simon Josefsson  <simon@josefsson.org>
2497
2498         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2499         fixes gnulib-tool --test warning about duplicate dependency.
2500
2501 2008-09-25  Bruno Haible  <bruno@clisp.org>
2502
2503         * gnulib-tool: Don't ask the user to perform edits in the generated
2504         Makefile.ams.
2505         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2506         apply to the Makefile.am being generated.
2507         (func_emit_tests_Makefile_am): Execute edits that apply to the
2508         Makefile.am being generated.
2509         (func_import): Setup list of Makefile.am edits before emitting the
2510         Makefile.ams, not at the end.
2511         (func_create_testdir): Update.
2512         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2513
2514 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2515
2516         * gnulib-tool (func_import): Store the --tests-base option in the
2517         comment in gnulib-cache.m4.
2518
2519 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
2520
2521         * NEWS: Document increased portability that sys_select now provides.
2522
2523         * lib/sys_select.in.h: Install select wrapper.
2524         * lib/sys_socket.in.h: Use more descriptive name when there is no
2525         select wrapper.
2526         * lib/winsock-select.c: New.
2527         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2528         Require gl_HEADER_SYS_SOCKET.
2529         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2530         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2531         * tests/test-sys_select.c: Add functional tests.
2532
2533 2008-09-24  Eric Blake  <ebb9@byu.net>
2534
2535         open, fopen: close fd leak in last patch
2536         * lib/open.c (rpl_open): Close fd before returning error.
2537         * lib/fopen.c (rpl_fopen): Close fd before returning error.
2538         * doc/posix-functions/open.texi (open): Document that Irix also
2539         has the bug.
2540         * doc/posix-functions/fopen.texi (fopen): Likewise.
2541         Reported by Paolo Bonzini.
2542
2543 2008-09-24  Bruno Haible  <bruno@clisp.org>
2544
2545         Ensure that a filename ending in a slash cannot be used to access a
2546         non-directory.
2547         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2548         to check whether it's really a directory.
2549         * lib/fopen.c: Include fcntl.h, unistd.h.
2550         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2551         and fdopen().
2552         * modules/fopen (Depends-on): Add unistd.
2553         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2554         * tests/test-fopen.c (main): Likewise.
2555         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2556         * doc/posix-functions/fopen.texi: Likewise.
2557         Reported by Eric Blake.
2558
2559 2008-09-23  Eric Blake  <ebb9@byu.net>
2560
2561         c-stack: avoid compiler optimizations when provoking overflow
2562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2563         recursion harder to optimize, to ensure a stack overflow occurs.
2564         * tests/test-c-stack.c (recurse): Likewise.
2565         Borrowed from libsigsegv.
2566
2567         c-stack: work around Irix sigaltstack bug
2568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2569         whether sigaltstack uses wrong end of stack_t (copied in part from
2570         libsigsegv).
2571         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2572         Irix bug, without requiring an over-allocation.
2573         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2574         bug.
2575
2576         fopen: document mingw bug on directories
2577         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2578         not allowing a stream visiting a directory, even though reading
2579         from such a stream is not portable.
2580
2581 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2582
2583         * lib/poll.c: Rewrite.
2584         * modules/poll: Depend on alloca.
2585
2586 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2587
2588         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2589         instead define prototypes for a full set of wrappers.  Ensure
2590         that Cygwin does not use the compatibility code, which is only
2591         for MinGW.
2592         * lib/winsock.c: New.
2593         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2594         * modules/sys_socket: Add lib/winsock.c.
2595
2596         * modules/poll-tests: Add errno and perror.
2597         * tests/test-poll.c: Use ioctl, not ioctlsocket.
2598
2599 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2600
2601         * tests/test-poll.c: Downgrade minimum needed Winsock version.
2602
2603 2008-09-23  Bruno Haible  <bruno@clisp.org>
2604
2605         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2606         * doc/glibc-functions/*: Likewise.
2607
2608 2008-09-23  Simon Josefsson  <simon@josefsson.org>
2609
2610         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2611         success.
2612
2613 2008-09-22  Eric Blake  <ebb9@byu.net>
2614             Bruno Haible  <bruno@clisp.org>
2615
2616         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2617         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2618         supply %A but mishandle pseudo-NaN.
2619         Reported by Simon Josefsson.
2620
2621 2008-09-21  Bruno Haible  <bruno@clisp.org>
2622
2623         * tests/test-lock.c (main): Tweak skip message.
2624         * tests/test-tls.c (main): Likewise.
2625
2626 2008-09-21  Bruno Haible  <bruno@clisp.org>
2627
2628         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2629         whether 'struct sigaction' has sa_sigaction here...
2630         (gl_PREREQ_SIG_HANDLER_H): ... not here.
2631         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2632
2633 2008-09-21  Bruno Haible  <bruno@clisp.org>
2634
2635         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2636         section.
2637         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2638         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2639         the new section.
2640         (Support for obsolete systems lacking POSIX:2001): New section.
2641         (String handling <string.h>): Move strdup to the new section.
2642         Suggested by Simon Josefsson and Paolo Bonzini.
2643
2644 2008-09-21  Bruno Haible  <bruno@clisp.org>
2645
2646         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2647         exponents in %e and %g results on 'long double'. Needed for mingw's
2648         improved *printf functions.
2649         * tests/test-vasprintf-posix.c (test_function): Likewise.
2650         * tests/test-snprintf-posix.h (test_function): Likewise.
2651         * tests/test-sprintf-posix.h (test_function): Likewise.
2652         Reported by Eric Blake.
2653
2654 2008-09-21  Bruno Haible  <bruno@clisp.org>
2655
2656         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2657         * tests/test-sprintf-posix.h (test_function): Likewise.
2658
2659 2008-09-21  Bruno Haible  <bruno@clisp.org>
2660
2661         * modules/getpass (Depends-on): Add strdup-posix.
2662
2663         New module 'strdup-posix'.
2664         * modules/strdup-posix: New file.
2665         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2666         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2668         REPLACE_STRDUP.
2669         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2670         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2672         strdup-posix.
2673
2674         * modules/strdup (Depends-on): Remove malloc-posix.
2675
2676 2008-09-20  Bruno Haible  <bruno@clisp.org>
2677
2678         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2679         Wildenhues.
2680
2681 2008-09-20  Bruno Haible  <bruno@clisp.org>
2682
2683         Ensure that wint_t gets defined on IRIX 5.3.
2684         * lib/wchar.in.h (wint_t): Define if not defined by the system.
2685         * lib/wctype.in.h (wint_t): Likewise.
2686         (__wctype_wint_t): Remove type.
2687         (isw*): Use wint_t instead of __wctype_wint_t.
2688         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2689         * modules/wchar (Files): Add m4/wint_t.m4.
2690         (Makefile.am): Substitute HAVE_WINT_T.
2691         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2692         * tests/test-wctype.c: Check that wint_t is defined.
2693         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2694         * doc/posix-headers/wctype.texi: Likewise.
2695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2696
2697 2008-09-18  Bruno Haible  <bruno@clisp.org>
2698
2699         * gnulib-tool (func_exit): Update comment.
2700
2701 2008-09-18  Simon Josefsson  <simon@josefsson.org>
2702
2703         * modules/getaddrinfo (Depends-on): Remove strdup, this module
2704         assumes strdup exists and does not depend on strdup to return
2705         ENOMEM on out of memory conditions.
2706
2707 2008-09-18  Bruno Haible  <bruno@clisp.org>
2708
2709         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
2710         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2711         digits for the exponent.
2712
2713 2008-09-18  Jim Meyering  <meyering@redhat.com>
2714             Bruno Haible  <bruno@clisp.org>
2715
2716         * lib/vasnprintf.c (decimal_point_char): Define also if
2717         NEED_PRINTF_INFINITE_LONG_DOUBLE.
2718
2719 2008-09-16  Bruno Haible  <bruno@clisp.org>
2720         and Eric Blake  <ebb9@byu.net>
2721
2722         vasnprintf: support Irix 5.3
2723         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2724         that mishandle long double infinity.
2725         Reported by Tom G. Christensen.
2726
2727 2008-09-16  Bruno Haible  <bruno@clisp.org>
2728
2729         * doc/glibc-functions/scandir.texi: Mention the function is missing on
2730         Solaris 9.
2731         * doc/glibc-functions/alphasort.texi: Likewise.
2732         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2733
2734 2008-09-16  Jim Meyering  <meyering@redhat.com>
2735
2736         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2737         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2738         a umask modification leak out of a subshell.  Otherwise, the
2739         opensolaris /bin/sh would be accepted and thus cause unwarranted
2740         failures in the coreutils test suite.
2741
2742 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
2743
2744         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2745         to succeed.
2746
2747 2008-09-16  Jim Meyering  <meyering@redhat.com>
2748
2749         avoid spurious test failure when library is built without ACL support
2750         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2751         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2752         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2753         * tests/test-copy-acl.sh: Likewise.
2754
2755 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2756
2757         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2758         based on character occurrence counts.
2759
2760 2008-09-15  Eric Blake  <ebb9@byu.net>
2761
2762         tests: avoid some compiler warnings
2763         * tests/test-memchr.c (main): Pass NULL indirectly.
2764         * tests/test-closein.c (main): Avoid unused variable.
2765
2766 2008-09-15  Bruno Haible  <bruno@clisp.org>
2767
2768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2769         are missing on OpenBSD 4.0 individually.
2770         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2771
2772 2008-09-15  Bruno Haible  <bruno@clisp.org>
2773
2774         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2775         * doc/posix-functions/strerror.texi: Mention also Cygwin.
2776         * doc/posix-functions/perror.texi: Likewise.
2777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2778         is missing.
2779         Reported by Eric Blake.
2780
2781         * lib/errno.in.h: Use replacement values >= 2000.
2782         Reported by Eric Blake.
2783
2784 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2785
2786         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2787         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2788         limit.
2789         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2790         compareseq was aborted.
2791
2792 2008-09-14  Bruno Haible  <bruno@clisp.org>
2793
2794         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2795         yvec_edit_count.
2796         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2797         (fstrcmp_bounded): Simplify result computation accordingly.
2798
2799 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2800
2801         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2802         (fstrcmp): Define in terms of fstrcmp_bounded.
2803         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2804         lower_bound argument.
2805         Return quickly if the result is certainly < lower_bound.
2806         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2807
2808 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2809
2810         * lib/diffseq.h (EARLY_ABORT): New macro.
2811         (compareseq): Change return type to bool. Return true when EARLY_ABORT
2812         evaluates to true.
2813
2814 2008-09-14  Bruno Haible  <bruno@clisp.org>
2815
2816         * modules/perror-tests: New file.
2817         * tests/test-perror.sh: New file.
2818         * tests/test-perror.c: New file.
2819
2820         New module 'perror'.
2821         * lib/stdio.in.h (perror): New declaration.
2822         * lib/perror.c: New file.
2823         * m4/perror.m4: New file.
2824         * modules/perror: New file.
2825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2826         * doc/posix-functions/perror.texi: Mention the perror module.
2827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2828         REPLACE_PERROR.
2829         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2830         REPLACE_PERROR.
2831
2832 2008-09-14  Bruno Haible  <bruno@clisp.org>
2833
2834         * modules/stdio (Makefile.am): Reorder to match the order in
2835         lib/stdio.in.h.
2836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2837
2838 2008-09-13  Bruno Haible  <bruno@clisp.org>
2839
2840         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2841
2842 2008-09-13  Bruno Haible  <bruno@clisp.org>
2843
2844         Extend strerror to cover the added errno values.
2845         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2846         (rpl_strerror): Provide error messages for the added errno values and
2847         for the WSA* values.
2848         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2849         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2850         strerror.
2851         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2852         * modules/strerror (Depends-on): Add errno.
2853         * doc/posix-functions/strerror.texi: Document the change.
2854         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2855         and EOVERFLOW.
2856
2857 2008-09-13  Bruno Haible  <bruno@clisp.org>
2858
2859         * modules/EOVERFLOW: Remove file.
2860         * m4/eoverflow.m4: Remove file.
2861         * modules/EOVERFLOW-tests: Remove file.
2862         * tests/test-EOVERFLOW.c: Remove file.
2863         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2864         * modules/ftell (Depends-on): Likewise.
2865         * modules/getdelim (Depends-on): Likewise.
2866         * modules/getugroups (Depends-on): Likewise.
2867         * modules/poll (Depends-on): Likewise.
2868         * modules/snprintf (Depends-on): Likewise.
2869         * modules/sprintf-posix (Depends-on): Likewise.
2870         * modules/vasnprintf (Depends-on): Likewise.
2871         * modules/vasprintf (Depends-on): Likewise.
2872         * modules/vfprintf-posix (Depends-on): Likewise.
2873         * modules/vsnprintf (Depends-on): Likewise.
2874         * modules/vsprintf-posix (Depends-on): Likewise.
2875         * modules/xvasprintf (Depends-on): Likewise.
2876         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2877         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2878         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2879         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2880         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2881         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2882         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2883         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2884         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2885         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2886         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2887         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2888         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2889         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2890         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2891         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2893         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2894         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2895         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2896         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2897         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2898         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2899         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2900         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2901         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2902         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2903         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2904         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2905         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2906         * MODULES.html.sh: Remove EOVERFLOW.
2907         * NEWS: Mention the change.
2908
2909 2008-09-13  Bruno Haible  <bruno@clisp.org>
2910
2911         * modules/errno-tests: New file.
2912         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2913
2914         * lib/errno.in.h: New file.
2915         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2916         * modules/errno: New file.
2917         * doc/posix-headers/errno.texi: Update documentation.
2918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2919
2920 2008-09-13  Bruno Haible  <bruno@clisp.org>
2921
2922         * tests/test-poll.c: Use #if for native Windows, rather than testing
2923         __MSVCRT__.
2924
2925 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2926             Bruno Haible  <bruno@clisp.org>
2927
2928         * lib/glob.c: Don't include <pwd.h> on native Windows.
2929         (WINDOWS32): New macro.
2930         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2931
2932 2008-09-13  Bruno Haible  <bruno@clisp.org>
2933
2934         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2935         (ETIMEDOUT): Remove macro.
2936         (glthread_cond_timedwait_multithreaded): New declaration.
2937         (glthread_cond_timedwait): Use it.
2938         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2939         (glthread_cond_timedwait_multithreaded): New function.
2940
2941 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2942
2943         * modules/poll-tests: Do not check for io.h.
2944         * tests/test-poll.c: Check for __MSVCRT__ instead.
2945
2946 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2947
2948         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2949         * modules/poll-tests: Add inet_pton, stdbool, sockets.
2950         * tests/test-poll.c: Use them.  Use _pipe on Windows.
2951
2952 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2953
2954         * modules/poll-tests: New.
2955         * tests/test-poll.c: New.
2956
2957 2008-09-12  Eric Blake  <ebb9@byu.net>
2958
2959         frexp: test for NetBSD failure on -0.0
2960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2961         not all, bugs from NetBSD 3.0 have been fixed.
2962         * doc/posix-functions/frexp.texi (frexp): Document bug.
2963         Reported by Thomas Klausner.
2964
2965         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2967         literal -0.0.
2968         Reported by Jonathan C. Patschke <jp@centtech.com>.
2969
2970 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2971
2972         * lib/glthread/cond.h: Use dummy implementation also if
2973         USE_WIN32_THREADS.
2974
2975 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2976
2977         * modules/fnmatch-posix (License): Change to LGPLv2+.
2978         * modules/fnmatch-gnu (License): Likewise.
2979
2980 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2981
2982         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2983
2984 2008-09-11  Jim Meyering  <meyering@redhat.com>
2985
2986         * users.txt: Add gtk-vnc.
2987
2988 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2989
2990         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2991         rotate amounts.
2992
2993         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2994         required for 16-bit and 8-bit rotates.
2995         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2996         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2997         UINT8_MAX instead of hard-coded constants.
2998         Suggested by Paul Eggert.
2999
3000 2008-09-07  Bruno Haible  <bruno@clisp.org>
3001
3002         * tests/test-striconveh.c (main): Check behaviour when converting from
3003         UTF-7.
3004
3005         Make striconveh work better with stateful encodings.
3006         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
3007         that iconv does not increment the inptr when returning -1/EINVAL.
3008
3009 2008-09-07  Bruno Haible  <bruno@clisp.org>
3010
3011         * build-aux/config.rpath: Update according to libtool-2.2.6.
3012         * build-aux/config.libpath: Likewise.
3013
3014 2008-09-06  Bruno Haible  <bruno@clisp.org>
3015
3016         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
3017         * lib/freadptr.c (freadptr): Likewise.
3018         * lib/freadseek.c (freadptrinc): Likewise.
3019         Reported by Simon Josefsson.
3020
3021 2008-09-06  Bruno Haible  <bruno@clisp.org>
3022
3023         * modules/freadptr (License): Change to LGPLv2+.
3024         * modules/freadseek (License): Likewise.
3025         Suggested by Eric Blake.
3026
3027         * modules/memchr2 (License): Change to LGPLv2+.
3028         Approved by Eric Blake.
3029
3030 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3031             Bruno Haible  <bruno@clisp.org>
3032
3033         Make gnulib-tool work with native 'sed' on AIX.
3034         * gnulib-tool (sed_noop): New variable.
3035         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
3036         func_add_or_update, func_create_testdir): Use it to initialize sed
3037         script variables.
3038         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3039
3040 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
3041             Bruno Haible  <bruno@clisp.org>
3042
3043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
3044         also works after #include directives.
3045
3046 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
3047
3048         getdate.y: reject an out-of-range timezone value
3049         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
3050         the range [-24...+24].  When specified with only one or two digits,
3051         * tests/test-getdate.c: Tests for the fix.
3052         * doc/getdate.texi: Document this change.
3053
3054 2008-09-03  Bruno Haible  <bruno@clisp.org>
3055
3056         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
3057
3058 2008-09-02  Simon Josefsson  <simon@josefsson.org>
3059
3060         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
3061         <bruce.korb@gmail.com> with ideas from Ben Pfaff
3062         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
3063         Blake <ebb9@byu.net>.
3064
3065         * tests/test-bitrotate.c: Add more test vectors.
3066
3067 2008-09-02  Eric Blake  <ebb9@byu.net>
3068
3069         vasnprintf-posix: handle large precision via %.*d
3070         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
3071         when handling it ourselves.
3072         * tests/test-vasnprintf-posix.c (test_function): Add test.
3073         * tests/test-snprintf-posix.h (test_function): Likewise.
3074         * tests/test-sprintf-posix.h (test_function): Likewise.
3075         * tests/test-vasprintf-posix.c (test_function): Likewise.
3076         Reported by Alain Guibert.
3077
3078 2008-09-01  Eric Blake  <ebb9@byu.net>
3079
3080         c-stack: make configure-time check more robust
3081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
3082         successful sigaction call.
3083         Reported by Tom G. Christensen.
3084
3085 2008-09-01  Bruno Haible  <bruno@clisp.org>
3086
3087         New module 'findprog-lgpl'.
3088         * modules/findprog-lgpl: New file.
3089         * lib/findprog-lgpl.c: New file.
3090         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
3091         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
3092         to decide whether to use strdup or xstrdup, concatenated_filename or
3093         xconcatenated_filename.
3094
3095 2008-09-01  Bruno Haible  <bruno@clisp.org>
3096
3097         Split module 'concat-filename' into 'concat-filename' (LGPL) and
3098         'xconcat-filename' (GPL).
3099         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
3100         (License): Change to LGPLv2+.
3101         * modules/xconcat-filename: New file.
3102         * lib/concat-filename.h (concatenated_filename): Change specification.
3103         (xconcatenated_filename): New declaration.
3104         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
3105         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
3106         memory situations.
3107         * lib/xconcat-filename.c: New file.
3108         * NEWS: Mention the change.
3109         * lib/findprog.c: Include concat-filename.h, not filename.h.
3110         (find_in_path): Use xconcatenated_filename instead of
3111         concatenated_filename.
3112         * lib/javacomp.c: Include concat-filename.h, not filename.h.
3113         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3114         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3115         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3116         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3117         instead of concatenated_filename.
3118         * lib/javaexec.c: Include concat-filename.h, not filename.h.
3119         (execute_java_class): Use xconcatenated_filename instead of
3120         concatenated_filename.
3121         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3122         * modules/javacomp (Depends-on): Likewise.
3123         * modules/javaexec (Depends-on): Likewise.
3124
3125 2008-09-01  Bruno Haible  <bruno@clisp.org>
3126
3127         Split module 'filename' into 'filename' and 'concat-filename'.
3128         * modules/filename: Keep only lib/filename.h.
3129         (License): Change to LGPLv2+.
3130         * modules/concat-filename: New file, extracted from modules/filename.
3131         * lib/filename.h (concatenated_filename): Remove declaration.
3132         * lib/concat-filename.h: New file, extracted from lib/filename.h.
3133         * lib/concat-filename.c: Include concat-filename.h.
3134         * NEWS: Mention the change.
3135
3136 2008-09-01  Simon Josefsson  <simon@josefsson.org>
3137
3138         * lib/bitrotate.h (rotl8, rotr8): Add.
3139
3140         * modules/bitrotate (configure.ac): Need
3141         AC_REQUIRE([AC_C_INLINE]).
3142         (Description): Mention stdint.h.  Reported by Bruno Haible
3143         <bruno@clisp.org>.
3144
3145         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
3146         Paolo Bonzini <bonzini@gnu.org>.
3147
3148 2008-08-31  Bruno Haible  <bruno@clisp.org>
3149
3150         Assume Solaris specific bi-arch conventions on Solaris systems.
3151         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3152         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3153         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3154         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3155         like acl_libdirstem.
3156         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3157         acl_libdirstem.
3158         * NEWS: Mention the change.
3159         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3160
3161 2008-08-31  Jim Meyering  <meyering@redhat.com>
3162
3163         * lib/strftime.h: Add comments describing the two added arguments.
3164
3165         remove duplicate #include directives
3166         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3167         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3168
3169 2008-08-31  Bruno Haible  <bruno@clisp.org>
3170
3171         New module 'sigpipe-die'.
3172         * modules/sigpipe-die: New file.
3173         * lib/sigpipe-die.h: New file.
3174         * lib/sigpipe-die.c: New file.
3175         * MODULES.html.sh (Signal handling): Add sigpipe-die.
3176
3177 2008-08-31  Bruno Haible  <bruno@clisp.org>
3178
3179         Don't override previously installed signal handlers.
3180         * lib/fatal-signal.c (saved_sigactions): New variable.
3181         (uninstall_handlers): Reset the signal to the saved handler, not
3182         to SIG_DFL (except when ignored).
3183         (install_handlers): Save the previous handlers.
3184
3185 2008-08-30  Bruno Haible  <bruno@clisp.org>
3186
3187         * gnulib-tool (func_reset_sigpipe): New function.
3188         (func_get_automake_snippet, func_modules_transitive_closure,
3189         func_import): Invoke it before a join command that reads from stdin,
3190         to avoid "echo: write error: Broken pipe" error messages on stderr.
3191         Reported by Sam Steingold <sds@gnu.org>.
3192
3193 2008-08-30  Bruno Haible  <bruno@clisp.org>
3194
3195         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
3196         Code copied from m4/open.m4.
3197         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
3198         access and the filename ends in a slash. Code copied from lib/open.c.
3199         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
3200         * tests/test-fopen.c (main): Check against bug with trailing slash.
3201
3202 2008-08-29  Bruno Haible  <bruno@clisp.org>
3203
3204         Avoid some "gcc -pedantic" warnings.
3205         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
3206         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
3207         * lib/dirent.in.h: Likewise.
3208         * lib/fcntl.in.h: Likewise.
3209         * lib/float.in.h: Likewise.
3210         * lib/iconv.in.h: Likewise.
3211         * lib/inttypes.in.h: Likewise.
3212         * lib/locale.in.h: Likewise.
3213         * lib/math.in.h: Likewise.
3214         * lib/netinet_in.in.h: Likewise.
3215         * lib/search.in.h: Likewise.
3216         * lib/signal.in.h: Likewise.
3217         * lib/stdarg.in.h: Likewise.
3218         * lib/stdint.in.h: Likewise.
3219         * lib/stdio.in.h: Likewise.
3220         * lib/stdlib.in.h: Likewise.
3221         * lib/string.in.h: Likewise.
3222         * lib/strings.in.h: Likewise.
3223         * lib/sys_select.in.h: Likewise.
3224         * lib/sys_socket.in.h: Likewise.
3225         * lib/sys_stat.in.h: Likewise.
3226         * lib/sys_time.in.h: Likewise.
3227         * lib/sysexits.in.h: Likewise.
3228         * lib/time.in.h: Likewise.
3229         * lib/unistd.in.h: Likewise.
3230         * lib/wchar.in.h: Likewise.
3231         * lib/wctype.in.h: Likewise.
3232         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
3233         * modules/fchdir (Makefile.am): Likewise.
3234         * modules/fcntl (Makefile.am): Likewise.
3235         * modules/float (Makefile.am): Likewise.
3236         * modules/iconv_open (Makefile.am): Likewise.
3237         * modules/inttypes (Makefile.am): Likewise.
3238         * modules/locale (Makefile.am): Likewise.
3239         * modules/math (Makefile.am): Likewise.
3240         * modules/netinet_in (Makefile.am): Likewise.
3241         * modules/search (Makefile.am): Likewise.
3242         * modules/signal (Makefile.am): Likewise.
3243         * modules/stdarg (Makefile.am): Likewise.
3244         * modules/stdint (Makefile.am): Likewise.
3245         * modules/stdio (Makefile.am): Likewise.
3246         * modules/stdlib (Makefile.am): Likewise.
3247         * modules/string (Makefile.am): Likewise.
3248         * modules/strings (Makefile.am): Likewise.
3249         * modules/sys_select (Makefile.am): Likewise.
3250         * modules/sys_socket (Makefile.am): Likewise.
3251         * modules/sys_stat (Makefile.am): Likewise.
3252         * modules/sys_time (Makefile.am): Likewise.
3253         * modules/sysexits (Makefile.am): Likewise.
3254         * modules/time (Makefile.am): Likewise.
3255         * modules/unistd (Makefile.am): Likewise.
3256         * modules/wchar (Makefile.am): Likewise.
3257         * modules/wctype (Makefile.am): Likewise.
3258         Reported by Reuben Thomas <rrt@sc3d.org>.
3259
3260 2008-08-29  Bruno Haible  <bruno@clisp.org>
3261
3262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3263         any more.
3264
3265 2008-08-29  Simon Josefsson  <simon@josefsson.org>
3266
3267         * MODULES.html.sh (Misc): Add bitrotate.
3268
3269         * modules/bitrotate: New file.
3270
3271         * lib/bitrotate.h: New file.
3272
3273         * modules/bitrotate-tests: New file.
3274
3275         * tests/test-bitrotate.c: New file.
3276
3277         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3278         on the bitrotate module.
3279
3280         * lib/arctwo.c: Use new bitrotate module.
3281
3282 2008-08-29  Jim Meyering  <meyering@redhat.com>
3283
3284         bootstrap: merge changes from coreutils
3285         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3286         of copied files.  Remove a kludge, now that this is fixed.
3287         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3288         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3289         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3290
3291 2008-08-29  Bruno Haible  <bruno@clisp.org>
3292
3293         * MODULES.html.sh: Remove --cvs-urls option.
3294
3295 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
3296
3297         maint.mk: adjust to file name change
3298         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3299
3300 2008-08-28  Jim Meyering  <meyering@redhat.com>
3301
3302         * modules/getndelim2 (License): Relicense to LGPLv2+.
3303         Approved by Richard Stallman for the version of 1995, and by
3304         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3305
3306 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
3307
3308         * lib/getdelim.c (flockfile, funlockfile): Make all of them
3309         dummy if one is not available.  Do not touch them if
3310         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3311         (getc_maybe_unlocked): New.
3312         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3313
3314 2008-08-26  Eric Blake  <ebb9@byu.net>
3315
3316         doc/INSTALL: resync from autoconf
3317         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3318         (INSTALL_PRELUDE): Delete; this is done more efficiently by
3319         moving...
3320         * install.texi [!autoconf]: ...here.  Resync from autoconf.
3321         * INSTALL: Regenerate.
3322         * INSTALL.ISO: New file.
3323         * INSTALL.UTF-8: Likewise.
3324
3325 2008-08-26  Jim Meyering  <meyering@redhat.com>
3326
3327         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3328         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3329         these definitions conditional, so that they may be overridden, too.
3330
3331 2008-08-26  Bruno Haible  <bruno@clisp.org>
3332
3333         Generate INSTALL file variants with prettier quotes.
3334         * doc/Makefile (INSTALL_PRELUDE): New macro.
3335         (INSTALL): Use it.
3336         (INSTALL.ISO, INSTALL.UTF-8): New rules.
3337
3338 2008-08-26  Bruno Haible  <bruno@clisp.org>
3339
3340         Run makeinfo in an English locale.
3341         * doc/Makefile (MAKEINFO): New variable.
3342
3343 2008-08-26  Bruno Haible  <bruno@clisp.org>
3344
3345         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3346         Suggested by Eric Blake.
3347
3348 2008-08-25  Bruno Haible  <bruno@clisp.org>
3349
3350         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3351
3352 2008-08-25  Eric Blake  <ebb9@byu.net>
3353
3354         c-stack: test that stack overflow can be caught
3355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3356         that platform allows handling stack overflow; at least OS/2 EMX
3357         has sigaltstack, but crashes before transferring control to
3358         handler on stack overflow.
3359         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3360         check for HAVE_STACK_OVERFLOW_HANDLING.
3361         Reported by Elbert Pol.
3362
3363 2008-08-25  Bruno Haible  <bruno@clisp.org>
3364
3365         * doc/posix-functions/strftime.texi: Fix description of strftime
3366         module.
3367
3368 2008-08-24  Bruno Haible  <bruno@clisp.org>
3369
3370         * tests/uniwidth/test-uc_width2.c: New file.
3371         * tests/uniwidth/test-uc_width2.sh: New file.
3372         * modules/uniwidth/width-tests (Files): Add the new files.
3373         (TESTS): Add uniwidth/test-uc_width2.sh.
3374         (TESTS_ENVIRONMENT): New variable.
3375         (check_PROGRAMS): Add test-uc_width2.
3376         (test_uc_width2_SOURCES): New variable.
3377
3378         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3379         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3380         not 0x00AB.
3381         Reported by Alexander V. Lukyanov <lav@netis.ru>.
3382
3383 2008-08-22  Eric Blake  <ebb9@byu.net>
3384
3385         test-lock, test-tls: mention why a test is skipped
3386         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3387         skipped.
3388         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3389
3390         count-one-bits: relax license
3391         * modules/count-one-bits (License): Relicense to LGPLv2+.
3392         Suggested by Ludovic Courtès, approved by Ben Pfaff.
3393
3394 2008-08-22  Andreas Schwab  <schwab@suse.de>
3395
3396         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3397         Remove spurious space in assignment.
3398
3399 2008-08-21  Simon Josefsson  <simon@josefsson.org>
3400
3401         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
3402         Paul Eggert <eggert@CS.UCLA.EDU>.
3403
3404 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
3405
3406         * modules/gettext: Add m4/threadlib.m4.
3407
3408 2008-08-19  Eric Blake  <ebb9@byu.net>
3409
3410         test-c-stack: fix compilation failure on FreeBSD 5.0
3411         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3412         headers before <sys/resource.h>.
3413         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3414         the bug.
3415         Reported by Nelson H. F. Beebe.
3416
3417         strverscmp: migrate from "strverscmp.h" to <string.h>
3418         * modules/string (Makefile.am): Add new hooks.
3419         * modules/strverscmp (Files): Remove strverscmp.h.
3420         (Depends-on): Add string.
3421         (configure.ac): Add indicator.
3422         (Include): Mention new header.
3423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3424         defaults.
3425         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3426         results.
3427         * lib/strverscmp.h: Delete.
3428         * lib/string.in.h (strverscmp): Provide declaration, when needed.
3429         * tests/test-strverscmp.c (includes): Adjust client.
3430         * lib/check-version.c (includes): Likewise.
3431         * NEWS: Document the change.
3432
3433         strverscmp: add unit test
3434         * modules/strverscmp-tests: New file.
3435         * tests/test-strverscmp.c: Likewise.
3436
3437 2008-08-19  Simon Josefsson  <simon@josefsson.org>
3438
3439         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
3440         regarding Windows crypto stuff, from Mono.
3441
3442 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
3443
3444         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
3445         if present, for intel RND.  Return error on failures.
3446
3447 2008-08-18  Ben Pfaff  <blp@gnu.org>
3448
3449         gitlog-to-changelog: give better diagnostic for failed pipe-open
3450         * build-aux/gitlog-to-changelog: Improve error message: suggest
3451         that the version of Git may be too old.
3452
3453 2008-08-18  Simon Josefsson  <simon@josefsson.org>
3454
3455         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
3456         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
3457
3458 2008-08-18  Bruno Haible  <bruno@clisp.org>
3459
3460         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3461         pthread_in_use().
3462
3463 2008-08-18  Bruno Haible  <bruno@clisp.org>
3464
3465         * lib/glthread/threadlib.c: Include <pthread.h>.
3466
3467 2008-08-18  Bruno Haible  <bruno@clisp.org>
3468
3469         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3470         glthread_recursive_lock_* macros.
3471         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3472         Fix syntax error.
3473
3474 2008-08-18  Bruno Haible  <bruno@clisp.org>
3475
3476         * lib/glthread/thread.c: Avoid forcing a context switch right after
3477         thread creation.
3478
3479 2008-08-17  Bruno Haible  <bruno@clisp.org>
3480
3481         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3482         * lib/glthread/thread.h: Provide Win32 specific implementation.
3483         * modules/thread (Files): Add lib/glthread/thread.c.
3484         (Depends-on): Add lock.
3485         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3486
3487 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3488
3489         New module 'yield'.
3490         * modules/yield: New file.
3491         * lib/glthread/yield.h: New file.
3492         * m4/yield.m4: New file.
3493         * MODULES.html.sh (Multithreading): Add yield.
3494
3495 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3496
3497         New module 'thread'.
3498         * modules/thread: New file.
3499         * lib/glthread/thread.h: New file.
3500         * m4/thread.m4: New file.
3501         * MODULES.html.sh (Multithreading): Add thread.
3502
3503 2008-08-17  Bruno Haible  <bruno@clisp.org>
3504
3505         * lib/glthread/lock.h: Include <stdlib.h> always.
3506         * lib/glthread/tls.h: Likewise.
3507         * lib/glthread/cond.h: Likewise.
3508
3509 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3510
3511         New module 'cond'.
3512         * modules/cond: New file.
3513         * lib/glthread/cond.h: New file.
3514         * lib/glthread/cond.c: New file.
3515         * m4/cond.m4: New file.
3516         * MODULES.html.sh (Multithreading): Add cond.
3517
3518 2008-08-16  Eric Blake  <ebb9@byu.net>
3519
3520         c-stack: fix regression on Irix 5.3 from 2008-06-21
3521         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3522         sa_sigaction...
3523         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3524         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3525         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3526         * modules/signal (Makefile.am): Use the value.
3527         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3528         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3529         * doc/posix-headers/signal.texi (signal.h): Document this
3530         portability issue.
3531         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3532         Reported by Tom G. Christensen.
3533
3534 2008-08-17  Bruno Haible  <bruno@clisp.org>
3535
3536         New module 'threadlib'.
3537         * modules/threadlib: New file.
3538         * lib/glthread/threadlib.c: New file, extracted from
3539         lib/glthread/lock.c.
3540         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3541         functions.
3542         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3543         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3544         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3545         macros.
3546         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3547         (gl_DISABLE_THREADS): Remove macro.
3548         * modules/lock (Files): Remove build-aux/config.rpath.
3549         (Depends-on): Remove havelib. Add threadlib.
3550         (configure.ac-early): Remove section.
3551         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3552         * modules/tls (Depends-on): Remove lock. Add threadlib.
3553         (Link): New section, copied from threadlib.
3554         * MODULES.html.sh (Multithreading): Add threadlib.
3555
3556 2008-08-14  Bruno Haible  <bruno@clisp.org>
3557
3558         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3559         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3560         glthread_rwlock_unlock, glthread_rwlock_destroy,
3561         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3562         glthread_recursive_lock_destroy): Define as macros always.
3563         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3564         glthread_lock_lock.
3565         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3566         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3567         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3568         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3569         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3570         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3571         (glthread_recursive_lock_lock_func): Renamed from
3572         glthread_recursive_lock_lock.
3573         (glthread_recursive_lock_unlock_func): Renamed from
3574         glthread_recursive_lock_unlock.
3575         (glthread_recursive_lock_destroy_func): Renamed from
3576         glthread_recursive_lock_destroy.
3577
3578 2008-08-14  Bruno Haible  <bruno@clisp.org>
3579
3580         * lib/glthread/lock.h: Renamed from lib/lock.h.
3581         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3582         * lib/glthread/tls.h: Renamed from lib/tls.h.
3583         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3584         * lib/fstrcmp.c: Update includes.
3585         * lib/strsignal.c: Update includes.
3586         * modules/lock (Files, Makefile.am): Update.
3587         (Include): Change to "glthread/lock.h".
3588         * modules/tls (Files, Makefile.am): Update.
3589         (Include): Change to "glthread/tls.h".
3590         * tests/test-lock.c: Update includes.
3591         * tests/test-tls.c: Update includes.
3592         * NEWS: Mention the renamed header files.
3593
3594 2008-08-11  Jim Meyering  <meyering@redhat.com>
3595
3596         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3597
3598 2008-08-11  Eric Blake  <ebb9@byu.net>
3599
3600         test-c-stack: avoid C99-ism
3601         * tests/test-c-stack.c (main): Fix whitespace, move declaration
3602         before statement.
3603         Reported by Alain Guibert.
3604
3605 2008-08-10  Jim Meyering  <meyering@redhat.com>
3606
3607         ensure that return value of uinttostr et al are not ignored
3608         * lib/inttostr.h (__GNUC_PREREQ): Define.
3609         (__attribute_warn_unused_result__): Define.
3610         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3611
3612 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
3613
3614         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3615         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3616
3617 2008-08-07  Jim Meyering  <meyering@redhat.com>
3618
3619         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3620
3621         * modules/mkstemp (License): Relicense under LGPLv2+.
3622         * modules/tempname (License): Likewise.
3623
3624 2008-08-06  Bruno Haible  <bruno@clisp.org>
3625
3626         * lib/poll.c (poll): Further micro-optimization.
3627
3628 2008-08-06  Jim Meyering  <meyering@redhat.com>
3629
3630         inet_pton.c: use locale-independent tolower
3631         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3632         (inet_pton6): Use c_tolower rather than tolower.
3633         * modules/inet_pton (Depends-on): Add c-ctype.
3634
3635 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
3636
3637         * lib/poll.c (poll): Avoid division when timeout is 0, cache
3638         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
3639
3640 2008-08-06  Jim Meyering  <meyering@redhat.com>
3641
3642         * modules/inet_pton (License): Relicense under LGPLv2+.
3643
3644 2008-08-03  Bruno Haible  <bruno@clisp.org>
3645
3646         Additional non-aborting API for lock and tls.
3647         * lib/lock.h: Include <errno.h>.
3648         (glthread_lock_init): New macro/function.
3649         (gl_lock_init): Define as wrapper around glthread_lock_init.
3650         (glthread_lock_lock): New macro/function.
3651         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3652         (glthread_lock_unlock): New macro/function.
3653         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3654         (glthread_lock_destroy): New macro/function.
3655         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3656         (glthread_rwlock_init): New macro/function.
3657         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3658         (glthread_rwlock_rdlock): New macro/function.
3659         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3660         (glthread_rwlock_wrlock): New macro/function.
3661         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3662         (glthread_rwlock_unlock): New macro/function.
3663         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3664         (glthread_rwlock_destroy): New macro/function.
3665         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3666         (glthread_recursive_lock_init): New macro/function.
3667         (gl_recursive_lock_init): Define as wrapper around
3668         glthread_recursive_lock_init.
3669         (glthread_recursive_lock_lock): New macro/function.
3670         (gl_recursive_lock_lock): Define as wrapper around
3671         glthread_recursive_lock_lock.
3672         (glthread_recursive_lock_unlock): New macro/function.
3673         (gl_recursive_lock_unlock): Define as wrapper around
3674         glthread_recursive_lock_unlock.
3675         (glthread_recursive_lock_destroy): New macro/function.
3676         (gl_recursive_lock_destroy): Define as wrapper around
3677         glthread_recursive_lock_destroy.
3678         (glthread_once): New macro/function.
3679         (gl_once): Define as wrapper around glthread_once.
3680         Update function declarations.
3681         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3682         glthread_rwlock_init. Return error code.
3683         (glthread_rwlock_rdlock_multithreaded): Renamed from
3684         glthread_rwlock_rdlock. Return error code.
3685         (glthread_rwlock_wrlock_multithreaded): Renamed from
3686         glthread_rwlock_wrlock. Return error code.
3687         (glthread_rwlock_unlock_multithreaded): Renamed from
3688         glthread_rwlock_unlock. Return error code.
3689         (glthread_rwlock_destroy_multithreaded): Renamed from
3690         glthread_rwlock_destroy. Return error code.
3691         (glthread_recursive_lock_init_multithreaded): Renamed from
3692         glthread_recursive_lock_init. Return error code.
3693         (glthread_recursive_lock_lock_multithreaded): Renamed from
3694         glthread_recursive_lock_lock. Return error code.
3695         (glthread_recursive_lock_unlock_multithreaded): Renamed from
3696         glthread_recursive_lock_unlock. Return error code.
3697         (glthread_recursive_lock_destroy_multithreaded): Renamed from
3698         glthread_recursive_lock_destroy. Return error code.
3699         (glthread_once_call): Make static.
3700         (glthread_once_multithreaded): Renamed from glthread_once.
3701         * lib/tls.h: Include <errno.h>.
3702         (glthread_tls_key_init): New macro/function.
3703         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3704         (glthread_tls_set): New macro/function.
3705         (gl_tls_set): Define as wrapper around glthread_tls_set.
3706         (glthread_tls_key_destroy): New macro/function.
3707         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3708         Update function declarations.
3709         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3710         glthread_tls_get.
3711         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3712
3713 2008-08-04  Eric Blake  <ebb9@byu.net>
3714
3715         gnumakefile: use space, not TAB, outside of targets
3716         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3717
3718 2008-08-02  Jim Meyering  <meyering@redhat.com>
3719
3720         getdate.y: avoid locale-dependent date parsing failure
3721         In Turkish locales, getdate would fail to recognize keywords
3722         containing a lowercase "i".  The solution is not to rely on
3723         locale-sensitive case-conversion.
3724         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3725         (lookup_word): Use c_toupper in place of toupper.
3726         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3727         Reported by Vefa Bicakci <bicave@superonline.com> in
3728         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3729         * modules/getdate (Depends-on): Add c-ctype.
3730
3731 2008-08-02  Bruno Haible  <bruno@clisp.org>
3732
3733         * gnulib-tool (func_import): When updating or creating a .gitignore
3734         file, prepend each added line with a slash, and ignore leading slashes
3735         from the existing lines.
3736         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3737
3738 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3739
3740         Portability fix for GNU make 3.79.1.
3741         * top/GNUmakefile: Avoid 'else COND', which older GNU make
3742         versions do not understand.
3743
3744 2008-08-01  Bruno Haible  <bruno@clisp.org>
3745
3746         Work around bug of HP-UX 10.20 cc with -0.0 literal.
3747         * tests/test-isnanf.h (zero): New variable.
3748         (main): Avoid literal -0.0f.
3749         * tests/test-isnand.h (zero): New variable.
3750         (main): Avoid literal -0.0.
3751         * tests/test-isnanl.h (zero): New variable.
3752         (main): Avoid literal -0.0L.
3753         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3754         (test_float, test_double, test_long_double): Avoid literals -0.0f,
3755         -0.0, -0.0L.
3756         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3757         (test_signbitd): Avoid literal -0.0.
3758         (test_signbitl): Avoid literal -0.0L.
3759         * tests/test-ceilf1.c (zero): New variable.
3760         (main): Avoid literal -0.0f.
3761         * tests/test-ceill.c (zero): New variable.
3762         (main): Avoid literal -0.0L.
3763         * tests/test-floorf1.c (zero): New variable.
3764         (main): Avoid literal -0.0f.
3765         * tests/test-floorl.c (zero): New variable.
3766         (main): Avoid literal -0.0L.
3767         * tests/test-roundf1.c (zero): New variable.
3768         (main): Avoid literal -0.0f.
3769         * tests/test-round1.c (zero): New variable.
3770         (main): Avoid literal -0.0.
3771         * tests/test-roundl.c (zero): New variable.
3772         (main): Avoid literal -0.0L.
3773         * tests/test-truncf1.c (zero): New variable.
3774         (main): Avoid literal -0.0f.
3775         * tests/test-trunc1.c (zero): New variable.
3776         (main): Avoid literal -0.0.
3777         * tests/test-truncl.c (zero): New variable.
3778         (main): Avoid literal -0.0L.
3779         * tests/test-frexp.c (zero): New variable.
3780         (main): Avoid literal -0.0.
3781         * tests/test-frexpl.c (zero): New variable.
3782         (main): Avoid literal -0.0L.
3783         * tests/test-ldexpl.c (zero): New variable.
3784         (main): Avoid literal -0.0L.
3785         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3786         (zerod, zerol): New variables.
3787         (test_function): Avoid literals -0.0, -0.0L.
3788         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3789         (zerod, zerol): New variables.
3790         (test_function): Avoid literals -0.0, -0.0L.
3791         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3792         (zerod, zerol): New variables.
3793         (test_function): Avoid literals -0.0, -0.0L.
3794         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3795         (zerod, zerol): New variables.
3796         (test_function): Avoid literals -0.0, -0.0L.
3797         * tests/test-strtod.c (zero): New variable.
3798         (main): Avoid literal -0.0.
3799         Reported by Jonathan C. Patschke <jp@centtech.com>.
3800
3801 2008-07-31  Jim Meyering  <meyering@redhat.com>
3802
3803         sha256.h: correct definition of SHA224_DIGEST_SIZE
3804         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3805         Reported by Paulie Pena IV <paulie4@gmail.com>.
3806         Define as 224 / 8, rather than as a literal.
3807         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3808         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3809         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3810
3811 2008-07-31  Bruno Haible  <bruno@clisp.org>
3812
3813         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3814         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3815         Reported by Jonathan Patschke <jp@centtech.com>.
3816
3817 2008-07-31  Bruno Haible  <bruno@clisp.org>
3818
3819         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3820         Reported by Paolo Bonzini <bonzini@gnu.org>.
3821
3822 2008-07-30  Eric Blake  <ebb9@byu.net>
3823
3824         test-strtod: allow compilation without -lm
3825         * tests/test-strtod.c (main): Avoid link dependence on fabs.
3826         Reported by Dennis Clarke <blastwave@gmail.com>.
3827
3828 2008-07-28  Jim Meyering  <meyering@redhat.com>
3829
3830         bootstrap: work also when there are no .po files in po/
3831         * build-aux/bootstrap (update_po_files): Complete the change
3832         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3833
3834 2008-07-27  Jim Meyering  <meyering@redhat.com>
3835
3836         * users.txt: Add zile.
3837
3838 2008-07-26  Ben Pfaff  <blp@gnu.org>
3839
3840         Add missing dependencies on new m4/exponent[fdl].m4 files.
3841         * modules/isnanf-nolibm: Add m4/exponentf.m4.
3842         * modules/isnand-nolibm: Add m4/exponentd.m4.
3843         * modules/isnanl-nolibm: Add m4/exponentl.m4.
3844         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3845         m4/isnan[fdl].m4, because the macros actually used moved.
3846         Reported by Jim Meyering.
3847
3848 2008-07-14  Ben Pfaff  <blp@gnu.org>
3849
3850         Add isinf module.
3851         * lib/isinf.c: New file.
3852         * lib/math.in.h: Define isinf macro if we have decided to replace
3853         it.
3854         * m4/isinf.m4: New file.
3855         * m4/math_h.m4: Initialize and substitute variables for isinf
3856         module.
3857         * modules/isinf: New file.
3858         * modules/isinf-tests: New file.
3859         * modules/math: Add substitutions for new module.
3860         * tests/test-isinf.c: New file.
3861         * doc/posix-functions/isinf.texi: Mention new module.
3862         * MODULES.html.sh: Mention new module.
3863
3864 2008-07-14  Ben Pfaff  <blp@gnu.org>
3865
3866         Factor out some macros for use by additional modules.
3867         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3868         exponentf.m4.
3869         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3870         exponentd.m4.
3871         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3872         file exponentl.m4.
3873         * m4/exponentf.m4: New file.
3874         * m4/exponentd.m4: New file.
3875         * m4/exponentl.m4: New file.
3876         * modules/isnanf: Use new file m4/exponentf.m4.
3877         * modules/isnand: Use new file m4/exponentd.m4.
3878         * modules/isnanl: Use new file m4/exponentl.m4.
3879
3880 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
3881
3882         mktime.c: normalize tp->tm_isdst value to -1/0/1.
3883         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3884         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3885         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3886
3887         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3888         readlink on platforms without PATH_MAX.
3889
3890 2008-07-21  Eric Blake  <ebb9@byu.net>
3891
3892         Warn, not fail, on stale version.
3893         * top/GNUmakefile (_curr-ver): Tone down previous patch.
3894
3895         Don't allow installation with stale devel version number.
3896         * top/GNUmakefile (_is-install-target): New macro.
3897         (_curr-ver): Forbid installation with stale version number.
3898
3899 2008-07-20  Bruno Haible  <bruno@clisp.org>
3900
3901         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3902         TESTS_ENVIRONMENT.
3903         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3904
3905 2008-07-20  Bruno Haible  <bruno@clisp.org>
3906
3907         * lib/c-stack.h (c_stack_action): Add documentation.
3908         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3909
3910 2008-07-20  Bruno Haible  <bruno@clisp.org>
3911
3912         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3913         * modules/readlink (License): Likewise.
3914
3915 2008-07-17  Eric Blake  <ebb9@byu.net>
3916
3917         * modules/c-stack (Link): Fix typo.
3918
3919         Make c-stack use libsigsegv, when available.
3920         * modules/c-stack (Depends-on): Add libsigsegv.
3921         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3922         needed.
3923         * lib/c-stack.c (SIGSTKSZ): Define fallback.
3924         (segv_handler, overflow_handler, c_stack_action)
3925         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3926         implementation when libsigsegv is available, but only when using
3927         the library is necessary.
3928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3929         comment, explaining why XSI check fails on Linux.
3930         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3931         * tests/test-c-stack2.sh: Tweak skip message.
3932         * NEWS: Document new link-time requirements.
3933
3934 2008-07-16  Eric Blake  <ebb9@byu.net>
3935
3936         c-stack: Expose false positives when not using libsigsegv.
3937         * modules/c-stack-tests (Files): Expand test.
3938         * tests/test-c-stack.c (main): Add means to conditionally trigger
3939         non-overflow SIGSEGV.
3940         * tests/test-c-stack2.sh: New file.
3941
3942 2008-07-14  Bruno Haible  <bruno@clisp.org>
3943
3944         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3945         Reported by Eric Blake.
3946
3947 2008-07-14  Sam Steingold  <sds@gnu.org>
3948             Bruno Haible  <bruno@clisp.org>
3949
3950         New module libsigsegv.
3951         * modules/libsigsegv: New file.
3952         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3953         modifications.
3954         * MODULES.html.sh (Signal handling): New section.
3955
3956 2008-07-14  Bruno Haible  <bruno@clisp.org>
3957
3958         * modules/unictype/ctype-* (Description): Add the word "function".
3959         Improves the resulting doc in MODULES.html.
3960
3961 2008-07-12  Ben Pfaff  <blp@gnu.org>
3962
3963         Add longlong module.
3964         * modules/longlong: New file.
3965
3966 2008-07-12  Bruno Haible  <bruno@clisp.org>
3967
3968         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3969         to empty.
3970
3971 2008-07-10  Ben Pfaff  <blp@gnu.org>
3972
3973         Add isnan module.
3974         * doc/posix-functions/isnan.texi: Mention new module.
3975         * lib/math.in.h: Define isnan macro if we have decided to replace
3976         it.
3977         * m4/isnan.m4: New file.
3978         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3979         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3980         also.
3981         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3982         redundancy.
3983         * m4/math_h.m4: Initialize and substitute variables for isnan
3984         module.
3985         * modules/isnan: New file.
3986         * modules/isnan-tests: New file.
3987         * modules/math: Add substitutions for new module.
3988         * tests/test-isnan.c: New file.
3989         * MODULES.html.sh: Mention new module.
3990
3991 2008-07-10  Ben Pfaff  <blp@gnu.org>
3992
3993         Add isnanf module.
3994         * lib/isnanf.m4: New file.
3995         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3996         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3997         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3998         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3999         * modules/isnanf: New file.
4000         * modules/isnanf-tests: New file.
4001         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
4002         files.
4003         * tests/test-isnanf-nolibm.c: factored most of its contents into
4004         new file tests/test-isnanf.h.
4005         * tests/test-isnanf.h: New file.
4006         * tests/test-isnanf.c: New file.
4007         * MODULES.html.sh: Mention new module.
4008         * doc/glibc-functions/isnanf.texi: Mention new module.
4009
4010 2008-07-10  Ben Pfaff  <blp@gnu.org>
4011
4012         Add isnand module.
4013         * lib/isnand.h: New file.
4014         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
4015         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
4016         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
4017         functionality also.
4018         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
4019         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
4020         (gl_HAVE_ISNAND_IN_LIBM): New macro.
4021         * modules/isnand: New file.
4022         * modules/isnand-tests: New file.
4023         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
4024         files.
4025         * tests/test-isnand-nolibm.c: factored most of its contents into
4026         new file tests/test-isnand.h.
4027         * tests/test-isnand.h: New file.
4028         * tests/test-isnand.c: New file.
4029         * MODULES.html.sh: Mention new module.
4030
4031 2008-07-10  Ben Pfaff  <blp@gnu.org>
4032
4033         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
4034         * lib/isnand.h: Rename lib/isnand-nolibm.h.
4035         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
4036         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
4037         * modules/isnanf-nolibm: Update references to renamed files.
4038         * modules/isnand-nolibm: Likewise.
4039         * modules/isnanf-nolibm-tests: Likewise.
4040         * modules/isnand-nolibm-tests: Likewise.
4041         * lib/frexp.c: Likewise.
4042         * lib/isfinite.c: Likewise.
4043         * lib/signbitd.c: Likewise.
4044         * lib/signbitf.c: Likewise.
4045         * lib/vasnprintf.c: Likewise.
4046         * tests/test-ceilf1.c: Likewise.
4047         * tests/test-ceilf2.c: Likewise.
4048         * tests/test-floorf1.c: Likewise.
4049         * tests/test-floorf2.c: Likewise.
4050         * tests/test-frexp.c: Likewise.
4051         * tests/test-round1.c: Likewise.
4052         * tests/test-round2.c: Likewise.
4053         * tests/test-roundf1.c: Likewise.
4054         * tests/test-strtod.c: Likewise.
4055         * tests/test-trunc1.c: Likewise.
4056         * tests/test-trunc2.c: Likewise.
4057         * tests/test-truncf1.c: Likewise.
4058         * tests/test-truncf2.c: Likewise.
4059         * NEWS: Mention the renamed header files.
4060
4061 2008-07-11  Jim Meyering  <meyering@redhat.com>
4062
4063         vc-list-files: make the last-resort awk code more portable
4064         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
4065         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
4066         does not support it.
4067
4068 2008-07-10  Eric Blake  <ebb9@byu.net>
4069
4070         Work with tar's bootstrap.
4071         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
4072         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
4073         an m4 comment.
4074
4075 2008-07-09  Jim Meyering  <meyering@redhat.com>
4076
4077         posix-shell.m4: fix typo that made this test malfunction
4078         * m4/posix-shell.m4: Remove capitalization in variable name.
4079
4080 2008-07-08  Bruno Haible  <bruno@clisp.org>
4081
4082         * m4/onceonly.m4: Update comments.
4083         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4084
4085 2008-07-04  Jim Meyering  <meyering@redhat.com>
4086
4087         * users.txt: Add vc-dwim.
4088         (bison, coreutils): Use the gitweb URL.
4089
4090 2008-07-03  Jim Meyering  <meyering@redhat.com>
4091
4092         * users.txt: Add libffcall.  From Sam Steingold.
4093
4094 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
4095
4096         getdate.y: do not ignore TZ with relative day, month or year offset
4097         * lib/getdate.y (get_date): Move the tz-handling block to follow the
4098         relative-date-handling, since otherwise, the latter would clobber the
4099         sole output (an updated Start value) of the tz-handling block.
4100         * tests/test-getdate.c: Tests for the fix
4101
4102 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4103
4104         Recognize 'foo_LIBRARIES += libgnu.a'.
4105         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
4106         makefile snippet has already specified an installation location,
4107         also using '+='.
4108
4109 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
4110
4111         getdate.y: factor out common actions
4112         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4113         Use them in place of open-coded actions.
4114
4115 2008-07-01  Simon Josefsson  <simon@josefsson.org>
4116
4117         Add self-test for getdate module.
4118         * modules/getdate-tests: New file.
4119         * tests/test-getdate.c: New file.
4120
4121 2008-06-29  Bruno Haible  <bruno@clisp.org>
4122
4123         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4124         .gitignore.
4125         Reported by Sylvain Beucler <beuc@beuc.net>.
4126
4127 2008-06-29  Bruno Haible  <bruno@clisp.org>
4128
4129         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4130         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4131
4132 2008-06-29  Bruno Haible  <bruno@clisp.org>
4133
4134         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4135         EXTRA_DIST.
4136         Reported by Sylvain Beucler <beuc@beuc.net>.
4137
4138 2008-06-26  Jim Meyering  <meyering@redhat.com>
4139
4140         make several modules depend on the "open" module
4141         This provides slightly increased consistency when opening-for-write
4142         the name of a non-directory spelled with a trailing slash.
4143         * modules/chdir-safer: Likewise.
4144         * modules/chown: Likewise.
4145         * modules/clean-temp: Likewise.
4146         * modules/copy-file: Likewise.
4147         * modules/fchdir: Likewise.
4148         * modules/fcntl-safer: Likewise.
4149         * modules/pipe: Likewise.
4150         * modules/utime: Likewise.
4151         Prompted by Eric Blake and Bruno Haible.
4152
4153 2008-06-24  Andreas Schwab  <schwab@suse.de>
4154
4155         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4156         literals can be used as initializers for global variables.
4157
4158 2008-06-23  Eric Blake  <ebb9@byu.net>
4159
4160         Make gnulib-cache.m4 easier to diff.
4161         * gnulib-tool (func_import): Allow newlines when reading cached
4162         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4163
4164 2008-06-23  Bruno Haible  <bruno@clisp.org>
4165
4166         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4167         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4168         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4169         m4/signalblocking.m4.
4170         (gl_PREREQ_SIGACTION): Don't invoke it.
4171         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4172         gl_PREREQ_SIG_HANDLER_H.
4173         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4174         Don't check for sigaction here.
4175
4176 2008-06-23  Bruno Haible  <bruno@clisp.org>
4177
4178         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
4179         (install_handlers): Don't set the SA_RESETHAND flag.
4180
4181 2008-06-23  Bruno Haible  <bruno@clisp.org>
4182
4183         * m4/sigaction.m4: Comment fixes.
4184         * lib/signal.in.h: Likewise.
4185
4186 2008-06-23  Eric Blake  <ebb9@byu.net>
4187
4188         Fix typo.
4189         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
4190
4191         Avoid SA_ namespace.
4192         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
4193         Reported by Ralf Wildenhues.
4194
4195         Avoid test failure due to SA_RESTORER.
4196         * tests/test-sigaction.c (SA_MASK): New macro.
4197         (main): Avoid failing due to extension flags being set.
4198         Reported by Jim Meyering.
4199
4200         Revert use of sig-handler.h in sigprocmask.c.
4201         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
4202         it requires the existence of struct sigaction.
4203         * lib/sigprocmask.c (handler_t): Restore typedef.
4204         (rpl_signal, old_handlers): Use local type.
4205
4206 2008-06-22  Bruno Haible  <bruno@clisp.org>
4207
4208         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
4209         conditionally.
4210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4211
4212 2008-06-22  Bruno Haible  <bruno@clisp.org>
4213
4214         * doc/posix-functions/siginterrupt.texi: Move note.
4215
4216         * lib/signal.in.h (SA_RESTART): New macro.
4217         * lib/sigaction.c: Update comment.
4218
4219         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
4220
4221         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
4222         (gl_PREREQ_SIGPROCMASK): Invoke it.
4223         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
4224
4225         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
4226
4227         * lib/sigprocmask.c: Update a comment.
4228
4229 2008-06-21  Eric Blake  <ebb9@byu.net>
4230
4231         Use sigaction module rather than signal().
4232         * modules/c-stack (Depends-on): Add sigaction.
4233         * modules/fatal-signal (Depends-on): Likewise.
4234         * modules/nanosleep (Depends-on): Likewise.
4235         * modules/sigprocmask (Files): Add sig-handler.h.
4236         * modules/sigaction (Files): Likewise.
4237         * lib/sig-handler.h (get_handler): New file, suggested by Paul
4238         Eggert.
4239         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
4240         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
4241         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4242         (init_fatal_signals): Likewise.
4243         * lib/nanosleep.c (rpl_nanosleep): Likewise.
4244         (siginterrupt): Delete fallback.
4245         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
4246         instead.
4247         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4248         siginterrupt.
4249
4250         New module sigaction, for mingw.
4251         * modules/sigaction: New module...
4252         * modules/sigaction-tests: ...and its test.
4253         * m4/sigaction.m4: New file.
4254         * lib/sigaction.c: Likewise.
4255         * tests/test-sigaction.c: Likewise.
4256         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4257         * modules/signal (Makefile.am): Likewise.
4258         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4259         needed.
4260         * doc/posix-headers/signal.texi (signal.h): Mention provided
4261         types.
4262         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4263         that sigaction is preferable.
4264         * doc/posix-functions/sigaction.texi (sigaction): Mention new
4265         module.
4266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4267         sigaction.
4268
4269         Improve robustness of sigprocmask by overriding signal.
4270         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4271         is in use.
4272         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4273         (SIGKILL, SIGSTOP): Provide fallbacks.
4274         (rpl_signal): Implement.
4275         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4276         signal can be called inside handlers.
4277
4278         Fix nanosleep module on mingw.
4279         * modules/nanosleep (Depends-on): Add sys_select.
4280         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4281
4282         Fix licensing of sigprocmask.
4283         * modules/raise (License): Relicense as LGPL.
4284
4285 2008-06-21  Bruno Haible  <bruno@clisp.org>
4286
4287         * lib/propername.c (proper_name_utf8): Don't use the transliterated
4288         result if it contains question marks.
4289         Reported by Michael Geng <linux@michaelgeng.de>.
4290
4291 2008-06-19  Bruno Haible  <bruno@clisp.org>
4292
4293         Fix CVS-ism.
4294         * doc/gnulib.texi: Include updated-stamp.texi.
4295         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4296         (updated-stamp.texi): New rule.
4297         (gnulib.info): Depend on it.
4298         * doc/.gitignore: Add updated-stamp.texi.
4299         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4300
4301 2008-06-19  Bruno Haible  <bruno@clisp.org>
4302
4303         * doc/Makefile (gnulib.info): Update and simplify dependencies.
4304         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4305
4306 2008-06-19  Eric Blake  <ebb9@byu.net>
4307
4308         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4309         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4310         Reported by Stepan Kasal.
4311
4312 2008-06-18  Bruno Haible  <bruno@clisp.org>
4313
4314         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4315         Reported by Eric Blake.
4316
4317 2008-06-18  Eric Blake  <ebb9@byu.net>
4318
4319         Work around cygwin 1.5.25 strsignal bug.
4320         * tests/test-strsignal.c: Allow for const char *.
4321         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4322
4323 2008-06-18  Simon Josefsson  <simon@josefsson.org>
4324
4325         * users.txt: Update URL to article and add author/date
4326         information.
4327
4328 2008-06-17  Bruno Haible  <bruno@clisp.org>
4329
4330         New macro gl_DISABLE_THREADS.
4331         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4332         if the user did not pass --enable-threads or --disable-threads option.
4333         (gl_DISABLE_THREADS): New macro.
4334         Reported by Eric Blake <ebb9@byu.net>.
4335
4336 2008-06-17  Bruno Haible  <bruno@clisp.org>
4337
4338         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4339         when the macro ignores it.
4340         Based on a patch by Eric Blake <ebb9@byu.net>.
4341
4342 2008-06-17  Bruno Haible  <bruno@clisp.org>
4343
4344         * modules/tls (License): Change to LGPLv2+.
4345         Reported by Eric Blake.
4346
4347 2008-06-17  Eric Blake  <ebb9@byu.net>
4348
4349         Simplify c-stack prerequisites.
4350         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4352         no longer requires <ucontext.h> to exist.  Optimize setrlimit
4353         check.
4354         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4355         <sys/resource.h>.
4356
4357         Move c-stack test into testsuite.
4358         * modules/c-stack-tests: New file.
4359         * lib/c-stack.c [DEBUG]: Move test program...
4360         * tests/test-c-stack.c: ...into this new file.  Skip rather than
4361         fail test if sigaltstack is lacking.
4362         * tests/test-c-stack.sh: New driver file.
4363
4364 2008-06-16  Eric Blake  <ebb9@byu.net>
4365
4366         Use raise module consistently.
4367         * modules/fatal-signal (Depends-on): Add raise.
4368         * modules/sigprocmask (Depends-on): Likewise.
4369         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4370         * lib/sigprocmask.c (sigprocmask): Likewise.
4371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4372         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4373
4374         Fix compliance bug in sigpending.
4375         * lib/sigprocmask.c (sigpending): Return pending array via
4376         parameter, not return value.
4377
4378 2008-06-14  Eric Blake  <ebb9@byu.net>
4379
4380         Improve obstack-printf test code.
4381         * tests/test-obstack-printf.c (test_function): Fix comment, and
4382         simplify usage of obstack_* in macros.  Add a test for coverage.
4383         Reported by Bruno Haible.
4384
4385 2008-06-14  Bruno Haible  <bruno@clisp.org>
4386
4387         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4388         array size as a constant, not as a const variable.
4389         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4390         AC_USE_SYSTEM_EXTENSIONS.
4391         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4392         Test whether the obstack_printf function actually exists.
4393         * modules/obstack-printf (Depends-on): Add extensions.
4394         (Include): Remove obstack.h.
4395         * modules/obstack-printf-posix (Depends-on): Add extensions.
4396         (Include): Remove obstack.h.
4397
4398 2008-06-13  Eric Blake  <ebb9@byu.net>
4399
4400         Add obstack-printf and obstack-printf-posix modules.
4401         * modules/obstack-printf: New file.
4402         * modules/obstack-printf-posix: Likewise.
4403         * MODULES.html.sh (Misc): Mention them.
4404         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4405         Likewise.
4406         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4407         Likewise.
4408         * modules/stdio (Makefile.am): Accomodate new modules.
4409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4410         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4411         Declare.
4412         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4413         functions.
4414         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4415         (gl_REPLACE_OBSTACK_PRINTF): New macros
4416         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4417         * tests/test-obstack-printf.c: New file.
4418         * modules/obstack-printf-tests: Likewise.
4419         * modules/obstack-printf-posix-tests: Likewise.
4420
4421 2008-06-11  Bruno Haible  <bruno@clisp.org>
4422
4423         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4424         * lib/open.c: Include errno.h.
4425         (open): Fail when attempting to write to a file that has a trailing
4426         slash.
4427         * tests/test-open.c (main): Test against trailing slash bug.
4428         * doc/posix-functions/open.texi: Mention the trailing slash bug.
4429
4430 2008-06-10  Bruno Haible  <bruno@clisp.org>
4431
4432         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4433         for $? to work inside the trap command, with various /bin/sh-s.
4434         * tests/test-vc-list-files-cvs.sh: Likewise.
4435
4436 2008-06-10  Bruno Haible  <bruno@clisp.org>
4437
4438         * lib/acl-internal.h: Don't include gettext.h here.
4439         * lib/set-mode-acl.c: Include gettext.h here.
4440         * lib/copy-acl.c: Likewise.
4441
4442 2008-06-10  Bruno Haible  <bruno@clisp.org>
4443
4444         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4445         * lib/wait-process.c (wait_subprocess): Likewise.
4446         * lib/execute.h (execute): Add termsigp argument.
4447         * lib/execute.c (execute): Likewise.
4448         * lib/csharpcomp.c (compile_csharp_using_pnet,
4449         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4450         * lib/csharpexec.c (execute_csharp_using_pnet,
4451         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4452         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4453         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4454         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4455         is_jikes_present): Update.
4456         * lib/javaexec.c (execute_java_class): Update.
4457         * lib/javaversion.c (execute_and_read_line): Update.
4458         * NEWS: Document the changes.
4459         Reported by Eric Blake.
4460
4461 2008-06-10  Eric Blake  <ebb9@byu.net>
4462
4463         Add missing include.
4464         * tests/test-strstr.c (includes): Add <signal.h>.
4465         * tests/test-strcasestr.c (includes): Likewise.
4466         * tests/test-memmem.c (includes): Likewise.
4467
4468 2008-06-10  Bruno Haible  <bruno@clisp.org>
4469
4470         * lib/wait-process.c (wait_subprocess): Add an assertion.
4471
4472 2008-06-10  Bruno Haible  <bruno@clisp.org>
4473
4474         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4475
4476 2008-06-10  Bruno Haible  <bruno@clisp.org>
4477
4478         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4479         using alarm().
4480         * tests/test-strcasestr.c (main): Likewise.
4481         * tests/test-strstr.c (main): Likewise.
4482
4483 2008-06-09  Bruno Haible  <bruno@clisp.org>
4484
4485         Work around the Solaris 10 ACE ACLs ABI change.
4486         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4487         declare if ACL_NO_TRIVIAL is present.
4488         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4489         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4490         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4491         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4492         define if ACL_NO_TRIVIAL is present.
4493         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4494         and use the current ABI.
4495         (file_has_acl): Use same #if condition as elsewhere.
4496         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4497         in use, and use the current ABI.
4498         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4499         Reported by Jim Meyering.
4500
4501 2008-06-09  Eric Blake  <ebb9@byu.net>
4502
4503         Work around environments that (stupidly) ignore SIGALRM.
4504         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4505         before using alarm().
4506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4507         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4508         Reported by Ian Beckwith <ianb@erislabs.net>.
4509
4510         Produce autobuild blurb earlier in log.
4511         * modules/autobuild (configure.ac-early): Move AB_INIT here.
4512
4513 2008-06-09  Jim Meyering  <meyering@redhat.com>
4514         and OndÅ™ej Vašík  <ovasik@redhat.com>
4515
4516         utimens.c: correct kernel bug work-around
4517         OndÅ™ej Vašík found that the invalid return value of 280 indicates
4518         failure, not success, and the kernel bug we're trying to work
4519         around affects not just the utimensat call, but also the fallback
4520         futimens call.
4521         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4522         not success.
4523         [HAVE_FUTIMENS]: Use the same work-around, here.
4524
4525 2008-06-09  Jim Meyering  <meyering@redhat.com>
4526
4527         add more guards around definition of ACE_-related code
4528         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4529         ALLOW and ACE_OWNER are also defined.
4530
4531 2008-06-08  Bruno Haible  <bruno@clisp.org>
4532
4533         * lib/acl-internal.h: Add me as co-author.
4534         * lib/file-has-acl.c: Likewise.
4535         * lib/set-mode-acl.c: Likewise.
4536         * lib/copy-acl.c: Likewise.
4537
4538 2008-06-08  Bruno Haible  <bruno@clisp.org>
4539
4540         Add support for AIX ACLs.
4541         * lib/acl-internal.h (acl_nontrivial): New declaration.
4542         * lib/file-has-acl.c (acl_nontrivial): New function.
4543         (file_has_acl): Add implementation using AIX 4 ACL API.
4544         * lib/set-mode-acl.c (qset_acl): Likewise.
4545         * lib/copy-acl.c (qcopy_acl): Likewise.
4546
4547 2008-06-08  Bruno Haible  <bruno@clisp.org>
4548
4549         Add support for HP-UX ACLs.
4550         * lib/acl-internal.h (acl_nontrivial): New declaration.
4551         * lib/file-has-acl.c (acl_nontrivial): New function.
4552         (file_has_acl): Add implementation using HP-UX 11 ACL API.
4553         * lib/set-mode-acl.c (qset_acl): Likewise.
4554         * lib/copy-acl.c (qcopy_acl): Likewise.
4555
4556 2008-06-08  Bruno Haible  <bruno@clisp.org>
4557
4558         Add support for Cygwin ACLs.
4559         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4560         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4561         the chmod_or_fchmod call.
4562         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4563
4564 2008-06-08  Bruno Haible  <bruno@clisp.org>
4565
4566         Fix bug with setuid modes in Solaris 10+ code.
4567         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4568         succeeded, when the mode contains some special bits.
4569
4570 2008-06-08  Bruno Haible  <bruno@clisp.org>
4571
4572         Add support for Solaris 7..10 ACLs.
4573         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4574         declarations.
4575         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4576         functions.
4577         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4578         * lib/set-mode-acl.c (qset_acl): Likewise.
4579         * lib/copy-acl.c (qcopy_acl): Likewise.
4580
4581 2008-06-08  Bruno Haible  <bruno@clisp.org>
4582
4583         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4584         declaration.
4585         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4586         (acl_access_nontrivial): Remove MacOS X case.
4587         (file_has_acl): Use acl_extended_nontrivial.
4588         * lib/copy-acl.c (qcopy_acl): Likewise.
4589
4590 2008-06-08  Bruno Haible  <bruno@clisp.org>
4591
4592         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4593
4594 2008-06-08  Jim Meyering  <meyering@redhat.com>
4595
4596         * modules/acl (Maintainer): Add Bruno Haible.
4597
4598 2008-06-07  Bruno Haible  <bruno@clisp.org>
4599
4600         Improve support for Tru64 ACLs.
4601         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4602         ACL on OSF/1.
4603
4604 2008-06-07  Bruno Haible  <bruno@clisp.org>
4605
4606         Add support for MacOS X ACLs.
4607         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4608         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4609         * lib/set-mode-acl.c (qset_acl): Likewise.
4610         * lib/copy-acl.c (qcopy_acl): Likewise.
4611
4612 2008-06-07  Bruno Haible  <bruno@clisp.org>
4613
4614         Fix memory leak introduced on 2008-05-22.
4615         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4616         use.
4617
4618 2008-06-07  Bruno Haible  <bruno@clisp.org>
4619
4620         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4621         to construct an empty ACL.
4622
4623 2008-06-07  Bruno Haible  <bruno@clisp.org>
4624
4625         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4626         precisely.
4627         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4628
4629 2008-06-07  Bruno Haible  <bruno@clisp.org>
4630
4631         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4632         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4633
4634 2008-06-07  Bruno Haible  <bruno@clisp.org>
4635
4636         * doc/posix-functions/_setjmp.texi: Explain the use of this function
4637         regardless of POSIX.
4638         * doc/posix-functions/_longjmp.texi: Likewise.
4639         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4640         SystemV platform in this case.
4641
4642 2008-06-06  Eric Blake  <ebb9@byu.net>
4643
4644         Document abort() bugs.
4645         * doc/posix-functions/abort.texi (abort): Mention anomalies.
4646
4647         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4648         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4649         sigsetjmp.
4650         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4651         siglongjmp, but only as a macro.
4652         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4653         is obsolete.
4654         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4655
4656         Tweak documentation to cover cygwin argz bugs.
4657         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4658         argz bug fix; no code change needed since no cygwin releases
4659         occurred between the last fix and the bug being tested.
4660         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4661         module and recently fixed cygwin bugs.
4662         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4663         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4664         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4665         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4666         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4667         Likewise.
4668         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4669         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4670         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4671         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4672         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4673         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4674         Likewise.
4675
4676         Avoid gcc warning on cygwin.
4677         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4678         !ACL_NO_TRIVIAL]: Avoid unused variable.
4679
4680 2008-06-05  Eric Blake  <ebb9@byu.net>
4681
4682         Be tolerant of UNKNOWN version in gnulib-tool test dir.
4683         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4684         git-version-gen fails to come up with a version.
4685         Reported by Simon Josefsson.
4686
4687 2008-06-05  Jim Meyering  <meyering@redhat.com>
4688             Paul Eggert  <eggert@cs.ucla.edu>
4689
4690         utimens.c: work around a probable Linux kernel bug
4691         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4692         appears to be a kernel bug that causes utimensat to return 280
4693         instead of 0, indicating success.
4694
4695 2008-06-04  Bruno Haible  <bruno@clisp.org>
4696
4697         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4698         2008-06-01 commit.
4699
4700 2008-06-04  Bruno Haible  <bruno@clisp.org>
4701
4702         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4703         * lib/file-has-acl.c (acl_access_nontrivial): New function.
4704         (file_has_acl): Use it. Save errno afterwards.
4705         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4706
4707 2008-06-03  Bruno Haible  <bruno@clisp.org>
4708
4709         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4710         draft code. Simplify #ifs.
4711         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4712         Put Solaris code after POSIX-draft code. Fix comments regarding
4713         Solaris 10, HP-UX. Mention Cygwin.
4714         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4715
4716 2008-06-03  Eric Blake  <ebb9@byu.net>
4717
4718         Provide fallback for older kernels.
4719         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4720         Provide runtime fallback if kernel lacks support.
4721         Reported by Mike Frysinger.
4722
4723 2008-06-02  Bruno Haible  <bruno@clisp.org>
4724
4725         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4726         it exists.
4727
4728 2008-06-02  Bruno Haible  <bruno@clisp.org>
4729
4730         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4731         * lib/copy-acl.c (qcopy_acl): Update comment.
4732
4733 2008-06-02  Bruno Haible  <bruno@clisp.org>
4734
4735         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4736         like ACL APIs.
4737
4738 2008-06-02  Bruno Haible  <bruno@clisp.org>
4739
4740         * tests/test-file-has-acl.sh: Use different code for Cygwin.
4741         * tests/test-set-mode-acl.sh: Likewise.
4742         * tests/test-copy-acl.sh: Likewise.
4743         * tests/test-copy-file.sh: Likewise.
4744
4745 2008-06-02  Bruno Haible  <bruno@clisp.org>
4746
4747         * tests/test-file-has-acl.sh: Remove unused code.
4748
4749 2008-06-01  Bruno Haible  <bruno@clisp.org>
4750
4751         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4752         (copy_acl): Just a wrapper around qcopy_acl that emits the error
4753         messages.
4754         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4755
4756 2008-06-01  Bruno Haible  <bruno@clisp.org>
4757
4758         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4759         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4760         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4761         APIs.
4762         * modules/acl-tests (configure.ac): Remove tests now contained in
4763         m4/acl.m4.
4764
4765 2008-06-02  Jim Meyering  <meyering@redhat.com>
4766
4767         announce-gen: use a better key-server host name
4768         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4769         it may be more consistently reliable.  Suggested by Werner Koch
4770         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4771
4772 2008-06-01  Bruno Haible  <bruno@clisp.org>
4773
4774         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4775         Reported by Voroskoi Andras <voroskoi@gmail.com>.
4776
4777 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
4778
4779         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4780
4781 2008-06-01  Bruno Haible  <bruno@clisp.org>
4782
4783         New ACL tests.
4784         * tests/test-file-has-acl.sh: New file.
4785         * tests/test-file-has-acl.c: New file.
4786         * tests/test-set-mode-acl.sh: New file.
4787         * tests/test-set-mode-acl.c: New file.
4788         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4789         * tests/test-copy-acl.c: New file.
4790         * modules/acl-tests: New file, based on modules/copy-file-tests.
4791         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4792         (Depends-on): Add acl-tests.
4793         (configure.ac): Remove checks.
4794         (Makefile.am): Don't create test-sameacls program here any more.
4795
4796 2008-06-01  Bruno Haible  <bruno@clisp.org>
4797
4798         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4799         * tests/test-sameacls.c: Include progname.h.
4800         (main): Invoke set_program_name. Portability fixes for MacOS X,
4801         Solaris, HP-UX.
4802
4803 2008-06-01  Bruno Haible  <bruno@clisp.org>
4804
4805         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4806         function.
4807         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4808
4809 2008-06-01  Bruno Haible  <bruno@clisp.org>
4810
4811         * modules/rpmatch (Depends-on): Add strdup.
4812
4813 2008-06-01  Bruno Haible  <bruno@clisp.org>
4814
4815         * lib/pipe.c: Include unistd-safer.h.
4816         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4817         * modules/pipe (Depends-on): Add unistd-safer.
4818
4819 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4820
4821         * modules/autobuild (configure.ac): Call AB_INIT.
4822
4823 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4824
4825         * tests/test-getaddrinfo.c: Don't print debug messages by default.
4826         Suggested by Bruno Haible <bruno@clisp.org>.
4827
4828 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4829
4830         * tests/test-base64.c: Cast size_t to unsigned long when invoking
4831         printf.  Use %lu instead of %d.  Reported by Bruno Haible
4832         <bruno@clisp.org>.
4833
4834 2008-05-29  Eric Blake  <ebb9@byu.net>
4835
4836         Prefer new POSIX 200x interfaces over futimesat.
4837         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4838         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4839         when available.
4840         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4841
4842 2008-05-28  Bruno Haible  <bruno@clisp.org>
4843
4844         * modules/stpcpy (License): Change to LGPLv2+.
4845         Requested by David Lutterkort <dlutter@redhat.com>.
4846
4847 2008-05-27  Bruno Haible  <bruno@clisp.org>
4848
4849         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4850         current mingw.
4851         Reported by Jose E. Marchesi <jemarch@gnu.org>.
4852
4853 2008-05-27  Bruno Haible  <bruno@clisp.org>
4854
4855         * modules/iconv_open (Link): New section, from module 'iconv'.
4856         * modules/striconv (Link): Likewise.
4857         * modules/striconveh (Link): Likewise.
4858         * modules/xstriconv (Link): Likewise.
4859         * modules/unicodeio (Link): Likewise.
4860         * modules/propername (Link): Likewise.
4861         Reported by Jim Meyering.
4862
4863 2008-05-26  Jim Meyering  <meyering@redhat.com>
4864
4865         sha256: do not artificially restrict buffer length to be < 2^32
4866         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4867         uint32_t to size_t.
4868         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4869         to match.
4870
4871         avoid unaligned access errors, e.g., on sparc
4872         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4873         direct access through a possibly-unaligned uint64* pointer.
4874         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4875         direct access through a possibly-unaligned uint32* pointer.
4876         Prompted by this patch from Tom "spot" Callaway:
4877         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4878
4879         sha512.c: fix typo in comment
4880         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4881
4882 2008-05-25  Bruno Haible  <bruno@clisp.org>
4883
4884         * lib/set-mode-acl.c: Renamed from lib/acl.c.
4885         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4886         (Makefile.am): Update lib_SOURCES.
4887
4888 2008-05-25  Bruno Haible  <bruno@clisp.org>
4889
4890         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4891
4892 2008-05-25  Jim Meyering  <meyering@redhat.com>
4893
4894         useless-if-before-free: freed expr may have white-space differences
4895         * build-aux/useless-if-before-free: Recognize cases in which the
4896         freed expression differs from the tested one in embedded white
4897         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
4898         $1 was used, so we can't make any regexp shy.  Improved tests now
4899         detect this.
4900
4901         useless-if-before-free: accept white space in the expression.
4902         * build-aux/useless-if-before-free: For now, any white space
4903         in the expression must be identical in the free argument.
4904
4905         useless-if-before-free: efficiency tweak
4906         * build-aux/useless-if-before-free: Make the expression-matching
4907         regexp "shy".
4908         Make the *outer* regexp shy, not the expr-matching one.
4909
4910         update code-in-comment to accept cast of free arg
4911         * build-aux/useless-if-before-free: Update regexp.
4912
4913 2008-05-25  Bruno Haible  <bruno@clisp.org>
4914
4915         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4916         * modules/copy-file-tests (Files, Makefile.am): Update.
4917         * tests/test-copy-file.c (func_test_copy): Update.
4918
4919 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
4920
4921         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4922
4923 2008-05-23  Bruno Haible  <bruno@clisp.org>
4924
4925         Improve support for ACLs on OSF/1.
4926         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4927         Remove fallback for unknown flavors of ACLs.
4928
4929 2008-05-22  Bruno Haible  <bruno@clisp.org>
4930
4931         Add support for ACLs on OSF/1.
4932         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4933         replacements.
4934         (acl_free_text): New macro fallback.
4935         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4936         acl_free.
4937         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4938         acl_free_text function. Require AC_C_INLINE.
4939
4940 2008-05-22  Bruno Haible  <bruno@clisp.org>
4941
4942         Make copy_acl work on MacOS X 10.5.
4943         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4944         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4945         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4946         If MODE_INSIDE_ACL, don't assume that every system has the same text
4947         representation for ACLs as FreeBSD.
4948         * lib/copy-acl.c (copy_acl): Add support for platforms with
4949         !MODE_INSIDE_ACL.
4950         * lib/file-has-acl.c (file_has_acl): Likewise.
4951         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4952         FreeBSD, MacOS X, or IRIX, respectively.
4953
4954 2008-05-22  Bruno Haible  <bruno@clisp.org>
4955
4956         * lib/acl.h: Don't include <sys/acl.h>.
4957         (GETACLCNT): Move fallback to lib/acl-internal.h.
4958         * lib/acl-internal.h: Include <sys/acl.h> here.
4959         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4960
4961 2008-05-22  Bruno Haible  <bruno@clisp.org>
4962
4963         Split off copy_acl function to separate file.
4964         * lib/copy-acl.c: New file, extracted from lib/acl.c.
4965         * lib/acl.c (copy_acl): Moved function to separate file.
4966         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4967         * modules/acl (Files): Add lib/copy-acl.c.
4968         (Makefiles.am): Augment lib_SOURCES.
4969
4970 2008-05-22  Bruno Haible  <bruno@clisp.org>
4971
4972         * modules/copy-file-tests: New file.
4973         * tests/test-copy-file.sh: New file.
4974         * tests/test-copy-file.c: New file.
4975         * tests/test-copy-file-sameacls.c: New file.
4976
4977 2008-05-22  Eric Blake  <ebb9@byu.net>
4978
4979         Avoid gcc warning.
4980         * tests/test-memcmp.c (main): Pass NULL indirectly.
4981
4982 2008-05-21  Bruno Haible  <bruno@clisp.org>
4983
4984         Add reference doc about ACLs.
4985         * doc/acl-resources.txt: New file.
4986         * doc/acl-cygwin.txt: New file.
4987
4988 2008-05-21  Bruno Haible  <bruno@clisp.org>
4989
4990         Avoid one more warning from gcc.
4991         * lib/vasnprintf.c (IF_LINT): Update comments.
4992         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4993
4994 2008-05-21  Jim Meyering  <meyering@redhat.com>
4995
4996         avoid a warning from gcc
4997         * lib/vasnprintf.c (IF_LINT): Define.
4998         (scale10_round_decimal_long_double):
4999         Use it to avoid a "may be used uninitialized" warning.
5000         (scale10_round_decimal_double): Likewise.
5001
5002 2008-05-21  Simon Josefsson  <simon@josefsson.org>
5003
5004         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
5005         declared.
5006
5007 2008-05-20  Bruno Haible  <bruno@clisp.org>
5008
5009         * tests/test-memcmp.c (main): Test also the sign of the result. Test
5010         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
5011
5012 2008-05-20  Simon Josefsson  <simon@josefsson.org>
5013
5014         * modules/memcmp-tests: New file.
5015         * tests/test-memcmp.c: New file.
5016
5017 2008-05-19  Bruno Haible  <bruno@clisp.org>
5018
5019         * modules/propername (Notice, configure.ac): Put quoted "..." into
5020         --keyword option.
5021         * lib/propername.h: Update comments accordingly.
5022         Reported by Eric Blake.
5023
5024 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
5025
5026         * modules/getpass-gnu (Depends-on): Add fseeko.
5027
5028 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5029
5030         * modules/base64-tests: New file.
5031
5032 2008-05-19  Bo Borgerson <gigabo@gmail.com>
5033
5034         * lib/base64.c (base64_decode_ctx): If a decode context structure
5035         was passed in use it to ignore newlines.  If a context structure
5036         was _not_ passed in, continue to treat newlines as garbage (this
5037         is the historical behavior).  Formerly base64_decode.
5038         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5039         takes a decode context structure.
5040         * lib/base64.h (base64_decode): Macro for four-argument calls.
5041         (base64_decode_alloc): Likewise.
5042         * lib/base64.c (base64_decode_ctx): If a decode context structure
5043         was passed in use it to ignore newlines.  If a context structure
5044         was _not_ passed in, continue to treat newlines as garbage (this
5045         is the historical behavior).  Formerly base64_decode.
5046         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5047         takes a decode context structure.
5048         * lib/base64.h (base64_decode): Macro for four-argument calls.
5049         (base64_decode_alloc): Likewise.
5050
5051 2008-05-19  Jim Meyering  <meyering@redhat.com>
5052
5053         avoid a warning from gcc
5054         * lib/trim.c (IF_LINT): Define.
5055         (trim2): Use it to avoid a "may be used uninitialized" warning.
5056
5057         Fix doc typo.
5058         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
5059
5060 2008-05-19  Bruno Haible  <bruno@clisp.org>
5061
5062         * doc/glibc-functions/getpass.texi: Document limits of other
5063         implementations.
5064
5065 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5066             Bruno Haible <bruno@clisp.org>
5067
5068         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
5069
5070 2008-05-18  Bruno Haible  <bruno@clisp.org>
5071
5072         * modules/propername: New file, from GNU gettext.
5073         * lib/propername.h: New file, from GNU gettext.
5074         * lib/propername.c: New file, from GNU gettext.
5075         * MODULES.html.sh (Internationalization functions): Add propername.
5076
5077 2008-05-16  Jim Meyering  <meyering@redhat.com>
5078             Bruno Haible  <bruno@clisp.org>
5079
5080         Avoid some warnings from "gcc -Wshadow".
5081         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
5082
5083 2008-05-15  Eric Blake  <ebb9@byu.net>
5084
5085         Extend previous patch to cygwin 1.7.0.
5086         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
5087         fast implementation in cygwin >= 1.7.0.
5088         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5090
5091 2008-05-15  Bruno Haible  <bruno@clisp.org>
5092
5093         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
5094         implementation in glibc >= 2.9.
5095         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5097
5098 2008-05-15  Bruno Haible  <bruno@clisp.org>
5099
5100         * MODULES.html.sh (Internationalization functions): Remove linebreak.
5101         (Unicode string functions): Add unilbrk/*.
5102         Reported by Karl Berry.
5103
5104 2008-05-15  Eric Blake  <ebb9@byu.net>
5105
5106         Fix violation of <stdbool.h> replacement in regex.
5107         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
5108         * lib/regexec.c (re_search_internal): Likewise.
5109         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
5110
5111 2008-05-15  Jim Meyering  <meyering@redhat.com>
5112
5113         avoid distracting test output when git or cvs is not found
5114         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5115         * tests/test-vc-list-files-git.sh: Likewise.
5116
5117 2008-05-15  Eric Blake  <ebb9@byu.net>
5118
5119         Glibc finally accepted the memmem speedup code, bugzilla #5514.
5120         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5121         glibc version.
5122         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5123         * doc/posix-functions/strstr.texi (strstr): Likewise.
5124         * lib/str-two-way.h (MAX): Sychronize with glibc.
5125
5126 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
5127
5128         * lib/regcomp.c (optimize_utf8): Add a note on why we test
5129         opr.ctx_type.
5130         (calc_first): Initialize constraint field.
5131         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5132         Fix grammar.
5133         (duplicate_node): Merge constraint field for all node types.
5134         (calc_eclosure_iter): Look at constraint field for all node types.
5135         * lib/regex_internal.c (create_cd_newstate): Don't look at
5136         opr.ctx_type.
5137
5138 2008-05-14  Bruno Haible  <bruno@clisp.org>
5139
5140         Help GCC to do better code generation.
5141         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5142         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5143         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5144         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5145         Declare with attribute 'malloc' if supported.
5146
5147 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
5148
5149         use "echo STR|wc -c" rather than unportable "expr length STR"
5150         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5151         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5152
5153 2008-05-14  Jim Meyering  <meyering@redhat.com>
5154
5155         use dd ibs=$n count=1 ... rather than less-portable head -c$n
5156         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5157         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5158         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5159         via Collin Lasse.
5160
5161 2008-05-14  Eric Blake  <ebb9@byu.net>
5162
5163         Avoid quadratic growth in gl_LIBSOURCES.
5164         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5165         Suggested by Bruno Haible.
5166
5167         Test xmemdup0.
5168         * modules/xmemdup0-tests: New file.
5169         * tests/test-xmemdup0.c: Likewise.
5170
5171 2008-05-13  Eric Blake  <ebb9@byu.net>
5172
5173         Split xmemdup0 into its own module.
5174         * modules/xmemdup0: New file.
5175         * lib/xmemdup0.h: Likewise.
5176         * lib/xmemdup0.c: Likewise.
5177         * MODULES.html.sh (Memory management functions): Add xmemdup0.
5178         * lib/xalloc.h (xmemdup0): Remove.
5179         * lib/xmalloc.c (xmemdup0): Likewise.
5180
5181 2008-05-13  Eric Blake  <ebb9@byu.net>
5182             Bruno Haible  <bruno@clisp.org>
5183
5184         Reduce number of forks required during autoconf.
5185         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
5186         and gl_LIBSOURCES_DIR.
5187         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
5188         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
5189         m4_syscmd per file.
5190         <m4_foreach_w>: Move...
5191         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
5192
5193 2008-05-13  Eric Blake  <ebb9@byu.net>
5194
5195         * gnulib-tool: Fix various comment typos.
5196
5197 2008-05-12  Bruno Haible  <bruno@clisp.org>
5198
5199         Tailor the linebreaking algorithm.
5200         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
5201
5202 2008-05-12  Bruno Haible  <bruno@clisp.org>
5203
5204         Update to Unicode 5.0.0.
5205         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5206         LBP_JV, LBP_JT. Redistribute values.
5207         (unilbrk_table): Change size.
5208         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
5209         Unicode TR#14 rev. 22.
5210         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5211         LBP_JV, LBP_JT. Redistribute values.
5212         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
5213         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
5214         Update.
5215         * lib/unilbrk/lbrkprop1.h: Regenerated.
5216         * lib/unilbrk/lbrkprop2.h: Regenerated.
5217         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
5218         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
5219         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5220         Likewise.
5221         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5222         Likewise.
5223         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
5224         result.
5225         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5226         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5227         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5228         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
5229         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
5230         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
5231
5232 2008-05-11  Bruno Haible  <bruno@clisp.org>
5233
5234         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
5235
5236 2008-05-11  Bruno Haible  <bruno@clisp.org>
5237
5238         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
5239         * modules/unilbrk/gen-lbrk: New file.
5240
5241 2008-05-11  Bruno Haible  <bruno@clisp.org>
5242
5243         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
5244         * m4/sha512.m4 (gl_SHA512): Likewise.
5245
5246 2008-05-11  Jim Meyering  <meyering@redhat.com>
5247
5248         New modules: crypto/sha256, crypto/sha512 (from coreutils)
5249         * modules/crypto/sha256: New file.
5250         * modules/crypto/sha512: Likewise.
5251         * lib/sha256.c: Likewise.
5252         * lib/sha256.h: Likewise.
5253         * lib/sha512.c: Likewise.
5254         * lib/sha512.h: Likewise.
5255         * lib/u64.h: Likewise.
5256         * m4/sha256.m4: Likewise.
5257         * m4/sha512.m4: Likewise.
5258         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5259
5260 2008-05-10  Bruno Haible  <bruno@clisp.org>
5261
5262         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5263         (Input/Output <stdio.h>): Add xprintf.
5264         (Signal handling <signal.h>): Add strsignal.
5265         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5266         (Core language properties): Add func.
5267         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5268         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5269         strings.
5270         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5271         (Input/output): New section.
5272         (File system functions): Add openat-die, stat-macros.
5273         (Networking functions): Add sockets.
5274         (Unicode string functions): Add unictype/*.
5275         (Support for building libraries and executables): Add gperf.
5276         (Support for building documentation): Add agpl-3.0.
5277         (Misc): Add nocrash.
5278
5279 2008-05-10  Bruno Haible  <bruno@clisp.org>
5280
5281         * modules/unictype/gen-ctype: New file.
5282
5283 2008-05-10  Jim Meyering  <meyering@redhat.com>
5284
5285         Make chdir-safer.c more efficient on a system with no symlinks.
5286         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5287         also if ELOOP is zero.  Suggested by Bruno Haible.
5288
5289         Make chdir-safer.c slightly safer.
5290         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5291         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5292
5293         Avoid compile failure on systems without ELOOP (like mingw).
5294         * lib/chdir-safer.c (ELOOP): Define if not already defined.
5295         Reported by Bruno Haible.
5296
5297 2008-05-10  Bruno Haible  <bruno@clisp.org>
5298
5299         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5300         (is_utf8_encoding): Use a case-insensitive comparison.
5301         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5302         streq.
5303
5304 2008-05-10  Bruno Haible  <bruno@clisp.org>
5305
5306         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5307         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5308         * lib/unilbrk/ulc-common.h (iconv_string_length,
5309         iconv_string_keeping_offsets): Remove declarations.
5310         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5311         Don't include <iconv.h>, streq.h, xsize.h.
5312         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5313         conversion.
5314         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5315         <iconv.h>, streq.h, xsize.h.
5316         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5317         conversion.
5318         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5319         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5320         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5321         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5322
5323 2008-05-10  Bruno Haible  <bruno@clisp.org>
5324
5325         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5326         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5327
5328         * modules/unilbrk/u32-width-linebreaks-tests: New file.
5329         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5330
5331         * modules/unilbrk/u16-width-linebreaks-tests: New file.
5332         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5333
5334         * modules/unilbrk/u8-width-linebreaks-tests: New file.
5335         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5336
5337         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5338         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5339
5340         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5341         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5342
5343         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5344         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5345
5346         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5347         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5348
5349 2008-05-10  Bruno Haible  <bruno@clisp.org>
5350
5351         Split up 'linebreak' module.
5352         * lib/unilbrk.h: New file, based on lib/linebreak.h.
5353         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5354         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5355         modifications.
5356         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5357         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5358         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5359         lib/linebreak.c.
5360         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5361         lib/linebreak.c.
5362         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5363         lib/linebreak.c.
5364         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5365         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5366         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5367         lib/linebreak.c.
5368         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5369         lib/linebreak.c.
5370         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5371         lib/linebreak.c.
5372         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5373         lib/linebreak.c.
5374         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5375         lib/linebreak.c.
5376         * modules/unilbrk/base: New file.
5377         * modules/unilbrk/tables: New file.
5378         * modules/unilbrk/u8-possible-linebreaks: New file.
5379         * modules/unilbrk/u16-possible-linebreaks: New file.
5380         * modules/unilbrk/u32-possible-linebreaks: New file.
5381         * modules/unilbrk/ulc-common: New file.
5382         * modules/unilbrk/ulc-possible-linebreaks: New file.
5383         * modules/unilbrk/u8-width-linebreaks: New file.
5384         * modules/unilbrk/u16-width-linebreaks: New file.
5385         * modules/unilbrk/u32-width-linebreaks: New file.
5386         * modules/unilbrk/ulc-width-linebreaks: New file.
5387         * lib/linebreak.h: Remove file.
5388         * lib/linebreak.c: Remove file.
5389         * m4/linebreak.m4: Remove file.
5390         * modules/linebreak: Remove file.
5391         * NEWS: Mention the changes.
5392
5393 2008-05-09  Eric Blake  <ebb9@byu.net>
5394
5395         Add xmemdup0.
5396         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5397         implementation.
5398         * lib/xmalloc.c (xmemdup0): New C implementation.
5399
5400 2008-05-08  Bruno Haible  <bruno@clisp.org>
5401
5402         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5403
5404 2008-05-07  Eric Blake  <ebb9@byu.net>
5405
5406         Support cross-compilation of <wctype.h>.
5407         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5408         AC_CACHE_CHECK.
5409
5410 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
5411
5412         * build-aux/vc-list-files: Add support for bzr.
5413
5414 2008-05-03  Jim Meyering  <meyering@redhat.com>
5415
5416         avoid failed assertion with tight malloc
5417         * tests/test-getndelim2.c: Correct an off-by-one assertion.
5418
5419 2008-05-03  Simon Josefsson  <simon@josefsson.org>
5420
5421         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5422         are needed from arpa/inet.h.
5423         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5424         Reported by Bruno Haible.
5425
5426 2008-05-02  Jim Meyering  <meyering@redhat.com>
5427
5428         avoid compilation error on FreeBSD 6
5429         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5430
5431 2008-05-01  Jim Meyering  <meyering@redhat.com>
5432
5433         useless-if-before-free: correct --help's exit status description
5434         * build-aux/useless-if-before-free (usage): Like grep, exit 0
5435         for one or more matches, etc.  Reported by Bruno Haible.
5436
5437         vc-list-files: make the stand-alone gnulib test work
5438         * modules/vc-list-files-tests (configure.ac):
5439         Define and AC_SUBST abs_aux_dir.
5440         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5441         $(abs_top_srcdir) to each script and having each of them
5442         duplicate the work of setting PATH, set PATH here, using
5443         the new variable, abs_aux_dir instead.
5444         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5445         * tests/test-vc-list-files-git.sh: Likewise.
5446         Reported by Bruno Haible.
5447
5448 2008-05-01  Bruno Haible  <bruno@clisp.org>
5449
5450         * lib/getndelim2.c (getndelim2): Fix newsize computation during
5451         reallocation. Rename 'done' to 'found_delimiter'.
5452
5453 2008-05-01  Jim Meyering  <meyering@redhat.com>
5454
5455         vc-list-files: accommodate /bin/sh like the one from Solaris 10
5456         * build-aux/vc-list-files: Use `...`, not $(...).
5457
5458 2008-04-30  Jim Meyering  <meyering@redhat.com>
5459
5460         add tests for vc-list-files
5461         * modules/vc-list-files-tests: New module.
5462         * tests/test-vc-list-files-cvs.sh: New file.
5463         * tests/test-vc-list-files-git.sh: New file.
5464
5465         avoid a warning from gcc
5466         * lib/getndelim2.c (IF_LINT): Define.
5467         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5468
5469         vc-list-files: work properly with build-aux/cvsu, too
5470         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5471         to all cvs-based clauses.
5472
5473         vc-list-files: work properly in the CVS+awk case, too
5474         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5475
5476         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5477         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5478         take more than one file argument, so .  Add quotes, just in case $dir
5479         ever contains a shell meta-character.  Prompted by Soren Hansen in
5480         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5481
5482 2008-04-29  Eric Blake  <ebb9@byu.net>
5483
5484         Optimize getndelim2 to use block operations when possible.
5485         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5486         freadseek, and memchr2.
5487         * lib/getndelim2.c (getndelim2): Use them for block reads.
5488
5489 2008-04-29  Bruno Haible  <bruno@clisp.org>
5490
5491         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5492         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5493         * modules/inet_ntop (Depends-on): Add extensions.
5494         * modules/inet_pton (Depends-on): Likewise.
5495         Reported by Simon Josefsson.
5496
5497 2008-04-29  Jim Meyering  <meyering@redhat.com>
5498
5499         When the is more than one match in a block, match all of them.
5500         * build-aux/useless-if-before-free: Iterate through each block
5501         until there are no more matches.
5502
5503         Fix broken useless-if-before-free script.
5504         * build-aux/useless-if-before-free: Fix typo: missing "?" after
5505         the expression to match cast of argument to free-like function.
5506
5507 2008-04-29  Eric Blake  <ebb9@byu.net>
5508
5509         Use new header.
5510         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5511
5512 2008-04-29  Jim Meyering  <meyering@redhat.com>
5513
5514         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5515         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5516         by gnulib to exist and to declare e.g., inet_ntop.
5517         Don't include "inet_ntop.h", now removed.
5518
5519         * m4/arpa_inet_h.m4: Remove trailing blanks.
5520
5521 2008-04-29  Eric Blake  <ebb9@byu.net>
5522
5523         Silence valgrind on safe reads beyond potential array bounds.
5524         * lib/rawmemchr.valgrind: New file.
5525         * lib/strchrnul.valgrind: Likewise.
5526         * modules/rawmemchr (Files): Distribute new file.
5527         * modules/strchrnul (Files): Likewise.
5528         Suggested by Bruno Haible.
5529
5530 2008-04-29  Bruno Haible  <bruno@clisp.org>
5531
5532         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5533         (inet_ntop, inet_pton): Change portability warning's wording.
5534         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5535         Invoke gl_CHECK_NEXT_HEADERS.
5536         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5537         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5538         set ARPA_INET_H.
5539         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5540         * modules/arpa_inet (Description): No longer only for systems that
5541         lack it.
5542         (Depends-on): Add include_next.
5543         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5544         HAVE_ARPA_INET_H.
5545
5546 2008-04-29  Jim Meyering  <meyering@redhat.com>
5547
5548         * modules/mkdir (License): Re-license as LGPLv2+.
5549
5550 2008-04-29  Bruno Haible  <bruno@clisp.org>
5551
5552         * modules/rawmemchr (Maintainer): Set to Eric.
5553         * modules/strchrnul (Maintainer): Likewise.
5554
5555 2008-04-29  Simon Josefsson  <simon@josefsson.org>
5556
5557         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5558         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5559
5560         * modules/arpa_inet (arpa/inet.h): Use them.
5561
5562 2008-04-28  Eric Blake  <ebb9@byu.net>
5563
5564         Test getndelim2.
5565         * modules/getndelim2-tests: New file.
5566         * tests/test-getndelim2.c: Likewise.
5567         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
5568         stream.
5569         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5570
5571         * MODULES.html.sh: Document new module.
5572
5573 2008-04-20  Bruno Haible  <bruno@clisp.org>
5574
5575         * lib/c-stack.c (die): Use raise.
5576         * modules/c-stack (Depends-on): Add raise.
5577
5578 2008-04-28  Bruno Haible  <bruno@clisp.org>
5579
5580         Expect rpmatch to be declared.
5581         * lib/yesno.c (rpmatch): Remove declaration.
5582
5583         Declare rpmatch.
5584         * lib/stdlib.in.h (rpmatch): New declaration.
5585         * lib/rpmatch.c: Include <stdlib.h> first.
5586         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5587         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5589         HAVE_RPMATCH.
5590         * modules/rpmatch (Depends-on): Add stdlib, extensions.
5591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5592         (Include): Set to <stdlib.h>.
5593         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5594         HAVE_RPMATCH.
5595         * NEWS: Document the change.
5596
5597 2008-04-28  Bruno Haible  <bruno@clisp.org>
5598
5599         Change rpmatch to use nl_langinfo when appropriate.
5600         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5601         (N_): New macro.
5602         (localized_pattern): New function/macro.
5603         (try): Remove match, nomatch arguments. Copy the pattern into safe
5604         memory before caching it.
5605         (rpmatch): Use localized_pattern. Add translator comments.
5606         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5607         Suggested by Eric Blake.
5608         * modules/rpmatch (Depends-on): Add stdbool.
5609
5610 2008-04-28  Eric Blake  <ebb9@byu.net>
5611
5612         Add rawmemchr module, matching glibc.
5613         * modules/string (Makefile.am): New indicator.
5614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5615         * lib/string.in.h (rawmemchr): Declare when appropriate.
5616         * modules/rawmemchr: New file.
5617         * m4/rawmemchr.m4: Likewise.
5618         * lib/rawmemchr.c: Likewise.
5619         * modules/rawmemchr-tests: Likewise.
5620         * tests/test-rawmemchr.c: Likewise.
5621         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5622         module.
5623         * modules/strchrnul (Depends-on): Add rawmemchr.
5624         * lib/strchrnul.c (strchrnul): Optimize a corner case.
5625
5626         Whitespace cleanup.
5627         * tests/test-strchrnul.c: Reindent.
5628         * lib/strchrnul.c: Likewise.
5629
5630         Optimize and test strchrnul.
5631         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5632         * modules/strchrnul-tests: New file.
5633         * tests/test-strchrnul.c: Likewise.
5634
5635         Remove intprops dependency.
5636         * modules/memchr (Depends-on): Remove intprops.
5637         * modules/memrchr (Depends-on): Likewise.
5638         * modules/memchr2 (Depends-on): Likewise.
5639         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5640         * lib/memrchr.c (__memrchr): Likewise.
5641         * lib/memrchr2.c (memchr2): Likewise.
5642         Reported by Simon Josefsson.
5643
5644 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5645
5646         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5647         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5648
5649 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5650
5651         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5652
5653         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5654
5655         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5656
5657         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5658         declarations.
5659         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5660
5661         * m4/inet_pton.m4: Don't check for header files.
5662
5663         * m4/inet_ntop.m4: Don't check for header files.
5664
5665 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5666
5667         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5668         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5669         trigger for cygwin).
5670         Reported by Bruno Haible  <bruno@clisp.org>.
5671
5672 2008-04-28  Bruno Haible  <bruno@clisp.org>
5673
5674         * doc/posix-functions/strdup.texi: Mention mingw problem.
5675
5676 2008-04-27  Bruno Haible  <bruno@clisp.org>
5677
5678         * modules/stat-time-tests (Depends-on): Add sleep.
5679         * tests/test-stat-time.c (force_unlink): New function.
5680         (cleanup): Use it.
5681         (test_mtime): Remove the ctime related tests.
5682         (test_ctime): New function, containing the ctime related tests.
5683         (main): Call test_ctime, except on native Windows platforms.
5684
5685 2008-04-27  Bruno Haible  <bruno@clisp.org>
5686
5687         * lib/rpmatch.c (rpmatch): Add some comments.
5688         Reported by James Youngman <jay@gnu.org>.
5689
5690 2008-04-27  Bruno Haible  <bruno@clisp.org>
5691
5692         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5693         quiet NaNs.
5694
5695 2008-04-27  Bruno Haible  <bruno@clisp.org>
5696
5697         Make test-yesno.sh work on mingw.
5698         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5699         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5700         (main): Set stdin to binary mode.
5701         * modules/yesno-tests (Depends-on): Add binary-io.
5702
5703 2008-04-27  Bruno Haible  <bruno@clisp.org>
5704
5705         Fix 'isfinite' on x86, x86_64, ia64 platforms.
5706         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5707         argument that lie outside the IEEE 854 domain.
5708         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5709         (gl_ISFINITE): Use it.
5710         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5711
5712 2008-04-27  Bruno Haible  <bruno@clisp.org>
5713
5714         Allow local renaming in config.h.
5715         * lib/memrchr.c (memrchr): Don't undefine outside libc.
5716
5717 2008-04-27  Bruno Haible  <bruno@clisp.org>
5718
5719         * lib/memchr.c (__memchr): Change type of 'i'.
5720         * lib/memchr2.c (memchr2): Likewise.
5721
5722 2008-04-26  Eric Blake  <ebb9@byu.net>
5723         and Bruno Haible  <bruno@clisp.org>
5724
5725         Optimize and test memrchr.
5726         * modules/memrchr (Depends-on): Add intprops.
5727         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5728         * modules/memrchr-tests: New file.
5729         * tests/test-memrchr.c: New file.
5730
5731 2008-04-26  Bruno Haible  <bruno@clisp.org>
5732
5733         Add tentative support for DragonFly BSD.
5734         * lib/stdio-impl.h: Add macros for DragonFly BSD.
5735         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5736         fp.
5737         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5738         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5739         * lib/fpurge.c (fpurge): Likewise.
5740         * lib/freadable.c (freaadable): Likewise.
5741         * lib/freadahead.c (freadahead): Likewise.
5742         * lib/freading.c (freading): Likewise.
5743         * lib/freadptr.c (freadptr): Likewise.
5744         * lib/freadseek.c (freadptrinc): Likewise.
5745         * lib/fseeko.c (fseeko): Likewise.
5746         * lib/fseterr.c (fseterr): Likewise.
5747         * lib/fwritable.c (fwritable): Likewise.
5748         * lib/fwriting.c (fwriting): Likewise.
5749
5750 2008-04-26  Bruno Haible  <bruno@clisp.org>
5751
5752         * lib/stdio-impl.h: New file.
5753         * lib/fbufmode.c: Include stdio-impl.h.
5754         (fbufmode): Use fp_, remove redundant #defines.
5755         * lib/fflush.c: Include stdio-impl.h.
5756         (clear_ungetc_buffer): Remove redundant #defines.
5757         * lib/fpurge.c: Include stdio-impl.h.
5758         (fpurge): Remove redundant #defines.
5759         * lib/freadable.c: Include stdio-impl.h.
5760         (freadable): Remove redundant #defines.
5761         * lib/freadahead.c: Include stdio-impl.h.
5762         (freadahead): Remove redundant #defines.
5763         * lib/freading.c: Include stdio-impl.h.
5764         (freading): Remove redundant #defines.
5765         * lib/freadptr.c: Include stdio-impl.h.
5766         (freadptr): Remove redundant #defines.
5767         * lib/freadseek.c: Include stdio-impl.h.
5768         (freadptrinc): Remove redundant #defines.
5769         * lib/fseeko.c: Include stdio-impl.h.
5770         (rpl_fseeko): Remove redundant #defines.
5771         * lib/fseterr.c: Include stdio-impl.h.
5772         (fseterr): Remove redundant #defines.
5773         * lib/fwritable.c: Include stdio-impl.h.
5774         (fwritable: Remove redundant #defines.
5775         * lib/fwriting.c: Include stdio-impl.h.
5776         (fwriting): Remove redundant #defines.
5777         * modules/fbufmode (Files): Add lib/stdio-impl.h.
5778         * modules/fflush (Files): Likewise.
5779         * modules/fpurge (Files): Likewise.
5780         * modules/freadable (Files): Likewise.
5781         * modules/freadahead (Files): Likewise.
5782         * modules/freading (Files): Likewise.
5783         * modules/freadptr (Files): Likewise.
5784         * modules/freadseek (Files): Likewise.
5785         * modules/fseeko (Files): Likewise.
5786         * modules/fseterr (Files): Likewise.
5787         * modules/fwritable (Files): Likewise.
5788         * modules/fwriting (Files): Likewise.
5789
5790 2008-04-26  Bruno Haible  <bruno@clisp.org>
5791
5792         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5793         restore_seek_optimization, update_fpos_cache): New functions, extracted
5794         from rpl_fflush.
5795         (rpl_fflush): Use them.
5796         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5797         (gl_REPLACE_FFLUSH): Use it.
5798
5799 2008-04-26  Bruno Haible  <bruno@clisp.org>
5800
5801         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5802         on Solaris.
5803         * tests/test-xstrtoimax.sh: Likewise.
5804         * tests/test-xstrtoumax.sh: Likewise.
5805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5806
5807 2008-04-26  Bruno Haible  <bruno@clisp.org>
5808
5809         * modules/memchr-tests: New file.
5810         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5811
5812 2008-04-26  Eric Blake  <ebb9@byu.net>
5813             Bruno Haible  <bruno@clisp.org>
5814
5815         * lib/memchr.c: Include intprops.h.
5816         (__memchr): Optimize parallel detection of matching bytes. Rename local
5817         variables. Add explanatory comments.
5818
5819 2008-04-26  Bruno Haible  <bruno@clisp.org>
5820
5821         Fix module 'memchr', broken since 2000-10-28.
5822         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5823
5824 2008-04-26  Bruno Haible  <bruno@clisp.org>
5825
5826         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5827         comments.
5828
5829 2008-04-25  Eric Blake  <ebb9@byu.net>
5830
5831         Use native fstatat on cygwin 1.7.0.
5832         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5833         first.
5834
5835 2008-04-23  Eric Blake  <ebb9@byu.net>
5836
5837         Improve memchr2 performance.
5838         * lib/memchr2.c (memchr2): Further optimize parallel detection of
5839         NUL bytes.
5840         * modules/memchr2 (Depends-on): Use intprops.h.
5841
5842 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5843
5844         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5845         an inline function instead of a CPP macro.  Patch by Ben Pfaff
5846         <blp@cs.stanford.edu>.
5847
5848 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5849
5850         * lib/arpa_inet.in.h: New file.
5851
5852         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5853         (Makefile.am): Sed in substitute header file.
5854
5855         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5856         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
5857
5858         * modules/inet_ntop (configure.ac): Use
5859         gl_ARPA_INET_MODULE_INDICATOR.
5860
5861         * modules/inet_pton (configure.ac): Use
5862         gl_ARPA_INET_MODULE_INDICATOR.
5863
5864 2008-04-22  Jim Meyering  <meyering@redhat.com>
5865
5866         * modules/verify (License): Re-license as LGPLv2+.
5867
5868 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5869
5870         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5871         parameter to void* as per POSIX standard (MinGW uses char*).
5872
5873 2008-04-21  Bruno Haible  <bruno@clisp.org>
5874
5875         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5876         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5877         Define to replacements if REPLACE_ISWCNTRL is 1.
5878         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5879         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5880         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5881         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5882         what it fixes.
5883         * doc/posix-functions/iswalpha.texi: Likewise.
5884         * doc/posix-functions/iswblank.texi: Likewise.
5885         * doc/posix-functions/iswcntrl.texi: Likewise.
5886         * doc/posix-functions/iswdigit.texi: Likewise.
5887         * doc/posix-functions/iswgraph.texi: Likewise.
5888         * doc/posix-functions/iswlower.texi: Likewise.
5889         * doc/posix-functions/iswprint.texi: Likewise.
5890         * doc/posix-functions/iswpunct.texi: Likewise.
5891         * doc/posix-functions/iswspace.texi: Likewise.
5892         * doc/posix-functions/iswupper.texi: Likewise.
5893         * doc/posix-functions/iswxdigit.texi: Likewise.
5894         Reported by Alain Guibert.
5895
5896 2008-04-21  Bruno Haible  <bruno@clisp.org>
5897
5898         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5899         Patch by Alain Guibert.
5900
5901 2008-04-21  Bruno Haible  <bruno@clisp.org>
5902
5903         Fix test failures on mingw.
5904         * tests/test-xstrtol.c (print_no_progname): New function.
5905         (main): Install it in error_print_progname hook.
5906         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5907         * tests/test-xstrtoimax.sh: Likewise.
5908         * tests/test-xstrtoumax.sh: Likewise.
5909
5910 2008-04-21  Bruno Haible  <bruno@clisp.org>
5911
5912         Fix test failure on mingw.
5913         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5914
5915 2008-04-21  Bruno Haible  <bruno@clisp.org>
5916
5917         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5918         Actually assign a value.
5919
5920 2008-04-20  Bruno Haible  <bruno@clisp.org>
5921
5922         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5923         take 2.
5924         * lib/canonicalize.c (canonicalize_file_name): Elide if the
5925         'canonicalize-lgpl' module is also used.
5926         * lib/canonicalize-lgpl.c: Undo last change.
5927         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5928
5929 2008-04-20  Bruno Haible  <bruno@clisp.org>
5930
5931         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5932         config.h. Provide _mkdir based fallback for mingw.
5933         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5934         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5935         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5936         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5937         rather than defining mkdir in config.h.
5938         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5939         (gl_SYS_STAT_H_DEFAULTS): New macro.
5940         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5941         HAVE_IO_H any more.
5942         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5943         HAVE_DECL_MKDIR and HAVE_IO_H.
5944
5945 2008-04-20  Bruno Haible  <bruno@clisp.org>
5946
5947         * lib/isapipe.c: Port to native Windows platforms.
5948
5949 2008-04-20  Bruno Haible  <bruno@clisp.org>
5950
5951         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5952
5953 2008-04-21  Eric Blake  <ebb9@byu.net>
5954
5955         Work around preprocessors that don't handle UINTMAX_MAX.
5956         * lib/memchr2.c (memchr2): Avoid embedded #if.
5957         Reported by Alain Guibert, fix suggested by Bruno Haible.
5958
5959 2008-04-21  Simon Josefsson  <simon@josefsson.org>
5960
5961         * doc/posix-functions/strftime.texi (strftime): Explain better
5962         Windows incompatibility.  Suggested by Micah Cowan
5963         <micah@cowan.name>.
5964
5965 2008-04-20  Bruno Haible  <bruno@clisp.org>
5966
5967         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5968         unistr/u8-mblen.
5969
5970 2008-04-20  Bruno Haible  <bruno@clisp.org>
5971
5972         Fix test failure on platforms with non-GNU iconv.
5973         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5974         (U_TO_U8): Use it, rather than u16_to_u8.
5975         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5976         units at the end of the input string.
5977         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5978
5979 2008-04-20  Bruno Haible  <bruno@clisp.org>
5980
5981         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5982         when the resulting length is 0.
5983         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5984
5985 2008-04-20  Bruno Haible  <bruno@clisp.org>
5986
5987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5988         works.
5989         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5990
5991 2008-04-20  Bruno Haible  <bruno@clisp.org>
5992
5993         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5994         * modules/tsearch-tests (configure.ac): Test for initstate function.
5995
5996 2008-04-20  Bruno Haible  <bruno@clisp.org>
5997
5998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5999         for nlink_t if missing.
6000         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
6001
6002 2008-04-19  Bruno Haible  <bruno@clisp.org>
6003
6004         Work around snprintf bug on Linux libc5.
6005         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
6006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6007         gl_SNPRINTF_SIZE1.
6008         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6009         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
6010         that test failed.
6011         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6012         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
6013         * modules/snprintf (Files): Add m4/printf.m4.
6014         * modules/vsnprintf (Files): Likewise.
6015         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
6016         * doc/posix-functions/vsnprintf.texi: Likewise.
6017
6018 2008-04-19  Bruno Haible  <bruno@clisp.org>
6019
6020         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
6021         from 0.0058 to less than 10^-7.
6022
6023 2008-04-19  Bruno Haible  <bruno@clisp.org>
6024
6025         Fix rounding when a precision is given.
6026         * lib/vasnprintf.c (is_borderline): New function.
6027         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
6028         9...9x.
6029         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
6030         %e, %g.
6031         * tests/test-vasprintf-posix.c (test_function): Likewise.
6032         * tests/test-snprintf-posix.h (test_function): Likewise.
6033         * tests/test-sprintf-posix.h (test_function): Likewise.
6034         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
6035         * tests/test-printf-posix.h (test_function): Likewise.
6036         * tests/test-printf-posix.output: Update.
6037         Reported by John Darrington <john@darrington.wattle.id.au> via
6038         Ben Pfaff <blp@cs.stanford.edu>.
6039
6040 2008-04-18  Simon Josefsson  <simon@josefsson.org>
6041
6042         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
6043         Suggested by Bruno Haible <bruno@clisp.org>.
6044
6045 2008-04-17  Bruno Haible  <bruno@clisp.org>
6046
6047         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
6048         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
6049         implementation.
6050         Patch by Bruce Merry <bmerry@gmail.com>.
6051
6052 2008-04-17  Simon Josefsson  <simon@josefsson.org>
6053
6054         * doc/posix-functions/strftime.texi (strftime): Mention that %e
6055         doesn't work under Windows.
6056
6057 2008-04-16  Bruno Haible  <bruno@clisp.org>
6058
6059         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
6060         New macros.
6061         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
6062         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
6063         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
6064         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
6065         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
6066         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
6067         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
6068         macros.
6069         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
6070         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
6071         Northern Sotho, Uighur.
6072
6073 2008-04-16  Bruno Haible  <bruno@clisp.org>
6074
6075         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
6076         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
6077         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
6078         Reported by Daniel Bergström <daniel@octocode.com>.
6079
6080 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
6081             Bruno Haible  <bruno@clisp.org>
6082
6083         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
6084         function.
6085         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
6086         New functions, mostly extracted from gl_locale_name_default.
6087         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
6088
6089 2008-04-16  Eric Blake  <ebb9@byu.net>
6090
6091         Adjust strtod detection to catch glibc 2.7 bug.
6092         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
6093         Reported by John Gatewood Ham.
6094
6095 2008-04-16  Bruno Haible  <bruno@clisp.org>
6096
6097         Add tentative support for Linux libc5.
6098         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
6099         * lib/fpurge.c (fpurge): Likewise.
6100         * lib/freadable.c (freadable): Likewise.
6101         * lib/freadahead.c (freadahead): Likewise.
6102         * lib/freading.c (freading): Likewise.
6103         * lib/freadptr.c (freadptr): Likewise.
6104         * lib/freadseek.c (freadptrinc): Likewise.
6105         * lib/fseeko.c (rpl_fseeko): Likewise.
6106         * lib/fseterr.c (fseterr): Likewise.
6107         * lib/fwritable.c (fwritable): Likewise.
6108         * lib/fwriting.c (fwriting): Likewise.
6109         Reported by Alain Guibert <alguibert+bts@free.fr>.
6110
6111 2008-04-15  Bruno Haible  <bruno@clisp.org>
6112
6113         * modules/mathl (configure.ac): Define module indicator.
6114
6115 2008-04-15  Bruno Haible  <bruno@clisp.org>
6116
6117         * lib/logl.c (logl): Remove unused variables.
6118
6119 2008-04-15  Bruno Haible  <bruno@clisp.org>
6120
6121         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6122         fails.
6123
6124 2008-04-15  Bruno Haible  <bruno@clisp.org>
6125
6126         * lib/trim.c (trim2): Fix argument of isspace() macro.
6127
6128 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
6129
6130         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6131         to 0.
6132         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6133
6134 2008-04-14  Bruno Haible  <bruno@clisp.org>
6135
6136         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6137         AC_LANG_PROGRAM argument.
6138         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6139         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6141         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6142         * m4/math_h.m4 (gl_MATH_H): Likewise.
6143         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6145         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6146         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6147         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6148         * m4/regex.m4 (gl_REGEX): Likewise.
6149         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6150         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6152         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6154         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6157
6158 2008-04-14  Jim Meyering  <meyering@redhat.com>
6159
6160         test-strtod: fix typos: s/abs/fabs/
6161         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6162
6163 2008-04-13  Bruno Haible  <bruno@clisp.org>
6164
6165         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6166         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6167         module is also used and while not building the reloc-wrapper.
6168
6169 2008-04-13  Bruno Haible  <bruno@clisp.org>
6170
6171         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6172
6173 2008-04-13  Bruno Haible  <bruno@clisp.org>
6174
6175         Fix AIX compilation failure introduced on 2008-04-02.
6176         * tests/test-frexp.c (exp): Undefine before redefining.
6177         * tests/test-frexpl.c (exp): Likewise.
6178
6179 2008-04-13  Bruno Haible  <bruno@clisp.org>
6180
6181         Work around a HP-UX stdio bug.
6182         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
6183         * tests/test-ftello.c (main): Likewise.
6184         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
6185         * doc/posix-functions/ftello.texi: Likewise.
6186
6187 2008-04-13  Bruno Haible  <bruno@clisp.org>
6188
6189         Make test-signbit pass on HP-UX/hppa.
6190         * tests/test-signbit.c (minus_zerol): New variable.
6191         (test_signbitl): Use it.
6192
6193 2008-04-13  Bruno Haible  <bruno@clisp.org>
6194
6195         Make truncl work on OSF/1 4.0.
6196         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
6197         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6198         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
6200         HAVE_DECL_TRUNCL.
6201         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
6202         HAVE_DECL_TRUNCL.
6203         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
6204
6205 2008-04-13  Bruno Haible  <bruno@clisp.org>
6206
6207         * lib/unictype.h: Remove trailing comma from enumeration definitions.
6208
6209 2008-04-13  Bruno Haible  <bruno@clisp.org>
6210
6211         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
6212         expression, so as to avoid HP-UX 11 cc compiler bug.
6213
6214 2008-04-13  Bruno Haible  <bruno@clisp.org>
6215
6216         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
6217
6218 2008-04-13  Bruno Haible  <bruno@clisp.org>
6219
6220         * lib/git-merge-changelog.c: Remove empty declaration outside of
6221         functions.
6222
6223 2008-04-13  Bruno Haible  <bruno@clisp.org>
6224
6225         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
6226
6227 2008-04-13  Bruno Haible  <bruno@clisp.org>
6228
6229         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
6230         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
6231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
6232         also if it exists but lacks definitions of the SHUT_* macros.
6233         * modules/sys_socket (Description): Update.
6234         Reported by Elbert Pol <e.pol@chello.nl>.
6235
6236 2008-04-13  Bruno Haible  <bruno@clisp.org>
6237
6238         * lib/localcharset.c (OS2): Don't redefine if already defined.
6239         Reported by Elbert Pol <e.pol@chello.nl>.
6240
6241 2008-04-13  Bruno Haible  <bruno@clisp.org>
6242
6243         * lib/binary-io.h [__EMX__]: Include <io.h>.
6244         Reported by Elbert Pol <e.pol@chello.nl>.
6245
6246 2008-04-12  Bruno Haible  <bruno@clisp.org>
6247
6248         * lib/fpucw.h: Enable the definitions also for x86_64.
6249         Needed for NetBSD/x86_64.
6250         Reported by Thomas Klausner <tk@giga.or.at>.
6251
6252 2008-04-12  Bruno Haible  <bruno@clisp.org>
6253
6254         * tests/test-strtod.c: Include isnand.h.
6255         (main): Use isnand instead of isnan.
6256         Reported by Jim Meyering.
6257
6258 2008-04-12  Bruno Haible  <bruno@clisp.org>
6259
6260         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6261         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6262
6263 2008-04-12  Jim Meyering  <meyering@redhat.com>
6264
6265         * m4/math_h.m4 (gl_MATH_H): Fix typos.
6266
6267 2008-04-12  Bruno Haible  <bruno@clisp.org>
6268
6269         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6270         Reported by Elbert Pol <e.pol@chello.nl>.
6271
6272 2008-04-12  Eric Blake  <ebb9@byu.net>
6273
6274         Work around Solaris 10 math.h bug.
6275         * m4/math_h.m4 (gl_MATH_H): Check for bug.
6276         (gl_MATH_H_DEFAULTS): Set up default.
6277         * modules/math (Makefile.am): Replace new indicators.
6278         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6279         * tests/test-math.c (main): Test this.
6280         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6281         * doc/posix-headers/math.texi (math.h): Mention bug.
6282         Reported by Nelson H. F. Beebe and Jim Meyering.
6283
6284 2008-04-11  Bruno Haible  <bruno@clisp.org>
6285
6286         Adapt to future versions of Apple GCC.
6287         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6288         Reported by Peter O'Gorman <peter@pogma.com>.
6289
6290 2008-04-11  Bruno Haible  <bruno@clisp.org>
6291
6292         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6293
6294 2008-04-11  Bruno Haible  <bruno@clisp.org>
6295
6296         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6297
6298         * modules/getaddrinfo-tests (Makefile.am): Define
6299         test_getaddrinfo_LDADD.
6300
6301 2008-04-11  Bruno Haible  <bruno@clisp.org>
6302
6303         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6304         (init): Fix syntax error.
6305         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6306         is declared.
6307
6308 2008-04-11  Bruno Haible  <bruno@clisp.org>
6309
6310         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6311         * modules/glob (Depends-on): Add stdbool.
6312
6313 2008-04-11  Bruno Haible  <bruno@clisp.org>
6314
6315         * lib/trim.c: Include <string.h>.
6316
6317 2008-04-11  Eric Blake  <ebb9@byu.net>
6318
6319         Avoid compile failure on OS/2.
6320         * lib/regex_internal.h (internal_function): Disable optimization
6321         on OS/2 (__EMX__), where it caused compiler error.
6322         Reported by Elbert Pol.
6323
6324 2008-04-11  Bruno Haible  <bruno@clisp.org>
6325
6326         Flush the standard error stream before aborting. Needed on mingw.
6327         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6328         * tests/test-array_list.c (ASSERT): Likewise.
6329         * tests/test-array_oset.c (ASSERT): Likewise.
6330         * tests/test-avltree_list.c (ASSERT): Likewise.
6331         * tests/test-avltree_oset.c (ASSERT): Likewise.
6332         * tests/test-avltreehash_list.c (ASSERT): Likewise.
6333         * tests/test-binary-io.c (ASSERT): Likewise.
6334         * tests/test-byteswap.c (ASSERT): Likewise.
6335         * tests/test-c-ctype.c (ASSERT): Likewise.
6336         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6337         * tests/test-c-strcasestr.c (ASSERT): Likewise.
6338         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6339         * tests/test-c-strstr.c (ASSERT): Likewise.
6340         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6341         * tests/test-canonicalize.c (ASSERT): Likewise.
6342         * tests/test-carray_list.c (ASSERT): Likewise.
6343         * tests/test-ceilf1.c (ASSERT): Likewise.
6344         * tests/test-ceilf2.c (ASSERT): Likewise.
6345         * tests/test-ceill.c (ASSERT): Likewise.
6346         * tests/test-count-one-bits.c (ASSERT): Likewise.
6347         * tests/test-fbufmode.c (ASSERT): Likewise.
6348         * tests/test-fflush2.c (ASSERT): Likewise.
6349         * tests/test-floorf1.c (ASSERT): Likewise.
6350         * tests/test-floorf2.c (ASSERT): Likewise.
6351         * tests/test-floorl.c (ASSERT): Likewise.
6352         * tests/test-fopen.c (ASSERT): Likewise.
6353         * tests/test-fpending.c (ASSERT): Likewise.
6354         * tests/test-fprintf-posix.c (ASSERT): Likewise.
6355         * tests/test-fpurge.c (ASSERT): Likewise.
6356         * tests/test-freadable.c (ASSERT): Likewise.
6357         * tests/test-freadahead.c (ASSERT): Likewise.
6358         * tests/test-freading.c (ASSERT): Likewise.
6359         * tests/test-freadptr.c (ASSERT): Likewise.
6360         * tests/test-freadptr2.c (ASSERT): Likewise.
6361         * tests/test-freadseek.c (ASSERT): Likewise.
6362         * tests/test-freopen.c (ASSERT): Likewise.
6363         * tests/test-frexp.c (ASSERT): Likewise.
6364         * tests/test-frexpl.c (ASSERT): Likewise.
6365         * tests/test-fseek.c (ASSERT): Likewise.
6366         * tests/test-fseeko.c (ASSERT): Likewise.
6367         * tests/test-fstrcmp.c (ASSERT): Likewise.
6368         * tests/test-ftell.c (ASSERT): Likewise.
6369         * tests/test-ftello.c (ASSERT): Likewise.
6370         * tests/test-func.c (ASSERT): Likewise.
6371         * tests/test-fwritable.c (ASSERT): Likewise.
6372         * tests/test-fwriting.c (ASSERT): Likewise.
6373         * tests/test-getdelim.c (ASSERT): Likewise.
6374         * tests/test-getline.c (ASSERT): Likewise.
6375         * tests/test-i-ring.c (ASSERT): Likewise.
6376         * tests/test-iconv-utf.c (ASSERT): Likewise.
6377         * tests/test-iconv.c (ASSERT): Likewise.
6378         * tests/test-isfinite.c (ASSERT): Likewise.
6379         * tests/test-isnand.c (ASSERT): Likewise.
6380         * tests/test-isnanf.c (ASSERT): Likewise.
6381         * tests/test-isnanl.h (ASSERT): Likewise.
6382         * tests/test-ldexpl.c (ASSERT): Likewise.
6383         * tests/test-linked_list.c (ASSERT): Likewise.
6384         * tests/test-linkedhash_list.c (ASSERT): Likewise.
6385         * tests/test-localename.c (ASSERT): Likewise.
6386         * tests/test-lseek.c (ASSERT): Likewise.
6387         * tests/test-mbscasecmp.c (ASSERT): Likewise.
6388         * tests/test-mbscasestr1.c (ASSERT): Likewise.
6389         * tests/test-mbscasestr2.c (ASSERT): Likewise.
6390         * tests/test-mbscasestr3.c (ASSERT): Likewise.
6391         * tests/test-mbscasestr4.c (ASSERT): Likewise.
6392         * tests/test-mbschr.c (ASSERT): Likewise.
6393         * tests/test-mbscspn.c (ASSERT): Likewise.
6394         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6395         * tests/test-mbspbrk.c (ASSERT): Likewise.
6396         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6397         * tests/test-mbsrchr.c (ASSERT): Likewise.
6398         * tests/test-mbsspn.c (ASSERT): Likewise.
6399         * tests/test-mbsstr1.c (ASSERT): Likewise.
6400         * tests/test-mbsstr2.c (ASSERT): Likewise.
6401         * tests/test-mbsstr3.c (ASSERT): Likewise.
6402         * tests/test-memchr2.c (ASSERT): Likewise.
6403         * tests/test-memmem.c (ASSERT): Likewise.
6404         * tests/test-open.c (ASSERT): Likewise.
6405         * tests/test-printf-frexp.c (ASSERT): Likewise.
6406         * tests/test-printf-frexpl.c (ASSERT): Likewise.
6407         * tests/test-printf-posix.c (ASSERT): Likewise.
6408         * tests/test-quotearg.c (ASSERT): Likewise.
6409         * tests/test-rbtree_list.c (ASSERT): Likewise.
6410         * tests/test-rbtree_oset.c (ASSERT): Likewise.
6411         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6412         * tests/test-round1.c (ASSERT): Likewise.
6413         * tests/test-roundf1.c (ASSERT): Likewise.
6414         * tests/test-roundl.c (ASSERT): Likewise.
6415         * tests/test-signbit.c (ASSERT): Likewise.
6416         * tests/test-sleep.c (ASSERT): Likewise.
6417         * tests/test-snprintf-posix.c (ASSERT): Likewise.
6418         * tests/test-snprintf.c (ASSERT): Likewise.
6419         * tests/test-sprintf-posix.c (ASSERT): Likewise.
6420         * tests/test-stat-time.c (ASSERT): Likewise.
6421         * tests/test-strcasestr.c (ASSERT): Likewise.
6422         * tests/test-strerror.c (ASSERT): Likewise.
6423         * tests/test-striconv.c (ASSERT): Likewise.
6424         * tests/test-striconveh.c (ASSERT): Likewise.
6425         * tests/test-striconveha.c (ASSERT): Likewise.
6426         * tests/test-strsignal.c (ASSERT): Likewise.
6427         * tests/test-strstr.c (ASSERT): Likewise.
6428         * tests/test-strtod.c (ASSERT): Likewise.
6429         * tests/test-trunc1.c (ASSERT): Likewise.
6430         * tests/test-trunc2.c (ASSERT): Likewise.
6431         * tests/test-truncf1.c (ASSERT): Likewise.
6432         * tests/test-truncf2.c (ASSERT): Likewise.
6433         * tests/test-truncl.c (ASSERT): Likewise.
6434         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6435         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6436         * tests/test-vasnprintf.c (ASSERT): Likewise.
6437         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6438         * tests/test-vasprintf.c (ASSERT): Likewise.
6439         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6440         * tests/test-vprintf-posix.c (ASSERT): Likewise.
6441         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6442         * tests/test-vsnprintf.c (ASSERT): Likewise.
6443         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6444         * tests/test-wcwidth.c (ASSERT): Likewise.
6445         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6446         * tests/test-xprintf-posix.c (ASSERT): Likewise.
6447         * tests/test-xvasprintf.c (ASSERT): Likewise.
6448         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6449         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6450         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6451         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6452         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6453         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6454         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6455         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6456         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6457         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6458         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6459         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6460         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6461         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6462         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6463         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6464         * tests/unictype/test-block_list.c (ASSERT): Likewise.
6465         * tests/unictype/test-block_of.c (ASSERT): Likewise.
6466         * tests/unictype/test-block_test.c (ASSERT): Likewise.
6467         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6468         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6469         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6470         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6471         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6472         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6473         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6474         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6475         * tests/unictype/test-combining.c (ASSERT): Likewise.
6476         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6477         * tests/unictype/test-digit.c (ASSERT): Likewise.
6478         * tests/unictype/test-mirror.c (ASSERT): Likewise.
6479         * tests/unictype/test-numeric.c (ASSERT): Likewise.
6480         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6481         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6482         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6483         * tests/unictype/test-scripts.c (ASSERT): Likewise.
6484         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6485         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6486         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6487         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6488         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6489         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6490         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6491         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6492         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6493         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6494         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6495         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6496         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6497         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6498         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6499         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6500         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6501         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6502         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6503         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6504         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6505         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6506         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6507         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6508         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6509         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6510         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6511         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6512         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6513         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6514         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6515         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6516         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6517         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6518         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6519         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6520         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6521         Reported by Eric Blake.
6522
6523 2008-04-11  Bruno Haible  <bruno@clisp.org>
6524
6525         * lib/wchar.in.h: Tweak comment.
6526
6527 2008-04-11  Bruno Haible  <bruno@clisp.org>
6528
6529         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6530         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6531         gl_COMMON.
6532         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6533
6534 2008-04-11  Bruno Haible  <bruno@clisp.org>
6535
6536         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6537
6538 2008-04-11  Simon Josefsson  <simon@josefsson.org>
6539
6540         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6541         of attempting to use non-existing /dev/*random.  Based on patch
6542         from Adam Strzelecki <ono@java.pl> in
6543         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6544
6545 2008-04-08  Bruno Haible  <bruno@clisp.org>
6546
6547         Add tentative support for emx+gcc.
6548         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6549         * lib/fpurge.c (fpurge): Likewise.
6550         * lib/freadable.c (freadable): Likewise.
6551         * lib/freadahead.c (freadahead): Likewise.
6552         * lib/freading.c (freading): Likewise.
6553         * lib/freadptr.c (freadptr): Likewise.
6554         * lib/freadseek.c (freadptrinc): Likewise.
6555         * lib/fseeko.c (rpl_fseeko): Likewise.
6556         * lib/fseterr.c (fseterr): Likewise.
6557         * lib/fwritable.c (fwritable): Likewise.
6558         * lib/fwriting.c (fwriting): Likewise.
6559         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6560
6561 2008-04-09  Eric Blake  <ebb9@byu.net>
6562
6563         Avoid some autoconf warnings.
6564         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6565         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6566         * m4/afs.m4 (gl_AFS): Likewise.
6567         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6568         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6570         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6571         (gl_INTEGER_TYPE_SUFFIX): Likewise.
6572         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6573         (AC_CHECK_DECLS_ONCE): Likewise.
6574         Rename file...
6575         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6576         gnulib-tool requires autoconf 2.59 or better.
6577         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6578
6579 2008-04-08  Eric Blake  <ebb9@byu.net>
6580
6581         Use 'git describe --match' if present (added in git 1.5.5).
6582         * build-aux/git-version-gen: Limit result to tags that match 'v*'
6583         if possible.
6584
6585 2008-04-08  Bruno Haible  <bruno@clisp.org>
6586
6587         Add tentative support for OpenServer.
6588         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6589         _ptr, _cnt.
6590         * lib/fpurge.c (fpurge): Likewise.
6591         * lib/freadable.c (freadable): Likewise.
6592         * lib/freadahead.c (freadahead): Likewise.
6593         * lib/freading.c (freading): Likewise.
6594         * lib/freadptr.c (freadptr): Likewise.
6595         * lib/freadseek.c (freadptrinc): Likewise.
6596         * lib/fseeko.c (rpl_fseeko): Likewise.
6597         * lib/fseterr.c (fseterr): Likewise.
6598         * lib/fwritable.c (fwritable): Likewise.
6599         * lib/fwriting.c (fwriting): Likewise.
6600         Reported by Roger Cornelius <rac@tenzing.org> and
6601         Brian K. White <brian@aljex.com>.
6602
6603 2008-04-06  Jim Meyering  <meyering@redhat.com>
6604
6605         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6606
6607 2008-04-06  Bruno Haible  <bruno@clisp.org>
6608
6609         Avoid possible error with non-ASCII bytes in UTF-8 locales.
6610         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6611         * tests/test-printf-posix.sh: Likewise.
6612         * tests/test-vfprintf-posix.sh: Likewise.
6613         * tests/test-vprintf-posix.sh: Likewise.
6614         * tests/test-xprintf-posix.sh: Likewise.
6615
6616 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6617
6618         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6619         hide error from 'ls', needed on OS/2.
6620         Report by Elbert Pol <elbert.pol@gmail.com>.
6621
6622 2008-04-04  Eric Blake  <ebb9@byu.net>
6623
6624         Make test-fseeko.c failures meaningful.
6625         * tests/test-fseeko.c: Print line number on failure.
6626         * tests/test-fseek.c: Likewise.
6627         Reported by Nelson H. F. Beebe.
6628
6629         Improve strtod bug detection check.
6630         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6631         required for Solaris 10.
6632         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6633
6634 2008-04-04  Bruno Haible  <bruno@clisp.org>
6635
6636         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6637         by m4/setenv.m4.
6638
6639 2008-04-03  Eric Blake  <ebb9@byu.net>
6640
6641         Ensure sane .version contents.
6642         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6643         version string.
6644         * build-aux/git-version-gen: Improve documentation.
6645
6646         Make GNU make output nicer.
6647         * top/GNUmakefile [!_have-Makefile]: Add dependency on
6648         MAKECMDGOALS to enforce message for all command line targets.  Set
6649         srcdir for use in maint.mk.
6650
6651         Another maintainer tweak.
6652         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6653         a target that regenerates version.
6654
6655 2008-04-03  Jim Meyering  <meyering@redhat.com>
6656
6657         vc-list-files: don't cause coreutils "make po-check" failure
6658         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6659
6660 2008-04-03  Eric Blake  <ebb9@byu.net>
6661
6662         Allow VPATH usage of vc-list-files.
6663         * build-aux/vc-list-files (scriptversion): Add timestamp.
6664         (options): Add --help, --version, -C.
6665         (CVS): Support installed cvsu.
6666
6667 2008-04-02  Bruno Haible  <bruno@clisp.org>
6668
6669         Avoid some "statement with no effect" warnings from gcc.
6670         * tests/test-wctype.c (main): Explicitly ignore unused values.
6671         Reported by Jim Meyering.
6672
6673 2008-04-02  Jim Meyering  <meyering@redhat.com>
6674
6675         Avoid some warnings from "gcc -Wshadow".
6676         * tests/test-frexp.c (exp): Define to a different identifier.
6677         * tests/test-frexpl.c (exp): Likewise.
6678
6679 2008-04-03  Jim Meyering  <meyering@redhat.com>
6680
6681         bootstrap: remove dangling *.[ch] symlinks from lib
6682         * build-aux/bootstrap [dangling symlink removal]: Move find's
6683         -depth option to precede all others, to avoid a warning.
6684         Remove *.[ch] files too, and from "$source_base" (usually lib/).
6685
6686 2008-04-02  Bruno Haible  <bruno@clisp.org>
6687
6688         Avoid some warnings from "gcc -Wshadow".
6689         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6690         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6691         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6692         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6693         Reported by Jim Meyering.
6694
6695 2008-04-01  Bruno Haible  <bruno@clisp.org>
6696
6697         Fix test to work on IRIX 6.5 with cc.
6698         * tests/test-math.c (numeric_equal): New function.
6699         (main): Use it.
6700
6701 2008-04-01  Bruno Haible  <bruno@clisp.org>
6702
6703         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6704
6705 2008-04-01  Bruno Haible  <bruno@clisp.org>
6706
6707         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6708         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6709         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6710         (Depends-on): Remove math.
6711
6712         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6713         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6714         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6715         (Depends-on): Remove math.
6716
6717         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6718         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6719         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6720         (Depends-on): Remove math.
6721         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6722         (Depends-on): Remove math.
6723
6724         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6725         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6726         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6727         (Depends-on): Remove math.
6728         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6729         (Depends-on): Remove math.
6730
6731         * tests/test-round1.c: Include nan.h.
6732         (main): Use NaNd instead of NAN.
6733         * modules/round-tests (Files): Add tests/nan.h.
6734
6735         * tests/test-trunc1.c: Include nan.h.
6736         (main): Use NaNd instead of NAN.
6737         * modules/trunc-tests (Files): Add tests/nan.h.
6738
6739         * tests/test-roundf1.c: Include nan.h.
6740         (main): Use NaNf instead of NAN.
6741         * modules/roundf-tests (Files): Add tests/nan.h.
6742
6743         * tests/test-truncf1.c: Include nan.h.
6744         (main): Use NaNf instead of NAN.
6745         * modules/truncf-tests (Files): Add tests/nan.h.
6746
6747         * tests/test-ceilf1.c: Include nan.h.
6748         (main): Use NaNf instead of NAN.
6749         * modules/ceilf-tests (Files): Add tests/nan.h.
6750
6751         * tests/test-floorf1.c: Include nan.h.
6752         (main): Use NaNf instead of NAN.
6753         * modules/floorf-tests (Files): Add tests/nan.h.
6754
6755         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6756         (main): Use NaNf instead of NAN.
6757         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6758
6759         * tests/test-isnand.c: Include nan.h instead of <math.h>.
6760         (main): Use NaNd instead of NAN.
6761         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6762
6763         * tests/test-frexp.c: Include nan.h.
6764         (main): Use NaNd instead of NAN.
6765         * modules/frexp-tests (Files): Add tests/nan.h.
6766
6767         * lib/isnan.c: Don't include <math.h>.
6768         (FUNC): Don't use NAN macro.
6769         * modules/isnand-nolibm (Depends-on): Remove math.
6770         * modules/isnanf-nolibm (Depends-on): Remove math.
6771         * modules/isnanl (Depends-on): Remove math.
6772         * modules/isnanl-nolibm (Depends-on): Remove math.
6773
6774         * tests/nan.h: New file.
6775
6776 2008-04-01  Eric Blake  <ebb9@byu.net>
6777
6778         Fix typos.
6779         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6780         values to be the right type.
6781
6782         For now, cater to gnulib strtod inaccuracies.
6783         * tests/test-strtod.c (main): Allow 1-ulp error on expected
6784         fractional results.  While not as nice from a QoI perspective, it
6785         is a quicker patch than correctly implementing decimal to binary
6786         rounding.
6787
6788 2008-03-31  Eric Blake  <ebb9@byu.net>
6789
6790         Guarantee a definition of NAN.
6791         * lib/math.in.h (NAN): Define if missing.
6792         * tests/test-math.c (main): Test it.
6793         * doc/posix-headers/math.texi (math.h): Document this.
6794         * lib/isnan.c (rpl_isnand): Use it.
6795         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6796         * tests/test-floorf1.c (NaN): Likewise.
6797         * tests/test-frexp.c (NaN): Likewise.
6798         * tests/test-isnand.c (NaN): Likewise.
6799         * tests/test-isnanf.c (NaN): Likewise.
6800         * tests/test-round1.c (NaN): Likewise.
6801         * tests/test-roundf1.c (NaN): Likewise.
6802         * tests/test-snprintf-posix.h (NaN): Likewise.
6803         * tests/test-sprintf-posix.h (NaN): Likewise.
6804         * tests/test-trunc1.c (NaN): Likewise.
6805         * tests/test-truncf1.c (NaN): Likewise.
6806         * tests/test-vasnprintf-posix.c (NaN): Likewise.
6807         * tests/test-vasprintf-posix.c (NaN): Likewise.
6808         * modules/isnand-nolibm (Depends-on): Add math.
6809         * modules/isnanf-nolibm (Depends-on): Likewise.
6810         * modules/isnanl (Depends-on): Likewise.
6811         * modules/isnanl-nolibm (Depends-on): Likewise.
6812         * modules/snprintf-posix-tests (Depends-on): Likewise.
6813         * modules/sprintf-posix-tests (Depends-on): Likewise.
6814         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6815         * modules/vsprintf-posix-tests (Depends-on): Likewise.
6816         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6817         * modules/vasprintf-posix-tests (Depends-on): Likewise.
6818
6819 2008-03-31  Bruno Haible  <bruno@clisp.org>
6820
6821         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6822         * doc/posix-functions/strtod.texi: Likewise.
6823
6824 2008-03-31  Bruno Haible  <bruno@clisp.org>
6825
6826         * tests/test-strtod.c (main): Don't use C99 syntax.
6827
6828 2008-03-31  Bruno Haible  <bruno@clisp.org>
6829
6830         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6831         Reported by Eric Blake.
6832
6833 2008-03-31  Jim Meyering  <meyering@redhat.com>
6834
6835         Don't compare actual signbit return values.
6836         * tests/test-strtod.c (main): Rather, compare only their
6837         zero/non-zero nature.
6838
6839 2008-03-31  Eric Blake  <ebb9@byu.net>
6840
6841         More strtod documentation.
6842         * doc/posix-functions/strtod.texi (strtod): Interpret more test
6843         failures as distinct bugs.
6844
6845 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6846
6847         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6848         Problem reported by Erik Benada in
6849         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6850
6851 2008-03-30  Bruno Haible  <bruno@clisp.org>
6852
6853         * tests/test-strtod.c: Add comments about which assertion fails on which
6854         platform.
6855         * doc/posix-functions/strtod.texi: Add info about many more platforms.
6856
6857 2008-03-30  Eric Blake  <ebb9@byu.net>
6858
6859         Test signbit behavior on zeros.
6860         * tests/test-signbit.c (test_signbitf): Add tests for zero.
6861         (test_signbitd, test_signbitl): Likewise.
6862
6863         More strtod touchups.
6864         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6865         sign of negative underflow, for now.  Use .5, not .1.
6866         * doc/posix-functions/strtod.texi (strtod): Mention these
6867         limitations.
6868         Reported by Jim Meyering.
6869
6870 2008-03-30  Bruno Haible  <bruno@clisp.org>
6871
6872         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6873         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6874
6875 2008-03-30  Bruno Haible  <bruno@clisp.org>
6876
6877         Avoid failure when attempting to return empty iconv results on some
6878         platforms.
6879         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6880         allocation, don't report ENOMEM when the resulting string is empty.
6881
6882 2008-03-30  Bruno Haible  <bruno@clisp.org>
6883
6884         Fix buffer overrun.
6885         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6886         Don't consider the width for tmp_length. Check count against tmp_length
6887         before doing the padding. Ensure enough allocation during padding.
6888
6889 2008-03-30  Eric Blake  <ebb9@byu.net>
6890
6891         strtod touchups.
6892         * lib/strtod.c (strtod): Avoid compiler warnings.
6893         Reported by Jim Meyering.
6894
6895 2008-03-30  Bruno Haible  <bruno@clisp.org>
6896
6897         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6898         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6899         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6900         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6901         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6902         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6903         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6904         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6905
6906         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6907         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6908         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6909         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6910         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6911         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6912         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6913         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6914
6915         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6916         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6917         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6918         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6919         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6920         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6921         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6922         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6923
6924         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6925         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6926
6927         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6928         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6929
6930         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6931         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6932
6933         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6935         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6936
6937         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6939         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6940
6941         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6943         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6944
6945         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6947         * modules/vasprintf (Depends-on): Add EOVERFLOW.
6948
6949         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6950         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6952         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6953         (Depends-on): Add EOVERFLOW.
6954         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6955         (Depends-on): Add EOVERFLOW.
6956         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6957         (Depends-on): Add EOVERFLOW.
6958         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6959         (Depends-on): Add EOVERFLOW.
6960         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6961         (Depends-on): Add EOVERFLOW.
6962         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6963         (Depends-on): Add EOVERFLOW.
6964         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6965         (Depends-on): Add EOVERFLOW.
6966         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6967         (Depends-on): Add EOVERFLOW.
6968
6969         * lib/sprintf.c (EOVERFLOW): Remove fallback.
6970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6971         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6972
6973         * lib/snprintf.c (EOVERFLOW): Remove fallback.
6974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6975         * modules/snprintf (Depends-on): Add EOVERFLOW.
6976
6977         * lib/poll.c (EOVERFLOW): Remove fallback.
6978         * modules/poll (Depends-on): Add EOVERFLOW.
6979
6980         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6981         * modules/getugroups (Depends-on): Add EOVERFLOW.
6982
6983         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6984         * modules/getdelim (Depends-on): Add EOVERFLOW.
6985
6986         * lib/ftell.c (EOVERFLOW): Remove fallback.
6987         * modules/ftell (Depends-on): Add EOVERFLOW.
6988
6989         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6991         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6992
6993         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6994
6995         * modules/EOVERFLOW-tests: New file.
6996         * tests/test-EOVERFLOW.c: New file.
6997
6998         * modules/EOVERFLOW: New file.
6999         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
7000
7001 2008-03-30  Bruno Haible  <bruno@clisp.org>
7002
7003         Fix bug introduced on 2007-06-10.
7004         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
7005         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
7006
7007 2008-03-30  Bruno Haible  <bruno@clisp.org>
7008
7009         Improve freadseek's efficiency after ungetc.
7010         * lib/freadseek.c: Include freadahead.h.
7011         (freadptrinc): New function, extracted from freadseek.
7012         (freadseek): Use it in a loop. Use freadahead to determine the number
7013         of loop iterations.
7014         * modules/freadseek (Depends-on): Add freadahead.
7015         (configure.ac): Require AC_C_INLINE.
7016
7017 2008-03-30  Bruno Haible  <bruno@clisp.org>
7018
7019         * lib/freadseek.c (freadseek): Don't ignore the return value of
7020         freadptr.
7021
7022 2008-03-29  Eric Blake  <ebb9@byu.net>
7023
7024         Add hex float support.
7025         * modules/strtod (Depends-on): Add c-ctype.
7026         (Link): Mention POW_LIB.
7027         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
7028         whitespace between 'e' and exponent.
7029         * tests/test-strtod.c (main): Enable hex float tests.
7030         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
7031         now provides.
7032
7033         Document various strtod bugs, with some fixes.
7034         * doc/posix-functions/strtod.texi (strtod): Document bugs with
7035         "-0x", "inf", "nan", and hex constants.
7036         * doc/posix-functions/atof.texi (atof): Likewise.
7037         * modules/stdlib (Makefile.am): Support strtod.
7038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7039         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
7040         detect additional strtod bugs.
7041         * lib/stdlib.in.h (rpl_strtod): Add declarations.
7042         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
7043         bool where appropriate.  Parse 'inf' and 'nan'.
7044         * tests/test-strtod.c: New file.
7045         * modules/strtod (Depends-on): Add stdbool, stdlib.
7046         (configure.ac): Turn on module indicator.
7047         * modules/strtod-tests: New module.
7048
7049 2008-03-29  Eric Blake  <ebb9@byu.net>
7050
7051         Fix ftell on mingw.
7052         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
7053         * modules/ftell-tests (Depends-on): Add binary-io.
7054         * modules/ftello-tests (Depends-on): Likewise.
7055         * tests/test-ftell.c (main): Enhance test to cover behavior after
7056         ungetc.  Enforce binary mode.
7057         * tests/test-ftello.c (main): Likewise.
7058
7059         Pass test-freadseek on cygwin.
7060         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
7061         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
7062         ungetc buffer.
7063
7064         * tests/test-fflush2.c (main): Fix typo.
7065
7066 2008-03-29  Bruno Haible  <bruno@clisp.org>
7067
7068         * tests/test-fflush2.c (main): Temporarily disable the contents of
7069         this test.
7070         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
7071         Reported by Eric Blake.
7072
7073 2008-03-28  Simon Josefsson  <simon@josefsson.org>
7074
7075         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
7076         (GC_SHA224_DIGEST_SIZE): Add.
7077
7078         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
7079         (gc_hash_digest_length): Likewise.
7080         (gc_hash_buffer): Likewise.
7081
7082 2008-03-25  Bruno Haible  <bruno@clisp.org>
7083
7084         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
7085         detail which gettext release to use.
7086         Reported by Simon Josefsson.
7087
7088 2008-03-26  Jim Meyering  <meyering@redhat.com>
7089
7090         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
7091         * modules/gnumakefile (clean-GNUmakefile): Also, use
7092         test ... && ... || : syntax rather than if-then ... fi.
7093
7094         gnumakefile: Don't double-quote-expand $(VPATH) value.
7095         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
7096
7097 2008-03-24  Eric Blake  <ebb9@byu.net>
7098
7099         Alter GNUmakefile to install into top directory.
7100         * modules/maintainer-makefile: Split, and add dependency...
7101         * modules/gnumakefile: to this new module.
7102         * build-aux/GNUmakefile: Move...
7103         * top/GNUmakefile: ...here.
7104         * build-aux/maint.mk: Move...
7105         * top/maint.mk: ...here.
7106         * MODULES.html.sh (Support for maintaining...): Document new
7107         module.
7108
7109 2008-03-23  Bruno Haible  <bruno@clisp.org>
7110
7111         * gnulib-tool: New options --vc-files, --no-vc-files.
7112         (func_usage): Document them.
7113         (vc_files): New variable.
7114         (func_import): Consider vc_files.
7115         (func_create_testdir): Set vc_files to empty.
7116         Suggested by Jim Meyering and Karl Berry.
7117
7118 2008-03-23  Bruno Haible  <bruno@clisp.org>
7119
7120         Fix regex compilation error on HP-UX 11.
7121         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7122         * modules/regex (Files): Add m4/mbstate_t.m4.
7123         Reported by Ton Voon <ton.voon@altinity.com>.
7124
7125 2008-03-23  Bruno Haible  <bruno@clisp.org>
7126
7127         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7128
7129 2008-03-23  Eric Blake  <ebb9@byu.net>
7130             Bruno Haible  <bruno@clisp.org>
7131
7132         Install files from top/ in the destination directory.
7133         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7134         augmentation also for the files from top/.
7135         (func_import, func_create_testdir): Rewrite file names:
7136         top/filename -> filename.
7137
7138 2008-03-23  Bruno Haible  <bruno@clisp.org>
7139
7140         Tweak "gnulib --version" output.
7141         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7142
7143 2008-03-23  Bruno Haible  <bruno@clisp.org>
7144
7145         Tweak "gnulib --version" output.
7146         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7147         rather than contents of ChangeLog, when possible.
7148
7149 2008-03-21  Eric Blake  <ebb9@byu.net>
7150
7151         More --version tweaks.
7152         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
7153         date of last ChangeLog entry.
7154
7155 2008-03-21  Jim Meyering  <meyering@redhat.com>
7156
7157         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7158
7159 2008-03-20  Eric Blake  <ebb9@byu.net>
7160
7161         VPATH fix.
7162         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7163
7164 2008-03-20  Simon Josefsson  <simon@josefsson.org>
7165
7166         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
7167         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
7168
7169 2008-03-20  Eric Blake  <ebb9@byu.net>
7170
7171         Sync GNUmakefile with coreutils.
7172         * build-aux/GNUmakefile (have-Makefile): Rename...
7173         (_have-Makefile): ...to this, for namespace consideration.
7174         (GNUmakefile.cfg): Include, if present.
7175         (_autoreconf): Define a default.
7176         (_is-dist-target): New rule for rebuilds to pick up intra-release
7177         version.
7178         (maint-cfg.mk): Rename...
7179         (cfg.mk): ...to this.
7180
7181 2008-03-18  Jim Meyering  <meyering@redhat.com>
7182
7183         New script and module: mktempd
7184         * MODULES.html.sh (maint+release support): Add mktempd.
7185         * build-aux/mktempd: New file.
7186         * modules/mktempd: New file.
7187
7188 2008-03-15  Jim Meyering  <meyering@redhat.com>
7189
7190         Undo last change.
7191         * lib/sha1.c, lib/md5.c: 63 != ~63.
7192         Reported by Andreas Schwab.
7193
7194         sha1.c, md5.c: Hoist a redundant expression.
7195         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
7196         "ctx->buflen" only once, before calling *_process_block.
7197         * lib/md5.c (md5_process_bytes): Likewise.
7198
7199 2008-03-14  Eric Blake  <ebb9@byu.net>
7200
7201         Bump copyright year in files generated by gnulib-tool.
7202         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
7203         gnulib-tool, rather than hard-coding it.
7204
7205         Fix 'gnulib-tool --version' output to work with git.
7206         * gnulib-tool (func_gnulib_dir): New function, extracted from...
7207         (startup): ...here.
7208         (func_version): Use it to invoke git-version-gen, rather than
7209         relying on CVS keyword expansion.  Modernize wording.
7210         (cvsdatestamp, last_checkin_date, version): Kill unused
7211         variables.
7212
7213 2008-03-12  Jim Meyering  <meyering@redhat.com>
7214
7215         Recognize optional cast of the argument to free.
7216         * build-aux/useless-if-before-free: Update regexps.
7217
7218         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
7219
7220 2008-03-11  Bruno Haible  <bruno@clisp.org>
7221
7222         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
7223         by a single package.
7224         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
7225         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
7226         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
7227         Reported by Sam Steingold <sds@gnu.org>.
7228
7229 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7230
7231         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
7232         repositories.
7233
7234 2008-03-11  Bruno Haible  <bruno@clisp.org>
7235
7236         Avoid conflicts between local macro definitions.
7237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7238         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
7239
7240 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
7241             Bruno Haible  <bruno@clisp.org>
7242
7243         Make va_copy work with some version of xlc on AIX 5.1.
7244         * lib/stdarg.in.h: New file.
7245         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
7246         On AIX, use a <stdarg.h> file substitute.
7247         * modules/stdarg (Files): Add lib/stdarg.in.h.
7248         (Depends-on): Add include_next.
7249         (Makefile.am): Build a stdarg.h substitute if requested.
7250         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7251
7252 2008-03-10  Bruno Haible  <bruno@clisp.org>
7253
7254         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7256         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7257
7258 2008-03-10  Bruno Haible  <bruno@clisp.org>
7259
7260         * modules/stdlib (Depends-on): Add include_next, remove
7261         absolute-header.
7262
7263 2008-03-09  Bruno Haible  <bruno@clisp.org>
7264
7265         * lib/freadahead.h (freadahead): Document more precisely.
7266         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7267         the sum of both buffer sizes.
7268         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7269         * NEWS: Document the change.
7270
7271 2008-03-09  Bruno Haible  <bruno@clisp.org>
7272
7273         Extend freadptr to return also the buffer size.
7274         * lib/freadptr.h (freadptr): Add sizep argument.
7275         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7276         (freadptr): Add sizep argument. Determine buffer size like freadahead
7277         does.
7278         * tests/test-freadptr.c: Don't include freadahead.h.
7279         (main): Adapt for new calling convention of freadptr.
7280         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7281         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7282         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7283         tests/test-freadptr2.sh.
7284         (Depends): Remove freadahead.
7285         (TESTS): Add test-freadptr2.sh.
7286         (check_PROGRAMS): Add test-freadptr2.
7287
7288 2008-03-09  Bruno Haible  <bruno@clisp.org>
7289
7290         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7291         Report and solution by Simon Josefsson.
7292
7293 2008-03-06  Bruno Haible  <bruno@clisp.org>
7294
7295         Make fflush after ungetc work on BSD platforms.
7296         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7297         * tests/test-fflush2.c: New file.
7298         * tests/test-fflush2.sh: New file.
7299         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7300         tests/test-fflush2.c.
7301         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7302         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7303
7304 2008-03-06  Eric Blake  <ebb9@byu.net>
7305
7306         Likewise for ftello.
7307         * modules/ftello (Dependencies): Add extensions.
7308         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7309
7310 2008-03-06  Bruno Haible  <bruno@clisp.org>
7311
7312         * modules/fseeko (Dependencies): Add extensions.
7313         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7314         Needed on glibc systems.
7315
7316 2008-03-06  Bruno Haible  <bruno@clisp.org>
7317
7318         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7319         email address.
7320         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7321
7322 2008-03-06  Bruno Haible  <bruno@clisp.org>
7323
7324         * users.txt: Add libgnupdf.
7325
7326 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7327
7328         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7329         (Header File Substitutes, Function Substitutes,
7330         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7331         (Build robot for gnulib): Fix typo.
7332
7333 2008-03-06  Bruno Haible  <bruno@clisp.org>
7334
7335         * doc/gnulib-tool.texi (VCS Issues): Small updates.
7336         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7337
7338 2008-03-06  Bruno Haible  <bruno@clisp.org>
7339
7340         * doc/func.texi: New file, extracted from doc/gnulib.texi.
7341         * doc/gnulib.texi: Include it.
7342
7343 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7344
7345         * modules/func (License): Change license to unlimited; there was
7346         no LGPL parts in the module anyway.
7347
7348 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7349
7350         * modules/__func__: Renamed to modules/func.
7351         * modules/__func__-tests: Renamed to modules/func-tests.
7352         * tests/test-__func__.c: Renamed to tests/test-func.c.
7353         * m4/__func__.m4: Renamed to m4/func.m4.
7354         * doc/gnulib.texi (__func__): Section renamed to func.
7355         Suggested by Eric Blake <ebb9@byu.net>.
7356
7357 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7358
7359         * doc/gnulib.texi (__func__): Use C99 terminology when talking
7360         about __func__.  Make example self-contained.  Suggested by Eric
7361         Blake <ebb9@byu.net>.
7362
7363         * tests/test-__func__.c (main): Avoid extraneous () around __func.
7364         Suggested by Eric Blake <ebb9@byu.net>.
7365
7366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7367
7368         * modules/__func__: New file.
7369         * modules/__func__-tests: New file.
7370         * tests/test-__func__.c: New file.
7371         * m4/__func__.m4: New file.
7372         * doc/gnulib.texi (__func__): Document __func__ module.
7373
7374 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7375
7376         * modules/byteswap (License): Re-license as LGPLv2+.
7377
7378 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7379
7380         * doc/Makefile: Add pdf target.
7381
7382 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7383
7384         * modules/inline (License): Use 'unlimited', since there are only
7385         *.m4 files in this module.
7386
7387 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7388             Bruno Haible  <bruno@clisp.org>
7389
7390         Add support for HP C 7.1 on OpenVMS 8.3.
7391         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7392
7393 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7394
7395         Update VMS specifics.
7396         * lib/getopt.c [VMS]: Remove include of unixlib.h.
7397
7398 2008-03-02  Jim Meyering  <meyering@redhat.com>
7399
7400         Remove the last dependency on the "free" module.
7401         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7402         Reported by Bob Proulx.
7403
7404         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7405
7406         Remove useless "if" tests before free.  Deprecate "free" module.
7407         * doc/posix-functions/free.texi: Mention that this
7408         module is no longer useful.
7409         * modules/free (Notice): Say this module is obsolete.
7410         * modules/readutmp (Depends-on): Remove free.
7411         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7412         * lib/putenv.c (putenv): Likewise.
7413         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7414         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7415         * tests/test-c-strcasestr.c (main): Likewise.
7416         * tests/test-c-strstr.c (main): Likewise.
7417         * tests/test-mbscasestr1.c (main): Likewise.
7418         * tests/test-mbscasestr2.c (main): Likewise.
7419         * tests/test-mbsstr1.c (main): Likewise.
7420         * tests/test-mbsstr2.c (main): Likewise.
7421         * tests/test-memmem.c (main): Likewise.
7422         * tests/test-strcasestr.c (main): Likewise.
7423         * tests/test-striconv.c (main): Likewise.
7424         * tests/test-striconveh.c (main): Likewise.
7425         * tests/test-striconveha.c (main): Likewise.
7426         * tests/test-strstr.c (main): Likewise.
7427
7428         * build-aux/git-version-gen: Adjust a comment and the Usage string.
7429
7430         bootstrap: sync from coreutils again
7431         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7432
7433 2008-03-01  Jim Meyering  <meyering@redhat.com>
7434
7435         bootstrap: sync from coreutils
7436         * build-aux/bootstrap (update_po_files): Copy a .po file into place
7437         also when the target doesn't exist.
7438
7439 2008-03-01  Eric Blake  <ebb9@byu.net>
7440
7441         Fix bugs in last patch.
7442         * lib/memchr2.c (memchr2): Fix typo.
7443         * tests/test-memchr2.c: Test previous bug, and don't use GNU
7444         extension.
7445         Reported by Bruce Korb.
7446
7447         New module 'memchr2'.
7448         * modules/memchr2: New file.
7449         * modules/memchr2-tests: Likewise.
7450         * lib/memchr2.h: Likewise.
7451         * lib/memchr2.c: Likewise, based on memchr.c.
7452         * tests/test-memchr2.c: New test.
7453         * MODULES.html.sh (String handling): Add memchr2.
7454
7455 2008-02-29  Bruno Haible  <bruno@clisp.org>
7456
7457         * modules/freadseek-tests: New file.
7458         * tests/test-freadseek.sh: New file.
7459         * tests/test-freadseek.c: New file.
7460
7461         New module 'freadseek'.
7462         * modules/freadseek: New file.
7463         * lib/freadseek.h: New file.
7464         * lib/freadseek.c: New file.
7465         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7466
7467 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7468
7469         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7470         wydawca.
7471
7472         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7473         program_invocation_name and program_invocation_short_name are
7474         present.
7475
7476 2008-02-28  Bruno Haible  <bruno@clisp.org>
7477
7478         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7479         * tests/test-freadptr.sh: Also test non-seekable stdin.
7480
7481 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
7482
7483         * build-aux/bootstrap (source_base, m4_base)
7484         (doc_base, tests_base): New variables.
7485         (gnulib_tool_options): Do not hardcode base directories, use
7486         the above variables instead.
7487
7488 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
7489
7490         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7491
7492 2008-02-28  Bruno Haible  <bruno@clisp.org>
7493
7494         * modules/freadptr-tests: New file.
7495         * tests/test-freadptr.sh: New file.
7496         * tests/test-freadptr.c: New file.
7497
7498         New module 'freadptr'.
7499         * modules/freadptr: New file.
7500         * lib/freadptr.h: New file.
7501         * lib/freadptr.c: New file.
7502         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7503
7504 2008-02-26  Karl Berry  <karl@freefriends.org>
7505
7506         Sync from Libtool:
7507         * libltdl/argz.c (argz_add, argz_count): New functions.
7508         * libltdl/argz.in.h: Declare them.
7509         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7510
7511 2008-02-22  Bruno Haible  <bruno@clisp.org>
7512
7513         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7514         is a pointer type.  Needed for HP-UX 10.
7515         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7516         * doc/posix-functions/gmtime_r.texi: Likewise.
7517         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7518
7519 2008-02-24  Bruno Haible  <bruno@clisp.org>
7520
7521         * modules/environ-tests: New file.
7522         * tests/test-environ.c: New file.
7523
7524         New module 'environ'.
7525         * modules/environ: New file.
7526         * lib/unistd.in.h (environ): New declaration.
7527         * m4/environ.m4: New file.
7528         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7529         after use.
7530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7531         HAVE_DECL_ENVIRON.
7532         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7533         HAVE_DECL_ENVIRON.
7534         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7535         wrong claim that 'environ' is missing on some systems.
7536         * modules/execute (Depends-on): Add environ.
7537         * lib/execute.c (environ): Remove fallback declaration.
7538         * modules/pipe (Depends-on): Add environ.
7539         * lib/pipe.c (environ): Remove fallback declaration.
7540         * modules/setenv (Depends-on): Add environ.
7541         * lib/setenv.c (environ): Remove fallback declaration.
7542         * modules/unsetenv (Depends-on): Add environ.
7543         * lib/unsetenv.c (environ): Remove fallback declaration.
7544         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7545         m4/environ.m4.
7546         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7547         (gl_PREREQ_UNSETENV): Likewise.
7548
7549 2008-02-24  Bruno Haible  <bruno@clisp.org>
7550
7551         * doc/posix-functions/environ.texi: Document the MacOS X problem.
7552
7553 2008-02-20  Bob Proulx  <bob@proulx.com>
7554
7555         Enable use of older two part flavor 'git describe'.
7556         * build-aux/git-version-gen: If using the older two part flavor of
7557         git version then recreate the third part now present in the
7558         newer three part flavor of git describe.
7559
7560 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
7561
7562         * lib/fts.c (fts_build): Typo correction to comment.
7563
7564 2008-02-17  Bruno Haible  <bruno@clisp.org>
7565
7566         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7567         generating no-op conflicts.
7568
7569 2008-02-17  Bruno Haible  <bruno@clisp.org>
7570
7571         Speed up by 10%.
7572         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7573         result_entries, rather than an index-based loop.
7574
7575 2008-02-17  Bruno Haible  <bruno@clisp.org>
7576
7577         Speed up by 25%.
7578         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7579         'hashcode_cached'.
7580         (entry_create): New function.
7581         (entry_hashcode): Use the cached hashcode if possible.
7582         (read_changelog_file, try_split_merged_entry): Use entry_create.
7583
7584 2008-02-17  Bruno Haible  <bruno@clisp.org>
7585
7586         Speed up from O(n^2) to O(n) for long ChangeLog files.
7587         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7588         (read_changelog_file): Change implementation of entries_reversed list
7589         to rbtreehash.
7590         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7591
7592 2008-02-17  Bruno Haible  <bruno@clisp.org>
7593
7594         New option --split-merged-entry.
7595         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7596         (find_paragraph_end, try_split_merged_entry): New functions.
7597         (long_options): Add option --split-merged-entry.
7598         (usage): Document option --split-merged-entry.
7599         (main): Implement option --split-merged-entry.
7600         Reported by Eric Blake.
7601
7602 2008-02-17  Bruno Haible  <bruno@clisp.org>
7603
7604         * lib/git-merge-changelog.c: Include c-strstr.h.
7605         (main): Support the "git pull --rebase" situation.
7606         * modules/git-merge-changelog (Depends-on): Add c-strstr.
7607         Reported by Eric Blake.
7608
7609 2008-02-16  Eric Blake  <ebb9@byu.net>
7610
7611         Avoid doubling \ in common case of "c-maybe" quoting style.
7612         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7613         eliding outer quotes.
7614         * lib/quotearg.h: Document this.
7615         * tests/test-quotearg.c (result_strings, inputs, results_g)
7616         (flag_results, locale_results): Test it by adding a new string to
7617         each test group.
7618         (compare_strings): Test new string.
7619
7620 2008-02-13  Eric Blake  <ebb9@byu.net>
7621
7622         Avoid trigraph quoting in default output.
7623         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7624         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7625         unless explicitly requested.
7626         * tests/test-quotearg.c (flag_results, main): Add additional tests.
7627
7628 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
7629
7630         Don't rely on signed integer overflowing to negative value.
7631         * lib/getugroups.c (getugroups): Include <limits.h>.
7632         Instead, compare against INT_MAX, and increment only if the test passes.
7633
7634 2008-02-13  Jim Meyering  <meyering@redhat.com>
7635         and Eric Blake  <ebb9@byu.net>
7636
7637         Avoid shadowing warning and compile errors on Linux.
7638         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7639         forwarding macros on Linux.
7640         (dcgettext): Define a stub, for Linux.
7641         (results_g, main): Avoid warnings.
7642
7643 2008-02-12  Eric Blake  <ebb9@byu.net>
7644
7645         Silence warning in last patch.
7646         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7647
7648         Quotearg part 4: add tests, fix c-maybe colon quoting.
7649         * lib/quotearg.h: Improve documentation.
7650         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7651         escapes when adding outer quotes.  When quoting trigraphs, use
7652         valid C notation.  When quoting NUL, omit extra characters if next
7653         character is not digit.  Alter prototype.
7654         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7655         callers.
7656         * modules/quotearg-tests: New module.
7657         * tests/test-quotearg.c: New test.
7658
7659 2008-02-07  Eric Blake  <ebb9@byu.net>
7660
7661         Quotearg part 3: add flag to control outer quote elision.
7662         * lib/quotearg.h (c_maybe_quoting_style): New style.
7663         (enum quoting_flags): Better documentation of flags.
7664         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7665         c-maybe style.
7666         (quotearg_buffer_restyled): Handle new flag to elide outer
7667         quotes.
7668
7669         Quotearg part 2: add flag that can control NUL elision.
7670         * lib/quotearg.h (set_quoting_flags): New prototype.
7671         * lib/quotearg.c (struct quoting_options): Add flag field.
7672         (set_quoting_flags): New function.
7673         (quotearg_buffer_restyled): Add flags parameter.
7674         (quotearg_alloc_mem): Set the flag if length cannot be returned.
7675         (quotearg_n_options): Set the flag, since length cannot be
7676         returned.
7677         (quoting_options_from_style): Default flags correctly.
7678
7679         Quotearg part 1: more wrappers, restore quotearg_char state.
7680         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7681         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7682         (quotearg_colon_mem): New wrappers.
7683         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7684         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7685         functions.
7686         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7687         (quotearg_colon_mem): New functions.
7688
7689 2008-02-11  Bruno Haible  <bruno@clisp.org>
7690
7691         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7692         library in the current directory: it does not work with parallel make.
7693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7694
7695 2008-02-11  Bruno Haible  <bruno@clisp.org>
7696
7697         * .gitattributes: New file.
7698
7699 2008-02-11  Jim Meyering  <meyering@redhat.com>
7700
7701         useless-if-before-free: Fix reversed exit values.
7702         * build-aux/useless-if-before-free: Use correct values
7703         for EXIT_MATCH and EXIT_NO_MATCH.
7704
7705         * build-aux/useless-if-before-free: Close stdout carefully.
7706
7707 2008-02-10  Bruno Haible  <bruno@clisp.org>
7708
7709         New module 'git-merge-changelog'.
7710         * modules/git-merge-changelog: New file.
7711         * lib/git-merge-changelog.c: New file.
7712
7713 2008-02-10  Jim Meyering  <meyering@redhat.com>
7714
7715         useless-if-before-free: New option: --list (-l).
7716
7717         useless-if-before-free: Don't exit immediately upon open failure.
7718         * build-aux/useless-if-before-free: Exit 2 for errors.
7719         Upon failure to open a file, don't exit immediately.
7720         Rather, just warn and continue with any remaining files.
7721
7722 2008-02-10  Bruno Haible  <bruno@clisp.org>
7723
7724         New abstract list operation 'node_set_value'.
7725         * lib/gl_list.h (gl_list_node_set_value): New function.
7726         (struct gl_list_implementation): New field node_set_value.
7727         * lib/gl_list.c (gl_list_node_set_value): New function.
7728         * lib/gl_array_list.c (gl_array_node_set_value): New function.
7729         (gl_array_list_implementation): Update.
7730         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7731         (gl_carray_list_implementation): Update.
7732         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7733         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7734         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7735         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7736         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7737         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7738         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7739         Update.
7740         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7741         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7742         (gl_sublist_list_implementation): Update.
7743
7744 2008-02-10  Bruno Haible  <bruno@clisp.org>
7745
7746         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7747         Needed when ELEMENT is #defined to 'some_type *'.
7748
7749 2008-02-10  Jim Meyering  <meyering@redhat.com>
7750
7751         New script and module: useless-if-before-free
7752         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7753         * build-aux/useless-if-before-free: New file.
7754         * modules/useless-if-before-free: New file.
7755
7756         * build-aux/gitlog-to-changelog: Use committer date, not author date.
7757
7758         xstrtol_error: Fix typo.
7759         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7760         s/exit_failure/exit_status/.
7761
7762 2008-02-09  Jim Meyering  <meyering@redhat.com>
7763
7764         New script and module: gitlog-to-changelog
7765         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7766         * modules/gitlog-to-changelog: New file.
7767         * build-aux/gitlog-to-changelog: New file.
7768
7769 2008-02-08  Jim Meyering  <meyering@redhat.com>
7770
7771         Avoid two "parameter unused" warnings.
7772         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7773         Mark "st" as used.
7774
7775         Use "git COMMAND", not "git-COMMAND".
7776         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7777         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7778         * build-aux/git-version-gen: Use "git status", not "git-status".
7779
7780 2008-02-07  Bruno Haible  <bruno@clisp.org>
7781
7782         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7783         Avoids a crash on Windows Vista.
7784         Reported by Adam Strzelecki <ono@java.pl> via
7785         Simon Josefsson <simon@josefsson.org>.
7786
7787 2008-02-06  Bruno Haible  <bruno@clisp.org>
7788
7789         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7790         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7791         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7793         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7795         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7796         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7804         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7805         left-adjust flag.
7806         * tests/test-snprintf-posix.h (test_function): Likewise.
7807         * tests/test-sprintf-posix.h (test_function): Likewise.
7808         * tests/test-vasprintf-posix.c (test_function): Likewise.
7809         * doc/posix-functions/fprintf.texi: Update.
7810         * doc/posix-functions/printf.texi: Update.
7811         * doc/posix-functions/snprintf.texi: Update.
7812         * doc/posix-functions/sprintf.texi: Update.
7813         * doc/posix-functions/vfprintf.texi: Update.
7814         * doc/posix-functions/vprintf.texi: Update.
7815         * doc/posix-functions/vsnprintf.texi: Update.
7816         * doc/posix-functions/vsprintf.texi: Update.
7817         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7818
7819 2008-02-06  Bruno Haible  <bruno@clisp.org>
7820
7821         Fix bug introduced on 2008-01-26.
7822         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7823
7824 2008-02-06  Bruno Haible  <bruno@clisp.org>
7825
7826         Fix bug introduced on 2007-06-10.
7827         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7828         !NEED_PRINTF_FLAG_ZERO.
7829
7830 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
7831
7832         getloadavg: use libperfstat on AIX5
7833         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7834
7835 2008-02-03  Bruno Haible  <bruno@clisp.org>
7836
7837         * lib/diffseq.h: Add comments about required #includes.
7838         Reported by Michael Biggs <gnulib@doubleplum.net>.
7839
7840 2008-02-01  Bruno Haible  <bruno@clisp.org>
7841
7842         * users.txt: Add gnuit.
7843
7844 2008-01-31  Bruno Haible  <bruno@clisp.org>
7845
7846         * lib/md4.c (set_uint32): Mark as inline.
7847         * lib/md5.c (set_uint32): Likewise.
7848         * lib/sha1.c (set_uint32): Likewise.
7849         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7850         * m4/md5.m4 (gl_MD5): Likewise.
7851         * m4/sha1.m4 (gl_SHA1): Likewise.
7852
7853 2008-01-31  Jim Meyering  <meyering@redhat.com>
7854
7855         Use "sizeof VAR", rather than a literal "4".
7856         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7857         * lib/md4.c (md4_read_ctx): Likewise.
7858         * lib/sha1.c (sha1_read_ctx): Likewise.
7859
7860 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7861
7862         * tests/test-sha1.c: New file, based on test-md5.c.
7863
7864         * modules/crypto/sha1-tests: New file.
7865
7866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7867
7868         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7869
7870 2008-01-31  Jim Meyering  <meyering@redhat.com>
7871
7872         Prefer "sizeof v" over the equivalent "4".
7873         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7874         * lib/md5.c (set_uint32): Likewise.
7875         * lib/sha1.c (set_uint32): Likewise.
7876
7877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7878
7879         * lib/sha1.c (set_uint32): Mark function as static.
7880
7881 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7882
7883         md2: clarify comments to say that alignment is not required.
7884         * lib/md2.h: Remove warning about alignment in comment.
7885         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7886         never been required.
7887
7888 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7889
7890         md4: adapt alignment constraint fix from sha1.
7891         * lib/md4.c (set_uint32): New function, from sha1.c
7892         (md4_read_ctx): Use it.
7893         (md4_finish_ctx): Doc fix.
7894         * lib/md4.h: Doc fix.
7895
7896 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7897
7898         md5: adapt alignment constraint fix from sha1.
7899         * lib/md5.c (set_uint32): New function, from sha1.c
7900         (md5_read_ctx): Use it.
7901         (md5_finish_ctx): Doc fix.
7902         * lib/md5.h: Doc fix.
7903
7904 2008-01-30  Peter Palfrader  <weasel@debian.org>
7905
7906         sha1: remove the result buffer alignment constraint
7907         * lib/sha1.c (set_uint32): New function.
7908         (sha1_read_ctx): Rewrite to remove the result buffer alignment
7909         constraint.
7910         (sha1_finish_ctx): Remove comment warning about alignment constraint.
7911         * lib/sha1.h: Likewise.
7912
7913 2008-01-30  Andreas Schwab  <schwab@suse.de>
7914             Bruno Haible  <bruno@clisp.org>
7915
7916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7917         correct definition of LDBL_MIN_EXP.
7918
7919 2008-01-30  Karl Berry  <karl@gnu.org>
7920
7921         * config/srclist-update: try to preserve x bit on updates.
7922         * config/srclistvars.sh: update for karl.
7923
7924 2008-01-29  Jim Meyering  <meyering@redhat.com>
7925
7926         vasnprintf.c: Avoid warning about unused label
7927         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7928         "overflow" label definition and associated code with the
7929         same cpp condition that guards the sole use of that label.
7930
7931 2008-01-26  Bruno Haible  <bruno@clisp.org>
7932
7933         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7934         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7935         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7936         * lib/isnanl-nolibm.h (isnanl): Likewise.
7937         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7938
7939 2008-01-26  Bruno Haible  <bruno@clisp.org>
7940
7941         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7942         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7943
7944 2008-01-26  Bruno Haible  <bruno@clisp.org>
7945
7946         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7947         GCC >= 4.0 built-in.
7948         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7949
7950 2008-01-26  Bruno Haible  <bruno@clisp.org>
7951
7952         Rename isnan, applicable to 'double' only, to isnand.
7953         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7954         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7955         (configure.ac): Update.
7956         (Include): Replace "isnan.h" with "isnand.h".
7957         * m4/isnand.m4: Renamed from m4/isnan.m4.
7958         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7959         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7960         instead of isnan.c.
7961         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7962         instead of HAVE_ISNAN_IN_LIBC.
7963         (isnand): Renamed from isnan.
7964         * lib/isnand.c: New file.
7965         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7966         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7967         (Makefile.am): Update.
7968         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7969         Include isnand.h instead of isnan.h.
7970         (main): Test isnand instead of isnan.
7971         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7972         isnan-nolibm.
7973         * modules/frexp (Depends-on): Likewise.
7974         * modules/frexp-tests (Depends-on): Likewise.
7975         * modules/frexp-nolibm (Depends-on): Likewise.
7976         * modules/frexp-nolibm-tests (Depends-on): Likewise.
7977         * modules/isfinite (Depends-on): Likewise.
7978         * modules/round-tests (Depends-on): Likewise.
7979         * modules/signbit (Depends-on): Likewise.
7980         * modules/signbit-tests (Depends-on): Likewise.
7981         * modules/snprintf-posix (Depends-on): Likewise.
7982         * modules/sprintf-posix (Depends-on): Likewise.
7983         * modules/trunc-tests (Depends-on): Likewise.
7984         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7985         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7986         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7987         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7988         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7989         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7990         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7991         * modules/vasnprintf-posix (Depends-on): Likewise.
7992         * modules/vasprintf-posix (Depends-on): Likewise.
7993         * modules/vfprintf-posix (Depends-on): Likewise.
7994         * modules/vsnprintf-posix (Depends-on): Likewise.
7995         * modules/vsprintf-posix (Depends-on): Likewise.
7996         * lib/frexp.c: Include isnand.h instead of isnan.h.
7997         (ISNAN): Set to isnand instead of isnan.
7998         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7999         (gl_isfinited): Use isnand instead of isnan.
8000         * lib/signbitd.c: Include isnand.h instead of isnan.h.
8001         (gl_signbitd): Use isnand instead of isnan.
8002         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
8003         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
8004         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
8005         (main): Use isnand instead of isnan.
8006         * tests/test-round1.c: Include isnand.h.
8007         (main): Use isnand instead of isnan.
8008         * tests/test-round2.c: Include isnand.h instead of isnan.h.
8009         (ISNAN): Set to isnand instead of isnan.
8010         * tests/test-trunc1.c: Include isnand.h.
8011         (main): Use isnand instead of isnan.
8012         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
8013         (equal): Use isnand instead of isnan.
8014         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
8015         isnand-nolibm.
8016         * NEWS: Mention the change.
8017
8018 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8019             Bruno Haible  <bruno@clisp.org>
8020
8021         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
8022         the GCC builtins for signbits are present and set
8023         REPLACE_SIGNBIT_USING_GCC if so.
8024         * lib/math.in.h (signbit): Define using GCC builtins if
8025         REPLACE_SIGNBIT_USING_GCC is set.
8026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
8027         REPLACE_SIGNBIT_USING_GCC.
8028         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
8029
8030 2008-01-25  Jim Meyering  <meyering@redhat.com>
8031
8032         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
8033         * lib/poll.c: Include <config.h>, not "config.h".
8034         * tests/test-getaddrinfo.c: Likewise.
8035
8036 2008-01-25  Simon Josefsson  <simon@josefsson.org>
8037
8038         * modules/sockets-tests: New file.
8039
8040 2008-01-24  Simon Josefsson  <simon@josefsson.org>
8041
8042         * modules/sockets: New module, can be used to call WSA_Startup and
8043         WSA_Cleanup when needed.
8044
8045         * lib/sockets.h, lib/sockets.c: New files.
8046
8047         * m4/sockets.m4: New file.
8048
8049         * tests/test-sockets.c: New file.
8050
8051 2008-01-19  Bruno Haible  <bruno@clisp.org>
8052
8053         * doc/posix-headers: Renamed from doc/headers.
8054         * doc/posix-functions: Renamed from doc/functions.
8055         * doc/gnulib.texi: Update.
8056
8057 2008-01-19  Bruno Haible  <bruno@clisp.org>
8058
8059         * doc/glibc-functions/strcasestr.texi: Include contents of
8060         doc/functions/strcasestr.texi, fixing the list of platforms.
8061         * doc/functions/strcasestr.texi: Remove file.
8062
8063 2008-01-19  Bruno Haible  <bruno@clisp.org>
8064
8065         * doc/glibc-functions/memmem.texi: Include contents of
8066         doc/functions/memmem.texi.
8067         * doc/functions/memmem.texi: Remove file.
8068
8069 2008-01-18  Bruno Haible  <bruno@clisp.org>
8070
8071         * doc/glibc-functions/*.texi: New files.
8072         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
8073         to use the new files.
8074
8075 2008-01-17  Bruno Haible  <bruno@clisp.org>
8076
8077         * tests/test-gethostname.c (main): Fix printf statement.
8078
8079 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8080
8081         * modules/gethostname-tests: New file.
8082
8083         * tests/test-gethostname.c: New file.
8084
8085 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8086
8087         * lib/gethostname.c: Include string.h unconditionally, strncpy is
8088         used by the UNAME case.  Reported by Bruno Haible
8089         <bruno@clisp.org>.
8090
8091 2008-01-17  Eric Blake  <ebb9@byu.net>
8092
8093         Convert c-strcasestr to be more efficient.
8094         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
8095         (Depends-on): Add c-strcase, remove malloca, strnlen.
8096         * tests/test-c-strcasestr.c (main): Enhance test.
8097         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
8098
8099 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
8100
8101         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
8102         Use it in creating po/Makevars.
8103
8104 2008-01-15  Simon Josefsson  <simon@josefsson.org>
8105
8106         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
8107         Applications that requires it should initialize libgcrypt
8108         manually.
8109
8110 2008-01-16  Simon Josefsson  <simon@josefsson.org>
8111
8112         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8113
8114 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8115
8116         Fix problem with getdate on mingw32 reported by Simon Josefsson
8117         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8118         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8119         tzname", when deciding whether to declare tzname.
8120         * lib/strftime.c (tzname): Likewise.
8121
8122 2008-01-15  Bruno Haible  <bruno@clisp.org>
8123
8124         Work around a MacOS X 10.5 bug in frexpl().
8125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8126         * doc/functions/frexpl.texi: Document the bug.
8127         Reported by Elias Pipping <pipping@gentoo.org>.
8128
8129 2008-01-14  Eric Blake  <ebb9@byu.net>
8130
8131         Touch up previous patch.
8132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8133         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8134
8135         Convert strcasestr module to use Two-Way algorithm.
8136         * modules/strcasestr-simple: New module, based on the old
8137         strcasestr, but with Two-Way rather than KMP.
8138         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8139         * lib/string.in.h (rpl_strcasestr): Declare.
8140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8141         performance.
8142         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8143         * modules/string (Makefile.am): Support strcasestr.
8144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8145         * modules/strcasestr-tests (Depends-on): Check for alarm.
8146         * tests/test-strcasestr.c: Augment test.
8147         * lib/str-two-way.h: Clean up stray macro.
8148         * NEWS: Document new module.
8149         * MODULES.html.sh (string handling): Likewise.
8150         * doc/functions/strcasestr.texi: New file.
8151         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
8152         here, since it is not a POSIX function.
8153
8154 2008-01-14  Colin Watson  <cjwatson@debian.org>
8155             Bruno Haible  <bruno@clisp.org>
8156
8157         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8158         works fine; if not, set REPLACE_STRSIGNAL.
8159         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8161         REPLACE_STRSIGNAL.
8162         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8163         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8164         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8165
8166 2008-01-14  Bruno Haible  <bruno@clisp.org>
8167
8168         * modules/strsignal (Include): Change to <string.h>.
8169
8170 2008-01-14  Colin Watson  <cjwatson@debian.org>
8171
8172         * modules/argp (Notice): Add a notice recommending to change
8173         XGETTEXT_OPTIONS.
8174         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
8175
8176 2008-01-13  Colin Watson  <cjwatson@debian.org>
8177
8178         * modules/strsignal-tests: New file.
8179         * tests/test-strsignal.c: New file.
8180
8181         * lib/strsignal.c: New file, from glibc with modifications.
8182         * lib/siglist.h: New file, from glibc with modifications.
8183         * lib/string.in.h (strsignal): New declaration.
8184         * m4/strsignal.m4: New file.
8185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8186         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
8187         * modules/strsignal: New file.
8188         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
8189         HAVE_DECL_STRSIGNAL.
8190
8191 2008-01-13  Bruno Haible  <bruno@clisp.org>
8192
8193         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
8194         locale encoding is not ASCII. Needed for OpenBSD 4.0.
8195         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8196         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8197
8198 2008-01-13  Bruno Haible  <bruno@clisp.org>
8199
8200         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
8201         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
8202         * lib/argp.h (__attribute__): Likewise.
8203         * lib/c-stack.c (__attribute__): Likewise.
8204         * lib/error.h (__attribute__): Likewise.
8205         * lib/fts.c (__attribute__): Likewise.
8206         * lib/openat.h (__attribute__): Likewise.
8207         * lib/stdio.in.h (__attribute__): Likewise.
8208         * lib/string.in.h (__attribute__): Likewise.
8209         * lib/utimens.c (__attribute__): Likewise.
8210         * lib/vasnprintf.h (__attribute__): Likewise.
8211         * lib/xalloc.h (__attribute__): Likewise.
8212         * lib/xprintf.h (__attribute__): Likewise.
8213         * lib/xstrtol.h (__attribute__): Likewise.
8214         * lib/xvasprintf.h (__attribute__): Likewise.
8215
8216 2008-01-12  Bruno Haible  <bruno@clisp.org>
8217
8218         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
8219         * doc/glibc-headers/a.out.texi: New file.
8220         * doc/glibc-headers/aliases.texi: New file.
8221         * doc/glibc-headers/alloca.texi: New file.
8222         * doc/glibc-headers/ar.texi: New file.
8223         * doc/glibc-headers/argp.texi: New file.
8224         * doc/glibc-headers/argz.texi: New file.
8225         * doc/glibc-headers/byteswap.texi: New file.
8226         * doc/glibc-headers/crypt.texi: New file.
8227         * doc/glibc-headers/endian.texi: New file.
8228         * doc/glibc-headers/envz.texi: New file.
8229         * doc/glibc-headers/err.texi: New file.
8230         * doc/glibc-headers/error.texi: New file.
8231         * doc/glibc-headers/execinfo.texi: New file.
8232         * doc/glibc-headers/fpu_control.texi: New file.
8233         * doc/glibc-headers/fstab.texi: New file.
8234         * doc/glibc-headers/fts.texi: New file.
8235         * doc/glibc-headers/getopt.texi: New file.
8236         * doc/glibc-headers/ieee754.texi: New file.
8237         * doc/glibc-headers/ifaddrs.texi: New file.
8238         * doc/glibc-headers/libintl.texi: New file.
8239         * doc/glibc-headers/mcheck.texi: New file.
8240         * doc/glibc-headers/mntent.texi: New file.
8241         * doc/glibc-headers/obstack.texi: New file.
8242         * doc/glibc-headers/paths.texi: New file.
8243         * doc/glibc-headers/printf.texi: New file.
8244         * doc/glibc-headers/pty.texi: New file.
8245         * doc/glibc-headers/resolv.texi: New file.
8246         * doc/glibc-headers/shadow.texi: New file.
8247         * doc/glibc-headers/sysexits.texi: New file.
8248         * doc/glibc-headers/ttyent.texi: New file.
8249
8250 2008-01-12  Jim Meyering  <meyering@redhat.com>
8251
8252         announce-gen: emit Gnulib's git-based version string.
8253         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8254         New option --gnulib-version=V, where V is expected to be
8255         the output of running git describe in the gnulib directory.
8256         (get_tool_versions): Request feedback on xdelta.  I suspect it's
8257         not useful, and plan to stop publishing an xdelta file with each
8258         coreutils release.
8259
8260         * build-aux/announce-gen: Also check for lzma-compressed files.
8261
8262 2008-01-11  Bruno Haible  <bruno@clisp.org>
8263
8264         * tests/test-memmem.c (main): Increase maximum allowed time.
8265         * tests/test-strstr.c (main): Likewise.
8266
8267 2008-01-11  Bruno Haible  <bruno@clisp.org>
8268
8269         * doc/functions/memmem.texi: Add more precisions about platforms.
8270         * doc/functions/strstr.texi: Likewise.
8271
8272 2008-01-10  Eric Blake  <ebb9@byu.net>
8273
8274         * m4/strstr.m4: Delete cruft from copy-n-paste.
8275         Reported by Bruno Haible.
8276
8277 2008-01-10  Bruno Haible  <bruno@clisp.org>
8278
8279         Make c-strstr rely on strstr.
8280         * lib/c-strstr.c: Don't include str-kmp.h.
8281         (c_strstr): Define in terms of strstr.
8282         * modules/c-strstr (Files): Remove lib/str-kmp.h.
8283         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8284
8285 2008-01-10  Bruno Haible  <bruno@clisp.org>
8286
8287         * doc/gnulib.texi (String Functions in C Locale): New section.
8288         * doc/c-ctype.texi: New file.
8289         * doc/c-strcase.texi: New file.
8290         * doc/c-strcaseeq.texi: New file.
8291         * doc/c-strcasestr.texi: New file.
8292         * doc/c-strstr.texi: New file.
8293         * doc/c-strtod.texi: New file.
8294         * doc/c-strtold.texi: New file.
8295
8296 2008-01-10  Eric Blake  <ebb9@byu.net>
8297
8298         * lib/relocatable.h: Fix a comment.
8299
8300 2008-01-10  Eric Blake  <ebb9@byu.net>
8301
8302         Share two-way algorithm.
8303         * lib/str-two-way.h: New file, merged from...
8304         * lib/memmem.c: ...here...
8305         * lib/strstr.c: ...and here.
8306         * modules/memmem (Files): Use it.
8307         * modules/strstr (Files): Likewise.
8308
8309         Avoid quadratic strstr implementations.
8310         * lib/strstr.c: New file.
8311         * m4/strstr.m4: Likewise.
8312         * modules/strstr: Likewise.
8313         * modules/strstr-tests: Likewise.
8314         * tests/test-strstr.c: Likewise.
8315         * lib/string.in.h (rpl_strstr): Declare.
8316         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8318         * modules/string (Makefile.am): Likewise.
8319         * MODULES.html.sh (string handling): Mention new module.
8320         * doc/functions/strstr.texi (strstr): Document the bug.
8321
8322 2008-01-10  Bruno Haible  <bruno@clisp.org>
8323
8324         * lib/relocatable.h (relocate): State whether result is freshly
8325         allocated or not.
8326         * lib/relocatable.c (relocate): Return a freshly allocated string
8327         instead of a pointer to a privately held string.
8328         Reported by Sylvain Beucler <beuc@gnu.org>.
8329
8330 2008-01-10  Colin Watson  <cjwatson@debian.org>
8331
8332         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8333         s/S_ISNLK/S_ISLNK/.
8334
8335 2008-01-09  Bruno Haible  <bruno@clisp.org>
8336
8337         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8338         and other files.
8339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8340         if it's only a guess.
8341         * modules/memmem: Simplify by depending on memmem-simple.
8342
8343 2008-01-09  Bruno Haible  <bruno@clisp.org>
8344
8345         Work around OpenBSD 4.0 tdelete() bug.
8346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8347         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8348         macros and don't redefine the enum values.
8349         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8350         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8351         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8352
8353 2008-01-09  Bruno Haible  <bruno@clisp.org>
8354
8355         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8356         (main): Don't perform the tests if setlocale did not install a UTF-8
8357         locale. Needed on OpenBSD 4.0.
8358         * modules/wcwidth-tests (Depends-on): Add localcharset.
8359
8360 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8361
8362         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8363         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8364         * NEWS: announce this.
8365         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8366
8367 2008-01-09  Simon Josefsson  <simon@josefsson.org>
8368         and Eric Blake  <ebb9@byu.net>
8369
8370         Add memmem-simple module.
8371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8372         (gl_FUNC_MEMMEM): Separate performance from presence checks.
8373         * modules/memmem-simple: New file.
8374         * modules/memmem (Description): Tweak.
8375         * MODULES.html.sh (string handling): Mention new module.
8376         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8377         addressed by memmem-simple.
8378         * NEWS: Document the difference.
8379
8380 2008-01-09  Eric Blake  <ebb9@byu.net>
8381
8382         Give gcc some memmem optimization hints.
8383         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8384         (strcasestr): Declare as pure.
8385         * modules/memmem (Maintainer): Claim my implementation.
8386
8387 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8388
8389         Support AIX 6.1 and higher.
8390         * build-aux/config.libpath: Likewise.
8391         * build-aux/config.rpath: Likewise.
8392
8393 2008-01-08  Jim Meyering  <meyering@redhat.com>
8394             Bruno Haible  <bruno@clisp.org>
8395
8396         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8397         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8398         Reported by Peter Fales in
8399         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8400
8401 2008-01-08  Bruno Haible  <bruno@clisp.org>
8402
8403         * modules/unictype/category-of (Depends-on): Add
8404         unictype/category-none.
8405         * modules/unictype/category-and-tests (Depends-on): Add
8406         unictype/category-{L,N,Lu,Nd}.
8407         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8408         * modules/unictype/category-or-tests (Depends-on): Add
8409         unictype/category-{L,N}.
8410         * modules/unictype/category-name-tests (Depends-on): Add
8411         unictype/category-{Z,Nl}.
8412         Reported by Simon Josefsson.
8413
8414 2008-01-08  Bruno Haible  <bruno@clisp.org>
8415
8416         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8417         convention better.
8418         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8419         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8420         Reported by Peter Miller <millerp@canb.auug.org.au>.
8421
8422 2008-01-08  Eric Blake  <ebb9@byu.net>
8423
8424         Rewrite memmem to guarantee linear complexity without malloc.
8425         * lib/memmem.c (memmem): Use Two-Way rather than
8426         Knuth-Morris-Pratt, to allow O(1) space usage.
8427         (critical_factorization, two_way_short_needle)
8428         (two_way_long_needle): New functions.
8429         (knuth_morris_pratt): Delete.
8430         * modules/memmem (Depends-on): No longer need malloca or stdbool.
8431         Add stdint.
8432         * tests/test-memmem.c (main): Add tests for periodic needle and
8433         sublinear performance.
8434         * doc/functions/memmem.texi (memmem): Document other deficiencies
8435         in cygwin and older glibc.
8436
8437 2008-01-08  Bruno Haible  <bruno@clisp.org>
8438
8439         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8440         augmentation.
8441
8442 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
8443
8444         Add a configure time option: --disable-acl.
8445         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8446         AC_ARG_ENABLE(acl).
8447
8448 2008-01-06  Simon Josefsson  <simon@josefsson.org>
8449
8450         * tests/test-localename.c: Don't include obsolete "setenv.h".
8451
8452         * modules/localename-tests (Depends-on): Need unsetenv.
8453
8454 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8455
8456         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8457
8458 2008-01-06  Colin Watson  <cjwatson@debian.org>
8459
8460         * users.txt: Add man-db.
8461
8462 2008-01-07  Bruno Haible  <bruno@clisp.org>
8463
8464         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8465         previous section name.
8466
8467 2008-01-07  Bruno Haible  <bruno@clisp.org>
8468
8469         * lib/progname.c (set_program_name): Don't strip off a leading
8470         "lt-" prefix outside a .libs directory.
8471         Suggested by Paul Eggert.
8472
8473 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
8474             Bruno Haible  <bruno@clisp.org>
8475
8476         Improve memory cleanup in 'relocatable' module.
8477         * lib/relocatable.h (compute_curr_prefix): Change return type to
8478         'char *'.
8479         * lib/relocatable.c (compute_curr_prefix): Change return type to
8480         'char *'. Free curr_installdir after use.
8481         (relocate): Free curr_prefix_better after use.
8482         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8483
8484 2008-01-01  Bruno Haible  <bruno@clisp.org>
8485
8486         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8487         failure on older glibc systems.
8488         Reported by Peter Fales <psfales@alcatel-lucent.com>.
8489
8490 2008-01-05  Eric Blake  <ebb9@byu.net>
8491
8492         Avoid quadratic system memmem.
8493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8494         Reported by Ralf Wildenhues.
8495
8496         Fix memmem test for mingw.
8497         * modules/memmem-tests (configure.ac): Check for alarm.
8498         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8499         it.
8500         * doc/functions/memmem.texi: New file.
8501         * doc/gnulib.texi (Function Substitutes): Add memmem.
8502         Reported by Bruno Haible.
8503
8504 2008-01-04  Bruno Haible  <bruno@clisp.org>
8505
8506         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8507         Require gl_HEADER_STRINGS_H_DEFAULTS, not
8508         gl_HEADER_STRING_H_DEFAULTS.
8509
8510 2008-01-04  Eric Blake  <ebb9@byu.net>
8511
8512         Shorten duration of memmem test.
8513         * tests/test-memmem.c (main): Use alarm to declare failure if test
8514         is taking too long.
8515         Reported by Ralf Wildenhues.
8516
8517 2007-12-21  Simon Josefsson  <simon@josefsson.org>
8518
8519         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8520         string, needed by strerror.
8521
8522 2008-01-03  Colin Watson  <cjwatson@debian.org>
8523             Bruno Haible  <bruno@clisp.org>
8524
8525         * doc/gnulib-tool.texi (Localization): New section.
8526
8527 2008-01-02  Bruno Haible  <bruno@clisp.org>
8528
8529         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8530         variables to 'unsigned char *' type.
8531         Reported by Paul Eggert.
8532
8533 2008-01-02  Jim Meyering  <jim@meyering.net>
8534
8535         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8536
8537 2007-12-31  Jim Meyering  <jim@meyering.net>
8538
8539         Avoid use of private FTS type name.
8540         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8541
8542 2007-12-30  Karl Berry  <karl@gnu.org>
8543
8544         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8545         work around defect in Texinfo and/or the standalone Info browser.
8546
8547 2007-12-30  Bruno Haible  <bruno@clisp.org>
8548
8549         Unify 5 copies of the KMP code.
8550         * lib/str-kmp.h: New file.
8551         * lib/c-strcasestr.c: Include str-kmp.h.
8552         (knuth_morris_pratt): Remove function.
8553         (c_strcasestr): Update.
8554         * lib/c-strstr.c: Include str-kmp.h.
8555         (knuth_morris_pratt): Remove function.
8556         (c_strcasestr): Update.
8557         * lib/mbscasestr.c: Include str-kmp.h.
8558         (knuth_morris_pratt_unibyte): Remove function.
8559         * lib/mbsstr.c: Include str-kmp.h.
8560         (knuth_morris_pratt_unibyte): Remove function.
8561         * lib/strcasestr.c: Include str-kmp.h.
8562         (knuth_morris_pratt): Remove function.
8563         (strcasestr): Update.
8564         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8565         * modules/c-strstr (Files): Likewise.
8566         * modules/mbscasestr (Files): Likewise.
8567         * modules/mbsstr (Files): Likewise.
8568         * modules/strcasestr (Files): Likewise.
8569         Suggested by Paul Eggert.
8570
8571 2007-12-30  Bruno Haible  <bruno@clisp.org>
8572
8573         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8574         defined.
8575
8576 2007-12-30  Bruno Haible  <bruno@clisp.org>
8577
8578         * lib/xmalloca.h: Include xalloc.h.
8579         (xnmalloca): New macro.
8580
8581 2007-12-30  Bruno Haible  <bruno@clisp.org>
8582
8583         * lib/malloca.h (nmalloca): New macro.
8584         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8585         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8586         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8587         knuth_morris_pratt_multibyte): Likewise.
8588         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8589         knuth_morris_pratt_multibyte): Likewise.
8590         * lib/memmem.c (knuth_morris_pratt): Likewise.
8591         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8592
8593 2007-12-25  Bruno Haible  <bruno@clisp.org>
8594
8595         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8596         * lib/glob.c: Don't include openat.h.
8597         (link_exists2_p): Add back the code that deals with the
8598         !GLOB_ALTDIRFUNC case.
8599         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8600         let it do the filename concatenation.
8601         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8602         * modules/glob (Depends-on): Remove openat.
8603
8604 2007-12-31  Bruno Haible  <bruno@clisp.org>
8605
8606         * modules/dirfd (License): Change to LGPLv2+.
8607         Approved by Jim Meyering.
8608
8609 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8610
8611         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8612         when multiplying M by sizeof (size_t).
8613
8614 2007-12-10  Martin Lambers  <marlam@marlam.de>
8615
8616         Override getpagesize on mingw.
8617         * lib/getpagesize.c: New file.
8618         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8619         * modules/getpagesize (Files): Add lib/getpagesize.c.
8620         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8622         REPLACE_GETPAGESIZE.
8623         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8624
8625 2007-12-25  Bruno Haible  <bruno@clisp.org>
8626
8627         * modules/localcharset (Notice): New field.
8628         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8629         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8630
8631 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8632             Bruno Haible  <bruno@clisp.org>
8633
8634         Avoid using the syntax symbol() in formatted documentation.
8635         * MODULES.html.sh (func_module): When replacing symbol() with a
8636         hyperlink, remove the parentheses. Show an error if some remain.
8637         Recognize and render the '...' syntax.
8638         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8639         Rework. Add paragraph about GCC's inlining.
8640         * doc/alloca.texi: Likewise.
8641         * doc/error.texi: Remove parentheses from symbol reference.
8642         * doc/gnulib-intro.texi: Likewise.
8643         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8644         * modules/fnmatch (Description): Reword to say "the ... function".
8645         * modules/full-read (Description): Likewise.
8646         * modules/full-write (Description): Likewise.
8647         * modules/safe-read (Description): Likewise.
8648         * modules/safe-write (Description): Likewise.
8649         * modules/strchrnul (Description): Likewise.
8650         * modules/trim (Description): Likewise.
8651         * modules/error (Description): Remove parentheses from symbol
8652         references.
8653         * modules/verror (Description): Likewise.
8654         Reported by Karl Berry.
8655
8656 2007-12-25  Bruno Haible  <bruno@clisp.org>
8657
8658         Fixup after 2007-10-16 commit.
8659         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8660
8661 2007-12-24  Bruno Haible  <bruno@clisp.org>
8662
8663         Make --enable-relocatable work with DESTDIR.
8664         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8665         to compute installdir from destprog.
8666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8667         also set the RELOC_DESTDIR variable.
8668         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8669
8670 2007-12-24  Bruno Haible  <bruno@clisp.org>
8671
8672         Fix link error due to xalloc_die().
8673         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8674         of xreadlink.
8675         * lib/relocwrapper.c: Update comments.
8676         * build-aux/install-reloc: Remove xreadlink.c from file list.
8677         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8678         xreadlink.c.
8679         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8680
8681 2007-12-24  Bruno Haible  <bruno@clisp.org>
8682
8683         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8684         * lib/setenv.h: Remove file.
8685         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8686         lib/setenv.h.
8687         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8688         (Depends-on): Add stdlib.
8689         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8690         gl_FUNC_UNSETENV.
8691         (Include): Replace setenv.h with <stdlib.h>.
8692         * modules/unsetenv: New file.
8693         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8694         * lib/unsetenv.c: Include <stdlib.h> first.
8695         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8696         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8697         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8698         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8699         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8700         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8702         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8703         * doc/functions/unsetenv.texi: Update.
8704         * modules/xsetenv (Depends-on): Add unsetenv.
8705         * modules/getdate (Depends-on): Likewise.
8706         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8707         * lib/xsetenv.c: Don't include setenv.h.
8708         * lib/getdate.y: Likewise.
8709         * lib/relocwrapper.c: Likewise.
8710         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8711         (Depends-on): Add stdlib.
8712         * NEWS: Mention the changes.
8713         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8714
8715 2007-12-23  Bruno Haible  <bruno@clisp.org>
8716
8717         * lib/memmem.c (memmem): Use lowercase variable names. Tab
8718         indentation.
8719
8720 2007-12-23  Bruno Haible  <bruno@clisp.org>
8721
8722         * lib/c-strcasestr.c: Add more comments.
8723         * lib/c-strstr.c: Likewise.
8724         * lib/mbscasestr.c: Likewise.
8725         * lib/mbsstr.c: Likewise.
8726         * lib/strcasestr.c: Likewise.
8727         * lib/memmem.c: Likewise.
8728
8729 2007-12-23  Bruno Haible  <bruno@clisp.org>
8730
8731         * tests/test-memmem.c: Include <string.h> first.
8732
8733 2007-12-22  Bruno Haible  <bruno@clisp.org>
8734
8735         * gnulib-tool (func_create_testdir): Change $auxdir while generating
8736         the contents of $testsbase.
8737         Reported by Ralf Wildenhues.
8738
8739 2007-12-22  Bruno Haible  <bruno@clisp.org>
8740
8741         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8742         two variables local_ldadd_before, local_ldadd_last.
8743
8744 2007-12-20  Eric Blake  <ebb9@byu.net>
8745
8746         Work around circular library issue when cross-compiling.
8747         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8748         that progname.o does not need to pull in rpl_memcmp.
8749
8750 2007-12-19  Eric Blake  <ebb9@byu.net>
8751
8752         Fix memmem to avoid O(n^2) worst-case complexity.
8753         * lib/memmem.c (knuth_morris_pratt): New function.
8754         (memmem): Use it if first few naive iterations fail.
8755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8756         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8757         * modules/memchr (License): Likewise.
8758         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8759         malloca.
8760         * tests/test-memmem.c: Rewrite, borrowing ideas from
8761         test-mbsstr1.c; the old version wouldn't even compile!
8762         * modules/memmem-tests: New file.
8763         * lib/string.in.h (rpl_memmem): Add declaration.
8764         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8766         REPLACE_MEMMEM.
8767
8768 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8769
8770         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8771         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8772         before any system include files, and undef after them all.  This
8773         should fix a problem on VMS reported by John E. Malmberg in
8774         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8775
8776 2007-12-17  Eric Blake  <ebb9@byu.net>
8777
8778         Revert addition of verify, for BSD/OS.
8779         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8780         can't handle large files, for the sake of obsolete platforms.
8781         * modules/fseeko (Depends-on): Remove verify.
8782         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8783         * doc/functions/ftello.texi (ftello): Likewise.
8784         * doc/functions/fgetpos.texi (fgetpos): Likewise.
8785         Reported by Larry Jones.
8786
8787 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
8788
8789         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8790         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8791
8792 2007-12-17  Jim Meyering  <meyering@redhat.com>
8793
8794         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8795         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8796         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8797         * modules/getcwd (Depends-on): Add openat.
8798         Reported by Petr Salinger.
8799
8800 2007-12-17  Bruno Haible  <bruno@clisp.org>
8801
8802         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8803         avoid a segmentation fault of the configure test on x86_64 systems.
8804
8805 2007-12-15  Jim Meyering  <meyering@redhat.com>
8806
8807         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8808
8809 2007-12-13  Eric Blake  <ebb9@byu.net>
8810
8811         Another fseek test.
8812         * tests/test-fseek.c (main): Also test ungetc handling.
8813         * tests/test-fseeko.c (main): Likewise.
8814         * modules/fseeko (Depends-on): Add verify.
8815         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8816         large.
8817         Reported by Larry Jones.
8818
8819         Fix fseeko on mingw.
8820         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8821         seek.
8822
8823         Beef up fseek tests.
8824         * tests/test-fseek.c (main): Also test eof handling.
8825         * tests/test-fseeko.c (main): Likewise.
8826         Reported by Larry Jones.
8827
8828 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
8829
8830         Fix fseeko on BSD-based platforms.
8831         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8832         successful seek.
8833
8834 2007-12-12  Eric Blake  <ebb9@byu.net>
8835
8836         Allow circular dependency of separate libtests.a
8837         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8838         when use_libtests.
8839
8840 2007-12-11  Eric Blake  <ebb9@byu.net>
8841
8842         Fix bug with -0.0L in previous patch.
8843         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8844         * tests/test-isnan.c (main): Also test on zeroes.
8845         * tests/test-isnanf.c (main): Likewise.
8846         * tests/test-isnanl.h (main): Likewise.
8847
8848         Detect pseudo-denormals on x86 even when cross-compiling.
8849         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8850         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8851         invalid bit patterns that happen to satisfy ==.
8852
8853         Avoid link failures with separate libtests.a.
8854         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8855         last, to satisfy circular dependencies.
8856
8857 2007-12-11  Eric Blake  <ebb9@byu.net>
8858         and Bruno Haible  <bruno@clisp.org>
8859
8860         Fix OpenBSD 4.0 <float.h> handling of long double.
8861         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8862         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8863         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8864
8865 2007-12-11  Jim Meyering  <meyering@redhat.com>
8866
8867         * users.txt: Add libvirt.
8868
8869         Support versions of autoconf prior to 2.59c.
8870         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8871         if it is not already defined.
8872
8873 2007-12-09  Bruno Haible  <bruno@clisp.org>
8874
8875         Let 'gnulib-tool --import' collect sources needed for the tests in
8876         tests/ rather than in lib/.
8877         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8878         argument. If true, add rules to generate libtests.a, and put libtests.a
8879         into $(LDADD). Consider source files in subdirectories and set
8880         uses_subdirs.
8881         (func_emit_initmacro_start, func_emit_initmacro_end,
8882         func_emit_initmacro_done): Pass all arguments explicitly.
8883         (func_import): Determine two module lists main_modules,
8884         testsrelated_modules. Determine use_libtests. Determine two variables
8885         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8886         instead of just sed_transform_lib_file. Determine two variables
8887         main_files and testsrelated_files. Compute 'files' as the union of
8888         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8889         func_add_or_update. In the generated gnulib-comp.m4, collect the
8890         object files for tests/ in different variables than those for lib/.
8891         Substitute LIBTESTS_LIBDEPS.
8892         (func_create_testdir): Combine the uses_subdirs results from
8893         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8894
8895 2007-12-09  Bruno Haible  <bruno@clisp.org>
8896
8897         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8898         the build-aux directory.
8899
8900 2007-12-09  Bruno Haible  <bruno@clisp.org>
8901
8902         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8903         introduced on 2006-09-09.
8904
8905 2007-12-07  Jim Meyering  <meyering@redhat.com>
8906
8907         Let these macros work also with autoconf-2.59.
8908         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
8909         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8910         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8911
8912 2007-12-06  Jim Meyering  <meyering@redhat.com>
8913
8914         Avoid a configure-time syntax error in gl_FUNC_ACL.
8915         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8916         function in each branch, before testing the cache variable.
8917
8918 2007-12-04  Eric Blake  <ebb9@byu.net>
8919
8920         Make scripts executable.
8921         * build-aux/config.guess: Add execute permissions.
8922         * build-aux/config.sub: Likewise.
8923         * build-aux/gendocs.sh: Likewise.
8924
8925         Fix frexp on mingw.
8926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8927         cross-compiling.
8928         * doc/functions/frexp.texi (frexp): Document the bug.
8929
8930         Make cygwin fseeko check more reliable.
8931         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8932         version numbers, rather than unrelated feature check.
8933         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8934         * doc/functions/ftello.texi (ftello): Likewise.
8935         Reported by Bruno Haible.
8936
8937         * m4/strerror.m4: Bump version number.
8938
8939 2007-12-03  Bruno Haible  <bruno@clisp.org>
8940
8941         * doc/functions/mprotect.texi: Mention the mingw problem.
8942
8943 2007-12-03  Eric Blake  <ebb9@byu.net>
8944
8945         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8946         REPLACE_STRERROR is initialized before this macro.
8947
8948 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
8951         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8952         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
8953         put -lsec in even for programs other than 'ls'.  This fixes a problem
8954         for gettext reported by Bruno Haible in
8955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8956         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8957         Add support for Solaris 10.  This isn't efficient, but should get the
8958         job done for now.
8959
8960 2007-12-03  James Youngman  <jay@gnu.org>
8961
8962         * doc/regexprops-generic.texi: change "an close-group" to "a
8963         close-group" and "illegal" to "not allowed".
8964
8965 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8966
8967         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8968         pr_byname.h. Needed for the rare case when the maintainer has done
8969         "make maintainer-clean" in the source directory and then attempts a
8970         build outside the source directory.
8971         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8972         scripts_byname.h.
8973
8974 2007-12-02  Martin Lambers <marlam@marlam.de>
8975             Bruno Haible  <bruno@clisp.org>
8976
8977         * lib/getpagesize.h: Remove file.
8978         * lib/unistd.in.h: Include declaration of getpagesize here.
8979         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8980         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8981         HAVE_SYS_PARAM_H.
8982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8983         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8984         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8985         (Depends-on): Add unistd.
8986         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8987         (Include): Use <unistd.h> instead of getpagesize.h.
8988         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8989         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8990         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8991         gl_GETPAGESIZE invocation, already handled by module dependency.
8992         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8993
8994 2007-12-02  Bruno Haible  <bruno@clisp.org>
8995
8996         * modules/strings-tests: New file.
8997         * tests/test-strings.c: New file.
8998
8999         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
9000         * lib/strings.in.h: New file.
9001         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
9002         * m4/strings_h.m4: New file.
9003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
9004         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
9005         * modules/strings: New file.
9006         * modules/string (Makefile.am): Update.
9007         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
9008         Reported by Karl Berry.
9009
9010 2007-12-01  Eric Blake  <ebb9@byu.net>
9011
9012         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
9013         accomodate fix in cygwin 1.5.25.
9014
9015 2007-12-01  Jim Meyering  <meyering@redhat.com>
9016
9017         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
9018         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
9019         that would inhibit utf8-optimization of a regexp containing line-
9020         or buffer-anchors, e.g., `^', `$'.
9021
9022 2007-11-30  Bruno Haible  <bruno@clisp.org>
9023
9024         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
9025         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
9026         glthread_recursive_lock_init.
9027         * lib/lock.c (glthread_recursive_lock_init)
9028         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
9029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9030
9031 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9032
9033         New function qset_acl, like set_acl but with syscall semantics.
9034         * lib/acl.h (qset_acl): New decl.
9035         * lib/acl.c (qset_acl): New function.
9036         (set_acl): Use new function.  Use more-consistent diagnostics.
9037
9038 2007-11-28  Jim Meyering  <meyering@redhat.com>
9039
9040         * modules/physmem (License): Change from GPL to LGPLv2+.
9041
9042 2007-11-26  Bruno Haible  <bruno@clisp.org>
9043
9044         * lib/vasnprintf.c (decode_long_double): Don't abort if the
9045         'long double' type has excess precision.
9046         Reported by Jim Meyering in
9047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
9048
9049 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9050
9051         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
9052         Sync from <http://gnu.org/licenses>.
9053         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
9054         with license text from same location.
9055         * doc/maintain.texi, doc/standards.texi:  Sync from
9056         <http://savannah.gnu.org/projects/gnustandards>.
9057
9058 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
9059         and Jim Meyering  <meyering@redhat.com>
9060
9061         Adjust getdate' grammar to accept a slightly more regular language.
9062         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
9063         Before, the former was rejected.
9064         * lib/getdate.y (digits_to_date_time): New function, factored
9065         out of ...
9066         (number): ...here.  Just call digits_to_date_time.
9067         (hybrid): New non-terminal to handle an <unsigned number,
9068         signed relative offset> sequence consistently.
9069
9070 2007-11-18  Jim Meyering  <meyering@redhat.com>
9071
9072         Pull my changes from coreutils:
9073         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
9074         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
9075         use of $gnulib_tool_option_extras, so that it's separated from the
9076         preceding argument.
9077
9078         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
9079         * build-aux/bootstrap (cp_mark_as_generated): Create any required
9080         parent destination directories before copying a file into place.
9081
9082 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
9083
9084         bootstrap: work also with 4-argument variant of AC_INIT
9085         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
9086
9087 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9088
9089         Port test-getaddrinfo to Solaris.
9090         Problem reported by Bruno Haible in
9091         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
9092         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
9093         explanation of setting 'hints'.
9094         Don't reject an implementation merely because it returns EAI_SERVICE.
9095         (EAI_SERVICE): Define to 0 if not defined.
9096
9097 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         The license of gnu-make and posix-shell is now "GPLed build tool".
9100         * modules/gnu-make (License): Likewise.
9101         * modules/posix-shell (License): Likewise.
9102
9103         New module posix-shell, for determining a POSIX shell
9104         or perhaps something that is close enough to a POSIX shell.
9105         * m4/posix-shell.m4: New file.
9106         * modules/posix-shell: New file.
9107
9108         * MODULES.html.sh: Mention new module.
9109
9110         New module gnu-make, for determining whether we're using GNU Make.
9111         * m4/gnu-make.m4: New file.
9112         * modules/gnu-make: New file.
9113         * MODULES.html.sh: Mention new module.
9114
9115 2007-11-14  Jim Meyering  <meyering@redhat.com>
9116
9117         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9118         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9119         use this macro to create a function _definition_.
9120         Remove useless "#undef ARGMATCH_DIE".
9121
9122 2007-11-14  Bruno Haible  <bruno@clisp.org>
9123
9124         * lib/config.charset: Update for OpenBSD 4.1.
9125         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9126
9127 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9128
9129         Document 64-bit #if problems in stdint.texi.
9130         * doc/headers/stdint.texi (stdint.h): Mention problems with
9131         64-bit-#if, and how to work around them.
9132
9133         Don't insist on 'long long int' support in the preprocessor.  It
9134         breaks too many things.  For example, PRIdMAX still uses a 'long
9135         long int' format with the latest Sun compiler, even though
9136         HAVE_LONG_LONG_INT isn't defined due to that compiler's
9137         preprocessor problem.  This causes the latest coreutils to dump
9138         core on Solaris 10 sparc with the Sun C compiler.
9139         Instead, fix the 2007-10-16 problem in a different way, by evaluating
9140         the troublesome expressions at configure-time, not at #if-time.
9141         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9142         preprocessor.
9143         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9144         compile-time C checks, done at 'configure'-time.
9145         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9146         * modules/inttypes (Makefile): Substitute the new symbols that
9147         gl_INTTYPES_H now generates.
9148         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9149
9150 2007-11-12  Bruno Haible  <bruno@clisp.org>
9151
9152         Tests for Unicode character classification functions.
9153
9154         * modules/unictype/bidicategory-byname-tests: New file.
9155         * modules/unictype/bidicategory-name-tests: New file.
9156         * modules/unictype/bidicategory-of-tests: New file.
9157         * modules/unictype/bidicategory-test-tests: New file.
9158         * modules/unictype/block-list-tests: New file.
9159         * modules/unictype/block-of-tests: New file.
9160         * modules/unictype/block-test-tests: New file.
9161         * modules/unictype/category-C-tests: New file.
9162         * modules/unictype/category-Cc-tests: New file.
9163         * modules/unictype/category-Cf-tests: New file.
9164         * modules/unictype/category-Cn-tests: New file.
9165         * modules/unictype/category-Co-tests: New file.
9166         * modules/unictype/category-Cs-tests: New file.
9167         * modules/unictype/category-L-tests: New file.
9168         * modules/unictype/category-Ll-tests: New file.
9169         * modules/unictype/category-Lm-tests: New file.
9170         * modules/unictype/category-Lo-tests: New file.
9171         * modules/unictype/category-Lt-tests: New file.
9172         * modules/unictype/category-Lu-tests: New file.
9173         * modules/unictype/category-M-tests: New file.
9174         * modules/unictype/category-Mc-tests: New file.
9175         * modules/unictype/category-Me-tests: New file.
9176         * modules/unictype/category-Mn-tests: New file.
9177         * modules/unictype/category-N-tests: New file.
9178         * modules/unictype/category-Nd-tests: New file.
9179         * modules/unictype/category-Nl-tests: New file.
9180         * modules/unictype/category-No-tests: New file.
9181         * modules/unictype/category-P-tests: New file.
9182         * modules/unictype/category-Pc-tests: New file.
9183         * modules/unictype/category-Pd-tests: New file.
9184         * modules/unictype/category-Pe-tests: New file.
9185         * modules/unictype/category-Pf-tests: New file.
9186         * modules/unictype/category-Pi-tests: New file.
9187         * modules/unictype/category-Po-tests: New file.
9188         * modules/unictype/category-Ps-tests: New file.
9189         * modules/unictype/category-S-tests: New file.
9190         * modules/unictype/category-Sc-tests: New file.
9191         * modules/unictype/category-Sk-tests: New file.
9192         * modules/unictype/category-Sm-tests: New file.
9193         * modules/unictype/category-So-tests: New file.
9194         * modules/unictype/category-Z-tests: New file.
9195         * modules/unictype/category-Zl-tests: New file.
9196         * modules/unictype/category-Zp-tests: New file.
9197         * modules/unictype/category-Zs-tests: New file.
9198         * modules/unictype/category-and-not-tests: New file.
9199         * modules/unictype/category-and-tests: New file.
9200         * modules/unictype/category-byname-tests: New file.
9201         * modules/unictype/category-name-tests: New file.
9202         * modules/unictype/category-none-tests: New file.
9203         * modules/unictype/category-of-tests: New file.
9204         * modules/unictype/category-or-tests: New file.
9205         * modules/unictype/category-test-withtable-tests: New file.
9206         * modules/unictype/combining-class-tests: New file.
9207         * modules/unictype/ctype-alnum-tests: New file.
9208         * modules/unictype/ctype-alpha-tests: New file.
9209         * modules/unictype/ctype-blank-tests: New file.
9210         * modules/unictype/ctype-cntrl-tests: New file.
9211         * modules/unictype/ctype-digit-tests: New file.
9212         * modules/unictype/ctype-graph-tests: New file.
9213         * modules/unictype/ctype-lower-tests: New file.
9214         * modules/unictype/ctype-print-tests: New file.
9215         * modules/unictype/ctype-punct-tests: New file.
9216         * modules/unictype/ctype-space-tests: New file.
9217         * modules/unictype/ctype-upper-tests: New file.
9218         * modules/unictype/ctype-xdigit-tests: New file.
9219         * modules/unictype/decimal-digit-tests: New file.
9220         * modules/unictype/digit-tests: New file.
9221         * modules/unictype/mirror-tests: New file.
9222         * modules/unictype/numeric-tests: New file.
9223         * modules/unictype/property-alphabetic-tests: New file.
9224         * modules/unictype/property-ascii-hex-digit-tests: New file.
9225         * modules/unictype/property-bidi-arabic-digit-tests: New file.
9226         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
9227         * modules/unictype/property-bidi-block-separator-tests: New file.
9228         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
9229         * modules/unictype/property-bidi-common-separator-tests: New file.
9230         * modules/unictype/property-bidi-control-tests: New file.
9231         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
9232         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
9233         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
9234         * modules/unictype/property-bidi-european-digit-tests: New file.
9235         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
9236         * modules/unictype/property-bidi-left-to-right-tests: New file.
9237         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
9238         * modules/unictype/property-bidi-other-neutral-tests: New file.
9239         * modules/unictype/property-bidi-pdf-tests: New file.
9240         * modules/unictype/property-bidi-segment-separator-tests: New file.
9241         * modules/unictype/property-bidi-whitespace-tests: New file.
9242         * modules/unictype/property-byname-tests: New file.
9243         * modules/unictype/property-combining-tests: New file.
9244         * modules/unictype/property-composite-tests: New file.
9245         * modules/unictype/property-currency-symbol-tests: New file.
9246         * modules/unictype/property-dash-tests: New file.
9247         * modules/unictype/property-decimal-digit-tests: New file.
9248         * modules/unictype/property-default-ignorable-code-point-tests: New file.
9249         * modules/unictype/property-deprecated-tests: New file.
9250         * modules/unictype/property-diacritic-tests: New file.
9251         * modules/unictype/property-extender-tests: New file.
9252         * modules/unictype/property-format-control-tests: New file.
9253         * modules/unictype/property-grapheme-base-tests: New file.
9254         * modules/unictype/property-grapheme-extend-tests: New file.
9255         * modules/unictype/property-grapheme-link-tests: New file.
9256         * modules/unictype/property-hex-digit-tests: New file.
9257         * modules/unictype/property-hyphen-tests: New file.
9258         * modules/unictype/property-id-continue-tests: New file.
9259         * modules/unictype/property-id-start-tests: New file.
9260         * modules/unictype/property-ideographic-tests: New file.
9261         * modules/unictype/property-ids-binary-operator-tests: New file.
9262         * modules/unictype/property-ids-trinary-operator-tests: New file.
9263         * modules/unictype/property-ignorable-control-tests: New file.
9264         * modules/unictype/property-iso-control-tests: New file.
9265         * modules/unictype/property-join-control-tests: New file.
9266         * modules/unictype/property-left-of-pair-tests: New file.
9267         * modules/unictype/property-line-separator-tests: New file.
9268         * modules/unictype/property-logical-order-exception-tests: New file.
9269         * modules/unictype/property-lowercase-tests: New file.
9270         * modules/unictype/property-math-tests: New file.
9271         * modules/unictype/property-non-break-tests: New file.
9272         * modules/unictype/property-not-a-character-tests: New file.
9273         * modules/unictype/property-numeric-tests: New file.
9274         * modules/unictype/property-other-alphabetic-tests: New file.
9275         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9276         * modules/unictype/property-other-grapheme-extend-tests: New file.
9277         * modules/unictype/property-other-id-continue-tests: New file.
9278         * modules/unictype/property-other-id-start-tests: New file.
9279         * modules/unictype/property-other-lowercase-tests: New file.
9280         * modules/unictype/property-other-math-tests: New file.
9281         * modules/unictype/property-other-uppercase-tests: New file.
9282         * modules/unictype/property-paired-punctuation-tests: New file.
9283         * modules/unictype/property-paragraph-separator-tests: New file.
9284         * modules/unictype/property-pattern-syntax-tests: New file.
9285         * modules/unictype/property-pattern-white-space-tests: New file.
9286         * modules/unictype/property-private-use-tests: New file.
9287         * modules/unictype/property-punctuation-tests: New file.
9288         * modules/unictype/property-quotation-mark-tests: New file.
9289         * modules/unictype/property-radical-tests: New file.
9290         * modules/unictype/property-sentence-terminal-tests: New file.
9291         * modules/unictype/property-soft-dotted-tests: New file.
9292         * modules/unictype/property-space-tests: New file.
9293         * modules/unictype/property-terminal-punctuation-tests: New file.
9294         * modules/unictype/property-test-tests: New file.
9295         * modules/unictype/property-titlecase-tests: New file.
9296         * modules/unictype/property-unassigned-code-value-tests: New file.
9297         * modules/unictype/property-unified-ideograph-tests: New file.
9298         * modules/unictype/property-uppercase-tests: New file.
9299         * modules/unictype/property-variation-selector-tests: New file.
9300         * modules/unictype/property-white-space-tests: New file.
9301         * modules/unictype/property-xid-continue-tests: New file.
9302         * modules/unictype/property-xid-start-tests: New file.
9303         * modules/unictype/property-zero-width-tests: New file.
9304         * modules/unictype/scripts-tests: New file.
9305         * modules/unictype/syntax-c-ident-tests: New file.
9306         * modules/unictype/syntax-c-whitespace-tests: New file.
9307         * modules/unictype/syntax-java-ident-tests: New file.
9308         * modules/unictype/syntax-java-whitespace-tests: New file.
9309         * tests/unictype/test-bidi_byname.c: New file.
9310         * tests/unictype/test-bidi_name.c: New file.
9311         * tests/unictype/test-bidi_of.c: New file.
9312         * tests/unictype/test-bidi_test.c: New file.
9313         * tests/unictype/test-block_list.c: New file.
9314         * tests/unictype/test-block_of.c: New file.
9315         * tests/unictype/test-block_test.c: New file.
9316         * tests/unictype/test-categ_and.c: New file.
9317         * tests/unictype/test-categ_and_not.c: New file.
9318         * tests/unictype/test-categ_byname.c: New file.
9319         * tests/unictype/test-categ_name.c: New file.
9320         * tests/unictype/test-categ_none.c: New file.
9321         * tests/unictype/test-categ_of.c: New file.
9322         * tests/unictype/test-categ_or.c: New file.
9323         * tests/unictype/test-categ_test_withtable.c: New file.
9324         * tests/unictype/test-combining.c: New file.
9325         * tests/unictype/test-decdigit.c: New file.
9326         * tests/unictype/test-digit.c: New file.
9327         * tests/unictype/test-mirror.c: New file.
9328         * tests/unictype/test-numeric.c: New file.
9329         * tests/unictype/test-pr_byname.c: New file.
9330         * tests/unictype/test-pr_test.c: New file.
9331         * tests/unictype/test-predicate-part1.h: New file.
9332         * tests/unictype/test-predicate-part2.h: New file.
9333         * tests/unictype/test-scripts.c: New file.
9334         * tests/unictype/test-sy_c_ident.c: New file.
9335         * tests/unictype/test-sy_java_ident.c: New file.
9336
9337         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9338         for Unicode 5.0.0.
9339         * tests/unictype/test-categ_Cc.c: Likewise.
9340         * tests/unictype/test-categ_Cf.c: Likewise.
9341         * tests/unictype/test-categ_Cn.c: Likewise.
9342         * tests/unictype/test-categ_Co.c: Likewise.
9343         * tests/unictype/test-categ_Cs.c: Likewise.
9344         * tests/unictype/test-categ_L.c: Likewise.
9345         * tests/unictype/test-categ_Ll.c: Likewise.
9346         * tests/unictype/test-categ_Lm.c: Likewise.
9347         * tests/unictype/test-categ_Lo.c: Likewise.
9348         * tests/unictype/test-categ_Lt.c: Likewise.
9349         * tests/unictype/test-categ_Lu.c: Likewise.
9350         * tests/unictype/test-categ_M.c: Likewise.
9351         * tests/unictype/test-categ_Mc.c: Likewise.
9352         * tests/unictype/test-categ_Me.c: Likewise.
9353         * tests/unictype/test-categ_Mn.c: Likewise.
9354         * tests/unictype/test-categ_N.c: Likewise.
9355         * tests/unictype/test-categ_Nd.c: Likewise.
9356         * tests/unictype/test-categ_Nl.c: Likewise.
9357         * tests/unictype/test-categ_No.c: Likewise.
9358         * tests/unictype/test-categ_P.c: Likewise.
9359         * tests/unictype/test-categ_Pc.c: Likewise.
9360         * tests/unictype/test-categ_Pd.c: Likewise.
9361         * tests/unictype/test-categ_Pe.c: Likewise.
9362         * tests/unictype/test-categ_Pf.c: Likewise.
9363         * tests/unictype/test-categ_Pi.c: Likewise.
9364         * tests/unictype/test-categ_Po.c: Likewise.
9365         * tests/unictype/test-categ_Ps.c: Likewise.
9366         * tests/unictype/test-categ_S.c: Likewise.
9367         * tests/unictype/test-categ_Sc.c: Likewise.
9368         * tests/unictype/test-categ_Sk.c: Likewise.
9369         * tests/unictype/test-categ_Sm.c: Likewise.
9370         * tests/unictype/test-categ_So.c: Likewise.
9371         * tests/unictype/test-categ_Z.c: Likewise.
9372         * tests/unictype/test-categ_Zl.c: Likewise.
9373         * tests/unictype/test-categ_Zp.c: Likewise.
9374         * tests/unictype/test-categ_Zs.c: Likewise.
9375         * tests/unictype/test-ctype_alnum.c: Likewise.
9376         * tests/unictype/test-ctype_alpha.c: Likewise.
9377         * tests/unictype/test-ctype_blank.c: Likewise.
9378         * tests/unictype/test-ctype_cntrl.c: Likewise.
9379         * tests/unictype/test-ctype_digit.c: Likewise.
9380         * tests/unictype/test-ctype_graph.c: Likewise.
9381         * tests/unictype/test-ctype_lower.c: Likewise.
9382         * tests/unictype/test-ctype_print.c: Likewise.
9383         * tests/unictype/test-ctype_punct.c: Likewise.
9384         * tests/unictype/test-ctype_space.c: Likewise.
9385         * tests/unictype/test-ctype_upper.c: Likewise.
9386         * tests/unictype/test-ctype_xdigit.c: Likewise.
9387         * tests/unictype/test-decdigit.h: Likewise.
9388         * tests/unictype/test-digit.h: Likewise.
9389         * tests/unictype/test-numeric.h: Likewise.
9390         * tests/unictype/test-pr_alphabetic.c: Likewise.
9391         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9392         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9393         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9394         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9395         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9396         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9397         * tests/unictype/test-pr_bidi_control.c: Likewise.
9398         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9399         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9400         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9401         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9402         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9403         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9404         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9405         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9406         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9407         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9408         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9409         * tests/unictype/test-pr_combining.c: Likewise.
9410         * tests/unictype/test-pr_composite.c: Likewise.
9411         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9412         * tests/unictype/test-pr_dash.c: Likewise.
9413         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9414         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9415         * tests/unictype/test-pr_deprecated.c: Likewise.
9416         * tests/unictype/test-pr_diacritic.c: Likewise.
9417         * tests/unictype/test-pr_extender.c: Likewise.
9418         * tests/unictype/test-pr_format_control.c: Likewise.
9419         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9420         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9421         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9422         * tests/unictype/test-pr_hex_digit.c: Likewise.
9423         * tests/unictype/test-pr_hyphen.c: Likewise.
9424         * tests/unictype/test-pr_id_continue.c: Likewise.
9425         * tests/unictype/test-pr_id_start.c: Likewise.
9426         * tests/unictype/test-pr_ideographic.c: Likewise.
9427         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9428         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9429         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9430         * tests/unictype/test-pr_iso_control.c: Likewise.
9431         * tests/unictype/test-pr_join_control.c: Likewise.
9432         * tests/unictype/test-pr_left_of_pair.c: Likewise.
9433         * tests/unictype/test-pr_line_separator.c: Likewise.
9434         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9435         * tests/unictype/test-pr_lowercase.c: Likewise.
9436         * tests/unictype/test-pr_math.c: Likewise.
9437         * tests/unictype/test-pr_non_break.c: Likewise.
9438         * tests/unictype/test-pr_not_a_character.c: Likewise.
9439         * tests/unictype/test-pr_numeric.c: Likewise.
9440         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9441         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9442         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9443         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9444         * tests/unictype/test-pr_other_id_start.c: Likewise.
9445         * tests/unictype/test-pr_other_lowercase.c: Likewise.
9446         * tests/unictype/test-pr_other_math.c: Likewise.
9447         * tests/unictype/test-pr_other_uppercase.c: Likewise.
9448         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9449         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9450         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9451         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9452         * tests/unictype/test-pr_private_use.c: Likewise.
9453         * tests/unictype/test-pr_punctuation.c: Likewise.
9454         * tests/unictype/test-pr_quotation_mark.c: Likewise.
9455         * tests/unictype/test-pr_radical.c: Likewise.
9456         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9457         * tests/unictype/test-pr_soft_dotted.c: Likewise.
9458         * tests/unictype/test-pr_space.c: Likewise.
9459         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9460         * tests/unictype/test-pr_titlecase.c: Likewise.
9461         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9462         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9463         * tests/unictype/test-pr_uppercase.c: Likewise.
9464         * tests/unictype/test-pr_variation_selector.c: Likewise.
9465         * tests/unictype/test-pr_white_space.c: Likewise.
9466         * tests/unictype/test-pr_xid_continue.c: Likewise.
9467         * tests/unictype/test-pr_xid_start.c: Likewise.
9468         * tests/unictype/test-pr_zero_width.c: Likewise.
9469         * tests/unictype/test-sy_c_whitespace.c: Likewise.
9470         * tests/unictype/test-sy_java_whitespace.c: Likewise.
9471
9472 2007-11-12  Bruno Haible  <bruno@clisp.org>
9473
9474         Unicode character classification functions.
9475         * lib/unictype.h: New file.
9476         * modules/unictype/base: New file.
9477         * modules/unictype/category-L: New file.
9478         * modules/unictype/category-Lu: New file.
9479         * modules/unictype/category-Ll: New file.
9480         * modules/unictype/category-Lt: New file.
9481         * modules/unictype/category-Lm: New file.
9482         * modules/unictype/category-Lo: New file.
9483         * modules/unictype/category-M: New file.
9484         * modules/unictype/category-Mn: New file.
9485         * modules/unictype/category-Mc: New file.
9486         * modules/unictype/category-Me: New file.
9487         * modules/unictype/category-N: New file.
9488         * modules/unictype/category-Nd: New file.
9489         * modules/unictype/category-Nl: New file.
9490         * modules/unictype/category-No: New file.
9491         * modules/unictype/category-P: New file.
9492         * modules/unictype/category-Pc: New file.
9493         * modules/unictype/category-Pd: New file.
9494         * modules/unictype/category-Ps: New file.
9495         * modules/unictype/category-Pe: New file.
9496         * modules/unictype/category-Pi: New file.
9497         * modules/unictype/category-Pf: New file.
9498         * modules/unictype/category-Po: New file.
9499         * modules/unictype/category-S: New file.
9500         * modules/unictype/category-Sm: New file.
9501         * modules/unictype/category-Sc: New file.
9502         * modules/unictype/category-Sk: New file.
9503         * modules/unictype/category-So: New file.
9504         * modules/unictype/category-Z: New file.
9505         * modules/unictype/category-Zs: New file.
9506         * modules/unictype/category-Zl: New file.
9507         * modules/unictype/category-Zp: New file.
9508         * modules/unictype/category-C: New file.
9509         * modules/unictype/category-Cc: New file.
9510         * modules/unictype/category-Cf: New file.
9511         * modules/unictype/category-Cs: New file.
9512         * modules/unictype/category-Co: New file.
9513         * modules/unictype/category-Cn: New file.
9514         * modules/unictype/category-or: New file.
9515         * modules/unictype/category-of: New file.
9516         * modules/unictype/category-test: New file.
9517         * modules/unictype/category-test-withtable: New file.
9518         * modules/unictype/category-byname: New file.
9519         * modules/unictype/category-none: New file.
9520         * modules/unictype/category-and: New file.
9521         * modules/unictype/category-and-not: New file.
9522         * modules/unictype/category-name: New file.
9523         * modules/unictype/combining-class: New file.
9524         * modules/unictype/category-all: New file.
9525         * modules/unictype/bidicategory-all: New file.
9526         * modules/unictype/bidicategory-byname: New file.
9527         * modules/unictype/bidicategory-name: New file.
9528         * modules/unictype/bidicategory-of: New file.
9529         * modules/unictype/bidicategory-test: New file.
9530         * modules/unictype/decimal-digit: New file.
9531         * modules/unictype/digit: New file.
9532         * modules/unictype/numeric: New file.
9533         * modules/unictype/mirror: New file.
9534         * modules/unictype/property-white-space: New file.
9535         * modules/unictype/property-alphabetic: New file.
9536         * modules/unictype/property-other-alphabetic: New file.
9537         * modules/unictype/property-not-a-character: New file.
9538         * modules/unictype/property-default-ignorable-code-point: New file.
9539         * modules/unictype/property-other-default-ignorable-code-point: New
9540         file.
9541         * modules/unictype/property-deprecated: New file.
9542         * modules/unictype/property-logical-order-exception: New file.
9543         * modules/unictype/property-variation-selector: New file.
9544         * modules/unictype/property-private-use: New file.
9545         * modules/unictype/property-unassigned-code-value: New file.
9546         * modules/unictype/property-uppercase: New file.
9547         * modules/unictype/property-other-uppercase: New file.
9548         * modules/unictype/property-lowercase: New file.
9549         * modules/unictype/property-other-lowercase: New file.
9550         * modules/unictype/property-titlecase: New file.
9551         * modules/unictype/property-soft-dotted: New file.
9552         * modules/unictype/property-id-start: New file.
9553         * modules/unictype/property-other-id-start: New file.
9554         * modules/unictype/property-id-continue: New file.
9555         * modules/unictype/property-other-id-continue: New file.
9556         * modules/unictype/property-xid-start: New file.
9557         * modules/unictype/property-xid-continue: New file.
9558         * modules/unictype/property-pattern-white-space: New file.
9559         * modules/unictype/property-pattern-syntax: New file.
9560         * modules/unictype/property-join-control: New file.
9561         * modules/unictype/property-grapheme-base: New file.
9562         * modules/unictype/property-grapheme-extend: New file.
9563         * modules/unictype/property-other-grapheme-extend: New file.
9564         * modules/unictype/property-grapheme-link: New file.
9565         * modules/unictype/property-bidi-control: New file.
9566         * modules/unictype/property-bidi-left-to-right: New file.
9567         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9568         * modules/unictype/property-bidi-arabic-right-to-left: New file.
9569         * modules/unictype/property-bidi-european-digit: New file.
9570         * modules/unictype/property-bidi-eur-num-separator: New file.
9571         * modules/unictype/property-bidi-eur-num-terminator: New file.
9572         * modules/unictype/property-bidi-arabic-digit: New file.
9573         * modules/unictype/property-bidi-common-separator: New file.
9574         * modules/unictype/property-bidi-block-separator: New file.
9575         * modules/unictype/property-bidi-segment-separator: New file.
9576         * modules/unictype/property-bidi-whitespace: New file.
9577         * modules/unictype/property-bidi-non-spacing-mark: New file.
9578         * modules/unictype/property-bidi-boundary-neutral: New file.
9579         * modules/unictype/property-bidi-pdf: New file.
9580         * modules/unictype/property-bidi-embedding-or-override: New file.
9581         * modules/unictype/property-bidi-other-neutral: New file.
9582         * modules/unictype/property-hex-digit: New file.
9583         * modules/unictype/property-ascii-hex-digit: New file.
9584         * modules/unictype/property-ideographic: New file.
9585         * modules/unictype/property-unified-ideograph: New file.
9586         * modules/unictype/property-radical: New file.
9587         * modules/unictype/property-ids-binary-operator: New file.
9588         * modules/unictype/property-ids-trinary-operator: New file.
9589         * modules/unictype/property-zero-width: New file.
9590         * modules/unictype/property-space: New file.
9591         * modules/unictype/property-non-break: New file.
9592         * modules/unictype/property-iso-control: New file.
9593         * modules/unictype/property-format-control: New file.
9594         * modules/unictype/property-dash: New file.
9595         * modules/unictype/property-hyphen: New file.
9596         * modules/unictype/property-punctuation: New file.
9597         * modules/unictype/property-line-separator: New file.
9598         * modules/unictype/property-paragraph-separator: New file.
9599         * modules/unictype/property-quotation-mark: New file.
9600         * modules/unictype/property-sentence-terminal: New file.
9601         * modules/unictype/property-terminal-punctuation: New file.
9602         * modules/unictype/property-currency-symbol: New file.
9603         * modules/unictype/property-math: New file.
9604         * modules/unictype/property-other-math: New file.
9605         * modules/unictype/property-paired-punctuation: New file.
9606         * modules/unictype/property-left-of-pair: New file.
9607         * modules/unictype/property-combining: New file.
9608         * modules/unictype/property-composite: New file.
9609         * modules/unictype/property-decimal-digit: New file.
9610         * modules/unictype/property-numeric: New file.
9611         * modules/unictype/property-diacritic: New file.
9612         * modules/unictype/property-extender: New file.
9613         * modules/unictype/property-ignorable-control: New file.
9614         * modules/unictype/property-test: New file.
9615         * modules/unictype/property-byname: New file.
9616         * modules/unictype/property-all: New file.
9617         * modules/unictype/scripts: New file.
9618         * modules/unictype/scripts-all: New file.
9619         * modules/unictype/block-of: New file.
9620         * modules/unictype/block-test: New file.
9621         * modules/unictype/block-list: New file.
9622         * modules/unictype/block-all: New file.
9623         * modules/unictype/syntax-c-whitespace: New file.
9624         * modules/unictype/syntax-java-whitespace: New file.
9625         * modules/unictype/syntax-c-ident: New file.
9626         * modules/unictype/syntax-java-ident: New file.
9627         * modules/unictype/ctype-alnum: New file.
9628         * modules/unictype/ctype-alpha: New file.
9629         * modules/unictype/ctype-cntrl: New file.
9630         * modules/unictype/ctype-digit: New file.
9631         * modules/unictype/ctype-graph: New file.
9632         * modules/unictype/ctype-lower: New file.
9633         * modules/unictype/ctype-print: New file.
9634         * modules/unictype/ctype-punct: New file.
9635         * modules/unictype/ctype-space: New file.
9636         * modules/unictype/ctype-upper: New file.
9637         * modules/unictype/ctype-xdigit: New file.
9638         * modules/unictype/ctype-blank: New file.
9639         * lib/unictype/bidi_byname.c: New file.
9640         * lib/unictype/bidi_name.c: New file.
9641         * lib/unictype/bidi_of.c: New file.
9642         * lib/unictype/bidi_test.c: New file.
9643         * lib/unictype/bitmap.h: New file.
9644         * lib/unictype/block_test.c: New file.
9645         * lib/unictype/blocks.c: New file.
9646         * lib/unictype/categ_C.c: New file.
9647         * lib/unictype/categ_Cc.c: New file.
9648         * lib/unictype/categ_Cf.c: New file.
9649         * lib/unictype/categ_Cn.c: New file.
9650         * lib/unictype/categ_Co.c: New file.
9651         * lib/unictype/categ_Cs.c: New file.
9652         * lib/unictype/categ_L.c: New file.
9653         * lib/unictype/categ_Ll.c: New file.
9654         * lib/unictype/categ_Lm.c: New file.
9655         * lib/unictype/categ_Lo.c: New file.
9656         * lib/unictype/categ_Lt.c: New file.
9657         * lib/unictype/categ_Lu.c: New file.
9658         * lib/unictype/categ_M.c: New file.
9659         * lib/unictype/categ_Mc.c: New file.
9660         * lib/unictype/categ_Me.c: New file.
9661         * lib/unictype/categ_Mn.c: New file.
9662         * lib/unictype/categ_N.c: New file.
9663         * lib/unictype/categ_Nd.c: New file.
9664         * lib/unictype/categ_Nl.c: New file.
9665         * lib/unictype/categ_No.c: New file.
9666         * lib/unictype/categ_P.c: New file.
9667         * lib/unictype/categ_Pc.c: New file.
9668         * lib/unictype/categ_Pd.c: New file.
9669         * lib/unictype/categ_Pe.c: New file.
9670         * lib/unictype/categ_Pf.c: New file.
9671         * lib/unictype/categ_Pi.c: New file.
9672         * lib/unictype/categ_Po.c: New file.
9673         * lib/unictype/categ_Ps.c: New file.
9674         * lib/unictype/categ_S.c: New file.
9675         * lib/unictype/categ_Sc.c: New file.
9676         * lib/unictype/categ_Sk.c: New file.
9677         * lib/unictype/categ_Sm.c: New file.
9678         * lib/unictype/categ_So.c: New file.
9679         * lib/unictype/categ_Z.c: New file.
9680         * lib/unictype/categ_Zl.c: New file.
9681         * lib/unictype/categ_Zp.c: New file.
9682         * lib/unictype/categ_Zs.c: New file.
9683         * lib/unictype/categ_and.c: New file.
9684         * lib/unictype/categ_and_not.c: New file.
9685         * lib/unictype/categ_byname.c: New file.
9686         * lib/unictype/categ_name.c: New file.
9687         * lib/unictype/categ_none.c: New file.
9688         * lib/unictype/categ_of.c: New file.
9689         * lib/unictype/categ_or.c: New file.
9690         * lib/unictype/categ_test.c: New file.
9691         * lib/unictype/combining.c: New file.
9692         * lib/unictype/ctype_alnum.c: New file.
9693         * lib/unictype/ctype_alpha.c: New file.
9694         * lib/unictype/ctype_blank.c: New file.
9695         * lib/unictype/ctype_cntrl.c: New file.
9696         * lib/unictype/ctype_digit.c: New file.
9697         * lib/unictype/ctype_graph.c: New file.
9698         * lib/unictype/ctype_lower.c: New file.
9699         * lib/unictype/ctype_print.c: New file.
9700         * lib/unictype/ctype_punct.c: New file.
9701         * lib/unictype/ctype_space.c: New file.
9702         * lib/unictype/ctype_upper.c: New file.
9703         * lib/unictype/ctype_xdigit.c: New file.
9704         * lib/unictype/decdigit.c: New file.
9705         * lib/unictype/digit.c: New file.
9706         * lib/unictype/identsyntaxmap.h: New file.
9707         * lib/unictype/mirror.c: New file.
9708         * lib/unictype/numeric.c: New file.
9709         * lib/unictype/pr_alphabetic.c: New file.
9710         * lib/unictype/pr_ascii_hex_digit.c: New file.
9711         * lib/unictype/pr_bidi_arabic_digit.c: New file.
9712         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9713         * lib/unictype/pr_bidi_block_separator.c: New file.
9714         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9715         * lib/unictype/pr_bidi_common_separator.c: New file.
9716         * lib/unictype/pr_bidi_control.c: New file.
9717         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9718         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9719         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9720         * lib/unictype/pr_bidi_european_digit.c: New file.
9721         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9722         * lib/unictype/pr_bidi_left_to_right.c: New file.
9723         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9724         * lib/unictype/pr_bidi_other_neutral.c: New file.
9725         * lib/unictype/pr_bidi_pdf.c: New file.
9726         * lib/unictype/pr_bidi_segment_separator.c: New file.
9727         * lib/unictype/pr_bidi_whitespace.c: New file.
9728         * lib/unictype/pr_byname.c: New file.
9729         * lib/unictype/pr_byname.gperf: New file.
9730         * lib/unictype/pr_combining.c: New file.
9731         * lib/unictype/pr_composite.c: New file.
9732         * lib/unictype/pr_currency_symbol.c: New file.
9733         * lib/unictype/pr_dash.c: New file.
9734         * lib/unictype/pr_decimal_digit.c: New file.
9735         * lib/unictype/pr_default_ignorable_code_point.c: New file.
9736         * lib/unictype/pr_deprecated.c: New file.
9737         * lib/unictype/pr_diacritic.c: New file.
9738         * lib/unictype/pr_extender.c: New file.
9739         * lib/unictype/pr_format_control.c: New file.
9740         * lib/unictype/pr_grapheme_base.c: New file.
9741         * lib/unictype/pr_grapheme_extend.c: New file.
9742         * lib/unictype/pr_grapheme_link.c: New file.
9743         * lib/unictype/pr_hex_digit.c: New file.
9744         * lib/unictype/pr_hyphen.c: New file.
9745         * lib/unictype/pr_id_continue.c: New file.
9746         * lib/unictype/pr_id_start.c: New file.
9747         * lib/unictype/pr_ideographic.c: New file.
9748         * lib/unictype/pr_ids_binary_operator.c: New file.
9749         * lib/unictype/pr_ids_trinary_operator.c: New file.
9750         * lib/unictype/pr_ignorable_control.c: New file.
9751         * lib/unictype/pr_iso_control.c: New file.
9752         * lib/unictype/pr_join_control.c: New file.
9753         * lib/unictype/pr_left_of_pair.c: New file.
9754         * lib/unictype/pr_line_separator.c: New file.
9755         * lib/unictype/pr_logical_order_exception.c: New file.
9756         * lib/unictype/pr_lowercase.c: New file.
9757         * lib/unictype/pr_math.c: New file.
9758         * lib/unictype/pr_non_break.c: New file.
9759         * lib/unictype/pr_not_a_character.c: New file.
9760         * lib/unictype/pr_numeric.c: New file.
9761         * lib/unictype/pr_other_alphabetic.c: New file.
9762         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9763         * lib/unictype/pr_other_grapheme_extend.c: New file.
9764         * lib/unictype/pr_other_id_continue.c: New file.
9765         * lib/unictype/pr_other_id_start.c: New file.
9766         * lib/unictype/pr_other_lowercase.c: New file.
9767         * lib/unictype/pr_other_math.c: New file.
9768         * lib/unictype/pr_other_uppercase.c: New file.
9769         * lib/unictype/pr_paired_punctuation.c: New file.
9770         * lib/unictype/pr_paragraph_separator.c: New file.
9771         * lib/unictype/pr_pattern_syntax.c: New file.
9772         * lib/unictype/pr_pattern_white_space.c: New file.
9773         * lib/unictype/pr_private_use.c: New file.
9774         * lib/unictype/pr_punctuation.c: New file.
9775         * lib/unictype/pr_quotation_mark.c: New file.
9776         * lib/unictype/pr_radical.c: New file.
9777         * lib/unictype/pr_sentence_terminal.c: New file.
9778         * lib/unictype/pr_soft_dotted.c: New file.
9779         * lib/unictype/pr_space.c: New file.
9780         * lib/unictype/pr_terminal_punctuation.c: New file.
9781         * lib/unictype/pr_test.c: New file.
9782         * lib/unictype/pr_titlecase.c: New file.
9783         * lib/unictype/pr_unassigned_code_value.c: New file.
9784         * lib/unictype/pr_unified_ideograph.c: New file.
9785         * lib/unictype/pr_uppercase.c: New file.
9786         * lib/unictype/pr_variation_selector.c: New file.
9787         * lib/unictype/pr_white_space.c: New file.
9788         * lib/unictype/pr_xid_continue.c: New file.
9789         * lib/unictype/pr_xid_start.c: New file.
9790         * lib/unictype/pr_zero_width.c: New file.
9791         * lib/unictype/scripts.c: New file.
9792         * lib/unictype/sy_c_ident.c: New file.
9793         * lib/unictype/sy_c_whitespace.c: New file.
9794         * lib/unictype/sy_java_ident.c: New file.
9795         * lib/unictype/sy_java_whitespace.c: New file.
9796
9797         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9798         Unicode 5.0.0.
9799         * lib/unictype/blocks.h: Likewise.
9800         * lib/unictype/categ_C.h: Likewise.
9801         * lib/unictype/categ_Cc.h: Likewise.
9802         * lib/unictype/categ_Cf.h: Likewise.
9803         * lib/unictype/categ_Cn.h: Likewise.
9804         * lib/unictype/categ_Co.h: Likewise.
9805         * lib/unictype/categ_Cs.h: Likewise.
9806         * lib/unictype/categ_L.h: Likewise.
9807         * lib/unictype/categ_Ll.h: Likewise.
9808         * lib/unictype/categ_Lm.h: Likewise.
9809         * lib/unictype/categ_Lo.h: Likewise.
9810         * lib/unictype/categ_Lt.h: Likewise.
9811         * lib/unictype/categ_Lu.h: Likewise.
9812         * lib/unictype/categ_M.h: Likewise.
9813         * lib/unictype/categ_Mc.h: Likewise.
9814         * lib/unictype/categ_Me.h: Likewise.
9815         * lib/unictype/categ_Mn.h: Likewise.
9816         * lib/unictype/categ_N.h: Likewise.
9817         * lib/unictype/categ_Nd.h: Likewise.
9818         * lib/unictype/categ_Nl.h: Likewise.
9819         * lib/unictype/categ_No.h: Likewise.
9820         * lib/unictype/categ_P.h: Likewise.
9821         * lib/unictype/categ_Pc.h: Likewise.
9822         * lib/unictype/categ_Pd.h: Likewise.
9823         * lib/unictype/categ_Pe.h: Likewise.
9824         * lib/unictype/categ_Pf.h: Likewise.
9825         * lib/unictype/categ_Pi.h: Likewise.
9826         * lib/unictype/categ_Po.h: Likewise.
9827         * lib/unictype/categ_Ps.h: Likewise.
9828         * lib/unictype/categ_S.h: Likewise.
9829         * lib/unictype/categ_Sc.h: Likewise.
9830         * lib/unictype/categ_Sk.h: Likewise.
9831         * lib/unictype/categ_Sm.h: Likewise.
9832         * lib/unictype/categ_So.h: Likewise.
9833         * lib/unictype/categ_Z.h: Likewise.
9834         * lib/unictype/categ_Zl.h: Likewise.
9835         * lib/unictype/categ_Zp.h: Likewise.
9836         * lib/unictype/categ_Zs.h: Likewise.
9837         * lib/unictype/categ_of.h: Likewise.
9838         * lib/unictype/combining.h: Likewise.
9839         * lib/unictype/ctype_alnum.h: Likewise.
9840         * lib/unictype/ctype_alpha.h: Likewise.
9841         * lib/unictype/ctype_blank.h: Likewise.
9842         * lib/unictype/ctype_cntrl.h: Likewise.
9843         * lib/unictype/ctype_digit.h: Likewise.
9844         * lib/unictype/ctype_graph.h: Likewise.
9845         * lib/unictype/ctype_lower.h: Likewise.
9846         * lib/unictype/ctype_print.h: Likewise.
9847         * lib/unictype/ctype_punct.h: Likewise.
9848         * lib/unictype/ctype_space.h: Likewise.
9849         * lib/unictype/ctype_upper.h: Likewise.
9850         * lib/unictype/ctype_xdigit.h: Likewise.
9851         * lib/unictype/decdigit.h: Likewise.
9852         * lib/unictype/digit.h: Likewise.
9853         * lib/unictype/mirror.h: Likewise.
9854         * lib/unictype/numeric.h: Likewise.
9855         * lib/unictype/pr_alphabetic.h: Likewise.
9856         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9857         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9858         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9859         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9860         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9861         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9862         * lib/unictype/pr_bidi_control.h: Likewise.
9863         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9864         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9865         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9866         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9867         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9868         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9869         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9870         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9871         * lib/unictype/pr_bidi_pdf.h: Likewise.
9872         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9873         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9874         * lib/unictype/pr_combining.h: Likewise.
9875         * lib/unictype/pr_composite.h: Likewise.
9876         * lib/unictype/pr_currency_symbol.h: Likewise.
9877         * lib/unictype/pr_dash.h: Likewise.
9878         * lib/unictype/pr_decimal_digit.h: Likewise.
9879         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9880         * lib/unictype/pr_deprecated.h: Likewise.
9881         * lib/unictype/pr_diacritic.h: Likewise.
9882         * lib/unictype/pr_extender.h: Likewise.
9883         * lib/unictype/pr_format_control.h: Likewise.
9884         * lib/unictype/pr_grapheme_base.h: Likewise.
9885         * lib/unictype/pr_grapheme_extend.h: Likewise.
9886         * lib/unictype/pr_grapheme_link.h: Likewise.
9887         * lib/unictype/pr_hex_digit.h: Likewise.
9888         * lib/unictype/pr_hyphen.h: Likewise.
9889         * lib/unictype/pr_id_continue.h: Likewise.
9890         * lib/unictype/pr_id_start.h: Likewise.
9891         * lib/unictype/pr_ideographic.h: Likewise.
9892         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9893         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9894         * lib/unictype/pr_ignorable_control.h: Likewise.
9895         * lib/unictype/pr_iso_control.h: Likewise.
9896         * lib/unictype/pr_join_control.h: Likewise.
9897         * lib/unictype/pr_left_of_pair.h: Likewise.
9898         * lib/unictype/pr_line_separator.h: Likewise.
9899         * lib/unictype/pr_logical_order_exception.h: Likewise.
9900         * lib/unictype/pr_lowercase.h: Likewise.
9901         * lib/unictype/pr_math.h: Likewise.
9902         * lib/unictype/pr_non_break.h: Likewise.
9903         * lib/unictype/pr_not_a_character.h: Likewise.
9904         * lib/unictype/pr_numeric.h: Likewise.
9905         * lib/unictype/pr_other_alphabetic.h: Likewise.
9906         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9907         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9908         * lib/unictype/pr_other_id_continue.h: Likewise.
9909         * lib/unictype/pr_other_id_start.h: Likewise.
9910         * lib/unictype/pr_other_lowercase.h: Likewise.
9911         * lib/unictype/pr_other_math.h: Likewise.
9912         * lib/unictype/pr_other_uppercase.h: Likewise.
9913         * lib/unictype/pr_paired_punctuation.h: Likewise.
9914         * lib/unictype/pr_paragraph_separator.h: Likewise.
9915         * lib/unictype/pr_pattern_syntax.h: Likewise.
9916         * lib/unictype/pr_pattern_white_space.h: Likewise.
9917         * lib/unictype/pr_private_use.h: Likewise.
9918         * lib/unictype/pr_punctuation.h: Likewise.
9919         * lib/unictype/pr_quotation_mark.h: Likewise.
9920         * lib/unictype/pr_radical.h: Likewise.
9921         * lib/unictype/pr_sentence_terminal.h: Likewise.
9922         * lib/unictype/pr_soft_dotted.h: Likewise.
9923         * lib/unictype/pr_space.h: Likewise.
9924         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9925         * lib/unictype/pr_titlecase.h: Likewise.
9926         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9927         * lib/unictype/pr_unified_ideograph.h: Likewise.
9928         * lib/unictype/pr_uppercase.h: Likewise.
9929         * lib/unictype/pr_variation_selector.h: Likewise.
9930         * lib/unictype/pr_white_space.h: Likewise.
9931         * lib/unictype/pr_xid_continue.h: Likewise.
9932         * lib/unictype/pr_xid_start.h: Likewise.
9933         * lib/unictype/pr_zero_width.h: Likewise.
9934         * lib/unictype/scripts.h: Likewise.
9935         * lib/unictype/scripts_byname.gperf: Likewise.
9936         * lib/unictype/sy_c_ident.h: Likewise.
9937         * lib/unictype/sy_c_whitespace.h: Likewise.
9938         * lib/unictype/sy_java_ident.h: Likewise.
9939         * lib/unictype/sy_java_whitespace.h: Likewise.
9940
9941         * lib/unictype/Makefile: New file.
9942         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9943         glibc.
9944         * lib/unictype/3level.h: New file, copied from glibc.
9945         * lib/unictype/3levelbit.h: New file.
9946
9947 2007-11-11  Bruno Haible  <bruno@clisp.org>
9948
9949         * modules/gperf: New file.
9950         * modules/iconv_open (Depends-on): Add it.
9951         (Makefile.am): Remove the GPERF definition.
9952
9953 2007-11-11  Bruno Haible  <bruno@clisp.org>
9954
9955         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9956         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9957
9958 2007-11-11  Bruno Haible  <bruno@clisp.org>
9959
9960         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9961         (usage): Remove function.
9962
9963 2007-11-11  Bruno Haible  <bruno@clisp.org>
9964
9965         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9966         gl_FUNC_CEILF_LIBS.
9967         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9968         gl_FUNC_CEIL_LIBS.
9969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9970         gl_FUNC_CEILL_LIBS.
9971         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9972         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9973         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9974
9975 2007-11-11  Bruno Haible  <bruno@clisp.org>
9976
9977         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9978         roundf were declared but do not exist on functions.
9979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9980         roundl were declared but do not exist on functions.
9981         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9982         HAVE_FLOORL_AND_CEILL, respectively.
9983         Needed for Sun C on Solaris 10.
9984
9985 2007-11-11  Bruno Haible  <bruno@clisp.org>
9986
9987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9988         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9989         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9990         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9991         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9992         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9993         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9994         HAVE_DECL_ROUNDF.
9995         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9996         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9998         of HAVE_DECL_ROUND*.
9999         * modules/math (Makefile.am): Update.
10000
10001 2007-11-10  Bruno Haible  <bruno@clisp.org>
10002
10003         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
10004         ptrdiff_t as m4/intl.m4.
10005
10006 2007-11-10  Jim Meyering  <meyering@redhat.com>
10007
10008         Avoid link failure for the argmatch test.
10009         * tests/test-argmatch.c (usage): Define function to avoid a link
10010         failure: argmatch_die requires a usage function.
10011
10012 2007-11-09  Bruno Haible  <bruno@clisp.org>
10013
10014         * doc/functions/snprintf.texi: Mention BeOS deficiency.
10015         * doc/functions/vsnprintf.texi: Likewise.
10016         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
10017         with a size argument < 2.
10018
10019 2007-11-09  Bruno Haible  <bruno@clisp.org>
10020
10021         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
10022         buffer. Fixes an inefficiency introduced on 2007-11-03.
10023
10024 2007-11-09  Bruno Haible  <bruno@clisp.org>
10025
10026         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
10027         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
10028
10029 2007-11-08  Jim Meyering  <meyering@redhat.com>
10030
10031         Change cache variable name prefix "jm_" to "gl_" everywhere.
10032         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
10033         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
10034         * m4/uptime.m4: s/gl_/jm_/
10035
10036 2007-11-07  Bruno Haible  <bruno@clisp.org>
10037
10038         Update to GNU gettext 0.17.
10039         * m4/intl.m4: Update to GNU gettext 0.17.
10040         * m4/po.m4: Likewise.
10041         * modules/gettext (Files): Remove m4/ulonglong.m4.
10042         (configure.ac): Require gettext infrastructure from version 0.17.
10043
10044 2007-11-06  Bruno Haible  <bruno@clisp.org>
10045
10046         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
10047         symbolic values are not defined in a public header.
10048         * lib/freadable.c (freadable) [QNX]: Likewise.
10049         * lib/freadahead.c (freadahead) [QNX]: Likewise.
10050         * lib/freading.c (freading) [QNX]: Likewise.
10051         * lib/fseterr.c (fseterr) [QNX]: Likewise.
10052         * lib/fwritable.c (fwritable) [QNX]: Likewise.
10053         * lib/fwriting.c (fwriting) [QNX]: Likewise.
10054         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
10055         Reported by Alain Magloire.
10056
10057         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
10058
10059 2007-11-05  Bruno Haible  <bruno@clisp.org>
10060
10061         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
10062         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
10063         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
10064         Reported by Eric Blake.
10065
10066 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10067             Bruno Haible  <bruno@clisp.org>
10068
10069         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
10070         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
10071         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
10072         (malloc): Undefine also before including <stdlib.h>.
10073         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
10074         Needed on OSF/1 4.0.
10075
10076 2007-11-05  Jim Meyering  <meyering@redhat.com>
10077
10078         git-version-gen: sync from coreutils.
10079         * build-aux/git-version-gen: Add comments.
10080         Change the first '-' to '.' in the snapshot version string,
10081         e.g., 6.9-377-08144 -> 6.9.377-08144
10082         Remove first parameter.
10083         Don't declare a version "-dirty" merely because a time
10084         stamp has changed.
10085
10086 2007-11-04  Bruno Haible  <bruno@clisp.org>
10087
10088         * lib/lock.h: Protect all macro definitions containing an 'if'
10089         statement through a "do { ... } while (0)".
10090         * lib/tls.h: Likewise.
10091
10092 2007-11-04  Bruno Haible  <bruno@clisp.org>
10093
10094         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
10095
10096 2007-11-04  Bruno Haible  <bruno@clisp.org>
10097
10098         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
10099         * modules/fprintf-posix (Depends-on): Add nocrash.
10100         * modules/snprintf-posix (Depends-on): Likewise.
10101         * modules/sprintf-posix (Depends-on): Likewise.
10102         * modules/vasnprintf-posix (Depends-on): Likewise.
10103         * modules/vasprintf-posix (Depends-on): Likewise.
10104         * modules/vfprintf-posix (Depends-on): Likewise.
10105         * modules/vsnprintf-posix (Depends-on): Likewise.
10106         * modules/vsprintf-posix (Depends-on): Likewise.
10107         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10108         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10109         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10110         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10111         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10112         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10113         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10114
10115 2007-11-04  Bruno Haible  <bruno@clisp.org>
10116
10117         * modules/nocrash: New file.
10118         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10119         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10120
10121 2007-11-04  Bruno Haible  <bruno@clisp.org>
10122
10123         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10124         precision handling.
10125         * tests/test-vasprintf-posix.c (test_function): Likewise.
10126         * tests/test-snprintf-posix.h (test_function): Likewise.
10127         * tests/test-sprintf-posix.h (test_function): Likewise.
10128
10129         Fix *printf behaviour for large precisions on mingw and BeOS.
10130         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10131         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10133         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10135         gl_PRINTF_PRECISION and test its result. Invoke
10136         gl_PREREQ_VASNPRINTF_PRECISION.
10137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10144         * doc/functions/fprintf.texi: Update.
10145         * doc/functions/printf.texi: Update.
10146         * doc/functions/snprintf.texi: Update.
10147         * doc/functions/sprintf.texi: Update.
10148         * doc/functions/vfprintf.texi: Update.
10149         * doc/functions/vprintf.texi: Update.
10150         * doc/functions/vsnprintf.texi: Update.
10151         * doc/functions/vsprintf.texi: Update.
10152
10153 2007-11-04  Bruno Haible  <bruno@clisp.org>
10154
10155         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10156
10157 2007-11-04  Bruno Haible  <bruno@clisp.org>
10158
10159         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10160         Reported by Sylvain Beucler <beuc@gnu.org>.
10161
10162 2007-11-03  Bruno Haible  <bruno@clisp.org>
10163
10164         * tests/test-fprintf-posix2.sh: New file.
10165         * tests/test-fprintf-posix2.c: New file.
10166         * modules/fprintf-posix-tests (Files): Add them.
10167         (TESTS): Add test-fprintf-posix2.sh.
10168         (configure.ac): Check for getrlimit and setrlimit.
10169         (check_PROGRAMS): Add test-fprintf-posix2.
10170
10171         * tests/test-printf-posix2.sh: New file.
10172         * tests/test-printf-posix2.c: New file.
10173         * modules/printf-posix-tests (Files): Add them.
10174         (TESTS): Add test-printf-posix2.sh.
10175         (configure.ac): Check for getrlimit and setrlimit.
10176         (check_PROGRAMS): Add test-printf-posix2.
10177
10178         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
10179         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
10180         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
10181         (decode_double): New function, copied from decode_long_double.
10182         (scale10_round_decimal_decoded): New function, extracted from
10183         scale10_round_decimal_long_double.
10184         (scale10_round_decimal_long_double): Use it.
10185         (scale10_round_decimal_double): New function.
10186         (floorlog10): New function.
10187         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
10188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
10189         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10191         gl_PRINTF_ENOMEM and test its result. Invoke
10192         gl_PREREQ_VASNPRINTF_ENOMEM.
10193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10200         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
10201         * modules/snprintf-posix (Depends-on): Likewise.
10202         * modules/sprintf-posix (Depends-on): Likewise.
10203         * modules/vasnprintf-posix (Depends-on): Likewise.
10204         * modules/vasprintf-posix (Depends-on): Likewise.
10205         * modules/vfprintf-posix (Depends-on): Likewise.
10206         * modules/vsnprintf-posix (Depends-on): Likewise.
10207         * modules/vsprintf-posix (Depends-on): Likewise.
10208         * doc/functions/fprintf.texi: Update.
10209         * doc/functions/printf.texi: Update.
10210         * doc/functions/snprintf.texi: Update.
10211         * doc/functions/sprintf.texi: Update.
10212         * doc/functions/vfprintf.texi: Update.
10213         * doc/functions/vprintf.texi: Update.
10214         * doc/functions/vsnprintf.texi: Update.
10215         * doc/functions/vsprintf.texi: Update.
10216
10217 2007-11-03  Bruno Haible  <bruno@clisp.org>
10218
10219         * modules/frexp-nolibm-tests: New file.
10220
10221         * modules/frexp-nolibm: New file.
10222         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
10223
10224 2007-11-03  Bruno Haible  <bruno@clisp.org>
10225
10226         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
10227         value is C99 compliant.
10228         Needed for OSF/1 5.1.
10229
10230 2007-11-03  Bruno Haible  <bruno@clisp.org>
10231
10232         Fix out-of-memory handling of vasnprintf.
10233         * lib/printf-parse.c: Include <errno.h>.
10234         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
10235         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
10236         is already set.
10237
10238 2007-11-02  Eric Blake  <ebb9@byu.net>
10239
10240         Fix tests on cygwin.
10241         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
10242
10243 2007-11-01  Bruno Haible  <bruno@clisp.org>
10244
10245         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
10246         warning.
10247         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
10248         needed for POSIX compatibility.
10249
10250 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10251
10252         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10253         for compatibility with GNU.
10254
10255 2007-11-01  Bruno Haible  <bruno@clisp.org>
10256
10257         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10258         (putenv): Renamed from rpl_putenv. Change argument type from
10259         'const char *' to 'char *'.
10260         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10261         of defining putenv in config.h, just set REPLACE_PUTENV.
10262         * modules/putenv (Depends-on): Add stdlib.
10263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10264         (Include): Use <stdlib.h>.
10265         * lib/stdlib.in.h (putenv): New declaration.
10266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10267         REPLACE_PUTENV.
10268         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10269         REPLACE_PUTENV.
10270         Needed for MacOS X 10.5.0.
10271         Reported by Peter O'Gorman <peter@pogma.com>.
10272
10273 2007-11-01  Jim Meyering  <meyering@redhat.com>
10274
10275         Treat an empty date string exactly like "0".
10276         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10277         if the remaining date string (to be parsed) is empty, use "0".
10278         Reported by Mischa Molhoek and discussed in this thread:
10279         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10280
10281 2007-10-31  Bruno Haible  <bruno@clisp.org>
10282
10283         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10284         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10285         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10286         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10287         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10288         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10289
10290 2007-10-31  Bruno Haible  <bruno@clisp.org>
10291
10292         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10293         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10294         (AC_TYPE_LONG_LONG_INT): Use it.
10295         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10296         it as well.
10297         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10298         to m4/longlong.m4.
10299         * modules/stdint (Files): Remove m4/ulonglong.m4.
10300         * modules/strtoull (Files): Use m4/longlong.m4 instead of
10301         m4/ulonglong.m4.
10302         * modules/strtoumax (Files): Likewise.
10303
10304 2007-10-30  Bruno Haible  <bruno@clisp.org>
10305
10306         * modules/xvasprintf-posix: New file.
10307         Suggested by Eric Blake.
10308
10309 2007-10-30  Bruno Haible  <bruno@clisp.org>
10310
10311         * modules/xprintf-posix-tests: New file.
10312         * tests/test-xprintf-posix.sh: New file.
10313         * tests/test-xprintf-posix.c: New file.
10314         * tests/test-xfprintf-posix.c: New file.
10315
10316         * modules/xprintf-posix: New file.
10317
10318 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10319
10320         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10321         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10322         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10323
10324 2007-10-29  Bruno Haible  <bruno@clisp.org>
10325
10326         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10327         contain the special marker '_cv_'.
10328         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10329         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10330         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10331         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10332         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10333         Reported by Ralf Wildenhues.
10334
10335 2007-10-29  Bruno Haible  <bruno@clisp.org>
10336
10337         * gnulib-tool (func_import): When --lgpl is not specified, set
10338         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10339         GPLv3.
10340         Reported by Simon Josefsson.
10341
10342 2007-10-28  Bruno Haible  <bruno@clisp.org>
10343
10344         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10345         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10346         HAVE_DECL_ISFINITE.
10347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10348         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10349         HAVE_DECL_ISFINITE.
10350
10351 2007-10-28  Bruno Haible  <bruno@clisp.org>
10352
10353         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10354         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10355
10356 2007-10-28  Bruno Haible  <bruno@clisp.org>
10357
10358         Fix link errors with Sun C 5.0 on Solaris 10.
10359         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10360         function is declared but not present in the compiler's libm.
10361         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10362         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10363         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10364         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10365         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10366         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10367         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10369         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10370         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10371         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10372         HAVE_DECL_FLOORL.
10373
10374 2007-10-28  Bruno Haible  <bruno@clisp.org>
10375
10376         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10377         gl_FUNC_FLOORL. Cache the result.
10378         (gl_FUNC_FLOORL): Use it.
10379         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10380         gl_FUNC_CEILL. Cache the result.
10381         (gl_FUNC_CEILL): Use it.
10382
10383         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10384         gl_FUNC_FLOOR. Cache the result.
10385         (gl_FUNC_FLOOR): Use it.
10386         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10387         gl_FUNC_CEIL. Cache the result.
10388         (gl_FUNC_CEIL): Use it.
10389
10390         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10391         gl_FUNC_FLOORF. Cache the result.
10392         (gl_FUNC_FLOORF): Use it.
10393         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10394         gl_FUNC_CEILF. Cache the result.
10395         (gl_FUNC_CEILF): Use it.
10396
10397 2007-10-28  Bruno Haible  <bruno@clisp.org>
10398
10399         * gnulib-tool: Allow specifying the LGPL version number through
10400         --lgpl=2 or --lgpl=3.
10401         (func_usage): Document --lgpl with argument.
10402         Handle --lgpl=... arguments.
10403         (func_import): Recognize also gl_LGPL calls with an argument. When
10404         --lgpl=2 is used and the module's license is just LGPL, report an
10405         error. Set sed_transform_lib_file according to the lgpl variable. In
10406         the generated files, use --lgpl or gl_LGPL invocations with argument,
10407         if necessary.
10408         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10409         an LGPv2+ license.
10410         * doc/gnulib-tool.texi (Modified imports): Update explanation of
10411         gl_LGPL macro.
10412
10413 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10414             Bruno Haible  <bruno@clisp.org>
10415
10416         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10417         (u16_uctomb_aux): Likewise.
10418         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10419         !HAVE_INLINE.
10420         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10421
10422 2007-10-28  Bruno Haible  <bruno@clisp.org>
10423
10424         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10425         Invoke AM_GETTEXT_OPTION if it exists.
10426         * modules/vasprintf: Likewise.
10427         * modules/verror: Likewise.
10428         * modules/xprintf: Likewise.
10429         * modules/xvasprintf: Likewise.
10430
10431 2007-10-27  Ben Pfaff  <blp@gnu.org>
10432
10433         * lib/math.in.h: Define isfinite macro and prototypes for
10434         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10435         implementations.
10436         * m4/math_h.m4: New substitutions for isfinite module.
10437         * lib/isfinite.c: New file.
10438         * m4/isfinite.m4: New file.
10439         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10440         * modules/isfinite: New file.
10441         * modules/isfinite-tests: New file.
10442         * tests/tests-isfinite.c: New file.
10443         * doc/functions/isfinite.texi: Mention isfinite module.
10444         * MODULES.html.sh: Mention new module.
10445
10446 2007-10-27  Ben Pfaff  <blp@gnu.org>
10447
10448         Ralf Wildenhues reported that Tru64 4.0D declares the round
10449         functions but does not have definitions.
10450         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10451         cannot be found in any library, set the output variable to
10452         "missing" instead of "".
10453         * m4/round.m4: Also use our substitute if we cannot find round in
10454         any library, even if it is declared.
10455         * m4/roundf.m4: Likewise for roundf.
10456         * m4/roundl.m4: Likewise for roundl.
10457         * lib/math.in.h: Undefine roundf, round, roundl before defining
10458         their replacements, to allow for hypothetical systems where these
10459         may be defined as macros but not available in libraries.
10460
10461 2007-10-27  Bruno Haible  <bruno@clisp.org>
10462
10463         * doc/gnulib.texi: Invoke @firstparagraphindent.
10464         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10465         changes in gnulib.
10466         (Source changes): New section.
10467
10468 2007-10-26  Bruno Haible  <bruno@clisp.org>
10469
10470         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10471         borrowed from autoconf.
10472
10473 2007-10-26  Bruno Haible  <bruno@clisp.org>
10474
10475         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10476         strerror returned the empty string. Needed on HP-UX 11.00.
10477
10478 2007-10-24  Micah Cowan  <micah@cowan.name>
10479
10480         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
10481         * build-aux/bootstrap: Remove support for now-unnecessary option,
10482         --cvs-user, and envvars CVS_USER, CVS_RSH.
10483
10484 2007-10-24  Jim Meyering  <meyering@redhat.com>
10485
10486         Avoid diagnostics from sha1sum when there is no cached checksum.
10487         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10488         if the po.s1 file hasn't been created yet.
10489
10490         * build-aux/bootstrap: Sync from coreutils:
10491         2007-10-24  Jim Meyering  <meyering@redhat.com>
10492         Get gnulib from the git repository, not from an obsolete cvs one.
10493         * build-aux/bootstrap: Suggestion from Micah Cowan.
10494         2007-10-04  Jim Meyering  <jim@meyering.net>
10495         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10496         (update_po_files): Work also when there are no .po files in po/.
10497
10498 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10499
10500         * README: Append ".git" to git and cg examples.
10501         Problem reported by Benoit Sigoure.
10502
10503 2007-10-23  Micah Cowan  <micah@cowan.name>
10504
10505         * users.txt: Add wget.
10506
10507 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10508
10509         Fix linking of some unistdio tests on FreeBSD.
10510         * modules/unistdio/u16-vsnprintf-tests
10511         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10512         * modules/unistdio/u16-vsprintf-tests
10513         (test_u16_vsnprintf1_LDADD): Likewise.
10514         * modules/unistdio/u32-vsnprintf-tests
10515         (test_u32_vsnprintf1_LDADD): Likewise.
10516         * modules/unistdio/u32-vsprintf-tests
10517         (test_u32_vsprintf1_LDADD): Likewise.
10518         * modules/unistdio/u8-vsnprintf-tests
10519         (test_u8_vsnprintf1_LDADD): Likewise.
10520         * modules/unistdio/u8-vsprintf-tests
10521         (test_u8_vsprintf1_LDADD): Likewise.
10522         * modules/unistdio/ulc-vsnprintf-tests
10523         (test_ulc_vsnprintf1_LDADD): Likewise.
10524         * modules/unistdio/ulc-vsprintf-tests
10525         (test_ulc_vsprintf1_LDADD): Likewise.
10526
10527         Fix linking of some uniconv tests on FreeBSD.
10528         * modules/uniconv/u16-conv-from-enc-tests
10529         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10530         * modules/uniconv/u16-conv-to-enc-tests
10531         (test_u16_conv_to_enc_LDADD): Likewise.
10532         * modules/uniconv/u16-strconv-from-enc-tests
10533         (test_u16_strconv_from_enc_LDADD): Likewise.
10534         * modules/uniconv/u16-strconv-to-enc-tests
10535         (test_u16_strconv_to_enc_LDADD): Likewise.
10536         * modules/uniconv/u32-conv-from-enc-tests
10537         (test_u32_conv_from_enc_LDADD): Likewise.
10538         * modules/uniconv/u32-conv-to-enc-tests
10539         (test_u32_conv_to_enc_LDADD): Likewise.
10540         * modules/uniconv/u32-strconv-from-enc-tests
10541         (test_u32_strconv_from_enc_LDADD): Likewise.
10542         * modules/uniconv/u32-strconv-to-enc-tests
10543         (test_u32_strconv_to_enc_LDADD): Likewise.
10544         * modules/uniconv/u8-conv-from-enc-tests
10545         (test_u8_conv_from_enc_LDADD): Likewise.
10546         * modules/uniconv/u8-conv-to-enc-tests
10547         (test_u8_conv_to_enc_LDADD): Likewise.
10548         * modules/uniconv/u8-strconv-from-enc-tests
10549         (test_u8_strconv_from_enc_LDADD): Likewise.
10550         * modules/uniconv/u8-strconv-to-enc-tests
10551         (test_u8_strconv_to_enc_LDADD): Likewise.
10552
10553 2007-10-22  Bruno Haible  <bruno@clisp.org>
10554
10555         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10556         size.
10557
10558 2007-10-22  Eric Blake  <ebb9@byu.net>
10559
10560         Tweak x*printf documentation.
10561         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10562         variable name and comments.
10563         Suggested by Bruno Haible.
10564
10565 2007-10-22  Bruno Haible  <bruno@clisp.org>
10566
10567         * lib/acl.c (copy_acl): Fix file name in comment.
10568
10569 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10570
10571         Fix Tru64 problem with stdbool.h.
10572         * lib/stdbool.in.h (false, true):
10573         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10574         Don't declare as an enum in this situation; it runs afoul of Tru64.
10575         Problem reported by Steven M. Schweda in
10576         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10577
10578 2007-10-22  Eric Blake  <ebb9@byu.net>
10579
10580         Also wrap vf?printf.
10581         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10582         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10583         (xvprintf, xvfprintf): New functions.
10584
10585 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10586
10587         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10588         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10589
10590         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10591         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10592
10593 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
10596         by Bruno Haible.
10597
10598 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10599
10600         * lib/getloadavg.c
10601         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10602         Undef `sys' after including sys/table.h, for Tru64 4.0D.
10603
10604         * tests/test-i-ring.c: Work for C89.
10605
10606 2007-10-22  Bruno Haible  <bruno@clisp.org>
10607
10608         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10609         -1u, in preprocessor expression, so that we don't test for the bug
10610         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
10611         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10612
10613 2007-10-22  Eric Blake  <ebb9@byu.net>
10614
10615         * tests/test-yesno.sh: Silence stderr during test.
10616
10617 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10618
10619         * modules/crypto/gc-camellia: New file.
10620
10621         * m4/gc-camellia.m4: New file.
10622
10623         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10624
10625         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10626
10627 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10628
10629         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10630         --help to stdout.  Reported by sms@antinode.org (Steven
10631         M. Schweda).
10632
10633 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10634
10635         * users.txt: Fix link to libksba.
10636
10637 2007-10-21  Ben Pfaff  <blp@gnu.org>
10638
10639         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10640         round.c roundf implementation that depends on floorf and ceilf to
10641         be tested unconditionally.
10642
10643 2007-10-21  Ben Pfaff  <blp@gnu.org>
10644
10645         * m4/check-libm-func.m4: Removed.
10646         * m4/check-math-lib.m4: New file.
10647         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10648         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10649         definition and lack of AC_LIBOBJ([roundf]).
10650         * m4/roundl.m4: Ditto, and similarly for roundl.
10651         * modules/round: Reference new m4 file.
10652         * modules/roundf: Ditto.
10653         * modules/roundl: Ditto.
10654         * tests/test-round2.c (main): Use ROUND instead of round.
10655         Bug report from Bruno Haible.
10656
10657 2007-10-21  Bruno Haible  <bruno@clisp.org>
10658
10659         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10660         context.
10661
10662 2007-10-21  Bruno Haible  <bruno@clisp.org>
10663
10664         * tests/test-wcwidth.c (main): Allow negative result for some control
10665         characters.
10666
10667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10668         Needed on OSF/1 5.1.
10669
10670 2007-10-21  Bruno Haible  <bruno@clisp.org>
10671
10672         * tests/test-floorf1.c: Include isnanf.h.
10673         (main): Use isnanf() instead of isnan().
10674         * tests/test-ceilf1.c: Include isnanf.h.
10675         (main): Use isnanf() instead of isnan().
10676         * tests/test-truncf1.c: Include isnanf.h.
10677         (main): Use isnanf() instead of isnan().
10678         * tests/test-roundf1.c: Include isnanf.h.
10679         (main): Use isnanf() instead of isnan().
10680
10681 2007-10-21  Eric Blake  <ebb9@byu.net>
10682
10683         * users.txt: Update URL for m4.
10684
10685 2007-10-21  Bruno Haible  <bruno@clisp.org>
10686
10687         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10688
10689 2007-10-21  Bruno Haible  <bruno@clisp.org>
10690
10691         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10692         Git's management files if the CVS files are not present.
10693
10694 2007-10-20  Bruno Haible  <bruno@clisp.org>
10695
10696         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10697         gcc-3.4.x.
10698
10699 2007-10-20  Ben Pfaff  <blp@gnu.org>
10700
10701         * lib/math.in.h: Declare round, roundf, roundl if we are providing
10702         implementations.
10703         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10704         * lib/round.c: New file.
10705         * lib/roundf.c: New file.
10706         * lib/roundl.c: New file.
10707         * m4/round.m4: New file.
10708         * m4/roundf.m4: New file.
10709         * m4/roundl.m4: New file.
10710         * m4/check-libm-func-m4: New file.
10711         * modules/math: Replace round, roundf, roundl related @VARS@ in
10712         math.in.h.
10713         * modules/round: New file.
10714         * modules/round-tests: New file.
10715         * modules/roundf: New file.
10716         * modules/roundf-tests: New file.
10717         * modules/roundl: New file.
10718         * modules/roundl-tests: New file.
10719         * tests/test-round1.c: New file.
10720         * tests/test-round2.c: New file.
10721         * tests/test-roundf1.c: New file.
10722         * tests/test-roundf2.c: New file.
10723         * tests/test-roundl.c: New file.
10724         * doc/functions/round.texi: Mention round module.
10725         * doc/functions/roundf.texi: Mention roundf module.
10726         * doc/functions/roundl.texi: Mention roundl module.
10727         * MODULES.html.sh: Mention new modules.
10728         Thanks to Bruno Haible for suggestions.
10729
10730 2007-10-20  Jim Meyering  <meyering@redhat.com>
10731
10732         * lib/xprintf.c: Include <config.h> unconditionally.
10733
10734         Change xprintf's license to GPL.
10735         * modules/xprintf (License): s/LGPL/GPL/, since this module
10736         depends on modules (exit and exitfail) which are GPL.
10737         Suggestion from Bruno Haible.
10738
10739         xprintf fixes.
10740         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10741         Use a clearer diagnostic.
10742         Patch from Bruno Haible.
10743
10744 2007-10-20  Bruno Haible  <bruno@clisp.org>
10745
10746         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10747         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10749
10750 2007-10-20  Bruno Haible  <bruno@clisp.org>
10751
10752         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10753         precision in the comparison result > x - 1 or similar.
10754         * tests/test-ceilf2.c (correct_result_p): Likewise.
10755         * tests/test-truncf2.c (correct_result_p): Likewise.
10756         * tests/test-trunc2.c (correct_result_p): Likewise.
10757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10758
10759 2007-10-20  Bruno Haible  <bruno@clisp.org>
10760
10761         * modules/ceil: New file.
10762         * m4/ceil.m4: New file.
10763         * doc/functions/ceil.texi: Mention the 'ceil' module.
10764
10765 2007-10-20  Bruno Haible  <bruno@clisp.org>
10766
10767         * modules/floor: New file.
10768         * m4/floor.m4: New file.
10769         * doc/functions/floor.texi: Mention the 'floor' module.
10770
10771 2007-10-20  Bruno Haible  <bruno@clisp.org>
10772
10773         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10774         of %a.
10775         * modules/floorf-tests (Depends-on): Likewise.
10776         * modules/truncf-tests (Depends-on): Likewise.
10777         * modules/trunc-tests (Depends-on): Likewise.
10778         Reported by Ben Pfaff.
10779
10780 2007-10-19  Jim Meyering  <meyering@redhat.com>
10781
10782         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10783         Don't bother testing specific errno values.  Just test ferror.
10784
10785         New module: xprintf
10786         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10787
10788 2007-10-19  Bruno Haible  <bruno@clisp.org>
10789
10790         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10791         syntax.
10792         * modules/javaexec (Makefile.am): Likewise.
10793         * modules/relocatable-prog (Makefile.am): Likewise.
10794         Suggested by Jim Meyering.
10795
10796 2007-10-18  Bruno Haible  <bruno@clisp.org>
10797
10798         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10799         Reported by Jim Meyering.
10800
10801 2007-10-18  Eric Blake  <ebb9@byu.net>
10802
10803         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10804
10805 2007-10-18  Bruno Haible  <bruno@clisp.org>
10806
10807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10808         the format string into writable memory. Needed in Fortify conditions.
10809
10810 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
10811             Bruno Haible  <bruno@clisp.org>
10812
10813         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10814         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10815         * modules/trim (Depends-on): Add mbchar.
10816         (configure.ac): Add gl_FUNC_MBRTOWC.
10817         (Makefile.am): Augment lib_SOURCES.
10818
10819 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10820
10821         Modify glob.c to use fstatat and dirfd, to simplify it.
10822         Suggested by Eric Blake.
10823         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10824         Don't include <stdbool.h>; not used.
10825         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10826         (link_exists_p): Simplify implementation, since we can now assume
10827         dirfd and fstatat.
10828         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
10829
10830 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10831
10832         * gnulib-tool (func_get_dependencies): Fix sed script to
10833         match only tests.
10834
10835 2007-10-17  Bruno Haible  <bruno@clisp.org>
10836
10837         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10838         allow locale names without encoding suffix.
10839         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10840         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10841
10842 2007-10-16  Bruno Haible  <bruno@clisp.org>
10843
10844         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10845         * lib/getgroups.c (getgroups): Likewise.
10846         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10847
10848 2007-10-16  Bruno Haible  <bruno@clisp.org>
10849
10850         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10851         * modules/malloc-posix (License): Likewise.
10852         * modules/realloc-posix (License): Likewise.
10853         * modules/calloc-posix (License): Likewise.
10854         * modules/intprops (License): Change from GPL to LGPL, with
10855         Paul Eggert's approval.
10856
10857 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10858
10859         Merge glibc changes into lib/glob.c.
10860
10861         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10862         2007-10-15 04:59:03 UTC.  Here are the changes:
10863
10864         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10865
10866         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10867
10868         * lib/glob.c: Add some branch prediction throughout.
10869
10870         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
10871
10872         [BZ #5103]
10873         * lib/glob.c (glob): Recognize patterns starting \/.
10874
10875         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10876
10877         [BZ #3996]
10878         * lib/glob.c (attribute_hidden): Define if not defined.
10879         (glob): Unescape dirname, filename or username when needed and not
10880         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10881         is NULL.  Handle unescaped [ in pattern without closing ].
10882         Don't pass GLOB_CHECK down to recursive glob for directories.
10883         (__glob_pattern_type): New function.
10884         (__glob_pattern_p): Implement using __glob_pattern_type.
10885         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10886         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10887         Remove unreachable code.
10888
10889         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10890
10891         * lib/glob.c (glob_in_dir): Add some comments and asserts to
10892         explain why there are no leaks.
10893
10894         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10895
10896         [BZ #3253]
10897         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10898         time, rather allocate increasingly bigger arrays of pointers, if
10899         possible with alloca, if too large with malloc.
10900
10901 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10902
10903         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10904         Problem reported by H.Merijn Brand in
10905         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10906         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10907         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10908
10909 2007-10-15  Bruno Haible  <bruno@clisp.org>
10910
10911         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10912         with explicit rpl_ prefix.
10913         * lib/fopen.c (fopen): Likewise.
10914         * lib/freopen.c (freopen): Likewise.
10915         * lib/iconv.c (iconv): Likewise.
10916         * lib/iconv_close.c (iconv_close): Likewise.
10917
10918 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10919
10920         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10921
10922 2007-10-15  Bruno Haible  <bruno@clisp.org>
10923
10924         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10925         <stddef.h> instead of <stdlib.h> since we only need NULL.
10926         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10927
10928 2007-10-15  Bruno Haible  <bruno@clisp.org>
10929
10930         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10931         Replace paragraph talking about LIBOBJS.
10932         Reported by Colin Watson <cjwatson@debian.org>.
10933
10934 2007-10-15  Bruno Haible  <bruno@clisp.org>
10935
10936         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10937         <stdlib.h> before using NULL.
10938
10939 2007-10-15  Simon Josefsson  <simon@josefsson.org>
10940
10941         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10942         Reported by Albert Chin <china@thewrittenword.com>.
10943
10944 2007-10-14  Bruno Haible  <bruno@clisp.org>
10945
10946         * modules/iconv_open-utf-tests: New file.
10947         * tests/test-iconv-utf.c: New file.
10948
10949         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10950         * modules/iconv_open-utf: New file.
10951         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10952         (iconv, iconv_close): New declarations.
10953         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10954         be defined.
10955         (iconv_open): Add special handling of conversion between UTF-8 and
10956         UTF-{16,32}{BE,LE}.
10957         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10958         * lib/iconv_close.c: New file.
10959         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10960         gl_FUNC_ICONV_OPEN.
10961         (gl_FUNC_ICONV_OPEN): Use it.
10962         (gl_FUNC_ICONV_OPEN_UTF): New macro.
10963         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10964         and REPLACE_ICONV_UTF.
10965         * modules/iconv_open (Depends-on): Add c-strcase.
10966         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10967         ICONV_CONST.
10968         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10969
10970 2007-10-13  Albert Chin  <china@thewrittenword.com>
10971             Bruno Haible  <bruno@clisp.org>
10972
10973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10974         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10975
10976 2007-10-13  Bruno Haible  <bruno@clisp.org>
10977
10978         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10979         defined, use the ISO C99 inline semantics.
10980         * lib/argp.h (ARGP_EI): Likewise.
10981
10982 2007-10-13  Bruno Haible  <bruno@clisp.org>
10983
10984         Handle 'inline' change in gcc 4.3.0.
10985         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10986         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10987         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10988         argp_fmtstream_point): Disable 'extern' declaration if the function
10989         definition is going to be provided inline.
10990         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10991         semantics, not the ISO C99 inline semantics.
10992         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10993         'extern' declaration if the function definition is going to be provided
10994         inline.
10995         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10996         the GNU C inline semantics, not the ISO C99 inline semantics. With
10997         GCC 4.2, avoid a warning.
10998
10999 2007-10-13  Bruno Haible  <bruno@clisp.org>
11000
11001         * lib/freading.h (freading): Enable the use of __freading for
11002         glibc >= 2.7.
11003         * lib/freading.c (freading): Likewise.
11004
11005 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
11008         "warning: C99 inline functions are not supported; using GNU89".
11009
11010 2007-10-12  Bruno Haible  <bruno@clisp.org>
11011
11012         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
11013         of 2.
11014         * tests/test-ceilf2.c: New file.
11015         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
11016
11017         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
11018         * modules/ceilf-tests: Update.
11019
11020 2007-10-12  Bruno Haible  <bruno@clisp.org>
11021
11022         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
11023         of 2.
11024         * tests/test-floorf2.c: New file.
11025         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
11026
11027         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
11028         * modules/floorf-tests: Update.
11029
11030 2007-10-12  Bruno Haible  <bruno@clisp.org>
11031
11032         * tests/test-trunc2.c: New file.
11033         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
11034
11035         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
11036         * modules/trunc-tests: Update.
11037
11038 2007-10-12  Bruno Haible  <bruno@clisp.org>
11039
11040         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
11041         of 2.
11042         * tests/test-truncf2.c: New file.
11043         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
11044
11045         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
11046         * modules/truncf-tests: Update.
11047
11048 2007-10-11  Eric Blake  <ebb9@byu.net>
11049
11050         Don't claim strerror is broken on Interix.
11051         * doc/functions/strerror.texi (strerror): Known broken systems are
11052         now Solaris 8, and not Interix.
11053         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
11054         Interix on cross-compile.
11055         Reported by Martin Koeppe in
11056         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
11057
11058 2007-10-11  Bruno Haible  <bruno@clisp.org>
11059
11060         * modules/i-ring-tests: New file.
11061         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
11062         instead of assert.
11063
11064 2007-10-11  Bruno Haible  <bruno@clisp.org>
11065
11066         * modules/filenamecat-tests: New file.
11067         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
11068         * lib/filenamecat.c: Remove test code.
11069
11070 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11071
11072         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
11073
11074         * lib/strerror.c: Include <string.h> always, to test interface,
11075         and to remove the need for the dummy.
11076         Include intprops.h to compute width instead of doing it ourselves
11077         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
11078         (strerror): Define it to return NULL if there's no system strerror.
11079         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
11080         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
11081         ancient pre-strerror Unix systems well any more.  Saying "unknown
11082         system error" is enough.
11083         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
11084         simpler strerror.c implementation.
11085         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
11086         Simplify the tests to reflect the simpler strerror implementation.
11087         * modules/strerror (Depends-on): Add intprops.
11088
11089 2007-10-09  Eric Blake  <ebb9@byu.net>
11090
11091         Silence test-fpending.
11092         * modules/fpending-tests (Files): Add wrapper script.
11093         * tests/test-fpending.sh: New file.
11094
11095 2007-10-09  Bruno Haible  <bruno@clisp.org>
11096
11097         * MODULES.html.sh (func_module): Don't create a hyperlink for
11098         function names like 'printf_frexp'.
11099         (Misc): Add crc, memxor.
11100         (Characteristics of floating types): New section.
11101         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
11102         isnanf-nolibm, signbit, trunc, truncf, truncl.
11103         (Enhancements for ISO C 99 functions): New subsection Input/output.
11104         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
11105         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
11106         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
11107         (Compatibility checks for POSIX:2001 functions): Add clock-time.
11108         (Enhancements for POSIX:2001 functions): Add chdir-long.
11109         (File system functions): Add areadlink, chdir-safer, read-file.
11110         Remove cycle-check.
11111         (File system as inode set): New section.
11112         (Date and time): Add gethrxtime.
11113         (Multithreading): Add openmp.
11114         (Internationalization functions): Add localename.
11115         (Unicode string functions): Add unistr/u*-mbsnlen.
11116         (Support for maintaining and releasing projects): Add git-version-gen.
11117         (Lone files): Remove directories.
11118
11119 2007-10-08  Ben Pfaff  <blp@gnu.org>
11120
11121         * lib/xmalloca.h: Fix typo in comment.
11122
11123 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11124
11125         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11126         when avoiding problems with integer overflow.  Use a portable test
11127         instead.
11128
11129 2007-10-08  Simon Josefsson  <simon@josefsson.org>
11130
11131         * modules/dummy (License): Change to LGPLv2+.
11132         * modules/float (License): Likewise
11133         * modules/realloc (License): Likewise
11134         * modules/stdlib (License): Likewise
11135
11136 2007-10-07  Bruno Haible  <bruno@clisp.org>
11137
11138         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11139         * floor.c (TWO_MANT_DIG): Likewise.
11140         * ceil.c (TWO_MANT_DIG): Likewise.
11141         Reported by Ben Pfaff.
11142
11143 2007-10-07  Bruno Haible  <bruno@clisp.org>
11144
11145         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11146         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11147         * lib/frexp.c (FUNC): Likewise.
11148         * lib/printf-frexp.h (printf_frexp): Likewise.
11149         * lib/printf-frexpl.h (printf_frexpl): Likewise.
11150         * lib/printf-frexp.c (FUNC): Likewise.
11151         Suggested by Jim Meyering.
11152
11153 2007-10-07  Jim Meyering  <meyering@redhat.com>
11154
11155         Make xnanosleep's integer overflow test more robust.
11156         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11157         so that gcc-4.3.0 doesn't optimize away this test for overflow.
11158
11159 2007-10-07  Bruno Haible  <bruno@clisp.org>
11160
11161         * NEWS: Mention the license change.
11162
11163         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11164         abbreviations in the modules files.
11165
11166         Change copyright notice from GPLv2+ to GPLv3+.
11167         * README: Change copyright notice.
11168         * MODULES.html.sh: Likewise.
11169         * build-aux/bootstrap.conf: Likewise.
11170         * build-aux/config.libpath: Likewise.
11171         * build-aux/csharpcomp.sh.in: Likewise.
11172         * build-aux/csharpexec.sh.in: Likewise.
11173         * build-aux/install-reloc: Likewise.
11174         * build-aux/javacomp.sh.in: Likewise.
11175         * build-aux/javaexec.sh.in: Likewise.
11176         * build-aux/ldd.sh.in: Likewise.
11177         * build-aux/reloc-ldflags: Likewise.
11178         * build-aux/relocatable.sh.in: Likewise.
11179         * build-aux/x-to-1.in: Likewise.
11180         * check-module: Likewise.
11181         * config/srclistvars.sh: Likewise.
11182         * gnulib-tool: Likewise.
11183         * lib/acl-internal.h: Likewise.
11184         * lib/acl.c: Likewise.
11185         * lib/acl.h: Likewise.
11186         * lib/acl_entries.c: Likewise.
11187         * lib/areadlink-with-size.c: Likewise.
11188         * lib/areadlink.c: Likewise.
11189         * lib/areadlink.h: Likewise.
11190         * lib/argmatch.c: Likewise.
11191         * lib/argmatch.h: Likewise.
11192         * lib/argp-ba.c: Likewise.
11193         * lib/argp-eexst.c: Likewise.
11194         * lib/argp-fmtstream.c: Likewise.
11195         * lib/argp-fmtstream.h: Likewise.
11196         * lib/argp-fs-xinl.c: Likewise.
11197         * lib/argp-help.c: Likewise.
11198         * lib/argp-namefrob.h: Likewise.
11199         * lib/argp-parse.c: Likewise.
11200         * lib/argp-pin.c: Likewise.
11201         * lib/argp-pv.c: Likewise.
11202         * lib/argp-pvh.c: Likewise.
11203         * lib/argp-xinl.c: Likewise.
11204         * lib/argp.h: Likewise.
11205         * lib/at-func.c: Likewise.
11206         * lib/atanl.c: Likewise.
11207         * lib/backupfile.c: Likewise.
11208         * lib/backupfile.h: Likewise.
11209         * lib/basename.c: Likewise.
11210         * lib/binary-io.h: Likewise.
11211         * lib/byteswap.in.h: Likewise.
11212         * lib/c-stack.c: Likewise.
11213         * lib/c-stack.h: Likewise.
11214         * lib/c-strcasestr.c: Likewise.
11215         * lib/c-strcasestr.h: Likewise.
11216         * lib/c-strstr.c: Likewise.
11217         * lib/c-strstr.h: Likewise.
11218         * lib/c-strtod.c: Likewise.
11219         * lib/calloc.c: Likewise.
11220         * lib/canon-host.c: Likewise.
11221         * lib/canon-host.h: Likewise.
11222         * lib/canonicalize-lgpl.c: Likewise.
11223         * lib/canonicalize.c: Likewise.
11224         * lib/canonicalize.h: Likewise.
11225         * lib/ceil.c: Likewise.
11226         * lib/ceilf.c: Likewise.
11227         * lib/ceill.c: Likewise.
11228         * lib/chdir-long.c: Likewise.
11229         * lib/chdir-long.h: Likewise.
11230         * lib/chdir-safer.c: Likewise.
11231         * lib/chdir-safer.h: Likewise.
11232         * lib/chown.c: Likewise.
11233         * lib/classpath.c: Likewise.
11234         * lib/classpath.h: Likewise.
11235         * lib/clean-temp.c: Likewise.
11236         * lib/clean-temp.h: Likewise.
11237         * lib/cloexec.c: Likewise.
11238         * lib/close-stream.c: Likewise.
11239         * lib/closein.c: Likewise.
11240         * lib/closein.h: Likewise.
11241         * lib/closeout.c: Likewise.
11242         * lib/closeout.h: Likewise.
11243         * lib/concat-filename.c: Likewise.
11244         * lib/copy-file.c: Likewise.
11245         * lib/copy-file.h: Likewise.
11246         * lib/count-one-bits.h: Likewise.
11247         * lib/crc.c: Likewise.
11248         * lib/crc.h: Likewise.
11249         * lib/creat-safer.c: Likewise.
11250         * lib/csharpcomp.c: Likewise.
11251         * lib/csharpcomp.h: Likewise.
11252         * lib/csharpexec.c: Likewise.
11253         * lib/csharpexec.h: Likewise.
11254         * lib/cycle-check.c: Likewise.
11255         * lib/cycle-check.h: Likewise.
11256         * lib/diacrit.c: Likewise.
11257         * lib/diacrit.h: Likewise.
11258         * lib/diffseq.h: Likewise.
11259         * lib/dirchownmod.c: Likewise.
11260         * lib/dirent.in.h: Likewise.
11261         * lib/dirfd.c: Likewise.
11262         * lib/dirfd.h: Likewise.
11263         * lib/dirname.c: Likewise.
11264         * lib/dirname.h: Likewise.
11265         * lib/dummy.c: Likewise.
11266         * lib/dup-safer.c: Likewise.
11267         * lib/dup2.c: Likewise.
11268         * lib/eealloc.h: Likewise.
11269         * lib/error.c: Likewise.
11270         * lib/error.h: Likewise.
11271         * lib/euidaccess.c: Likewise.
11272         * lib/exclude.c: Likewise.
11273         * lib/exclude.h: Likewise.
11274         * lib/execute.c: Likewise.
11275         * lib/execute.h: Likewise.
11276         * lib/exitfail.c: Likewise.
11277         * lib/exitfail.h: Likewise.
11278         * lib/expl.c: Likewise.
11279         * lib/fatal-signal.c: Likewise.
11280         * lib/fatal-signal.h: Likewise.
11281         * lib/fbufmode.c: Likewise.
11282         * lib/fbufmode.h: Likewise.
11283         * lib/fchdir.c: Likewise.
11284         * lib/fchmodat.c: Likewise.
11285         * lib/fchownat.c: Likewise.
11286         * lib/fcntl--.h: Likewise.
11287         * lib/fcntl-safer.h: Likewise.
11288         * lib/fcntl.in.h: Likewise.
11289         * lib/fd-safer.c: Likewise.
11290         * lib/fflush.c: Likewise.
11291         * lib/file-has-acl.c: Likewise.
11292         * lib/file-set.c: Likewise.
11293         * lib/file-type.c: Likewise.
11294         * lib/file-type.h: Likewise.
11295         * lib/fileblocks.c: Likewise.
11296         * lib/filemode.c: Likewise.
11297         * lib/filemode.h: Likewise.
11298         * lib/filename.h: Likewise.
11299         * lib/filenamecat.c: Likewise.
11300         * lib/filenamecat.h: Likewise.
11301         * lib/findprog.c: Likewise.
11302         * lib/findprog.h: Likewise.
11303         * lib/float.in.h: Likewise.
11304         * lib/floor.c: Likewise.
11305         * lib/floorf.c: Likewise.
11306         * lib/floorl.c: Likewise.
11307         * lib/fopen-safer.c: Likewise.
11308         * lib/fopen.c: Likewise.
11309         * lib/fpending.c: Likewise.
11310         * lib/fpending.h: Likewise.
11311         * lib/fprintf.c: Likewise.
11312         * lib/fprintftime.h: Likewise.
11313         * lib/fpucw.h: Likewise.
11314         * lib/fpurge.c: Likewise.
11315         * lib/fpurge.h: Likewise.
11316         * lib/freadable.c: Likewise.
11317         * lib/freadable.h: Likewise.
11318         * lib/freadahead.c: Likewise.
11319         * lib/freadahead.h: Likewise.
11320         * lib/freading.c: Likewise.
11321         * lib/freading.h: Likewise.
11322         * lib/free.c: Likewise.
11323         * lib/freopen.c: Likewise.
11324         * lib/frexp.c: Likewise.
11325         * lib/frexpl.c: Likewise.
11326         * lib/fseek.c: Likewise.
11327         * lib/fseterr.c: Likewise.
11328         * lib/fseterr.h: Likewise.
11329         * lib/fstatat.c: Likewise.
11330         * lib/fstrcmp.c: Likewise.
11331         * lib/fstrcmp.h: Likewise.
11332         * lib/fsusage.c: Likewise.
11333         * lib/fsusage.h: Likewise.
11334         * lib/ftell.c: Likewise.
11335         * lib/ftello.c: Likewise.
11336         * lib/fts-cycle.c: Likewise.
11337         * lib/fts.c: Likewise.
11338         * lib/fts_.h: Likewise.
11339         * lib/full-read.c: Likewise.
11340         * lib/full-read.h: Likewise.
11341         * lib/full-write.c: Likewise.
11342         * lib/full-write.h: Likewise.
11343         * lib/fwritable.c: Likewise.
11344         * lib/fwritable.h: Likewise.
11345         * lib/fwriteerror.c: Likewise.
11346         * lib/fwriteerror.h: Likewise.
11347         * lib/fwriting.c: Likewise.
11348         * lib/fwriting.h: Likewise.
11349         * lib/gcd.c: Likewise.
11350         * lib/gcd.h: Likewise.
11351         * lib/getcwd.c: Likewise.
11352         * lib/getdate.h: Likewise.
11353         * lib/getdate.y: Likewise.
11354         * lib/getdomainname.c: Likewise.
11355         * lib/getdomainname.h: Likewise.
11356         * lib/getgroups.c: Likewise.
11357         * lib/gethostname.c: Likewise.
11358         * lib/gethrxtime.c: Likewise.
11359         * lib/gethrxtime.h: Likewise.
11360         * lib/getloadavg.c: Likewise.
11361         * lib/getndelim2.c: Likewise.
11362         * lib/getndelim2.h: Likewise.
11363         * lib/getnline.c: Likewise.
11364         * lib/getnline.h: Likewise.
11365         * lib/getopt.c: Likewise.
11366         * lib/getopt.in.h: Likewise.
11367         * lib/getopt1.c: Likewise.
11368         * lib/getopt_int.h: Likewise.
11369         * lib/getpagesize.h: Likewise.
11370         * lib/getsubopt.c: Likewise.
11371         * lib/gettime.c: Likewise.
11372         * lib/getugroups.c: Likewise.
11373         * lib/getugroups.h: Likewise.
11374         * lib/getusershell.c: Likewise.
11375         * lib/gl_anyavltree_list1.h: Likewise.
11376         * lib/gl_anyavltree_list2.h: Likewise.
11377         * lib/gl_anyhash_list1.h: Likewise.
11378         * lib/gl_anyhash_list2.h: Likewise.
11379         * lib/gl_anylinked_list1.h: Likewise.
11380         * lib/gl_anylinked_list2.h: Likewise.
11381         * lib/gl_anyrbtree_list1.h: Likewise.
11382         * lib/gl_anyrbtree_list2.h: Likewise.
11383         * lib/gl_anytree_list1.h: Likewise.
11384         * lib/gl_anytree_list2.h: Likewise.
11385         * lib/gl_anytree_oset.h: Likewise.
11386         * lib/gl_anytreehash_list1.h: Likewise.
11387         * lib/gl_anytreehash_list2.h: Likewise.
11388         * lib/gl_array_list.c: Likewise.
11389         * lib/gl_array_list.h: Likewise.
11390         * lib/gl_array_oset.c: Likewise.
11391         * lib/gl_array_oset.h: Likewise.
11392         * lib/gl_avltree_list.c: Likewise.
11393         * lib/gl_avltree_list.h: Likewise.
11394         * lib/gl_avltree_oset.c: Likewise.
11395         * lib/gl_avltree_oset.h: Likewise.
11396         * lib/gl_avltreehash_list.c: Likewise.
11397         * lib/gl_avltreehash_list.h: Likewise.
11398         * lib/gl_carray_list.c: Likewise.
11399         * lib/gl_carray_list.h: Likewise.
11400         * lib/gl_linked_list.c: Likewise.
11401         * lib/gl_linked_list.h: Likewise.
11402         * lib/gl_linkedhash_list.c: Likewise.
11403         * lib/gl_linkedhash_list.h: Likewise.
11404         * lib/gl_list.c: Likewise.
11405         * lib/gl_list.h: Likewise.
11406         * lib/gl_oset.c: Likewise.
11407         * lib/gl_oset.h: Likewise.
11408         * lib/gl_rbtree_list.c: Likewise.
11409         * lib/gl_rbtree_list.h: Likewise.
11410         * lib/gl_rbtree_oset.c: Likewise.
11411         * lib/gl_rbtree_oset.h: Likewise.
11412         * lib/gl_rbtreehash_list.c: Likewise.
11413         * lib/gl_rbtreehash_list.h: Likewise.
11414         * lib/gl_sublist.c: Likewise.
11415         * lib/gl_sublist.h: Likewise.
11416         * lib/group-member.c: Likewise.
11417         * lib/group-member.h: Likewise.
11418         * lib/hard-locale.c: Likewise.
11419         * lib/hard-locale.h: Likewise.
11420         * lib/hash-pjw.c: Likewise.
11421         * lib/hash-pjw.h: Likewise.
11422         * lib/hash-triple.c: Likewise.
11423         * lib/hash.c: Likewise.
11424         * lib/hash.h: Likewise.
11425         * lib/human.c: Likewise.
11426         * lib/human.h: Likewise.
11427         * lib/i-ring.c: Likewise.
11428         * lib/i-ring.h: Likewise.
11429         * lib/idcache.c: Likewise.
11430         * lib/imaxabs.c: Likewise.
11431         * lib/imaxdiv.c: Likewise.
11432         * lib/inet_pton.c: Likewise.
11433         * lib/inet_pton.h: Likewise.
11434         * lib/intprops.h: Likewise.
11435         * lib/inttostr.c: Likewise.
11436         * lib/inttostr.h: Likewise.
11437         * lib/inttypes.in.h: Likewise.
11438         * lib/isapipe.c: Likewise.
11439         * lib/isdir.c: Likewise.
11440         * lib/isnan.c: Likewise.
11441         * lib/isnan.h: Likewise.
11442         * lib/isnanf.c: Likewise.
11443         * lib/isnanf.h: Likewise.
11444         * lib/isnanl-nolibm.h: Likewise.
11445         * lib/isnanl.c: Likewise.
11446         * lib/isnanl.h: Likewise.
11447         * lib/javacomp.c: Likewise.
11448         * lib/javacomp.h: Likewise.
11449         * lib/javaexec.c: Likewise.
11450         * lib/javaexec.h: Likewise.
11451         * lib/javaversion.c: Likewise.
11452         * lib/javaversion.h: Likewise.
11453         * lib/javaversion.java: Likewise.
11454         * lib/lbrkprop.h: Likewise.
11455         * lib/lchmod.h: Likewise.
11456         * lib/lchown.c: Likewise.
11457         * lib/ldexpl.c: Likewise.
11458         * lib/linebreak.c: Likewise.
11459         * lib/linebreak.h: Likewise.
11460         * lib/linebuffer.c: Likewise.
11461         * lib/linebuffer.h: Likewise.
11462         * lib/locale.in.h: Likewise.
11463         * lib/logl.c: Likewise.
11464         * lib/long-options.c: Likewise.
11465         * lib/long-options.h: Likewise.
11466         * lib/lstat.c: Likewise.
11467         * lib/lstat.h: Likewise.
11468         * lib/math.in.h: Likewise.
11469         * lib/mbchar.c: Likewise.
11470         * lib/mbchar.h: Likewise.
11471         * lib/mbfile.h: Likewise.
11472         * lib/mbiter.h: Likewise.
11473         * lib/mbscasecmp.c: Likewise.
11474         * lib/mbscasestr.c: Likewise.
11475         * lib/mbschr.c: Likewise.
11476         * lib/mbscspn.c: Likewise.
11477         * lib/mbslen.c: Likewise.
11478         * lib/mbsncasecmp.c: Likewise.
11479         * lib/mbsnlen.c: Likewise.
11480         * lib/mbspbrk.c: Likewise.
11481         * lib/mbspcasecmp.c: Likewise.
11482         * lib/mbsrchr.c: Likewise.
11483         * lib/mbssep.c: Likewise.
11484         * lib/mbsspn.c: Likewise.
11485         * lib/mbsstr.c: Likewise.
11486         * lib/mbstok_r.c: Likewise.
11487         * lib/mbswidth.c: Likewise.
11488         * lib/mbswidth.h: Likewise.
11489         * lib/mbuiter.h: Likewise.
11490         * lib/memcasecmp.c: Likewise.
11491         * lib/memcasecmp.h: Likewise.
11492         * lib/memchr.c: Likewise.
11493         * lib/memcmp.c: Likewise.
11494         * lib/memcoll.c: Likewise.
11495         * lib/memcoll.h: Likewise.
11496         * lib/memcpy.c: Likewise.
11497         * lib/memrchr.c: Likewise.
11498         * lib/mkancesdirs.c: Likewise.
11499         * lib/mkdir-p.c: Likewise.
11500         * lib/mkdir-p.h: Likewise.
11501         * lib/mkdir.c: Likewise.
11502         * lib/mkdirat.c: Likewise.
11503         * lib/mkdtemp.c: Likewise.
11504         * lib/mkstemp-safer.c: Likewise.
11505         * lib/mkstemp.c: Likewise.
11506         * lib/modechange.c: Likewise.
11507         * lib/modechange.h: Likewise.
11508         * lib/mountlist.c: Likewise.
11509         * lib/mountlist.h: Likewise.
11510         * lib/mpsort.c: Likewise.
11511         * lib/nanosleep.c: Likewise.
11512         * lib/obstack.c: Likewise.
11513         * lib/obstack.h: Likewise.
11514         * lib/open-safer.c: Likewise.
11515         * lib/open.c: Likewise.
11516         * lib/openat-die.c: Likewise.
11517         * lib/openat-priv.h: Likewise.
11518         * lib/openat-proc.c: Likewise.
11519         * lib/openat.c: Likewise.
11520         * lib/openat.h: Likewise.
11521         * lib/pagealign_alloc.c: Likewise.
11522         * lib/pagealign_alloc.h: Likewise.
11523         * lib/physmem.c: Likewise.
11524         * lib/physmem.h: Likewise.
11525         * lib/pipe-safer.c: Likewise.
11526         * lib/pipe.c: Likewise.
11527         * lib/pipe.h: Likewise.
11528         * lib/posixtm.c: Likewise.
11529         * lib/posixtm.h: Likewise.
11530         * lib/posixver.c: Likewise.
11531         * lib/printf-frexp.c: Likewise.
11532         * lib/printf-frexp.h: Likewise.
11533         * lib/printf-frexpl.c: Likewise.
11534         * lib/printf-frexpl.h: Likewise.
11535         * lib/printf.c: Likewise.
11536         * lib/progname.c: Likewise.
11537         * lib/progname.h: Likewise.
11538         * lib/progreloc.c: Likewise.
11539         * lib/putenv.c: Likewise.
11540         * lib/quote.c: Likewise.
11541         * lib/quote.h: Likewise.
11542         * lib/quotearg.c: Likewise.
11543         * lib/quotearg.h: Likewise.
11544         * lib/raise.c: Likewise.
11545         * lib/readline.c: Likewise.
11546         * lib/readline.h: Likewise.
11547         * lib/readlink.c: Likewise.
11548         * lib/readtokens.c: Likewise.
11549         * lib/readtokens.h: Likewise.
11550         * lib/readtokens0.c: Likewise.
11551         * lib/readtokens0.h: Likewise.
11552         * lib/readutmp.c: Likewise.
11553         * lib/readutmp.h: Likewise.
11554         * lib/realloc.c: Likewise.
11555         * lib/relocwrapper.c: Likewise.
11556         * lib/rename-dest-slash.c: Likewise.
11557         * lib/rename.c: Likewise.
11558         * lib/rmdir.c: Likewise.
11559         * lib/rpmatch.c: Likewise.
11560         * lib/safe-read.c: Likewise.
11561         * lib/safe-read.h: Likewise.
11562         * lib/safe-write.c: Likewise.
11563         * lib/safe-write.h: Likewise.
11564         * lib/same-inode.h: Likewise.
11565         * lib/same.c: Likewise.
11566         * lib/same.h: Likewise.
11567         * lib/save-cwd.c: Likewise.
11568         * lib/save-cwd.h: Likewise.
11569         * lib/savedir.c: Likewise.
11570         * lib/savedir.h: Likewise.
11571         * lib/savewd.c: Likewise.
11572         * lib/savewd.h: Likewise.
11573         * lib/search.in.h: Likewise.
11574         * lib/setenv.c: Likewise.
11575         * lib/setenv.h: Likewise.
11576         * lib/settime.c: Likewise.
11577         * lib/sh-quote.c: Likewise.
11578         * lib/sh-quote.h: Likewise.
11579         * lib/sig2str.c: Likewise.
11580         * lib/sig2str.h: Likewise.
11581         * lib/signal.in.h: Likewise.
11582         * lib/signbitd.c: Likewise.
11583         * lib/signbitf.c: Likewise.
11584         * lib/signbitl.c: Likewise.
11585         * lib/sigprocmask.c: Likewise.
11586         * lib/sincosl.c: Likewise.
11587         * lib/sleep.c: Likewise.
11588         * lib/sprintf.c: Likewise.
11589         * lib/sqrtl.c: Likewise.
11590         * lib/stat-time.h: Likewise.
11591         * lib/stdio--.h: Likewise.
11592         * lib/stdio-safer.h: Likewise.
11593         * lib/stdlib--.h: Likewise.
11594         * lib/stdlib-safer.h: Likewise.
11595         * lib/stdlib.in.h: Likewise.
11596         * lib/stpcpy.c: Likewise.
11597         * lib/stpncpy.c: Likewise.
11598         * lib/strchrnul.c: Likewise.
11599         * lib/strcspn.c: Likewise.
11600         * lib/strerror.c: Likewise.
11601         * lib/strftime.c: Likewise.
11602         * lib/strftime.h: Likewise.
11603         * lib/striconveh.c: Likewise.
11604         * lib/striconveh.h: Likewise.
11605         * lib/striconveha.c: Likewise.
11606         * lib/striconveha.h: Likewise.
11607         * lib/stripslash.c: Likewise.
11608         * lib/strnlen1.c: Likewise.
11609         * lib/strnlen1.h: Likewise.
11610         * lib/strtod.c: Likewise.
11611         * lib/strtoimax.c: Likewise.
11612         * lib/strtok_r.c: Likewise.
11613         * lib/strtol.c: Likewise.
11614         * lib/strtoll.c: Likewise.
11615         * lib/strtoul.c: Likewise.
11616         * lib/strtoull.c: Likewise.
11617         * lib/sysexits.in.h: Likewise.
11618         * lib/tempname.c: Likewise.
11619         * lib/tempname.h: Likewise.
11620         * lib/timespec.h: Likewise.
11621         * lib/tls.c: Likewise.
11622         * lib/tls.h: Likewise.
11623         * lib/tmpdir.c: Likewise.
11624         * lib/tmpdir.h: Likewise.
11625         * lib/tmpfile-safer.c: Likewise.
11626         * lib/tmpfile.c: Likewise.
11627         * lib/trigl.c: Likewise.
11628         * lib/trigl.h: Likewise.
11629         * lib/trim.c: Likewise.
11630         * lib/trim.h: Likewise.
11631         * lib/trunc.c: Likewise.
11632         * lib/truncf.c: Likewise.
11633         * lib/truncl.c: Likewise.
11634         * lib/tsearch.c: Likewise.
11635         * lib/unicodeio.c: Likewise.
11636         * lib/unicodeio.h: Likewise.
11637         * lib/unistd--.h: Likewise.
11638         * lib/unistd-safer.h: Likewise.
11639         * lib/unistdio/ulc-fprintf.c: Likewise.
11640         * lib/unistdio/ulc-vfprintf.c: Likewise.
11641         * lib/unlinkdir.c: Likewise.
11642         * lib/unlinkdir.h: Likewise.
11643         * lib/unlocked-io.h: Likewise.
11644         * lib/unsetenv.c: Likewise.
11645         * lib/userspec.c: Likewise.
11646         * lib/utime.c: Likewise.
11647         * lib/utimecmp.c: Likewise.
11648         * lib/utimecmp.h: Likewise.
11649         * lib/utimens.c: Likewise.
11650         * lib/verify.h: Likewise.
11651         * lib/verror.c: Likewise.
11652         * lib/verror.h: Likewise.
11653         * lib/version-etc-fsf.c: Likewise.
11654         * lib/version-etc.c: Likewise.
11655         * lib/version-etc.h: Likewise.
11656         * lib/vfprintf.c: Likewise.
11657         * lib/vprintf.c: Likewise.
11658         * lib/vsprintf.c: Likewise.
11659         * lib/w32spawn.h: Likewise.
11660         * lib/wait-process.c: Likewise.
11661         * lib/wait-process.h: Likewise.
11662         * lib/wcwidth.c: Likewise.
11663         * lib/write-any-file.c: Likewise.
11664         * lib/xalloc-die.c: Likewise.
11665         * lib/xalloc.h: Likewise.
11666         * lib/xasprintf.c: Likewise.
11667         * lib/xgetcwd.c: Likewise.
11668         * lib/xgetcwd.h: Likewise.
11669         * lib/xgetdomainname.c: Likewise.
11670         * lib/xgetdomainname.h: Likewise.
11671         * lib/xgethostname.c: Likewise.
11672         * lib/xmalloc.c: Likewise.
11673         * lib/xmalloca.c: Likewise.
11674         * lib/xmalloca.h: Likewise.
11675         * lib/xmemcoll.c: Likewise.
11676         * lib/xnanosleep.c: Likewise.
11677         * lib/xreadlink.c: Likewise.
11678         * lib/xreadlink.h: Likewise.
11679         * lib/xsetenv.c: Likewise.
11680         * lib/xsetenv.h: Likewise.
11681         * lib/xstriconv.c: Likewise.
11682         * lib/xstriconv.h: Likewise.
11683         * lib/xstrndup.c: Likewise.
11684         * lib/xstrndup.h: Likewise.
11685         * lib/xstrtod.c: Likewise.
11686         * lib/xstrtod.h: Likewise.
11687         * lib/xstrtol-error.c: Likewise.
11688         * lib/xstrtol.c: Likewise.
11689         * lib/xstrtol.h: Likewise.
11690         * lib/xtime.h: Likewise.
11691         * lib/xvasprintf.c: Likewise.
11692         * lib/xvasprintf.h: Likewise.
11693         * lib/yesno.c: Likewise.
11694         * lib/yesno.h: Likewise.
11695         * posix-modules: Likewise.
11696         * tests/test-alloca-opt.c: Likewise.
11697         * tests/test-arcfour.c: Likewise.
11698         * tests/test-arctwo.c: Likewise.
11699         * tests/test-argmatch.c: Likewise.
11700         * tests/test-argp-2.sh: Likewise.
11701         * tests/test-argp.c: Likewise.
11702         * tests/test-arpa_inet.c: Likewise.
11703         * tests/test-array_list.c: Likewise.
11704         * tests/test-array_oset.c: Likewise.
11705         * tests/test-atexit.c: Likewise.
11706         * tests/test-avltree_list.c: Likewise.
11707         * tests/test-avltree_oset.c: Likewise.
11708         * tests/test-avltreehash_list.c: Likewise.
11709         * tests/test-base64.c: Likewise.
11710         * tests/test-binary-io.c: Likewise.
11711         * tests/test-byteswap.c: Likewise.
11712         * tests/test-c-ctype.c: Likewise.
11713         * tests/test-c-strcasecmp.c: Likewise.
11714         * tests/test-c-strcasestr.c: Likewise.
11715         * tests/test-c-strncasecmp.c: Likewise.
11716         * tests/test-c-strstr.c: Likewise.
11717         * tests/test-canonicalize-lgpl.c: Likewise.
11718         * tests/test-canonicalize.c: Likewise.
11719         * tests/test-carray_list.c: Likewise.
11720         * tests/test-ceilf.c: Likewise.
11721         * tests/test-ceill.c: Likewise.
11722         * tests/test-count-one-bits.c: Likewise.
11723         * tests/test-crc.c: Likewise.
11724         * tests/test-dirname.c: Likewise.
11725         * tests/test-fbufmode.c: Likewise.
11726         * tests/test-fcntl.c: Likewise.
11727         * tests/test-fflush.c: Likewise.
11728         * tests/test-floorf.c: Likewise.
11729         * tests/test-floorl.c: Likewise.
11730         * tests/test-fopen.c: Likewise.
11731         * tests/test-fprintf-posix.c: Likewise.
11732         * tests/test-fprintf-posix.h: Likewise.
11733         * tests/test-fpurge.c: Likewise.
11734         * tests/test-freadable.c: Likewise.
11735         * tests/test-freadahead.c: Likewise.
11736         * tests/test-freading.c: Likewise.
11737         * tests/test-freopen.c: Likewise.
11738         * tests/test-frexp.c: Likewise.
11739         * tests/test-frexpl.c: Likewise.
11740         * tests/test-fseek.c: Likewise.
11741         * tests/test-fseeko.c: Likewise.
11742         * tests/test-fseterr.c: Likewise.
11743         * tests/test-fstrcmp.c: Likewise.
11744         * tests/test-ftell.c: Likewise.
11745         * tests/test-ftello.c: Likewise.
11746         * tests/test-fwritable.c: Likewise.
11747         * tests/test-fwriting.c: Likewise.
11748         * tests/test-getaddrinfo.c: Likewise.
11749         * tests/test-getpass.c: Likewise.
11750         * tests/test-gettimeofday.c: Likewise.
11751         * tests/test-hmac-md5.c: Likewise.
11752         * tests/test-hmac-sha1.c: Likewise.
11753         * tests/test-iconv.c: Likewise.
11754         * tests/test-iconvme.c: Likewise.
11755         * tests/test-inttypes.c: Likewise.
11756         * tests/test-isnan.c: Likewise.
11757         * tests/test-isnanf.c: Likewise.
11758         * tests/test-isnanl-nolibm.c: Likewise.
11759         * tests/test-isnanl.c: Likewise.
11760         * tests/test-isnanl.h: Likewise.
11761         * tests/test-ldexpl.c: Likewise.
11762         * tests/test-linked_list.c: Likewise.
11763         * tests/test-linkedhash_list.c: Likewise.
11764         * tests/test-locale.c: Likewise.
11765         * tests/test-localename.c: Likewise.
11766         * tests/test-lock.c: Likewise.
11767         * tests/test-lseek.c: Likewise.
11768         * tests/test-malloca.c: Likewise.
11769         * tests/test-math.c: Likewise.
11770         * tests/test-mbscasecmp.c: Likewise.
11771         * tests/test-mbscasestr1.c: Likewise.
11772         * tests/test-mbscasestr2.c: Likewise.
11773         * tests/test-mbscasestr3.c: Likewise.
11774         * tests/test-mbscasestr4.c: Likewise.
11775         * tests/test-mbschr.c: Likewise.
11776         * tests/test-mbscspn.c: Likewise.
11777         * tests/test-mbsncasecmp.c: Likewise.
11778         * tests/test-mbspbrk.c: Likewise.
11779         * tests/test-mbspcasecmp.c: Likewise.
11780         * tests/test-mbsrchr.c: Likewise.
11781         * tests/test-mbsspn.c: Likewise.
11782         * tests/test-mbsstr1.c: Likewise.
11783         * tests/test-mbsstr2.c: Likewise.
11784         * tests/test-mbsstr3.c: Likewise.
11785         * tests/test-md5.c: Likewise.
11786         * tests/test-memmem.c: Likewise.
11787         * tests/test-netinet_in.c: Likewise.
11788         * tests/test-open.c: Likewise.
11789         * tests/test-printf-frexp.c: Likewise.
11790         * tests/test-printf-frexpl.c: Likewise.
11791         * tests/test-printf-posix.c: Likewise.
11792         * tests/test-printf-posix.h: Likewise.
11793         * tests/test-rbtree_list.c: Likewise.
11794         * tests/test-rbtree_oset.c: Likewise.
11795         * tests/test-rbtreehash_list.c: Likewise.
11796         * tests/test-read-file.c: Likewise.
11797         * tests/test-rijndael.c: Likewise.
11798         * tests/test-search.c: Likewise.
11799         * tests/test-signbit.c: Likewise.
11800         * tests/test-sleep.c: Likewise.
11801         * tests/test-snprintf-posix.c: Likewise.
11802         * tests/test-snprintf-posix.h: Likewise.
11803         * tests/test-snprintf.c: Likewise.
11804         * tests/test-sprintf-posix.c: Likewise.
11805         * tests/test-sprintf-posix.h: Likewise.
11806         * tests/test-stat-time.c: Likewise.
11807         * tests/test-stdbool.c: Likewise.
11808         * tests/test-stdint.c: Likewise.
11809         * tests/test-stdio.c: Likewise.
11810         * tests/test-stdlib.c: Likewise.
11811         * tests/test-stpncpy.c: Likewise.
11812         * tests/test-strcasestr.c: Likewise.
11813         * tests/test-striconv.c: Likewise.
11814         * tests/test-striconveh.c: Likewise.
11815         * tests/test-striconveha.c: Likewise.
11816         * tests/test-string.c: Likewise.
11817         * tests/test-sys_select.c: Likewise.
11818         * tests/test-sys_socket.c: Likewise.
11819         * tests/test-sys_stat.c: Likewise.
11820         * tests/test-sys_time.c: Likewise.
11821         * tests/test-sysexits.c: Likewise.
11822         * tests/test-time.c: Likewise.
11823         * tests/test-tls.c: Likewise.
11824         * tests/test-trunc.c: Likewise.
11825         * tests/test-truncf.c: Likewise.
11826         * tests/test-truncl.c: Likewise.
11827         * tests/test-unistd.c: Likewise.
11828         * tests/test-vasnprintf-posix.c: Likewise.
11829         * tests/test-vasnprintf-posix2.c: Likewise.
11830         * tests/test-vasnprintf.c: Likewise.
11831         * tests/test-vasprintf-posix.c: Likewise.
11832         * tests/test-vasprintf.c: Likewise.
11833         * tests/test-verify.c: Likewise.
11834         * tests/test-vfprintf-posix.c: Likewise.
11835         * tests/test-vprintf-posix.c: Likewise.
11836         * tests/test-vsnprintf-posix.c: Likewise.
11837         * tests/test-vsnprintf.c: Likewise.
11838         * tests/test-vsprintf-posix.c: Likewise.
11839         * tests/test-wchar.c: Likewise.
11840         * tests/test-wctype.c: Likewise.
11841         * tests/test-wcwidth.c: Likewise.
11842         * tests/test-xstrtol.c: Likewise.
11843         * tests/test-xvasprintf.c: Likewise.
11844         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11845         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11846         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11847         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11848         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11849         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11850         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11851         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11852         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11853         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11854         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11855         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11856         * tests/uniname/test-uninames.c: Likewise.
11857         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11858         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11859         * tests/unistdio/test-u16-printf1.h: Likewise.
11860         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11861         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11862         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11863         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11864         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11865         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11866         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11867         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11868         * tests/unistdio/test-u32-printf1.h: Likewise.
11869         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11870         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11871         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11872         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11873         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11874         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11875         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11876         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11877         * tests/unistdio/test-u8-printf1.h: Likewise.
11878         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11879         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11880         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11881         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11882         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11883         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11884         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11885         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11886         * tests/unistdio/test-ulc-printf1.h: Likewise.
11887         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11888         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11889         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11890         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11891         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11892         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11893         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11894         * tests/uniwidth/test-u16-width.c: Likewise.
11895         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11896         * tests/uniwidth/test-u32-width.c: Likewise.
11897         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11898         * tests/uniwidth/test-u8-width.c: Likewise.
11899         * tests/uniwidth/test-uc_width.c: Likewise.
11900         * config/srclist-update: Likewise.
11901         (fixlicense): Update to GPLv3+.
11902
11903         Change copyright notice from LGPLv2.1+ to LGPLv3+.
11904         * tests/test-tsearch.c: Change copyright notice.
11905
11906         Change copyright notice from LGPLv2.0+ to LGPLv3+.
11907         * lib/c-strcaseeq.h: Change copyright notice.
11908         * lib/streq.h: Likewise.
11909         * lib/uniconv.h: Likewise.
11910         * lib/uniconv/u-conv-from-enc.h: Likewise.
11911         * lib/uniconv/u-conv-to-enc.h: Likewise.
11912         * lib/uniconv/u-strconv-from-enc.h: Likewise.
11913         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11914         * lib/uniconv/u16-conv-from-enc.c: Likewise.
11915         * lib/uniconv/u16-conv-to-enc.c: Likewise.
11916         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11917         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11918         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11919         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11920         * lib/uniconv/u32-conv-from-enc.c: Likewise.
11921         * lib/uniconv/u32-conv-to-enc.c: Likewise.
11922         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11923         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11924         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11925         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11926         * lib/uniconv/u8-conv-from-enc.c: Likewise.
11927         * lib/uniconv/u8-conv-to-enc.c: Likewise.
11928         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11929         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11930         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11931         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11932         * lib/uniname.h: Likewise.
11933         * lib/uniname/uniname.c: Likewise.
11934         * lib/unistdio.h: Likewise.
11935         * lib/unistdio/u-asnprintf.h: Likewise.
11936         * lib/unistdio/u-asprintf.h: Likewise.
11937         * lib/unistdio/u-printf-args.c: Likewise.
11938         * lib/unistdio/u-printf-args.h: Likewise.
11939         * lib/unistdio/u-printf-parse.h: Likewise.
11940         * lib/unistdio/u-snprintf.h: Likewise.
11941         * lib/unistdio/u-sprintf.h: Likewise.
11942         * lib/unistdio/u-vasprintf.h: Likewise.
11943         * lib/unistdio/u-vsnprintf.h: Likewise.
11944         * lib/unistdio/u-vsprintf.h: Likewise.
11945         * lib/unistdio/u16-asnprintf.c: Likewise.
11946         * lib/unistdio/u16-asprintf.c: Likewise.
11947         * lib/unistdio/u16-printf-parse.c: Likewise.
11948         * lib/unistdio/u16-snprintf.c: Likewise.
11949         * lib/unistdio/u16-sprintf.c: Likewise.
11950         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11951         * lib/unistdio/u16-u16-asprintf.c: Likewise.
11952         * lib/unistdio/u16-u16-snprintf.c: Likewise.
11953         * lib/unistdio/u16-u16-sprintf.c: Likewise.
11954         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11955         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11956         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11957         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11958         * lib/unistdio/u16-vasnprintf.c: Likewise.
11959         * lib/unistdio/u16-vasprintf.c: Likewise.
11960         * lib/unistdio/u16-vsnprintf.c: Likewise.
11961         * lib/unistdio/u16-vsprintf.c: Likewise.
11962         * lib/unistdio/u32-asnprintf.c: Likewise.
11963         * lib/unistdio/u32-asprintf.c: Likewise.
11964         * lib/unistdio/u32-printf-parse.c: Likewise.
11965         * lib/unistdio/u32-snprintf.c: Likewise.
11966         * lib/unistdio/u32-sprintf.c: Likewise.
11967         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11968         * lib/unistdio/u32-u32-asprintf.c: Likewise.
11969         * lib/unistdio/u32-u32-snprintf.c: Likewise.
11970         * lib/unistdio/u32-u32-sprintf.c: Likewise.
11971         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11972         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11973         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11974         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11975         * lib/unistdio/u32-vasnprintf.c: Likewise.
11976         * lib/unistdio/u32-vasprintf.c: Likewise.
11977         * lib/unistdio/u32-vsnprintf.c: Likewise.
11978         * lib/unistdio/u32-vsprintf.c: Likewise.
11979         * lib/unistdio/u8-asnprintf.c: Likewise.
11980         * lib/unistdio/u8-asprintf.c: Likewise.
11981         * lib/unistdio/u8-printf-parse.c: Likewise.
11982         * lib/unistdio/u8-snprintf.c: Likewise.
11983         * lib/unistdio/u8-sprintf.c: Likewise.
11984         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11985         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11986         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11987         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11988         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11989         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11990         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11991         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11992         * lib/unistdio/u8-vasnprintf.c: Likewise.
11993         * lib/unistdio/u8-vasprintf.c: Likewise.
11994         * lib/unistdio/u8-vsnprintf.c: Likewise.
11995         * lib/unistdio/u8-vsprintf.c: Likewise.
11996         * lib/unistdio/ulc-asnprintf.c: Likewise.
11997         * lib/unistdio/ulc-asprintf.c: Likewise.
11998         * lib/unistdio/ulc-printf-parse.c: Likewise.
11999         * lib/unistdio/ulc-snprintf.c: Likewise.
12000         * lib/unistdio/ulc-sprintf.c: Likewise.
12001         * lib/unistdio/ulc-vasnprintf.c: Likewise.
12002         * lib/unistdio/ulc-vasprintf.c: Likewise.
12003         * lib/unistdio/ulc-vsnprintf.c: Likewise.
12004         * lib/unistdio/ulc-vsprintf.c: Likewise.
12005         * lib/unistr.h: Likewise.
12006         * lib/unistr/u-cpy-alloc.h: Likewise.
12007         * lib/unistr/u-cpy.h: Likewise.
12008         * lib/unistr/u-endswith.h: Likewise.
12009         * lib/unistr/u-move.h: Likewise.
12010         * lib/unistr/u-set.h: Likewise.
12011         * lib/unistr/u-startswith.h: Likewise.
12012         * lib/unistr/u-stpcpy.h: Likewise.
12013         * lib/unistr/u-stpncpy.h: Likewise.
12014         * lib/unistr/u-strcat.h: Likewise.
12015         * lib/unistr/u-strcpy.h: Likewise.
12016         * lib/unistr/u-strcspn.h: Likewise.
12017         * lib/unistr/u-strdup.h: Likewise.
12018         * lib/unistr/u-strlen.h: Likewise.
12019         * lib/unistr/u-strncat.h: Likewise.
12020         * lib/unistr/u-strncpy.h: Likewise.
12021         * lib/unistr/u-strnlen.h: Likewise.
12022         * lib/unistr/u-strpbrk.h: Likewise.
12023         * lib/unistr/u-strspn.h: Likewise.
12024         * lib/unistr/u-strstr.h: Likewise.
12025         * lib/unistr/u-strtok.h: Likewise.
12026         * lib/unistr/u16-check.c: Likewise.
12027         * lib/unistr/u16-chr.c: Likewise.
12028         * lib/unistr/u16-cmp.c: Likewise.
12029         * lib/unistr/u16-cpy-alloc.c: Likewise.
12030         * lib/unistr/u16-cpy.c: Likewise.
12031         * lib/unistr/u16-endswith.c: Likewise.
12032         * lib/unistr/u16-mblen.c: Likewise.
12033         * lib/unistr/u16-mbsnlen.c: Likewise.
12034         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12035         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12036         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12037         * lib/unistr/u16-mbtouc.c: Likewise.
12038         * lib/unistr/u16-mbtoucr.c: Likewise.
12039         * lib/unistr/u16-move.c: Likewise.
12040         * lib/unistr/u16-next.c: Likewise.
12041         * lib/unistr/u16-prev.c: Likewise.
12042         * lib/unistr/u16-set.c: Likewise.
12043         * lib/unistr/u16-startswith.c: Likewise.
12044         * lib/unistr/u16-stpcpy.c: Likewise.
12045         * lib/unistr/u16-stpncpy.c: Likewise.
12046         * lib/unistr/u16-strcat.c: Likewise.
12047         * lib/unistr/u16-strchr.c: Likewise.
12048         * lib/unistr/u16-strcmp.c: Likewise.
12049         * lib/unistr/u16-strcpy.c: Likewise.
12050         * lib/unistr/u16-strcspn.c: Likewise.
12051         * lib/unistr/u16-strdup.c: Likewise.
12052         * lib/unistr/u16-strlen.c: Likewise.
12053         * lib/unistr/u16-strmblen.c: Likewise.
12054         * lib/unistr/u16-strmbtouc.c: Likewise.
12055         * lib/unistr/u16-strncat.c: Likewise.
12056         * lib/unistr/u16-strncmp.c: Likewise.
12057         * lib/unistr/u16-strncpy.c: Likewise.
12058         * lib/unistr/u16-strnlen.c: Likewise.
12059         * lib/unistr/u16-strpbrk.c: Likewise.
12060         * lib/unistr/u16-strrchr.c: Likewise.
12061         * lib/unistr/u16-strspn.c: Likewise.
12062         * lib/unistr/u16-strstr.c: Likewise.
12063         * lib/unistr/u16-strtok.c: Likewise.
12064         * lib/unistr/u16-to-u32.c: Likewise.
12065         * lib/unistr/u16-to-u8.c: Likewise.
12066         * lib/unistr/u16-uctomb-aux.c: Likewise.
12067         * lib/unistr/u16-uctomb.c: Likewise.
12068         * lib/unistr/u32-check.c: Likewise.
12069         * lib/unistr/u32-chr.c: Likewise.
12070         * lib/unistr/u32-cmp.c: Likewise.
12071         * lib/unistr/u32-cpy-alloc.c: Likewise.
12072         * lib/unistr/u32-cpy.c: Likewise.
12073         * lib/unistr/u32-endswith.c: Likewise.
12074         * lib/unistr/u32-mblen.c: Likewise.
12075         * lib/unistr/u32-mbsnlen.c: Likewise.
12076         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12077         * lib/unistr/u32-mbtouc.c: Likewise.
12078         * lib/unistr/u32-mbtoucr.c: Likewise.
12079         * lib/unistr/u32-move.c: Likewise.
12080         * lib/unistr/u32-next.c: Likewise.
12081         * lib/unistr/u32-prev.c: Likewise.
12082         * lib/unistr/u32-set.c: Likewise.
12083         * lib/unistr/u32-startswith.c: Likewise.
12084         * lib/unistr/u32-stpcpy.c: Likewise.
12085         * lib/unistr/u32-stpncpy.c: Likewise.
12086         * lib/unistr/u32-strcat.c: Likewise.
12087         * lib/unistr/u32-strchr.c: Likewise.
12088         * lib/unistr/u32-strcmp.c: Likewise.
12089         * lib/unistr/u32-strcpy.c: Likewise.
12090         * lib/unistr/u32-strcspn.c: Likewise.
12091         * lib/unistr/u32-strdup.c: Likewise.
12092         * lib/unistr/u32-strlen.c: Likewise.
12093         * lib/unistr/u32-strmblen.c: Likewise.
12094         * lib/unistr/u32-strmbtouc.c: Likewise.
12095         * lib/unistr/u32-strncat.c: Likewise.
12096         * lib/unistr/u32-strncmp.c: Likewise.
12097         * lib/unistr/u32-strncpy.c: Likewise.
12098         * lib/unistr/u32-strnlen.c: Likewise.
12099         * lib/unistr/u32-strpbrk.c: Likewise.
12100         * lib/unistr/u32-strrchr.c: Likewise.
12101         * lib/unistr/u32-strspn.c: Likewise.
12102         * lib/unistr/u32-strstr.c: Likewise.
12103         * lib/unistr/u32-strtok.c: Likewise.
12104         * lib/unistr/u32-to-u16.c: Likewise.
12105         * lib/unistr/u32-to-u8.c: Likewise.
12106         * lib/unistr/u32-uctomb.c: Likewise.
12107         * lib/unistr/u8-check.c: Likewise.
12108         * lib/unistr/u8-chr.c: Likewise.
12109         * lib/unistr/u8-cmp.c: Likewise.
12110         * lib/unistr/u8-cpy-alloc.c: Likewise.
12111         * lib/unistr/u8-cpy.c: Likewise.
12112         * lib/unistr/u8-endswith.c: Likewise.
12113         * lib/unistr/u8-mblen.c: Likewise.
12114         * lib/unistr/u8-mbsnlen.c: Likewise.
12115         * lib/unistr/u8-mbtouc-aux.c: Likewise.
12116         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12117         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12118         * lib/unistr/u8-mbtouc.c: Likewise.
12119         * lib/unistr/u8-mbtoucr.c: Likewise.
12120         * lib/unistr/u8-move.c: Likewise.
12121         * lib/unistr/u8-next.c: Likewise.
12122         * lib/unistr/u8-prev.c: Likewise.
12123         * lib/unistr/u8-set.c: Likewise.
12124         * lib/unistr/u8-startswith.c: Likewise.
12125         * lib/unistr/u8-stpcpy.c: Likewise.
12126         * lib/unistr/u8-stpncpy.c: Likewise.
12127         * lib/unistr/u8-strcat.c: Likewise.
12128         * lib/unistr/u8-strchr.c: Likewise.
12129         * lib/unistr/u8-strcmp.c: Likewise.
12130         * lib/unistr/u8-strcpy.c: Likewise.
12131         * lib/unistr/u8-strcspn.c: Likewise.
12132         * lib/unistr/u8-strdup.c: Likewise.
12133         * lib/unistr/u8-strlen.c: Likewise.
12134         * lib/unistr/u8-strmblen.c: Likewise.
12135         * lib/unistr/u8-strmbtouc.c: Likewise.
12136         * lib/unistr/u8-strncat.c: Likewise.
12137         * lib/unistr/u8-strncmp.c: Likewise.
12138         * lib/unistr/u8-strncpy.c: Likewise.
12139         * lib/unistr/u8-strnlen.c: Likewise.
12140         * lib/unistr/u8-strpbrk.c: Likewise.
12141         * lib/unistr/u8-strrchr.c: Likewise.
12142         * lib/unistr/u8-strspn.c: Likewise.
12143         * lib/unistr/u8-strstr.c: Likewise.
12144         * lib/unistr/u8-strtok.c: Likewise.
12145         * lib/unistr/u8-to-u16.c: Likewise.
12146         * lib/unistr/u8-to-u32.c: Likewise.
12147         * lib/unistr/u8-uctomb-aux.c: Likewise.
12148         * lib/unistr/u8-uctomb.c: Likewise.
12149         * lib/unitypes.h: Likewise.
12150         * lib/uniwidth.h: Likewise.
12151         * lib/uniwidth/cjk.h: Likewise.
12152         * lib/uniwidth/u16-strwidth.c: Likewise.
12153         * lib/uniwidth/u16-width.c: Likewise.
12154         * lib/uniwidth/u32-strwidth.c: Likewise.
12155         * lib/uniwidth/u32-width.c: Likewise.
12156         * lib/uniwidth/u8-strwidth.c: Likewise.
12157         * lib/uniwidth/u8-width.c: Likewise.
12158         * lib/uniwidth/width.c: Likewise.
12159
12160 2007-10-07  Bruno Haible  <bruno@clisp.org>
12161
12162         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12163         The file is still under LGPL (see modules/inttypes).
12164
12165 2007-10-06  Bruno Haible  <bruno@clisp.org>
12166
12167         * modules/trunc (Dependencies): Add 'extensions'.
12168         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12169         Reported by Ben Pfaff <blp@gnu.org>.
12170
12171 2007-10-06  Bruno Haible  <bruno@clisp.org>
12172
12173         * modules/freopen-tests: New file.
12174         * tests/test-freopen.c: New file.
12175
12176         * modules/fopen-tests: New file.
12177         * tests/test-fopen.c: New file.
12178
12179         * modules/fopen: New file.
12180         * lib/fopen.c: New file.
12181         * m4/fopen.m4: New file.
12182         * modules/freopen: New file.
12183         * lib/freopen.c: New file.
12184         * m4/freopen.m4: New file.
12185         * lib/stdio.in.h (fopen, freopen): New declarations.
12186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
12187         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12188         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
12189         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12190         * doc/functions/fopen.texi: Mention the 'fopen' module.
12191         * doc/functions/freopen.texi: Mention the 'freopen' module.
12192
12193 2007-10-06  Bruno Haible  <bruno@clisp.org>
12194
12195         * modules/open-tests: New file.
12196         * tests/test-open.c: New file.
12197
12198         * modules/open: New file.
12199         * lib/open.c: New file.
12200         * m4/open.m4: New file.
12201         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
12202         lib/open.c does.
12203         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
12204         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
12205         macros.
12206         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
12207         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
12208         REPLACE_OPEN.
12209         * doc/functions/open.texi: Mention the 'open' module.
12210
12211 2007-10-04  Bruno Haible  <bruno@clisp.org>
12212
12213         * modules/ceill-tests: New file.
12214         * tests/test-ceill.c: New file.
12215
12216         * modules/ceill: New file.
12217         * lib/ceill.c: Replace entire file.
12218         * m4/ceill.m4: New file.
12219         * lib/math.in.h (ceill): Replace declaration.
12220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
12221         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
12222         * doc/functions/ceill.texi: Mention the 'ceill' module.
12223         * modules/mathl (Files): Remove lib/ceill.c.
12224         (Depends-on): Add ceill.
12225
12226 2007-10-04  Bruno Haible  <bruno@clisp.org>
12227
12228         * modules/ceilf-tests: New file.
12229         * tests/test-ceilf.c: New file.
12230
12231         * modules/ceilf: New file.
12232         * lib/ceil.c: New file.
12233         * lib/ceilf.c: New file.
12234         * m4/ceilf.m4: New file.
12235         * lib/math.in.h (ceilf): New declaration.
12236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
12237         HAVE_DECL_CEILF.
12238         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
12239         HAVE_DECL_CEILF.
12240         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
12241
12242 2007-10-04  Bruno Haible  <bruno@clisp.org>
12243
12244         * modules/floorl-tests: New file.
12245         * tests/test-floorl.c: New file.
12246
12247         * modules/floorl: New file.
12248         * lib/floorl.c: Replace entire file.
12249         * m4/floorl.m4: New file.
12250         * lib/math.in.h (floorl): Replace declaration.
12251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12252         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12253         * doc/functions/floorl.texi: Mention the 'floorl' module.
12254         * modules/mathl (Files): Remove lib/floorl.c.
12255         (Depends-on): Add floorl.
12256
12257 2007-10-04  Bruno Haible  <bruno@clisp.org>
12258
12259         * modules/floorf-tests: New file.
12260         * tests/test-floorf.c: New file.
12261
12262         * modules/floorf: New file.
12263         * lib/floor.c: New file.
12264         * lib/floorf.c: New file.
12265         * m4/floorf.m4: New file.
12266         * lib/math.in.h (floorf): New declaration.
12267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12268         HAVE_DECL_FLOORF.
12269         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12270         HAVE_DECL_FLOORF.
12271         * doc/functions/floorf.texi: Mention the 'floorf' module.
12272
12273 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
12274             Bruno Haible  <bruno@clisp.org>
12275
12276         Advertise for the Git server instead of the CVS server.
12277         * doc/gnulib-intro.texi (Steady Development): Mention the Git
12278         repository instead of the CVS one.
12279         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12280         about all VCS systems generically.
12281         * doc/gnulib.texi (Introduction): Capitalize `Git'.
12282
12283 2007-10-04  Bruno Haible  <bruno@clisp.org>
12284
12285         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12286         means.
12287         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12288
12289 2007-10-04  Bruno Haible  <bruno@clisp.org>
12290
12291         * modules/truncl-tests: New file.
12292         * tests/test-truncl.c: New file.
12293
12294         * modules/truncl: New file.
12295         * lib/truncl.c: New file.
12296         * m4/truncl.m4: New file.
12297         * lib/math.in.h (truncl): New declaration.
12298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12299         HAVE_DECL_TRUNCL.
12300         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12301         HAVE_DECL_TRUNCL.
12302         * doc/functions/truncl.texi: Mention the 'truncl' module.
12303
12304 2007-10-04  Bruno Haible  <bruno@clisp.org>
12305
12306         * modules/truncf-tests: New file.
12307         * tests/test-truncf.c: New file.
12308
12309         * modules/truncf: New file.
12310         * lib/trunc.c: Make paramerizable through USE_* macros.
12311         * lib/truncf.c: New file.
12312         * m4/truncf.m4: New file.
12313         * lib/math.in.h (truncf): New declaration.
12314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12315         HAVE_DECL_TRUNCF.
12316         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12317         HAVE_DECL_TRUNCF.
12318         * doc/functions/truncf.texi: Mention the 'truncf' module.
12319
12320 2007-10-03  Bruno Haible  <bruno@clisp.org>
12321
12322         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12323         augmentation also for tests modules.
12324         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12325         * modules/atexit-tests (Makefile.am): Likewise.
12326         * modules/binary-io-tests (Makefile.am): Likewise.
12327         * modules/c-strcase-tests (Makefile.am): Likewise.
12328         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12329         * modules/canonicalize-tests (Makefile.am): Likewise.
12330         * modules/closein-tests (Makefile.am): Likewise.
12331         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12332         * modules/freadahead-tests (Makefile.am): Likewise.
12333         * modules/fseek-tests (Makefile.am): Likewise.
12334         * modules/fseeko-tests (Makefile.am): Likewise.
12335         * modules/ftell-tests (Makefile.am): Likewise.
12336         * modules/ftello-tests (Makefile.am): Likewise.
12337         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12338         * modules/isnanl-tests (Makefile.am): Likewise.
12339         * modules/lseek-tests (Makefile.am): Likewise.
12340         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12341         * modules/mbscasestr-tests (Makefile.am): Likewise.
12342         * modules/mbschr-tests (Makefile.am): Likewise.
12343         * modules/mbscspn-tests (Makefile.am): Likewise.
12344         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12345         * modules/mbspbrk-tests (Makefile.am): Likewise.
12346         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12347         * modules/mbsrchr-tests (Makefile.am): Likewise.
12348         * modules/mbsspn-tests (Makefile.am): Likewise.
12349         * modules/mbsstr-tests (Makefile.am): Likewise.
12350         * modules/printf-posix-tests (Makefile.am): Likewise.
12351         * modules/snprintf-posix-tests (Makefile.am): Likewise.
12352         * modules/sprintf-posix-tests (Makefile.am): Likewise.
12353         * modules/tsearch-tests (Makefile.am): Likewise.
12354         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12355         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12356         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12357         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12358         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12359         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12360         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12361         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12362         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12363         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12364         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12365         * modules/xstrtol-tests (Makefile.am): Likewise.
12366         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12367         * modules/yesno-tests (Makefile.am): Likewise.
12368
12369 2007-10-03  Bruno Haible  <bruno@clisp.org>
12370
12371         * modules/trunc-tests: New file.
12372         * tests/test-trunc.c: New file.
12373
12374         * modules/trunc: New file.
12375         * lib/trunc.c: New file.
12376         * m4/trunc.m4: New file.
12377         * lib/math.in.h (trunc): New declaration.
12378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12379         HAVE_DECL_TRUNC.
12380         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12381         HAVE_DECL_TRUNC.
12382         * doc/functions/trunc.texi: Mention the 'trunc' module.
12383
12384 2007-10-03  Bruno Haible  <bruno@clisp.org>
12385
12386         * tests/test-fpending.c: New file, mostly copied
12387         from coreutils/lib/t-fpending.c.
12388         * modules/fpending-tests: New file.
12389
12390 2007-10-03  Bruno Haible  <bruno@clisp.org>
12391
12392         Port the stdio extensions to QNX (untested).
12393         * lib/fseterr.c (fseterr): Add support for QNX.
12394         * lib/fbufmode.c (fbufmode): Likewise.
12395         * lib/freadable.c (freadable): Likewise.
12396         * lib/fwritable.c (fwritable): Likewise.
12397         * lib/freading.c (freading): Likewise.
12398         * lib/fwriting.c (fwriting): Likewise.
12399         * lib/freadahead.c (freadahed): Likewise.
12400         * lib/fpurge.c (fpurge): Likewise.
12401         * lib/fseeko.c (rpl_fseeko): Likewise.
12402
12403 2007-10-03  Bruno Haible  <bruno@clisp.org>
12404             Jim Meyering  <jim@meyering.net>
12405             Eric Blake  <ebb9@byu.net>
12406
12407         * doc/relocatable.texi: Use @command instead of @program.
12408
12409 2007-10-02  Jim Meyering  <jim@meyering.net>
12410
12411         Perform one more "_.h" -> ".in.h" substitution.
12412         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12413         instead of unistd_.h here, too.
12414
12415 2007-10-01  Bruno Haible  <bruno@clisp.org>
12416
12417         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12418         Needed for the alloca-opt module.
12419
12420 2007-09-30  Bruno Haible  <bruno@clisp.org>
12421
12422         * lib/alloca.in.h: Renamed from lib/alloca_.h.
12423         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12424         alloca_.h.
12425         * lib/argz.in.h: Renamed from lib/argz_.h.
12426         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12427         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12428         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12429         byteswap_.h.
12430         * lib/dirent.in.h: Renamed from lib/dirent_.h.
12431         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12432         dirent_.h.
12433         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12434         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12435         fcntl_.h.
12436         * lib/float.in.h: Renamed from lib/float_.h.
12437         * modules/float (Files, Makefile.am): Use float.in.h instead of
12438         float_.h.
12439         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12440         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12441         fnmatch_.h.
12442         * lib/getopt.in.h: Renamed from lib/getopt_.h.
12443         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12444         getopt_.h.
12445         * lib/glob.in.h: Renamed from lib/glob_.h.
12446         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12447         * lib/iconv.in.h: Renamed from lib/iconv_.h.
12448         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12449         iconv_.h.
12450         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12451         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12452         inttypes_.h.
12453         * lib/locale.in.h: Renamed from lib/locale_.h.
12454         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12455         locale_.h.
12456         * lib/math.in.h: Renamed from lib/math_.h.
12457         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12458         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12459         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12460         of netinet_in_.h. Add dependency.
12461         * lib/poll.in.h: Renamed from lib/poll_.h.
12462         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12463         * lib/search.in.h: Renamed from lib/search_.h.
12464         * modules/search (Files, Makefile.am): Use search.in.h instead of
12465         search_.h.
12466         * lib/signal.in.h: Renamed from lib/signal_.h.
12467         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12468         _signal.h.
12469         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12470         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12471         stdbool_.h.
12472         * lib/stdint.in.h: Renamed from lib/stdint_.h.
12473         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12474         stdint_.h.
12475         * lib/stdio.in.h: Renamed from lib/stdio_.h.
12476         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12477         stdio_.h.
12478         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12479         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12480         stdlib_.h.
12481         * lib/string.in.h: Renamed from lib/string_.h.
12482         * modules/string (Files, Makefile.am): Use string.in.h instead of
12483         string_.h.
12484         * doc/gnulib-tool.texi (Initial import): Update.
12485         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12486         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12487         of sys_select_.h. Add dependency.
12488         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12489         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12490         of sys_socket_.h.
12491         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12492         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12493         sys_stat_.h.
12494         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12495         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12496         sys_time_.h.
12497         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12498         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12499         sysexits_.h.
12500         * lib/time.in.h: Renamed from lib/time_.h.
12501         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12502         * lib/unistd.in.h: Renamed from lib/unistd_.h.
12503         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12504         unistd_.h.
12505         * lib/wchar.in.h: Renamed from lib/wchar_.h.
12506         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12507         wchar_.h.
12508         * lib/wctype.in.h: Renamed from lib/wctype_.h.
12509         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12510         wctype_.h.
12511         * build-aux/bootstrap (slurp): Update.
12512         * lib/.cppi-disable: Update.
12513
12514 2007-09-30  Bruno Haible  <bruno@clisp.org>
12515
12516         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12517         Needed on BeOS.
12518
12519 2007-09-30  Bruno Haible  <bruno@clisp.org>
12520
12521         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12522
12523 2007-09-29  Bruno Haible  <bruno@clisp.org>
12524
12525         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12526
12527 2007-09-29  Bruno Haible  <bruno@clisp.org>
12528
12529         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12530         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12531         * build-aux/install-reloc: Compile also areadlink.c.
12532         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12533
12534 2007-09-29  Bruno Haible  <bruno@clisp.org>
12535
12536         * gnulib-tool (func_emit_initmacro_done): Indentation.
12537
12538 2007-09-29  Bruno Haible  <bruno@clisp.org>
12539
12540         * README: Add CVS checkout update instructions.
12541         Info from Bob Proulx <bob@proulx.com>.
12542
12543 2007-09-28  Eric Blake  <ebb9@byu.net>
12544
12545         Provide move-if-change.
12546         * build-aux/move-if-change: New file, based on best practice
12547         rather than any canonical upstream location.
12548
12549 2007-09-28  Jim Meyering  <jim@meyering.net>
12550
12551         Fix canonicalize loop-detection corner case.
12552         Do not attempt to stat the symlink values stored via seen_triple.
12553         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12554         on linux-2.6.18, (but not 2.6.22).
12555         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12556         triple_compare.  The former compares dev,ino,filename, while the latter
12557         would actually stat dirname(filename) when dev and ino were equal.
12558         * lib/hash-triple.c: Install <string.h>.
12559         (STREQ): Define.
12560         (triple_compare_ino_str): New function.
12561         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12562
12563 2007-09-28  Eric Blake  <ebb9@byu.net>
12564
12565         Enforce that AC_REPLACE_FUNCS files exist.
12566         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12567         override check for typos.
12568
12569         Fix test-closein on Solaris 10.
12570         * tests/test-closein.c (main): Don't assume stdin can be inherited
12571         closed on all systems.
12572         * tests/test-closein.sh: Likewise.
12573         Reported by Piotr Tarnowski.
12574
12575 2007-09-28  Jim Meyering  <jim@meyering.net>
12576
12577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12578
12579 2007-09-27  Jim Meyering  <jim@meyering.net>
12580
12581         canonicalize: Avoid a false-positive cycle failure.
12582         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12583         Sort.  Remove cycle-check.
12584         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12585         not cycle-check.h.
12586         (seen_triple): New function.
12587         (canonicalize_filename_mode): Use it instead of cycle-check.
12588         * tests/test-canonicalize.c: Add a test for this bug.
12589         * tests/test-canonicalize.sh: Set up and run the test.
12590
12591         New module, file-set, from coreutils.
12592         * modules/file-set: Define it.
12593         * lib/file-set.c, lib/file-set.h: Implement.
12594
12595         New module, hash-triple, from coreutils.
12596         * modules/hash-triple: Define it.
12597         * lib/hash-triple.c, lib/hash-triple.h: Implement.
12598
12599 2007-09-25  Eric Blake  <ebb9@byu.net>
12600
12601         Fix strerror on Interix.
12602         * lib/string_.h (strerror): Declare replacement.
12603         * doc/functions/strerror.texi (strerror): Document the Interix
12604         shortcoming.
12605         * modules/string (Makefile.am): Support new hooks.
12606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12607         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12608         gl_FUNC_STRERROR_SEPARATE.
12609         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12610         * lib/strerror.c (rpl_strerror): Provide replacement.
12611         * modules/strerror (Depends-on): Add string.
12612         (configure.ac): Detect use of module.
12613         * tests/test-strerror.c: New file.
12614         * modules/strerror-tests: New test module.
12615         * modules/argp (Depends-on): Add strerror.
12616         * modules/error (Depends-on): Likewise.
12617         Reported by Martin Koeppe.
12618
12619 2007-09-24  Bruno Haible  <bruno@clisp.org>
12620
12621         * README: Update git instructions.
12622
12623 2007-09-24  Eric Blake  <ebb9@byu.net>
12624
12625         Revert fpending breakage from 2007-09-08.
12626         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12627         __fpending.c.
12628
12629 2007-09-24  Jim Meyering  <jim@meyering.net>
12630
12631         filenamecat.c: Add a test.
12632         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12633         showing how the function works when DIR is the empty string.
12634
12635 2007-09-21  Simon Josefsson  <simon@josefsson.org>
12636
12637         * tests/test-canonicalize.sh: Turn on executable bit.
12638
12639 2007-09-19  Eric Blake  <ebb9@byu.net>
12640
12641         * README: Update CVS instructions.
12642
12643 2007-09-18  Bruno Haible  <bruno@clisp.org>
12644
12645         * modules/areadlink: New file.
12646         * lib/areadlink.h (areadlink): New declaration.
12647         * lib/areadlink.c: New file, based on lib/xreadlink.c.
12648
12649 2007-09-17  Jim Meyering  <jim@meyering.net>
12650
12651         * lib/savewd.c (ESTALE) [!defined]: Define.
12652         Reported to be required on Interix by Martin Koeppe.
12653
12654 2007-09-17  Bruno Haible  <bruno@clisp.org>
12655
12656         * gnulib-tool (func_version): Use $version.
12657
12658 2007-09-16  Bruno Haible  <bruno@clisp.org>
12659
12660         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12661         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12662         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12663         Reported by Greg Schafer <gschafer@zip.com.au>.
12664
12665 2007-09-15  Bruno Haible  <bruno@clisp.org>
12666
12667         * gnulib-tool (sed): Try a little harder to make bash understand the
12668         alias.
12669         Reported by Bruce Korb <bruce.korb@gmail.com>.
12670
12671 2007-09-13  Eric Blake  <ebb9@byu.net>
12672
12673         * ChangeLog: Remove conflict markers.
12674
12675 2007-09-13  Simon Josefsson  <simon@josefsson.org>
12676
12677         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12678         Reported by Bruno Haible <bruno@clisp.org>.
12679
12680 2007-09-12  Bruno Haible  <bruno@clisp.org>
12681
12682         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12683         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12684         is not defined.
12685
12686 2007-09-12  Eric Blake  <ebb9@byu.net>
12687
12688         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12689         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12690         Autoconf definition.
12691         * modules/euidaccess (Depends-on): Add extensions, for
12692         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12693         * modules/fnmatch (Depends-on): Likewise.
12694         * modules/getaddrinfo (Depends-on): Likewise.
12695         * modules/getdelim (Depends-on): Likewise.
12696         * modules/getline (Depends-on): Likewise.
12697         * modules/getsubopt (Depends-on): Likewise.
12698         * modules/gettext (Depends-on): Likewise.
12699         * modules/group-member (Depends-on): Likewise.
12700         * modules/mbchar (Depends-on): Likewise.
12701         * modules/memmem (Depends-on): Likewise.
12702         * modules/mempcpy (Depends-on): Likewise.
12703         * modules/memrchr (Depends-on): Likewise.
12704         * modules/pagealign_alloc (Depends-on): Likewise.
12705         * modules/readutmp (Depends-on): Likewise.
12706         * modules/stpcpy (Depends-on): Likewise.
12707         * modules/stpncpy (Depends-on): Likewise.
12708         * modules/strchrnul (Depends-on): Likewise.
12709         * modules/strndup (Depends-on): Likewise.
12710         * modules/strsep (Depends-on): Likewise.
12711         * modules/strverscmp (Depends-on): Likewise.
12712         * modules/vasprintf (Depends-on): Likewise.
12713         * modules/wcwidth (Depends-on): Likewise.
12714         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12715         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12719         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12720         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12721         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12722         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12723         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12725         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12726         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12727         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12728         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12729         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12730         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12731         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12732         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12733         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12734         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12735         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12736         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12737         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12738         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12740         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12741         so that lock.m4 can be used in gettext without extensions module.
12742
12743 2007-09-11  Bruno Haible  <bruno@clisp.org>
12744
12745         * m4/isc-posix.m4: Remove file.
12746         Suggested by Eric Blake.
12747
12748 2007-09-11  Eric Blake  <ebb9@byu.net>
12749
12750         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12751
12752 2007-09-10  Bruno Haible  <bruno@clisp.org>
12753
12754         * posix-modules: Fix typo in error message.
12755         Reported by Matt <mkraai@beckman.com>.
12756
12757 2007-09-09  Bruno Haible  <bruno@clisp.org>
12758
12759         * doc/functions/getdelim.texi: Update list of platforms lacking the
12760         function.
12761         * doc/functions/getline.texi: Likewise.
12762
12763 2007-09-09  Jim Meyering  <jim@meyering.net>
12764
12765         * lib/hash.c (hash_initialize): Detect calloc failure.
12766         Reported by Bruno Haible.
12767
12768 2007-09-09  Bruno Haible  <bruno@clisp.org>
12769
12770         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12771         malloc or realloc fails.
12772
12773 2007-09-09  Bruno Haible  <bruno@clisp.org>
12774
12775         * modules/getcwd (Depends-on): Add malloc-posix.
12776         * modules/glob (Depends-on): Likewise.
12777         * modules/putenv (Depends-on): Likewise.
12778         * modules/strdup (Depends-on): Likewise.
12779         * modules/getdelim (Depends-on): Add realloc-posix.
12780         * modules/read-file (Depends-on): Likewise.
12781
12782 2007-09-09  Bruno Haible  <bruno@clisp.org>
12783
12784         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12785         (gl_FUNC_MALLOC_POSIX): Require it.
12786         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12787         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12788         * modules/realloc (Files): Add m4/malloc.m4.
12789         * modules/calloc (Files): Likewise.
12790
12791 2007-09-09  Bruno Haible  <bruno@clisp.org>
12792
12793         * modules/malloc-posix: New file.
12794         * modules/malloc (Depends-on): Add malloc-posix.
12795         * lib/malloc.c: Include errno.h.
12796         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12797         and a POSIX-compatible malloc into a single function. Set ENOMEM
12798         when returning NULL.
12799         * m4/malloc.m4: New file.
12800         * doc/functions/malloc.texi: Mention the malloc-posix module.
12801         * lib/stdlib_.h (malloc): New declaration.
12802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12803         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12804         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12805         and HAVE_MALLOC_POSIX.
12806
12807 2007-09-09  Bruno Haible  <bruno@clisp.org>
12808
12809         * modules/realloc-posix: New file.
12810         * modules/realloc (Depends-on): Add realloc-posix.
12811         * lib/realloc.c: Include errno.h.
12812         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12813         and a POSIX-compatible realloc into a single function. Set ENOMEM
12814         when returning NULL.
12815         * m4/realloc.m4: New file.
12816         * doc/functions/realloc.texi: Mention the realloc-posix module.
12817         * lib/stdlib_.h (realloc): New declaration.
12818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12819         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12820         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12821         and HAVE_REALLOC_POSIX.
12822
12823 2007-09-09  Bruno Haible  <bruno@clisp.org>
12824
12825         * modules/calloc-posix: New file.
12826         * modules/calloc (Depends-on): Add calloc-posix.
12827         * lib/calloc.c: Include errno.h.
12828         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12829         and a POSIX-compatible calloc into a single function. Set ENOMEM
12830         when returning NULL.
12831         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12832         * doc/functions/calloc.texi: Mention the calloc-posix module.
12833         * lib/stdlib_.h (calloc): New declaration.
12834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12835         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12836         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12837         and HAVE_CALLOC_POSIX.
12838
12839 2007-09-09  Bruno Haible  <bruno@clisp.org>
12840
12841         Allow for modules to show an arbitrary notice.
12842         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12843         * gnulib-tool: New option --extract-notice.
12844         (func_usage): Document it.
12845         (sed_extract_prog): Update.
12846         (func_get_notice): New function.
12847         (func_modules_notice): New function.
12848         (func_import, func_create_testdir): Invoke it.
12849         Suggested by Jim Meyering.
12850
12851 2007-09-09  Bruno Haible  <bruno@clisp.org>
12852
12853         * gnulib-tool: New options --verbose, --quiet.
12854         (func_usage): Document them.
12855         (verbose): New variable.
12856         (func_execute_command): New function.
12857         (func_import): Don't show the module list and the file list if
12858         $verbose < 0.
12859         (func_create_testdir): Likewise. Use func_execute_command.
12860         (func_create_megatestdir): Use func_execute_command.
12861
12862 2007-09-08  Bruno Haible  <bruno@clisp.org>
12863
12864         * gnulib-tool (func_import): Prefer rsync over wget when available,
12865         for fetching the PO files.
12866
12867 2007-09-08  Bruno Haible  <bruno@clisp.org>
12868
12869         * posix-modules: New file. Portions copied from gnulib-tool.
12870         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12871
12872 2007-09-08  Jim Meyering  <jim@meyering.net>
12873
12874         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12875         * lib/fpending.h: Rename from __fpending.h.
12876         * lib/fpending.c: Rename from __fpending.c.
12877         Include "fpending.h", not "__fpending.h".
12878         * lib/__fpending.h, lib/__fpending.c: Remove files.
12879         * modules/fpending (Files): Reflect new file names.
12880         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12881
12882 2007-09-08  Bruno Haible  <bruno@clisp.org>
12883
12884         * m4/inttypes-h.m4: Remove stub file.
12885
12886 2007-09-07  Simon Josefsson  <simon@josefsson.org>
12887
12888         * doc/headers/stdint.texi: Discuss #include_next issue.
12889
12890 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12891
12892         * build-aux/bootstrap: Remove obsolete comment about wget --help.
12893
12894 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12895
12896         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12897         in variable name.
12898
12899 2007-09-03  Jim Meyering  <jim@meyering.net>
12900
12901         New module: git-version-gen.
12902         * modules/git-version-gen: New file.
12903
12904         Import changes from coreutils for bootstrap script.
12905
12906         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12907
12908         bootstrap: uses rsync to download the .po files
12909         * build-aux/bootstrap (po_download_command_format): New global.
12910         (download_po_files): Use rsync.
12911         (update_po_files): Don't remove .po files after download,
12912         so future rsync runs can take advantage of the copies.
12913
12914         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12915
12916         Solve the unnecessary-.po-file-regeneration problem once and for all.
12917         * build-aux/bootstrap (download_po_files): New function, renamed from
12918         get_translations.  Now, downloads, but doesn't update LINGUAS.
12919         (update_po_files): New function.
12920
12921         bootstrap: Ignore more.
12922         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12923         uniwidth to e.g., lib/.gitignore.
12924         (slurp): Handle the sys_stat_.h -> sys mapping, too.
12925
12926         * build-aux/bootstrap: New setting: vc_ignore.
12927         (insert_sorted_if_absent): Create $file if absent.
12928         Adapt to new, possibly empty, list: $vc_ignore.
12929
12930         bootstrap: generate more ignorable names
12931         * build-aux/bootstrap (slurp): When generating ignorable names,
12932         also map .sin to .sed, .gperf to .c, and .y to .c.
12933
12934 2007-09-03  Jim Meyering  <jim@meyering.net>
12935
12936         * build-aux/git-version-gen: New file, from coreutils.  For details, see
12937         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12938
12939 2007-09-02  Bruno Haible  <bruno@clisp.org>
12940
12941         Fix mis-recognition of 'mcs' on QNX 6.
12942         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12943         output contains the string "Mono".
12944         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12945         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12946
12947 2007-09-01  Bruno Haible  <bruno@clisp.org>
12948
12949         Fix collision between uniwidth/* and linebreak modules.
12950         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12951         u32_width): Remove declarations.
12952         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12953         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12954         streq3, streq2, streq1, streq0): Remove functions.
12955         (STREQ): Remove macro.
12956         (is_cjk_encoding): Remove function.
12957         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12958         (uc_width, u8_width, u16_width, u32_width): Remove functions.
12959         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12960         * NEWS: Document the change.
12961
12962 2007-09-01  Bruno Haible  <bruno@clisp.org>
12963
12964         * lib/streq.h: Add double-inclusion guard.
12965
12966 2007-09-01  Karl Berry  <karl@gnu.org>
12967
12968         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12969
12970 2007-08-28  Jim Meyering  <jim@meyering.net>
12971
12972         Rename mreadlink_with_size to areadlink_with_size.
12973         * NEWS: Document the change.
12974         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12975         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12976         * lib/mreadlink.h: Rename this to...
12977         * lib/areadlink.h: ...this.
12978         * modules/mreadlink-with-size: Rename this to...
12979         * modules/areadlink-with-size: ...this.
12980         * lib/canonicalize.c: Reflect the renaming.
12981         * modules/canonicalize: Likewise.
12982
12983 2007-08-26  Bruno Haible  <bruno@clisp.org>
12984
12985         * gnulib-tool (func_import): When deciding which files to remove,
12986         consider also dangling symbolic links.
12987         Reported by Eric Blake.
12988
12989 2007-08-26  Bruno Haible  <bruno@clisp.org>
12990
12991         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12992
12993 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12994
12995         * lib/readline.c: Don't include getline.h, the prototype is now
12996         found in stdio.h.
12997
12998 2007-08-23  Jim Meyering  <jim@meyering.net>
12999
13000         Getdelim touchup.
13001         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
13002         around the funlockfile call, since funlockfile never sets errno.
13003         Don't set errno upon failed realloc.
13004
13005 2007-08-22  Eric Blake  <ebb9@byu.net>
13006
13007         Getline touchups.
13008         * lib/getdelim.c (getdelim): Revert regression that required *n to
13009         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
13010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
13011         getdelim, rather than whether implementation is missing.
13012         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
13013         * lib/stdio_.h (getline): Also declare if replacement is
13014         required.
13015         * doc/functions/getdelim.texi: New file.
13016         * doc/functions/getline.texi: Likewise.
13017         * doc/gnulib.texi (Function Substitutes): Add new files.
13018         Reported by Bruno Haible.
13019
13020 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
13021
13022         * users.txt: Add Guile.
13023
13024 2007-08-22  Eric Blake  <ebb9@byu.net>
13025
13026         * tests/test-getdelim.c (main): Use remove, not unlink.
13027         * tests/test-getline.c (main): Likewise.
13028
13029         Move getline and getdelim into stdio.h, per POSIX 200x.
13030         * modules/getline (Files): Remove getline.h.
13031         (Depends-on): Add stdio.
13032         (configure.ac): Add module indicator.
13033         * modules/getdelim (Files): Remove getdelim.h.
13034         (Depends-on): Add stdio.
13035         (configure.ac): Add module indicator.
13036         * modules/stdio (Makefile.am): Work with new indicators.
13037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
13039         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13040         * lib/getdelim.h: Delete.
13041         * lib/getline.h: Delete.
13042         * lib/stdio_.h (getdelim, getline): Declare.
13043         * modules/getdelim-tests: New module.
13044         * modules/getline-tests: Likewise.
13045         * tests/test-getdelim.c: New file.
13046         * tests/test-getline.c: Likewise.
13047         * NEWS: Document the change.
13048         * lib/getline.c: Update choice of header.
13049         * lib/csharpcomp.c: Likewise.
13050         * lib/getpass.c: Likewise.
13051         * lib/javacomp.c: Likewise.
13052         * lib/javaversion.c: Likewise.
13053         * lib/yesno.c: Likewise.
13054         * lib/getdelim.c: Likewise.
13055         (getdelim): Set errno on failure, and avoid memory leak.
13056
13057 2007-08-19  Bruno Haible  <bruno@clisp.org>
13058
13059         * modules/closein (Depends-on): Add freadahead.
13060         * lib/closein.c: Include freadahead.h.
13061         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
13062         is zero.
13063
13064 2007-08-19  Bruno Haible  <bruno@clisp.org>
13065
13066         * modules/freadahead-tests: New file.
13067         * tests/test-freadahead.sh: New file.
13068         * tests/test-freadahead.c: New file.
13069
13070         * modules/freadahead: New file.
13071         * lib/freadahead.h: New file.
13072         * lib/freadahead.c: New file.
13073         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
13074         fbufmode, fpurge, freadable, fwritable.
13075
13076 2007-08-19  Eric Blake  <ebb9@byu.net>
13077
13078         Test yesno in combination with closein.
13079         * lib/yesno.c (yesno): Document use of stdin.
13080         * modules/yesno-tests (Files): New module.
13081         * tests/test-yesno.c (main): New file.
13082         * tests/test-yesno.sh: Likewise.
13083
13084 2007-08-19  Bruno Haible  <bruno@clisp.org>
13085
13086         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
13087         * lib/fseeko.c (rpl_fseeko): Likewise.
13088         * lib/fseterr.c (fseterr): Likewise.
13089
13090 2007-08-19  Bruno Haible  <bruno@clisp.org>
13091
13092         * tests/test-lseek.c (main): Disable a test for BeOS.
13093         * doc/functions/lseek.texi: Document the BeOS bug.
13094
13095 2007-08-19  Bruno Haible  <bruno@clisp.org>
13096             Eric Blake  <ebb9@byu.net>
13097
13098         * lib/lseek.c: Include <sys/stat.h>.
13099         (rpl_lseek): Add workaround code also for Unix platforms.
13100         Needed for BeOS.
13101         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
13102         * doc/functions/lseek.texi: Document BeOS definiency.
13103
13104 2007-08-18  Bruno Haible  <bruno@clisp.org>
13105
13106         * modules/fstrcmp-tests: New file.
13107         * tests/test-fstrcmp.c: New file.
13108
13109 2007-08-18  Bruno Haible  <bruno@clisp.org>
13110
13111         * modules/fstrcmp: New file, from GNU gettext with modifications.
13112         * lib/fstrcmp.h: New file, from GNU gettext.
13113         * lib/fstrcmp.c: New file, from GNU gettext.
13114         * MODULES.html.sh (String handling): Add fstrcmp.
13115
13116 2007-08-18  Bruno Haible  <bruno@clisp.org>
13117
13118         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13119         'bool'.
13120         (diag, compareseq): Remove const from the ctxt argument.
13121         (USE_HEURISTIC): Undefine at the end.
13122
13123 2007-08-18  Jim Meyering  <jim@meyering.net>
13124
13125         New file: lib/idcache.h
13126         * NEWS: Mention the addition.
13127         * modules/idcache (Files): Add lib/idcache.h
13128         * lib/idcache.c: Include "idcache.h".
13129         Don't include <sys/types.h>.
13130         Add a FIXME comment.
13131         Move file-scoped "static" declarations to the top.
13132         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
13133
13134 2007-08-17  Bruno Haible  <bruno@clisp.org>
13135         and Paul Eggert  <eggert@cs.ucla.edu>
13136
13137         * MODULES.html.sh: Add diffseq.
13138         * modules/diffseq: New file.
13139         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13140         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13141
13142 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13143
13144         Import changes from coreutils for bootstrap script.
13145
13146         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
13147
13148         * build-aux/bootstrap (slurp): Work even in environments where
13149         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
13150         current code does not slurp files whose names start with ".", and
13151         this looks like it might be a troublesome area.
13152
13153         2007-07-11  Jim Meyering  <jim@meyering.net>
13154
13155         If there's a GPL vN copyright comment, require that N == 3.
13156
13157         2007-07-08  Jim Meyering  <jim@meyering.net>
13158
13159         Run the coreutils-specific code only if tests/Makefile.am.in exists.
13160         * build-aux/bootstrap (mam_template): Move definition out of loop.
13161
13162         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13163
13164         * build-aux/bootstrap (symlink_to_dir): Rename function from
13165         symlink_to_gnulib.  Add a directory parameter.  Update all
13166         callers.
13167         (cp_mark_as_generated): Also check for -- and link to -- files in
13168         gl/.
13169
13170         2007-07-08  Jim Meyering  <jim@meyering.net>
13171
13172         Adapt to deeper hierarchy in gnulib.
13173         * build-aux/bootstrap (symlink_to_dir): If the destination
13174         directory doesn't exist, create it. This is required at least for
13175         "lib/uniwidth/cjk.h".
13176
13177         2007-05-15  Jim Meyering  <jim@meyering.net>
13178
13179         * build-aux/bootstrap: Now that generated Makefile.am files
13180         are no longer under version control, they must be created at
13181         bootstrap time.
13182
13183 2007-08-14  Ben Pfaff  <blp@gnu.org>
13184
13185         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
13186
13187 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
13190         given the changes below.
13191         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
13192         even on hosts that have padding bits beyond the supported 64.
13193
13194 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
13197         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
13198         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
13199         depends on it.
13200         (xstrtol_error): Remove.
13201         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
13202         but with a different signature.
13203         (ATTRIBUTE_NORETURN, __attribute__): New macros.
13204         * lib/xstrtol-error.c: Include exitfail.h.
13205         (xstrtol_fatal): New function, with a different signature from the
13206         old xstrtol_error, so that the caller need not worry about passing
13207         in an exit status, or about storage management of the option argument.
13208         (xstrtol_error): Now a static function.  Redo signature to
13209         implement xstrtol_fatal.  Output the correct number of hyphens in
13210         front of the option so that the caller need not worry about
13211         storage management.
13212         (N_): New macro.
13213         (_): Remove; not used now.
13214         * modules/xstrtol: Depend on getopt.
13215         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
13216         of old STRTOL_FATAL_ERROR macro.
13217         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
13218         of test program.
13219         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
13220         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
13221
13222 2007-08-08  Eric Blake  <ebb9@byu.net>
13223
13224         * lib/xstrtol-error.c: Add missing include.
13225
13226         Move xstrtol messages into gnulib domain, when --pobase is used.
13227         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
13228         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
13229         * modules/xstrtol (Files): Distribute new file.
13230         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
13231         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
13232         * tests/test-xstrtol.c: ...into new file.
13233         * tests/test-xstrtoul.c: Also test xstrtoul.
13234         * tests/test-xstrtoimax.c: Also test xstrtoimax.
13235         * tests/test-xstrtoumax.c: Also test xstrtoumax.
13236         * tests/test-xstrtol.sh: Drive the tests.
13237         * tests/test-xstrtoimax.sh: Likewise.
13238         * tests/test-xstrtoumax.sh: Likewise.
13239         * modules/xstrtol-tests: New module.
13240         * modules/xstrtoimax-tests: Likewise.
13241         * modules/xstrtoumax-tests: Likewise.
13242
13243 2007-08-08  Jim Meyering  <jim@meyering.net>
13244
13245         New function: mfile_name_concat.
13246         * lib/filenamecat.c (mfile_name_concat): New function, just like
13247         file_name_concat, but return NULL upon failure rather than exiting
13248         with a diagnostic.
13249         * lib/filenamecat.h: Declare it.
13250
13251 2007-08-07  Bruno Haible  <bruno@clisp.org>
13252
13253         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13254         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13255         warning from gcc.
13256         Reported by Eric Blake.
13257
13258 2007-08-07  Simon Josefsson  <simon@josefsson.org>
13259
13260         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13261         * modules/crypto/arcfour (License): Likewise.
13262         * modules/crypto/des-tests (License): Likewise.
13263         * modules/crypto/gc-arctwo-tests (License): Likewise.
13264         * modules/crypto/gc-des-tests (License): Likewise.
13265         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13266         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13267         * modules/crypto/gc-md2-tests (License): Likewise.
13268         * modules/crypto/gc-md4-tests (License): Likewise.
13269         * modules/crypto/gc-md5-tests (License): Likewise.
13270         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13271         * modules/crypto/gc-rijndael-tests (License): Likewise.
13272         * modules/crypto/gc-sha1-tests (License): Likewise.
13273         * modules/crypto/gc-tests (License): Likewise.
13274         * modules/crypto/hmac-md5 (License): Likewise.
13275         * modules/crypto/hmac-sha1 (License): Likewise.
13276         * modules/crypto/md2-tests (License): Likewise.
13277         * modules/crypto/md4-tests (License): Likewise.
13278         * modules/crypto/md5 (License): Likewise.
13279         * modules/crypto/rijndael (License): Likewise.
13280         * modules/crypto/sha1 (License): Likewise.
13281         * modules/memxor (License): Likewise.
13282
13283 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13284         and Bruno Haible  <bruno@clisp.org>
13285
13286         * NEWS: Describe interface changes to human, xstrtol.
13287         * lib/human.h: Include <xstrtol.h>.
13288         (human_options): Return enum strtol_error, not int.  Remove
13289         bool arg; take int * instead.
13290         * lib/human.c: Don't include "gettext.h".
13291         (_): Remove; no longer used.
13292         Don't include <xstrtol.h>, since human.h does it.
13293         (human_options): Adjust to abovementioned interface changes.
13294         Do not report error to stderr; that's now the caller's
13295         responsibility.
13296         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13297         interface change.
13298         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13299         Str, Argument_type_string.  All uses changed.  Put " argument"
13300         in diagnostics to make them clearer.  Change wording of suffix
13301         message for clarity.
13302         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13303         Argument_type_string.
13304         (STRTOL_FATAL_WARN): Remove; no longer used.
13305         * modules/human (Depends-on): Remove gettext-h.
13306
13307 2007-08-06  Simon Josefsson  <simon@josefsson.org>
13308
13309         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13310
13311 2007-07-31  Bruno Haible  <bruno@clisp.org>
13312
13313         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13314         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13315         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13316
13317 2007-07-31  Bruno Haible  <bruno@clisp.org>
13318
13319         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13320         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13321
13322 2007-07-30  Bruno Haible  <bruno@clisp.org>
13323
13324         * modules/base64 (License): Use the synonymous term "LGPLv2+".
13325         * modules/c-ctype (License): Likewise.
13326         * modules/c-strcase (License): Likewise.
13327         * modules/check-version (License): Likewise.
13328         * modules/iconv (License): Likewise.
13329         * modules/iconv_open (License): Likewise.
13330         * modules/read-file (License): Likewise.
13331         * modules/striconv (License): Likewise.
13332         * modules/strverscmp (License): Likewise.
13333         * modules/vasprintf (License): Likewise.
13334         * modules/crypto/des (License): Likewise.
13335         * modules/crypto/gc (License): Likewise.
13336         * modules/crypto/gc-arcfour (License): Likewise.
13337         * modules/crypto/gc-arctwo (License): Likewise.
13338         * modules/crypto/gc-des (License): Likewise.
13339         * modules/crypto/gc-hmac-md5 (License): Likewise.
13340         * modules/crypto/gc-hmac-sha1 (License): Likewise.
13341         * modules/crypto/gc-md2 (License): Likewise.
13342         * modules/crypto/gc-md4 (License): Likewise.
13343         * modules/crypto/gc-md5 (License): Likewise.
13344         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13345         * modules/crypto/gc-random (License): Likewise.
13346         * modules/crypto/gc-rijndael (License): Likewise.
13347         * modules/crypto/gc-sha1 (License): Likewise.
13348         * modules/crypto/md2 (License): Likewise.
13349         * modules/crypto/md4 (License): Likewise.
13350
13351 2007-07-30  Jim Meyering  <jim@meyering.net>
13352
13353         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13354         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13355         it has valid stat data.  This bug would cause du not to count the
13356         sizes of inaccessible directories.
13357         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13358         in <http://bugzilla.redhat.com/250077>.
13359
13360 2007-07-25  Peter O'Gorman  <peter@pogma.com>
13361             Bruno Haible  <bruno@clisp.org>
13362
13363         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13364         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13365         #include_next, gives a diagnostic about it, but reports no error in
13366         the exit code.
13367         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13368
13369 2007-07-24  Ben Pfaff  <blp@gnu.org>
13370
13371         Improve name: "count-one-bits" is better than "popcount".
13372         * MODULES.html.sh: Update name.
13373         * lib/popcount.h: Renamed lib/count-one-bits.h.
13374         (popcount): Renamed count_one_bits.
13375         (popcountl): Renamed count_one_bits_l.
13376         (popcountll): Renamed count_one_bits_ll.
13377         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13378         * modules/popcount: Renamed module/count-one-bits.
13379         * modules/popcount-tests: Renamed module/count-one-bits-tests.
13380         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13381
13382 2007-07-23  Ben Pfaff  <blp@gnu.org>
13383
13384         * lib/popcount.h (popcount32): Reduce size of constants, to allow
13385         better code generation, and add U to large constants to avoid
13386         warnings, in non-GCC case.
13387         Suggested by Bruno Haible.
13388
13389 2007-07-23  Ben Pfaff  <blp@gnu.org>
13390
13391         * lib/popcount.h: Use verify_true instead of if...abort.
13392         * modules/popcount: Depend on verify module.
13393         Suggested by Jim Meyering.
13394
13395 2007-07-23  Bruno Haible  <bruno@clisp.org>
13396
13397         * gnulib-tool (func_import): Create a .cvsignore file also when the
13398         directory is not yet in CVS but the toplevel directory is. When
13399         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13400         Reported by Karl Berry.
13401
13402 2007-07-22  Ben Pfaff  <blp@gnu.org>
13403
13404         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13405         case.
13406         Suggested by Eric Blake.
13407
13408 2007-07-22  Ben Pfaff  <blp@gnu.org>
13409
13410         New module: popcount.
13411         * MODULES.html.sh: Add popcount.
13412         * modules/popcount: New file.
13413         * modules/popcount-tests: New file.
13414         * tests/test-popcount.c: New file.
13415         * lib/popcount.h: New file.
13416         * m4/popcount.m4: New file.
13417
13418 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13419
13420         * build-aux/announce-gen: Update to GPLv3.
13421
13422         * build-aux/config.guess: Update from config.
13423
13424 2007-07-21  Bruno Haible  <bruno@clisp.org>
13425
13426         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13427         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13428
13429 2007-07-20  Jim Meyering  <jim@meyering.net>
13430
13431         * check-module: Diagnose a self-dependency.
13432
13433 2007-07-19  Bruno Haible  <bruno@clisp.org>
13434
13435         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13436         empty.
13437         Reported by Eric Blake.
13438
13439 2007-07-18  Bruno Haible  <bruno@clisp.org>
13440
13441         * gnulib-tool: New options --po-base, --po-domain.
13442         (func_usage): Document them.
13443         (pobase, po_domain): New variables.
13444         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13445         DEFAULT_TEXT_DOMAIN.
13446         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13447         (func_import): Consider pobase and po_domain. Create a po/ directory.
13448         (func_create_testdir): Set pobase and po_domain to empty.
13449         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13450         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13451
13452 2007-07-18  Bruno Haible  <bruno@clisp.org>
13453
13454         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13455         EXTRA_DIST augmentation for files in build-aux/.
13456
13457 2007-07-16  Bruno Haible  <bruno@clisp.org>
13458
13459         * modules/lseek (License): Use the synonymous term "LGPLv2+".
13460         * modules/getdelim (License): Likewise.
13461
13462 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13463
13464         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13465         * modules/d-type (License): Likewise.
13466         * modules/extensions (License): Likewise.
13467         * modules/fnmatch (License): Likewise.
13468         * modules/fseeko (License): Likewise.
13469         * modules/getaddrinfo (License): Likewise.
13470         * modules/getline (License): Likewise.
13471         * modules/getlogin_r (License): Likewise.
13472         * modules/getpass (License): Likewise.
13473         * modules/gettimeofday (License): Likewise.
13474         * modules/glob (License): Likewise.
13475         * modules/inet_ntop (License): Likewise.
13476         * modules/malloc (License): Likewise.
13477         * modules/malloca (License): Likewise.
13478         * modules/memmem (License): Likewise.
13479         * modules/mempcpy (License): Likewise.
13480         * modules/memset (License): Likewise.
13481         * modules/minmax (License): Likewise.
13482         * modules/mktime (License): Likewise.
13483         * modules/netinet_in (License): Likewise.
13484         * modules/pathmax (License): Likewise.
13485         * modules/poll (License): Likewise.
13486         * modules/regex (License): Likewise.
13487         * modules/snprintf (License): Likewise.
13488         * modules/stdbool (License): Likewise.
13489         * modules/stdint (License): Likewise.
13490         * modules/stdio (License): Likewise.
13491         * modules/strcase (License): Likewise.
13492         * modules/strcasestr (License): Likewise.
13493         * modules/strdup (License): Likewise.
13494         * modules/string (License): Likewise.
13495         * modules/strndup (License): Likewise.
13496         * modules/strnlen (License): Likewise.
13497         * modules/strpbrk (License): Likewise.
13498         * modules/strptime (License): Likewise.
13499         * modules/strsep (License): Likewise.
13500         * modules/sys_select (License): Likewise.
13501         * modules/sys_socket (License): Likewise.
13502         * modules/sys_stat (License): Likewise.
13503         * modules/sys_time (License): Likewise.
13504         * modules/time (License): Likewise.
13505         * modules/time_r (License): Likewise.
13506         * modules/timegm (License): Likewise.
13507         * modules/unistd (License): Likewise.
13508         * modules/vsnprintf (License): Likewise.
13509         * modules/wctype (License): Likewise.
13510
13511 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13512
13513         * modules/argz (License): LGPLv2+.
13514
13515 2007-07-15  Karl Berry  <karl@gnu.org>
13516
13517         * doc/gnulib.texi: revise node structure per new fdl.texi.
13518
13519 2007-07-14  Bruno Haible  <bruno@clisp.org>
13520
13521         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13522         the output file.
13523         * lib/uniname/uninames.h: Regenerated.
13524
13525 2007-07-14  Karl Berry  <karl@gnu.org>
13526
13527         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13528         omitting sectioning and index commands.
13529
13530 2007-07-13  Bruno Haible  <bruno@clisp.org>
13531
13532         New gnulib-tool option --more-symlinks.
13533         * gnulib-tool (func_usage): Document --more-symlinks.
13534         (do_copyrights): New variable.
13535         Recognize option --more-symlinks.
13536         (func_import): Don't add a copyright notice transform to
13537         sed_transform_lib_file if do_copyrights is empty.
13538
13539 2007-07-13  Bruno Haible  <bruno@clisp.org>
13540
13541         * lib/vasnprintf.c (decimal_point_char): Define also if
13542         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13543         && !NEED_PRINTF_DIRECTIVE_A.
13544         Reported by Clemens Koller <clemens.koller@anagramm.de> via
13545         Gary V. Vaughan <gary@gnu.org>.
13546
13547 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
13548
13549         * lib/inttypes_.h: Undo previous change, since it was fixed
13550         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13551
13552 2007-07-13  Bruno Haible  <bruno@clisp.org>
13553
13554         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13555         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13556
13557 2007-07-13  Jim Meyering  <jim@meyering.net>
13558
13559         df: Don't fail for Tru64's "file-on-file mount".
13560         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13561         so we fall through and use statfs instead.  Details here:
13562         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13563         Reported by Albert Chin.
13564
13565 2007-07-13  Bruno Haible  <bruno@clisp.org>
13566
13567         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13568         * modules/configmake (License): Likewise.
13569         * modules/gettext (License): Likewise.
13570         * modules/gettext-h (License): Likewise.
13571         * modules/include_next (License): Likewise.
13572         * modules/link-warning (License): Likewise.
13573         * modules/localcharset (License): Likewise.
13574         * modules/localename (License): Likewise.
13575         * modules/lock (License): Likewise.
13576         * modules/relocatable-lib-lgpl (License): Likewise.
13577         * modules/size_max (License): Likewise.
13578         * modules/vasnprintf (License): Likewise.
13579         * modules/wchar (License): Likewise.
13580         * modules/xsize (License): Likewise.
13581
13582 2007-07-13  Bruno Haible  <bruno@clisp.org>
13583
13584         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13585         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13586
13587 2007-07-12  Bruno Haible  <bruno@clisp.org>
13588
13589         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13590         in the modules files.
13591
13592 2007-07-11  Karl Berry  <karl@gnu.org>
13593
13594         * MODULES.html.sh (func_module): use
13595          sed -e '\|^'"${includefile}"'$|d'
13596          instead of /.../d, to avoid errors on $includefile's containing /.
13597
13598 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13599
13600         * gnulib-tool (func_import): Avoid duplication of --avoid
13601         statements
13602         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13603         names to `_' in variable names.
13604
13605 2007-07-10  Eric Blake  <ebb9@byu.net>
13606
13607         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13608         * NEWS: Document this change.
13609
13610 2007-07-08  Bruno Haible  <bruno@clisp.org>
13611
13612         Update to Unicode 5.0.
13613         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13614         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13615         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13616         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13617         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13618         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13619         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13620         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13621         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13622         U+10A3F, U+1D242..U+1D244.
13623         (nonspacing_table_ind): Update.
13624         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13625         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13626
13627 2007-07-08  Bruno Haible  <bruno@clisp.org>
13628
13629         Update to Unicode 5.0.
13630         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13631         code transform. Extend the name index field of unicode_name_to_code and
13632         unicode_code_to_name from 16 to 24 bits.
13633         * lib/uniname/uniname.c (unicode_character_name,
13634         unicode_name_character): Add the range 0x12xxx to the code transform.
13635         * lib/uniname/uninames.h: Regenerated.
13636         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13637
13638 2007-07-07  Bruno Haible  <bruno@clisp.org>
13639
13640         * modules/wcwidth-tests: New file.
13641         * tests/test-wcwidth.c: New file.
13642
13643         Work around MacOS X wcwidth() bug.
13644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13645         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13646         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13647         original wcwidth in non-UTF-8 locales.
13648         * modules/wcwidth (Depends-on): Add localcharset, streq,
13649         uniwidth/width.
13650         * doc/functions/wcwidth.texi: Update.
13651
13652 2007-07-07  Bruno Haible  <bruno@clisp.org>
13653
13654         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13655         (wcwidth): New declaration.
13656         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13657         macros.
13658         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13659         here. Prepare for creating <wchar.h> unconditionally.
13660         * modules/wchar (Depends-on): Add link-warning.
13661         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13662         REPLACE_WCWIDTH, and GL_LINK_WARNING.
13663         * lib/wcwidth.h: Remove file.
13664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13665         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13666         * modules/wcwidth (Files): Remove lib/wcwidth.h.
13667         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13668         (Include): Replace wcwidth.h with <wchar.h>.
13669         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13670         * lib/mbchar.h: Don't include wcwidth.h.
13671         * lib/mbswidth.c: Likewise.
13672         * NEWS: Mention the change.
13673
13674 2007-07-07  Bruno Haible  <bruno@clisp.org>
13675
13676         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13677         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13678         definition with an external declaration.
13679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13680         defined as a function. Remove AC_C_INLINE requirement.
13681         * modules/wcwidth (Files): Add lib/wcwidth.c.
13682         (Makefile.am): Remove redundant statement.
13683
13684 2007-07-07  Bruno Haible  <bruno@clisp.org>
13685
13686         * MODULES.html.sh (Unicode string functions): Add the new modules.
13687
13688         * tests/uniwidth/test-u32-strwidth.c: New file.
13689         * modules/uniwidth/u32-strwidth-tests: New file.
13690
13691         * lib/uniwidth/u32-strwidth.c: New file.
13692         * modules/uniwidth/u32-strwidth: New file.
13693
13694         * tests/uniwidth/test-u16-strwidth.c: New file.
13695         * modules/uniwidth/u16-strwidth-tests: New file.
13696
13697         * lib/uniwidth/u16-strwidth.c: New file.
13698         * modules/uniwidth/u16-strwidth: New file.
13699
13700         * tests/uniwidth/test-u8-strwidth.c: New file.
13701         * modules/uniwidth/u8-strwidth-tests: New file.
13702
13703         * lib/uniwidth/u8-strwidth.c: New file.
13704         * modules/uniwidth/u8-strwidth: New file.
13705
13706         * tests/uniwidth/test-u32-width.c: New file.
13707         * modules/uniwidth/u32-width-tests: New file.
13708
13709         * lib/uniwidth/u32-width.c: New file.
13710         * modules/uniwidth/u32-width: New file.
13711
13712         * tests/uniwidth/test-u16-width.c: New file.
13713         * modules/uniwidth/u16-width-tests: New file.
13714
13715         * lib/uniwidth/u16-width.c: New file.
13716         * modules/uniwidth/u16-width: New file.
13717
13718         * tests/uniwidth/test-u8-width.c: New file.
13719         * modules/uniwidth/u8-width-tests: New file.
13720
13721         * lib/uniwidth/u8-width.c: New file.
13722         * modules/uniwidth/u8-width: New file.
13723
13724         * tests/uniwidth/test-uc_width.c: New file.
13725         * modules/uniwidth/width-tests: New file.
13726
13727         * lib/uniwidth/width.c: New file, from GNU libiconv.
13728         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13729         * modules/uniwidth/width: New file.
13730
13731         * lib/uniwidth.h: New file, from GNU libiconv.
13732         * modules/uniwidth/base: New file.
13733
13734 2007-07-07  Bruno Haible  <bruno@clisp.org>
13735
13736         * lib/uniname.h: New file, from GNU gettext.
13737         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13738         * lib/uniname/uninames.h: New file, from GNU gettext.
13739         * lib/uniname/uniname.c: New file, from GNU gettext.
13740         * tests/uniname/test-uninames.sh: New file.
13741         * tests/uniname/test-uninames.c: New file, from GNU gettext.
13742         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13743         * modules/uniname/base: New file.
13744         * modules/uniname/uniname: New file.
13745         * modules/uniname/uniname-tests: New file.
13746         * MODULES.html.sh (Unicode string functions): Add the new modules.
13747
13748 2007-07-06  Bruno Haible  <bruno@clisp.org>
13749
13750         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13751
13752 2007-07-06  Bruno Haible  <bruno@clisp.org>
13753
13754         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13755         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13756         includes <cygwin/sys_time.h> which includes <sys/select.h> which
13757         include <sys/time.h>.
13758         Reported by Eric Blake.
13759
13760 2007-07-06  Eric Blake  <ebb9@byu.net>
13761
13762         Fix testing canonicalize on cygwin.
13763         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13764         Revert patch from 2007-06-19.
13765         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13766         canonicalize module is also in use.
13767         * tests/test-canonicalize.c: New file.
13768         * tests/test-canonicalize.sh: Likewise.
13769         * modules/canonicalize-tests: Likewise.
13770
13771 2007-07-06  Jim Meyering  <jim@meyering.net>
13772
13773         * lib/getugroups.c (getugroups): Detect getgrent failure.
13774         Adjust comment to reflect reality: this function may return -1.
13775
13776 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13777
13778         * build-aux/bootstrap (TP_URL,get_translations): Update to use
13779         the new TP address.
13780         (usage): Fix typo
13781         (gnulib_mk): New variable.
13782
13783 2007-07-05  Jim Meyering  <jim@meyering.net>
13784
13785         Don't let endgrent clobber errno, no matter how improbable.
13786         * lib/getugroups.c (getugroups): Save and restore errno around
13787         endgrent call.
13788
13789         Close the group DB even when failing with 2^31 or more members.
13790         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13791
13792 2007-07-04  Jim Meyering  <jim@meyering.net>
13793
13794         * lib/getugroups.h: New file.
13795         * lib/getugroups.c: Include "getugroups.h".
13796         Remove uses of "register" keyword.
13797         Move local variable, "cp", down into scope where used.
13798         Give "username" parameter the "const" attribute.
13799         * modules/getugroups (Files): Add lib/getugroups.h
13800
13801 2007-07-04  Karl Berry  <karl@gnu.org>
13802
13803         * MODULES.html.sh (func_all_modules): Complete rename of
13804         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13805
13806 2007-07-02  Bruno Haible  <bruno@clisp.org>
13807
13808         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13809         mode, when inttypes.h comes from gnulib.
13810         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13811
13812 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13813
13814         * NEWS: Mention lgpl module name change.
13815
13816         * modules/lgpl-2.1: Renamed from lgpl.
13817
13818         * NEWS: Mention gpl module name change.
13819
13820         * modules/gpl-3.0: New file, based on gpl-2.0.
13821
13822         * modules/gpl-2.0: Renamed from gpl.
13823
13824         * modules/gpl: Fix filename, doc/gpl.texi is now found at
13825         doc/gpl-2.0.texi.
13826
13827 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13828
13829         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13830         #define __STDC_LIMIT_MACROS temporarily while including
13831         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13832         Problem reported by Joel E. Denny in
13833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13834
13835 2007-07-01  Bruno Haible  <bruno@clisp.org>
13836
13837         * lib/unistdio.h: New file.
13838         * lib/unistdio/u-asnprintf.h: New file.
13839         * lib/unistdio/u-asprintf.h: New file.
13840         * lib/unistdio/u-printf-args.c: New file.
13841         * lib/unistdio/u-printf-args.h: New file.
13842         * lib/unistdio/u-printf-parse.h: New file.
13843         * lib/unistdio/u-snprintf.h: New file.
13844         * lib/unistdio/u-sprintf.h: New file.
13845         * lib/unistdio/u-vasprintf.h: New file.
13846         * lib/unistdio/u-vsnprintf.h: New file.
13847         * lib/unistdio/u-vsprintf.h: New file.
13848         * lib/unistdio/ulc-asnprintf.c: New file.
13849         * lib/unistdio/ulc-asprintf.c: New file.
13850         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13851         * lib/unistdio/ulc-printf-parse.c: New file.
13852         * lib/unistdio/ulc-snprintf.c: New file.
13853         * lib/unistdio/ulc-sprintf.c: New file.
13854         * lib/unistdio/ulc-vasnprintf.c: New file.
13855         * lib/unistdio/ulc-vasprintf.c: New file.
13856         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13857         * lib/unistdio/ulc-vsnprintf.c: New file.
13858         * lib/unistdio/ulc-vsprintf.c: New file.
13859         * lib/unistdio/u8-asnprintf.c: New file.
13860         * lib/unistdio/u8-asprintf.c: New file.
13861         * lib/unistdio/u8-printf-parse.c: New file.
13862         * lib/unistdio/u8-snprintf.c: New file.
13863         * lib/unistdio/u8-sprintf.c: New file.
13864         * lib/unistdio/u8-vasnprintf.c: New file.
13865         * lib/unistdio/u8-vasprintf.c: New file.
13866         * lib/unistdio/u8-vsnprintf.c: New file.
13867         * lib/unistdio/u8-vsprintf.c: New file.
13868         * lib/unistdio/u8-u8-asnprintf.c: New file.
13869         * lib/unistdio/u8-u8-asprintf.c: New file.
13870         * lib/unistdio/u8-u8-snprintf.c: New file.
13871         * lib/unistdio/u8-u8-sprintf.c: New file.
13872         * lib/unistdio/u8-u8-vasnprintf.c: New file.
13873         * lib/unistdio/u8-u8-vasprintf.c: New file.
13874         * lib/unistdio/u8-u8-vsnprintf.c: New file.
13875         * lib/unistdio/u8-u8-vsprintf.c: New file.
13876         * lib/unistdio/u16-asnprintf.c: New file.
13877         * lib/unistdio/u16-asprintf.c: New file.
13878         * lib/unistdio/u16-printf-parse.c: New file.
13879         * lib/unistdio/u16-snprintf.c: New file.
13880         * lib/unistdio/u16-sprintf.c: New file.
13881         * lib/unistdio/u16-vasnprintf.c: New file.
13882         * lib/unistdio/u16-vasprintf.c: New file.
13883         * lib/unistdio/u16-vsnprintf.c: New file.
13884         * lib/unistdio/u16-vsprintf.c: New file.
13885         * lib/unistdio/u16-u16-asnprintf.c: New file.
13886         * lib/unistdio/u16-u16-asprintf.c: New file.
13887         * lib/unistdio/u16-u16-snprintf.c: New file.
13888         * lib/unistdio/u16-u16-sprintf.c: New file.
13889         * lib/unistdio/u16-u16-vasnprintf.c: New file.
13890         * lib/unistdio/u16-u16-vasprintf.c: New file.
13891         * lib/unistdio/u16-u16-vsnprintf.c: New file.
13892         * lib/unistdio/u16-u16-vsprintf.c: New file.
13893         * lib/unistdio/u32-asnprintf.c: New file.
13894         * lib/unistdio/u32-asprintf.c: New file.
13895         * lib/unistdio/u32-printf-parse.c: New file.
13896         * lib/unistdio/u32-snprintf.c: New file.
13897         * lib/unistdio/u32-sprintf.c: New file.
13898         * lib/unistdio/u32-vasnprintf.c: New file.
13899         * lib/unistdio/u32-vasprintf.c: New file.
13900         * lib/unistdio/u32-vsnprintf.c: New file.
13901         * lib/unistdio/u32-vsprintf.c: New file.
13902         * lib/unistdio/u32-u32-asnprintf.c: New file.
13903         * lib/unistdio/u32-u32-asprintf.c: New file.
13904         * lib/unistdio/u32-u32-snprintf.c: New file.
13905         * lib/unistdio/u32-u32-sprintf.c: New file.
13906         * lib/unistdio/u32-u32-vasnprintf.c: New file.
13907         * lib/unistdio/u32-u32-vasprintf.c: New file.
13908         * lib/unistdio/u32-u32-vsnprintf.c: New file.
13909         * lib/unistdio/u32-u32-vsprintf.c: New file.
13910         * tests/unistdio/test-ulc-asnprintf1.c: New file.
13911         * tests/unistdio/test-ulc-asnprintf1.h: New file.
13912         * tests/unistdio/test-ulc-printf1.h: New file.
13913         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13914         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13915         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13916         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13917         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13918         * tests/unistdio/test-ulc-vasprintf1.c: New file.
13919         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13920         * tests/unistdio/test-ulc-vsprintf1.c: New file.
13921         * tests/unistdio/test-u8-asnprintf1.c: New file.
13922         * tests/unistdio/test-u8-asnprintf1.h: New file.
13923         * tests/unistdio/test-u8-printf1.h: New file.
13924         * tests/unistdio/test-u8-vasnprintf1.c: New file.
13925         * tests/unistdio/test-u8-vasnprintf2.c: New file.
13926         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13927         * tests/unistdio/test-u8-vasnprintf3.c: New file.
13928         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13929         * tests/unistdio/test-u8-vasprintf1.c: New file.
13930         * tests/unistdio/test-u8-vsnprintf1.c: New file.
13931         * tests/unistdio/test-u8-vsprintf1.c: New file.
13932         * tests/unistdio/test-u16-asnprintf1.c: New file.
13933         * tests/unistdio/test-u16-asnprintf1.h: New file.
13934         * tests/unistdio/test-u16-printf1.h: New file.
13935         * tests/unistdio/test-u16-vasnprintf1.c: New file.
13936         * tests/unistdio/test-u16-vasnprintf2.c: New file.
13937         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13938         * tests/unistdio/test-u16-vasnprintf3.c: New file.
13939         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13940         * tests/unistdio/test-u16-vasprintf1.c: New file.
13941         * tests/unistdio/test-u16-vsnprintf1.c: New file.
13942         * tests/unistdio/test-u16-vsprintf1.c: New file.
13943         * tests/unistdio/test-u32-asnprintf1.c: New file.
13944         * tests/unistdio/test-u32-asnprintf1.h: New file.
13945         * tests/unistdio/test-u32-printf1.h: New file.
13946         * tests/unistdio/test-u32-vasnprintf1.c: New file.
13947         * tests/unistdio/test-u32-vasnprintf2.c: New file.
13948         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13949         * tests/unistdio/test-u32-vasnprintf3.c: New file.
13950         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13951         * tests/unistdio/test-u32-vasprintf1.c: New file.
13952         * tests/unistdio/test-u32-vsnprintf1.c: New file.
13953         * tests/unistdio/test-u32-vsprintf1.c: New file.
13954         * modules/unistdio/base: New file.
13955         * modules/unistdio/u-printf-args: New file.
13956         * modules/unistdio/ulc-asnprintf: New file.
13957         * modules/unistdio/ulc-asprintf: New file.
13958         * modules/unistdio/ulc-fprintf: New file.
13959         * modules/unistdio/ulc-printf-parse: New file.
13960         * modules/unistdio/ulc-snprintf: New file.
13961         * modules/unistdio/ulc-sprintf: New file.
13962         * modules/unistdio/ulc-vasnprintf: New file.
13963         * modules/unistdio/ulc-vasprintf: New file.
13964         * modules/unistdio/ulc-vfprintf: New file.
13965         * modules/unistdio/ulc-vsnprintf: New file.
13966         * modules/unistdio/ulc-vsprintf: New file.
13967         * modules/unistdio/u8-asnprintf: New file.
13968         * modules/unistdio/u8-asprintf: New file.
13969         * modules/unistdio/u8-printf-parse: New file.
13970         * modules/unistdio/u8-snprintf: New file.
13971         * modules/unistdio/u8-sprintf: New file.
13972         * modules/unistdio/u8-vasnprintf: New file.
13973         * modules/unistdio/u8-vasprintf: New file.
13974         * modules/unistdio/u8-vsnprintf: New file.
13975         * modules/unistdio/u8-vsprintf: New file.
13976         * modules/unistdio/u8-u8-asnprintf: New file.
13977         * modules/unistdio/u8-u8-asprintf: New file.
13978         * modules/unistdio/u8-u8-snprintf: New file.
13979         * modules/unistdio/u8-u8-sprintf: New file.
13980         * modules/unistdio/u8-u8-vasnprintf: New file.
13981         * modules/unistdio/u8-u8-vasprintf: New file.
13982         * modules/unistdio/u8-u8-vsnprintf: New file.
13983         * modules/unistdio/u8-u8-vsprintf: New file.
13984         * modules/unistdio/u16-asnprintf: New file.
13985         * modules/unistdio/u16-asprintf: New file.
13986         * modules/unistdio/u16-printf-parse: New file.
13987         * modules/unistdio/u16-snprintf: New file.
13988         * modules/unistdio/u16-sprintf: New file.
13989         * modules/unistdio/u16-vasnprintf: New file.
13990         * modules/unistdio/u16-vasprintf: New file.
13991         * modules/unistdio/u16-vsnprintf: New file.
13992         * modules/unistdio/u16-vsprintf: New file.
13993         * modules/unistdio/u16-u16-asnprintf: New file.
13994         * modules/unistdio/u16-u16-asprintf: New file.
13995         * modules/unistdio/u16-u16-snprintf: New file.
13996         * modules/unistdio/u16-u16-sprintf: New file.
13997         * modules/unistdio/u16-u16-vasnprintf: New file.
13998         * modules/unistdio/u16-u16-vasprintf: New file.
13999         * modules/unistdio/u16-u16-vsnprintf: New file.
14000         * modules/unistdio/u16-u16-vsprintf: New file.
14001         * modules/unistdio/u32-asnprintf: New file.
14002         * modules/unistdio/u32-asprintf: New file.
14003         * modules/unistdio/u32-printf-parse: New file.
14004         * modules/unistdio/u32-snprintf: New file.
14005         * modules/unistdio/u32-sprintf: New file.
14006         * modules/unistdio/u32-vasnprintf: New file.
14007         * modules/unistdio/u32-vasprintf: New file.
14008         * modules/unistdio/u32-vsnprintf: New file.
14009         * modules/unistdio/u32-vsprintf: New file.
14010         * modules/unistdio/u32-u32-asnprintf: New file.
14011         * modules/unistdio/u32-u32-asprintf: New file.
14012         * modules/unistdio/u32-u32-snprintf: New file.
14013         * modules/unistdio/u32-u32-sprintf: New file.
14014         * modules/unistdio/u32-u32-vasnprintf: New file.
14015         * modules/unistdio/u32-u32-vasprintf: New file.
14016         * modules/unistdio/u32-u32-vsnprintf: New file.
14017         * modules/unistdio/u32-u32-vsprintf: New file.
14018         * modules/unistdio/ulc-asnprintf-tests: New file.
14019         * modules/unistdio/ulc-vasnprintf-tests: New file.
14020         * modules/unistdio/ulc-vasprintf-tests: New file.
14021         * modules/unistdio/ulc-vsnprintf-tests: New file.
14022         * modules/unistdio/ulc-vsprintf-tests: New file.
14023         * modules/unistdio/u8-asnprintf-tests: New file.
14024         * modules/unistdio/u8-vasnprintf-tests: New file.
14025         * modules/unistdio/u8-vasprintf-tests: New file.
14026         * modules/unistdio/u8-vsnprintf-tests: New file.
14027         * modules/unistdio/u8-vsprintf-tests: New file.
14028         * modules/unistdio/u16-asnprintf-tests: New file.
14029         * modules/unistdio/u16-vasnprintf-tests: New file.
14030         * modules/unistdio/u16-vasprintf-tests: New file.
14031         * modules/unistdio/u16-vsnprintf-tests: New file.
14032         * modules/unistdio/u16-vsprintf-tests: New file.
14033         * modules/unistdio/u32-asnprintf-tests: New file.
14034         * modules/unistdio/u32-vasnprintf-tests: New file.
14035         * modules/unistdio/u32-vasprintf-tests: New file.
14036         * modules/unistdio/u32-vsnprintf-tests: New file.
14037         * modules/unistdio/u32-vsprintf-tests: New file.
14038         * MODULES.html.sh (Unicode string functions): Add the new modules.
14039
14040 2007-07-01  Bruno Haible  <bruno@clisp.org>
14041
14042         * lib/sprintf.c (sprintf): Limit the available length estimation,
14043         to avoid address wraparound.
14044         * lib/vsprintf.c (vsprintf): Likewise.
14045         * modules/sprintf-posix (Dependencies): Add stdint.
14046         * modules/vsprintf-posix (Dependencies): Likewise.
14047
14048 2007-07-01  Bruno Haible  <bruno@clisp.org>
14049
14050         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
14051         Windows PATH as well. Conservative double-quoting. Comments.
14052
14053 2007-07-01  Bruno Haible  <bruno@clisp.org>
14054             Eric Blake  <ebb9@byu.net>
14055             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14056
14057         * gnulib-tool (self_abspathname): Fix algorithm to cope with
14058         empty components in $PATH, denoting '.'.
14059
14060 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14061
14062         * gnulib-tool: Fix indentation.
14063         (func_create_megatestdir): Likewise.
14064         Report by Bruno Haible.
14065
14066 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14067
14068         Sync from Automake.
14069         * build-aux/gnupload: Fix shell portability issues with for loops.
14070         Report by Karl Berry.
14071
14072 2007-06-29  Simon Josefsson  <simon@josefsson.org>
14073
14074         * build-aux/maint.mk (POURL): Use translationproject.org.
14075
14076 2007-06-27  Simon Josefsson  <simon@josefsson.org>
14077             Bruno Haible  <bruno@clisp.org>
14078
14079         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
14080         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
14081         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
14082         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
14083         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
14084
14085 2007-06-27  Bruno Haible  <bruno@clisp.org>
14086
14087         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
14088         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
14089
14090 2007-06-26  Karl Berry  <karl@gnu.org>
14091
14092         * MODULES.html.sh: remove xreadlink-with-size.
14093
14094 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14095
14096         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
14097         method that I hope also handles the double-include problem noted
14098         by Bruno Haible in
14099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
14100
14101 2007-06-23  Bruno Haible  <bruno@clisp.org>
14102
14103         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14104         Don't let the 'mostlyclean' target fail if the last subdirectory could
14105         not be removed.
14106         Reported by Karl Berry.
14107
14108 2007-06-23  Bruno Haible  <bruno@clisp.org>
14109
14110         * gnulib-tool (echo): Add a speedier workaround for ksh.
14111         * tests/test-echo.sh: Likewise.
14112
14113 2007-06-23  Bruno Haible  <bruno@clisp.org>
14114
14115         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14116         * tests/test-echo.sh: Likewise.
14117
14118 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14119
14120         * gnulib-tool (IFS): Initialize early, so we don't set it to
14121         empty later.
14122         (self_abspathname): Rewrite algorithm to set it, reindent.
14123         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14124         (func_create_megatestdir): Merge some sed scripts.
14125
14126 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14127
14128         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14129         exposed by Sun Studio 11 cc on Solaris 8.
14130
14131 2007-06-22  Bruno Haible  <bruno@clisp.org>
14132
14133         * gnulib-tool (echo): Ensure the echo primitive does not interpret
14134         backslashes.
14135         * tests/test-echo.sh: New file.
14136
14137 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14138
14139         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14140         simplify `sed_replace_build_aux' scripts, they are portable but
14141         echoing them with `echo' is not.
14142         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14143
14144 2007-06-21  Karl Berry  <karl@gnu.org>
14145
14146         * config/srclist.txt: guess we can't handle the licenses via
14147         srclist at the moment.
14148
14149 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14150
14151         * MODULES.html.sh: Add include_next.
14152         * modules/include_next: New file.
14153
14154 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14155
14156         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14157         INCLUDE_NEXT.
14158         (gl_CHECK_NEXT_HEADERS): New macro.
14159         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14160         the obsolescent gl_ABSOLUTE_HEADER.
14161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14162         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14163         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14164         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14165         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14166         * m4/math_h.m4 (gl_MATH_H): Likewise.
14167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14168         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14169         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14170         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14171         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14172         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14174         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14178         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14179         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14180         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14181         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14182         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14183         * m4/inttypes.m4 (gl_INTTYPES_H): Define
14184         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
14185         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
14186         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
14187         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
14188         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
14189         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
14190         * lib/float_.h: Likewise.
14191         * lib/inttypes_.h: Likewise.
14192         * lib/math_.h: Likewise.
14193         * lib/search_.h: Likewise.
14194         * lib/signal_.h: Likewise.
14195         * lib/stdint_.h: Likewise.
14196         * lib/stdio_.h: Likewise.
14197         * lib/stdlib_.h: Likewise.
14198         * lib/string_.h: Likewise.
14199         * lib/sys_stat_.h: Likewise.
14200         * lib/sys_time_.h: Likewise.
14201         * lib/time_.h: Likewise.
14202         * lib/unistd_.h: Likewise.
14203         * lib/wchar_.h: Likewise.
14204         * lib/wctype_.h: Likewise.
14205         * lib/dirent_.h: Likewise.
14206         * lib/iconv_.h: Likewise.
14207         * lib/locale_.h: Likewise.
14208         * lib/netinet_in_.h: Likewise.
14209         * lib/sys_select_.h: Likewise.
14210         * lib/sys_socket_.h: Likewise.
14211         * lib/sysexits_.h: Likewise.
14212         * modules/fcntl (Depends-on): Depend on include_next, not
14213         absolute_header.
14214         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
14215         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
14216         * modules/fchdir: Likewise.
14217         * modules/float: Likewise.
14218         * modules/iconv_open: Likewise.
14219         * modules/inttypes: Likewise.
14220         * modules/locale: Likewise.
14221         * modules/math: Likewise.
14222         * modules/netinet_in: Likewise.
14223         * modules/search: Likewise.
14224         * modules/signal: Likewise.
14225         * modules/stdint: Likewise.
14226         * modules/stdio: Likewise.
14227         * modules/stdlib: Likewise.
14228         * modules/string: Likewise.
14229         * modules/sys_select: Likewise.
14230         * modules/sys_socket: Likewise.
14231         * modules/sys_stat: Likewise.
14232         * modules/sys_time: Likewise.
14233         * modules/sysexits: Likewise.
14234         * modules/time: Likewise.
14235         * modules/unistd: Likewise.
14236         * modules/wchar: Likewise.
14237         * modules/wctype: Likewise.
14238         * modules/sys_stat: Change maintainer to "all".
14239         * modules/unistd: Likewise.
14240
14241 2007-06-20  Karl Berry  <karl@gnu.org>
14242
14243         * config/srclist.txt: track www changes in license files.
14244
14245 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
14246
14247         * build-aux/bootstrap: Remove stray dot.
14248         Make sure build_aux settings are honored when linking
14249         gnulib_extra_files.
14250
14251 2007-06-19  Eric Blake  <ebb9@byu.net>
14252
14253         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14254         Allow compilation on cygwin.
14255
14256 2007-06-19  Jim Meyering  <jim@meyering.net>
14257
14258         xreadlink-with-size: Remove module.  No longer used.
14259         Ex-callers now use xreadlink or mreadlink-with-size.
14260         * modules/xreadlink-with-size: Remove module.
14261         * lib/xreadlink-with-size.c: Remove file.
14262         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14263         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
14264         just before the function definition *is* accurate.
14265
14266         Eliminate one way canonicalize_filename_mode could exit.
14267         * lib/canonicalize.c (canonicalize_filename_mode):
14268         Use mreadlink_with_size, not xreadlink_with_size.
14269
14270 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14271
14272         Detect porting problems to FreeBSD/arm, which has time_t wider than
14273         long int.  Original problem reported for GNU diff by Xin Li in
14274         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14275         * modules/getdate (Depends-on): Add intprops, verify.
14276         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
14277         is an integer type no wider than long int.
14278
14279 2007-06-18  Jim Meyering  <jim@meyering.net>
14280
14281         New module: mreadlink-with-size.
14282         * MODULES.html.sh: Add mreadlink-with-size.
14283         * modules/mreadlink-with-size: New module
14284         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14285         not xreadlink-with-size.
14286         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14287
14288 2007-06-16  Bruno Haible  <bruno@clisp.org>
14289
14290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14291         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14292         Reported by Gary V. Vaughan <gary@gnu.org>.
14293
14294 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14295
14296         Revamp lchown so that it lives in unistd.h where it belongs.
14297         * lib/lchown.h: Remove.
14298         * lib/dirchownmod.c: Don't include lib/lchown.h.
14299         * lib/fchownat.c: Likewise.
14300         * lib/openat.c: Likewise.
14301         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14302         does not follow symlinks.
14303         (EOPNOTSUPP): Define if not defined.
14304         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14305         is defined to 0.
14306         (lchown): New decl.
14307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14308         Do not check for lchown decl.
14309         Set REPLACE_LCHOWN.
14310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14311         REPLACE_LCHOWN.
14312         * modules/chown: Make it clear it follows symlinks.
14313         * modules/lchown: Make it clear it doesn't follow symlinks.
14314         (Files): Remove lib/lchown.h
14315         (Depends-on): Add unistd.
14316         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14317         (Include): Include <unistd.h>, not "lchown.h".
14318         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14319         REPLACE_LCHOWN.
14320
14321 2007-06-15  Jim Meyering  <jim@meyering.net>
14322
14323         Change license (GPL to LGPL) of fsusage and dependents.
14324         * modules/fsusage (License): Change to LGPL.
14325         * modules/full-read (License): Likewise.
14326         * modules/full-write (License): Likewise.
14327         * modules/safe-read (License): Likewise.
14328         * modules/safe-write (License): Likewise.
14329
14330 2007-06-14  Ben Pfaff  <blp@gnu.org>
14331
14332         Missing part of allocsa -> malloca transition.
14333         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14334         gl_MALLOCA.
14335
14336 2007-06-12  Bruno Haible  <bruno@clisp.org>
14337
14338         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14339         to ia64, x86_64, i386.
14340         Reported by Eric Blake.
14341
14342 2007-06-12  Bruno Haible  <bruno@clisp.org>
14343
14344         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14345         cross-compiling to x86_64.
14346
14347 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
14348
14349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14350         glitch reported by Ralf Wildenhues in
14351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14352
14353         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14354         Vin Shelton.
14355
14356 2007-06-11  Bruno Haible  <bruno@clisp.org>
14357
14358         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14359         replacement string.
14360         Reported by Eric Blake.
14361
14362 2007-06-10  Bruno Haible  <bruno@clisp.org>
14363
14364         Prepare vasnprintf code for use with Unicode strings.
14365         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14366         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14367         TYPE_U32_STRING.
14368         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14369         a_u32_string variants.
14370         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14371         * lib/printf-args.c: Don't include config.h and the specification
14372         header if PRINTF_FETCHARGS is already defined.
14373         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14374         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14375         TYPE_U16_STRING, TYPE_U32_STRING.
14376         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14377         u16_directive, u16_directives, u32_directive, u32_directives): New
14378         types.
14379         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14380         New declarations.
14381         * lib/printf-parse.c: Don't include config.h and the specification
14382         header if PRINTF_PARSE is already defined. Eliminate the set of
14383         parameters for WIDE_CHAR_VERSION; the user of this file must provide
14384         them now. Include c-ctype.h.
14385         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14386         directive and CHAR_T_ONLY_ASCII.
14387         * lib/vasnprintf.c: Don't include config.h and the specification header
14388         if VASNPRINTF is already defined.
14389         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14390         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14391         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14392         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14393         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14394         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14395         code accordingly.
14396         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14397         pad_ourselves also in this case, with the 'c' and 's' directives, and
14398         with a different notion of "width".
14399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14400
14401 2007-06-10  Bruno Haible  <bruno@clisp.org>
14402
14403         * modules/unistr/u32-mbsnlen: New file.
14404         * lib/unistr/u32-mbsnlen.c: New file.
14405
14406         * modules/unistr/u16-mbsnlen: New file.
14407         * lib/unistr/u16-mbsnlen.c: New file.
14408
14409         * modules/unistr/u8-mbsnlen: New file.
14410         * lib/unistr/u8-mbsnlen.c: New file.
14411
14412         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14413         declarations.
14414
14415 2007-06-10  Bruno Haible  <bruno@clisp.org>
14416
14417         * lib/string_.h (mbsnlen): New declaration.
14418         * lib/mbsnlen.c: New file.
14419         * m4/mbsnlen.m4: New file.
14420         * modules/mbsnlen: New file.
14421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14422         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14423         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14424
14425 2007-06-10  Bruno Haible  <bruno@clisp.org>
14426
14427         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14428
14429 2007-06-10  Bruno Haible  <bruno@clisp.org>
14430
14431         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14432         * lib/mbuiter.h: Likewise.
14433
14434 2007-06-10  Bruno Haible  <bruno@clisp.org>
14435
14436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14437         declaration.
14438
14439 2007-06-10  Karl Berry  <karl@gnu.org>
14440
14441         * config/srclist.txt: remove gettext entries, Bruno prefers
14442         to update individually.
14443
14444 2007-06-10  Bruno Haible  <bruno@clisp.org>
14445
14446         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14447         'maxlen'. Ensure only length + width bytes are allocated, not
14448         length + 1 + width.
14449
14450 2007-06-09  Bruno Haible  <bruno@clisp.org>
14451
14452         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14453         (CHAR_T): Remove macro.
14454         (VASNPRINTF): Update.
14455
14456 2007-06-09  Bruno Haible  <bruno@clisp.org>
14457
14458         * MODULES.html.sh (Unicode string functions): Add the new modules.
14459
14460         * modules/uniconv/u32-conv-to-enc: New file.
14461         * lib/uniconv/u32-conv-to-enc.c: New file.
14462         * modules/uniconv/u32-conv-to-enc-tests: New file.
14463         * tests/uniconv/test-u32-conv-to-enc.c: New file.
14464
14465         * modules/uniconv/u16-conv-to-enc: New file.
14466         * lib/uniconv/u16-conv-to-enc.c: New file.
14467         * lib/uniconv/u-conv-to-enc.h: New file.
14468         * modules/uniconv/u16-conv-to-enc-tests: New file.
14469         * tests/uniconv/test-u16-conv-to-enc.c: New file.
14470
14471         * modules/uniconv/u8-conv-to-enc: New file.
14472         * lib/uniconv/u8-conv-to-enc.c: New file.
14473         * modules/uniconv/u8-conv-to-enc-tests: New file.
14474         * tests/uniconv/test-u8-conv-to-enc.c: New file.
14475
14476         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14477         u32_conv_to_encoding): New declarations.
14478
14479 2007-06-09  Bruno Haible  <bruno@clisp.org>
14480
14481         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14482
14483 2007-06-09  Bruno Haible  <bruno@clisp.org>
14484
14485         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14486         * modules/malloca: Renamed from modules/allocsa, updated.
14487         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14488         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14489         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14490         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14491         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14492         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14493         * modules/xmalloca: Renamed from modules/xallocsa, updated.
14494         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14495         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14496         * modules/c-strcasestr (Depends-on): Update.
14497         * lib/c-strcasestr.c: Update.
14498         * modules/c-strstr (Depends-on): Update.
14499         * lib/c-strstr.c: Update.
14500         * modules/canonicalize-lgpl (Depends-on): Update.
14501         * lib/canonicalize-lgpl.c: Update.
14502         * modules/clean-temp (Depends-on): Update.
14503         * lib/clean-temp.c: Update.
14504         * modules/csharpcomp (Depends-on): Update.
14505         * lib/csharpcomp.c: Update.
14506         * modules/csharpexec (Depends-on): Update.
14507         * lib/csharpexec.c: Update.
14508         * modules/javacomp (Depends-on): Update.
14509         * lib/javacomp.c: Update.
14510         * modules/javaexec (Depends-on): Update.
14511         * lib/javaexec.c: Update.
14512         * modules/mbscasestr (Depends-on): Update.
14513         * lib/mbscasestr.c: Update.
14514         * modules/mbsstr (Depends-on): Update.
14515         * lib/mbsstr.c: Update.
14516         * modules/setenv (Depends-on): Update.
14517         * lib/setenv.c: Update.
14518         * modules/strcasestr (Depends-on): Update.
14519         * lib/strcasestr.c: Update.
14520         * modules/striconveha (Depends-on): Update.
14521         * lib/striconveha.c: Update.
14522         * modules/relocatable-prog-wrapper (Files): Update.
14523         * lib/relocwrapper.c: Update.
14524         * build-aux/install-reloc: Update.
14525         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14526
14527 2007-06-08  Bruno Haible  <bruno@clisp.org>
14528
14529         Port to uClibc.
14530         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14531         * lib/fpurge.c (fpurge): Likewise.
14532         * lib/freading.c (freading): Likewise.
14533         * lib/fseeko.c (rpl_fseeko): Likewise.
14534         * lib/fseterr.c (fseterr): Likewise.
14535         * lib/fwriting.c (fwriting): Likewise.
14536         * tests/test-fflush.c (main): Avoid a failure on uClibc.
14537
14538 2007-06-08  Bruno Haible  <bruno@clisp.org>
14539
14540         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14541         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14542         * modules/gettext (Files): Add m4/intlmacosx.m4.
14543
14544 2007-06-07  Bruno Haible  <bruno@clisp.org>
14545
14546         * modules/localename-tests: New file.
14547         * tests/test-localename.c: New file.
14548
14549         New module 'localename'.
14550         * lib/localename.h: New file.
14551         * lib/localename.c: New file, from GNU gettext.
14552         * m4/localename.m4: New file.
14553         * modules/localename: New file.
14554
14555 2007-06-07  Bruno Haible  <bruno@clisp.org>
14556
14557         Work around the lack of <wchar.h> on some builds of uClibc.
14558         * doc/headers/wchar.texi: Update.
14559         * lib/wchar_.h: Include <wchar.h> only if it exists.
14560         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14561         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14562         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14563         doesn't exist.
14564         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14565         * modules/mbfile (Depends-on): Add wchar.
14566         * modules/mbiter (Depends-on): Likewise.
14567         * modules/mbuiter (Depends-on): Likewise.
14568         Reported by Simon Josefsson.
14569
14570 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14571
14572         Work around problem reported by Steven M. Schweda in
14573         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14574         Tru64 5.1B with the Compaq compiler environment installed declares
14575         an 'isblank' function but does not define it in the C library.
14576         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14577         * lib/regex_internal.h (isblank): Likewise.
14578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14579         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14580
14581 2007-06-05  Bruno Haible  <bruno@clisp.org>
14582
14583         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14584         ia64.
14585         * modules/printf-safe: New file.
14586         * modules/fprintf-posix (Depends-on): Add printf-safe.
14587         * modules/printf-posix (Depends-on): Likewise.
14588         * modules/snprintf-posix (Depends-on): Likewise.
14589         * modules/sprintf-posix (Depends-on): Likewise.
14590         * modules/vasnprintf-posix (Depends-on): Likewise.
14591         * modules/vasprintf-posix (Depends-on): Likewise.
14592         * modules/vfprintf-posix (Depends-on): Likewise.
14593         * modules/vprintf-posix (Depends-on): Likewise.
14594         * modules/vsnprintf-posix (Depends-on): Likewise.
14595         * modules/vsprintf-posix (Depends-on): Likewise.
14596         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14597         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14598         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14599         "no" on i386, x86_64, ia64.
14600         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
14604         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14605         on i386, x86_64, ia64.
14606         * tests/test-vasnprintf-posix.c: Include float.h.
14607         (LDBL80_WORDS): New macro.
14608         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14609         on i386, x86_64, ia64.
14610         * tests/test-vasprintf-posix.c: Include float.h.
14611         (LDBL80_WORDS): New macro.
14612         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14613         on i386, x86_64, ia64.
14614         * tests/test-snprintf-posix.c: Include float.h.
14615         * tests/test-sprintf-posix.c: Likewise.
14616         * tests/test-vsnprintf-posix.c: Likewise.
14617         * tests/test-vsprintf-posix.c: Likewise.
14618
14619 2007-06-05  Bruno Haible  <bruno@clisp.org>
14620
14621         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14622         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14623         non-IEEE numbers on i386, x86_64, ia64.
14624         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14625         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14626         * tests/test-isnanl.h: Include float.h.
14627         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14628
14629 2007-06-05  Bruno Haible  <bruno@clisp.org>
14630
14631         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14632         also the %a / %A. Handle the %a / %A code before this extra handling.
14633
14634 2007-06-05  Bruno Haible  <bruno@clisp.org>
14635
14636         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14637         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14638
14639 2007-06-05  Bruno Haible  <bruno@clisp.org>
14640
14641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14642         typo in variable name.
14643
14644 2007-06-05  Eric Blake  <ebb9@byu.net>
14645
14646         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14647         Reported by Simon Josefsson.
14648
14649 2007-06-04  Bruno Haible  <bruno@clisp.org>
14650
14651         Avoid test failures on some PowerPC platforms.
14652         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14653         Define differently for PowerPC.
14654         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14655         Reported by Gary V. Vaughan <gary@gnu.org>.
14656
14657 2007-06-02  Bruno Haible  <bruno@clisp.org>
14658
14659         Fix test-stdint failure on FreeBSD/ia64.
14660         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14661         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14662         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14663         * doc/headers/stdint.texi: Update.
14664
14665 2007-06-01  Bruno Haible  <bruno@clisp.org>
14666
14667         * tests/test-binary-io.c (main): Pass a third argument to open().
14668         Reported by Gary V. Vaughan <gary@gnu.org>.
14669
14670 2007-06-01  Bruno Haible  <bruno@clisp.org>
14671
14672         * doc/functions/frexpl.texi: Update for mingw.
14673
14674 2007-06-01  Bruno Haible  <bruno@clisp.org>
14675
14676         * tests/test-lseek.c (main): Disable test of errno for invalid third
14677         argument.
14678         * doc/functions/lseek.texi: Update.
14679         Reported by Gary V. Vaughan <gary@gnu.org>.
14680
14681 2007-05-28  Bruno Haible  <bruno@clisp.org>
14682
14683         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14684
14685 2007-05-31  Eric Blake  <ebb9@byu.net>
14686
14687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14688         cross compiling.
14689
14690 2007-05-30  Eric Blake  <ebb9@byu.net>
14691         and Bruno Haible  <bruno@clisp.org>
14692
14693         Work around mingw test failures exposed by m4-1.4.9b.
14694         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14695         * tests/test-unistd.c: Disable uid_t and git_t tests for the
14696         moment.
14697
14698 2007-05-30  Bruno Haible  <bruno@clisp.org>
14699
14700         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14701         assuming that they are closed. Needed on HP-UX 11.
14702
14703 2007-05-29  Bruno Haible  <bruno@clisp.org>
14704
14705         Fix a problem with #include_next.
14706         * lib/dirent_.h: Split the double-inclusion guard.
14707         * lib/fcntl_.h: Likewise.
14708         * lib/float_.h: Likewise.
14709         * lib/iconv_.h: Likewise.
14710         * lib/inttypes_.h: Likewise.
14711         * lib/locale_.h: Likewise.
14712         * lib/math_.h: Likewise.
14713         * lib/netinet_in_.h: Likewise.
14714         * lib/search_.h: Likewise.
14715         * lib/signal_.h: Likewise.
14716         * lib/stdint_.h: Likewise.
14717         * lib/stdio_.h: Likewise.
14718         * lib/stdlib_.h: Likewise.
14719         * lib/string_.h: Likewise.
14720         * lib/sys_select_.h: Likewise.
14721         * lib/sys_socket_.h: Likewise.
14722         * lib/sys_stat_.h: Likewise.
14723         * lib/sys_time_.h: Likewise.
14724         * lib/sysexits_.h: Likewise.
14725         * lib/time_.h: Likewise.
14726         * lib/unistd_.h: Likewise.
14727         * lib/wchar_.h: Likewise.
14728         * lib/wctype_.h: Likewise.
14729
14730 2007-05-29  Bruno Haible  <bruno@clisp.org>
14731
14732         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14733         for the moment.
14734
14735 2007-05-29  Bruno Haible  <bruno@clisp.org>
14736
14737         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14738         invocation.
14739         Reported by Eric Blake.
14740
14741 2007-05-29  Bruno Haible  <bruno@clisp.org>
14742
14743         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14744         compiling case.
14745
14746 2007-05-29  Eric Blake  <ebb9@byu.net>
14747             Bruno Haible  <bruno@clisp.org>
14748
14749         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14750         cross compiles.
14751
14752 2007-05-28  Eric Blake  <ebb9@byu.net>
14753
14754         * modules/closein-tests (test_closein_LDADD): Support test on
14755         cygwin with libtool.
14756
14757 2007-05-28  Bruno Haible  <bruno@clisp.org>
14758
14759         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14760         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14761         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14762         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14763         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14764         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14765         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14766         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14767         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14768
14769 2007-05-28  Eric Blake  <ebb9@byu.net>
14770
14771         Unconditionally include <config.h> in unit tests.
14772         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14773         * tests/test-allocsa.c, tests/test-arcfour.c,
14774         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14775         tests/test-array_list.c, tests/test-array_oset.c,
14776         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14777         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14778         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14779         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14780         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14781         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14782         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14783         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14784         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14785         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14786         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14787         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14788         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14789         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14790         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14791         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14792         test-md5.c, test-memmem.c, test-printf-posix.c,
14793         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14794         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14795         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14796         test-strcasestr.c, test-striconv.c, test-striconveh.c,
14797         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14798         test-vasnprintf-posix2.c, test-vasnprintf.c,
14799         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14800         test-vfprintf-posix.c, test-vprintf-posix.c,
14801         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14802         test-xvasprintf.c: Likewise.
14803
14804 2007-05-28  Bruno Haible  <bruno@clisp.org>
14805
14806         * gnulib-tool (func_import): Remember the --with-tests command-line
14807         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14808         Reported by Eric Blake.
14809
14810 2007-05-28  Bruno Haible  <bruno@clisp.org>
14811
14812         * modules/ftell-tests: New file.
14813         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14814         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14815
14816         * lib/ftell.c: New file.
14817         * modules/ftell: New file.
14818         * m4/ftell.m4: New file.
14819         * doc/functions/ftell.texi: Update.
14820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14821         REPLACE_FTELL.
14822         * lib/stdio_.h (rpl_ftell): New declaration.
14823         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14824         REPLACE_FTELL.
14825
14826 2007-05-28  Eric Blake  <ebb9@byu.net>
14827
14828         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14829
14830 2007-05-28  Bruno Haible  <bruno@clisp.org>
14831
14832         * modules/fseek-tests: New file.
14833         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14834         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14835
14836         * lib/fseek.c: New file.
14837         * modules/fseek: New file.
14838         * m4/fseek.m4: New file.
14839         * doc/functions/fseek.texi: Update.
14840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14841         REPLACE_FSEEK.
14842         * lib/stdio_.h (rpl_fseek): New declaration.
14843         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14844         REPLACE_FSEEK.
14845
14846 2007-05-28  Bruno Haible  <bruno@clisp.org>
14847
14848         * lib/stdio_.h (fflush): More comments.
14849
14850 2007-05-28  Bruno Haible  <bruno@clisp.org>
14851
14852         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14853         runtime test.
14854
14855 2007-05-28  Eric Blake  <ebb9@byu.net>
14856
14857         Improve lseek module.
14858         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14859         * lib/unistd_.h (lseek): Scale back link warning message.
14860         * tests/test-lseek.c: Beef up test.
14861         * tests/test-lseek.sh: Exercise more facets of lseek.
14862         Reported by Bruno Haible.
14863
14864 2007-05-28  Bruno Haible  <bruno@clisp.org>
14865
14866         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14867         to define.
14868
14869 2007-05-27  Bruno Haible  <bruno@clisp.org>
14870
14871         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14872
14873 2007-05-27  Bruno Haible  <bruno@clisp.org>
14874
14875         * modules/openmp: New file.
14876         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14877         Noah Misch.
14878
14879 2007-05-26  Bruno Haible  <bruno@clisp.org>
14880
14881         * modules/chdir-long (Depends-on): Add fchdir.
14882         * modules/chdir-safer (Depends-on): Likewise.
14883         * modules/fts (Depends-on): Likewise.
14884         * modules/fts-lgpl (Depends-on): Likewise.
14885         * modules/openat (Depends-on): Likewise.
14886         * modules/savewd (Depends-on): Likewise.
14887
14888 2007-05-24  Eric Blake  <ebb9@byu.net>
14889
14890         Fix lseek on mingw.
14891         * modules/lseek: New module.
14892         * m4/lseek.m4: New file.
14893         * lib/lseek.c: New file.
14894         * modules/lseek-tests: New file.
14895         * tests/test-lseek.c: New file.
14896         * tests/test-lseek.sh: New file.
14897         * MODULES.html.sh: Document lseek module.
14898         * modules/fflush (Depends-on): Add lseek, fseeko.
14899         * modules/fseeko (Depends-on): Likewise.
14900         * modules/ftello (Depends-on): Likewise.
14901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14902         broken.
14903         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14904         broken.
14905         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14906         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14907         * lib/ftello.c (rpl_ftello): Likewise.
14908         * tests/test-fseeko.c (main): Test this.
14909         * tests/test-fseeko.sh: Likewise.
14910         * tests/test-ftello.c (main): Likewise.
14911         * tests/test-ftello.sh: Likewise.
14912         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14913         implies replacing fseek.
14914         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14915         HAVE_FTELLO.
14916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14917         * modules/unistd (Makefile.am): Likewise.
14918         * lib/unistd_.h (lseek): Declare a replacement.
14919         * doc/functions/lseek.texi (lseek): Document this fix.
14920         * doc/functions/fseek.texi (fseek): Likewise.
14921         * doc/functions/ftell.texi (ftell): Likewise.
14922
14923 2007-05-24  Bruno Haible  <bruno@clisp.org>
14924
14925         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14926         in the printed representation of a NaN.
14927         * tests/test-vasprintf-posix.c (test_function): Likewise.
14928         * tests/test-snprintf-posix.h (test_function): Likewise.
14929         * tests/test-sprintf-posix.h (test_function): Likewise.
14930         Reported by Eric Blake.
14931
14932 2007-05-23  Eric Blake  <ebb9@byu.net>
14933
14934         Fix fseeko/ftello on cygwin 1.5.24.
14935         * doc/functions/fseeko.texi (fseeko): Document the fix.
14936         * doc/functions/ftello.texi (ftello): Document the fix.
14937         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14938         * doc/functions/stdout.text (stdout): New file.
14939         * doc/functions/stderr.text (stderr): New file.
14940         * doc/gnulib.texi (Function Substitutes): Use new files.
14941         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14942         prior to 1.7.0.
14943         * tests/test-ftello.c (main): Likewise for ftello.
14944         * tests/test-fseeko.sh: New file.
14945         * tests/test-ftello.sh: New file.
14946         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14947         with seekable stdin.
14948         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14949         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14950         (gl_REPLACE_FSEEKO): New macro.
14951         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14952         * modules/fseeko (Files): Distribute fseeko.c.
14953         * modules/ftello (Files): Distribute ftello.c.
14954         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14955         mode.
14956         * lib/ftello.c (rpl_ftello): New file.
14957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14958         fseeko, ftello.
14959         (gl_STDIN_LARGE_OFFSET): New macro.
14960         * modules/stdio (Makefile.am): Perform the replacement.
14961         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14962
14963 2007-05-23  Bruno Haible  <bruno@clisp.org>
14964
14965         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14966         GNULIB_POSIXCHECK is defined.
14967
14968 2007-05-21  Bruno Haible  <bruno@clisp.org>
14969
14970         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14971         Check also the output for NaN arguments. When cross-compiling, guess
14972         no on IRIX.
14973         * lib/vasnprintf.c: Update comments.
14974         * tests/test-vasnprintf-posix.c (strisnan): New function.
14975         (test_function): Use it.
14976         * tests/test-vasprintf-posix.c (strisnan): New function.
14977         (test_function): Use it.
14978         * tests/test-snprintf-posix.h (strisnan): New function.
14979         (test_function): Use it.
14980         * tests/test-sprintf-posix.h (strisnan): New function.
14981         (test_function): Use it.
14982         Reported by Eric Blake.
14983
14984 2007-05-20  Bruno Haible  <bruno@clisp.org>
14985
14986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14987         numbers that fails on BeOS.
14988         * doc/functions/frexpl.texi: Update.
14989
14990 2007-05-20  Jim Meyering  <jim@meyering.net>
14991
14992         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14993         forced upon us by glibc-2.6.
14994
14995 2007-05-20  Bruno Haible  <bruno@clisp.org>
14996
14997         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14998         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14999         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
15000         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
15001         NEED_PRINTF_INFINITE.
15002         (is_infinitel): New function.
15003         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
15004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
15005         gl_PREREQ_VASNPRINTF_INFINITE.
15006         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
15007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15008         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
15009         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
15010         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
15011         gl_PREREQ_VASNPRINTF_INFINITE.
15012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15013         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15019         * doc/functions/fprintf.texi: Update.
15020         * doc/functions/printf.texi: Update.
15021         * doc/functions/snprintf.texi: Update.
15022         * doc/functions/sprintf.texi: Update.
15023         * doc/functions/vfprintf.texi: Update.
15024         * doc/functions/vprintf.texi: Update.
15025         * doc/functions/vsnprintf.texi: Update.
15026         * doc/functions/vsprintf.texi: Update.
15027
15028 2007-05-20  Bruno Haible  <bruno@clisp.org>
15029
15030         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
15031         was not found in libc.
15032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15033
15034 2007-05-20  Bruno Haible  <bruno@clisp.org>
15035
15036         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15037         printed as "-nan" instead of "nan".
15038         * tests/test-vasprintf-posix.c (test_function): Likewise.
15039         * tests/test-snprintf-posix.h (test_function): Likewise.
15040         * tests/test-sprintf-posix.h (test_function): Likewise.
15041         Needed for HP-UX 11.
15042
15043 2007-05-20  Jim Meyering  <jim@meyering.net>
15044
15045         Fix buggy test for the fchownat-deref bug.
15046         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
15047         symlink required for the run-test.  Without it, this test would
15048         always declare that fchownat doesn't work, and client code would
15049         unnecessarily use the replacement function with fixed libc.
15050         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
15051         Reported by Greg Schafer.
15052
15053 2007-05-19  Bruno Haible  <bruno@clisp.org>
15054
15055         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
15056         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
15057         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
15058         Needed for IRIX 6.5 and Solaris 2.5.1.
15059
15060 2007-05-19  Bruno Haible  <bruno@clisp.org>
15061
15062         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
15063         (test_function): Skip tests involving -0.0 on platforms where
15064         -0.0 = 0.0.
15065         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
15066         (test_function): Skip tests involving -0.0 on platforms where
15067         -0.0 = 0.0.
15068         * tests/test-snprintf-posix.h (have_minus_zero): New function.
15069         (test_function): Skip tests involving -0.0 on platforms where
15070         -0.0 = 0.0.
15071         * tests/test-sprintf-posix.h (have_minus_zero): New function.
15072         (test_function): Skip tests involving -0.0 on platforms where
15073         -0.0 = 0.0.
15074         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
15075         tests.
15076         * tests/test-printf-posix.h (test_function): Likewise.
15077         * tests/test-printf-posix.output: Remove all -0.0 related results.
15078         Needed for IRIX 6.5.
15079
15080 2007-05-19  Bruno Haible  <bruno@clisp.org>
15081
15082         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15083         printed as "nan0x7fffffff" instead of "nan".
15084         * tests/test-vasprintf-posix.c (test_function): Likewise.
15085         * tests/test-snprintf-posix.h (test_function): Likewise.
15086         * tests/test-sprintf-posix.h (test_function): Likewise.
15087         * tests/test-fprintf-posix.h (NaN): Remove macro.
15088         (test_function): Remove all NaN related tests.
15089         * tests/test-printf-posix.h (NaN): Remove macro.
15090         (test_function): Remove all NaN related tests.
15091         * tests/test-printf-posix.output: Remove all NaN related results.
15092         Needed for IRIX 6.5.
15093
15094 2007-05-19  Bruno Haible  <bruno@clisp.org>
15095
15096         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
15097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15098
15099 2007-05-19  Bruno Haible  <bruno@clisp.org>
15100
15101         * lib/float_.h: New file.
15102         * m4/float_h.m4: New file.
15103         * modules/float: New file.
15104         * modules/isnanl (Dependencies): Add float.
15105         * modules/isnanl-nolibm (Dependencies): Likewise.
15106         * modules/mathl (Dependencies): Likewise.
15107         * modules/printf-frexpl (Dependencies): Likewise.
15108         * modules/signbit (Dependencies): Likewise.
15109         * modules/vasnprintf (Dependencies): Likewise.
15110         * doc/headers/float.texi: Update.
15111
15112 2007-05-19  Jim Meyering  <jim@meyering.net>
15113
15114         * lib/utimens.c (gl_futimens): Rename from futimens,
15115         now that glibc-2.6 declares futimens.
15116         * lib/utimens.h: Likewise.
15117
15118 2007-05-19  Bruno Haible  <bruno@clisp.org>
15119
15120         Avoid test failures on mingw.
15121         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15122         * tests/test-printf-posix.sh: Likewise.
15123         * tests/test-vfprintf-posix.sh: Likewise.
15124         * tests/test-vprintf-posix.sh: Likewise.
15125
15126 2007-05-19  Bruno Haible  <bruno@clisp.org>
15127
15128         Fix *printf result for NaN, Inf, -0.0 on mingw.
15129         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15130         * lib/vasnprintf.c: Include math.h and isnan.h.
15131         (is_infinite_or_zero): New function.
15132         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15133         values in the %f, %F, %e, %E, %g, %G directives.
15134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15136         gl_PRINTF_INFINITE and test its result. Invoke
15137         gl_PREREQ_VASNPRINTF_INFINITE.
15138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15142         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15145         * doc/functions/fprintf.texi: Update.
15146         * doc/functions/printf.texi: Update.
15147         * doc/functions/snprintf.texi: Update.
15148         * doc/functions/sprintf.texi: Update.
15149         * doc/functions/vfprintf.texi: Update.
15150         * doc/functions/vprintf.texi: Update.
15151         * doc/functions/vsnprintf.texi: Update.
15152         * doc/functions/vsprintf.texi: Update.
15153
15154 2007-05-19  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15157         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15158         Instead of multiplying with 10^k, set extra_zeroes to k.
15159         (scale10_round_long_double): Remove function.
15160
15161 2007-05-18  Bruno Haible  <bruno@clisp.org>
15162
15163         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15164         introduced on 2007-05-06.
15165
15166 2007-05-18  Bruno Haible  <bruno@clisp.org>
15167
15168         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15169         %g directives.
15170         * tests/test-vasprintf-posix.c (test_function): Likewise.
15171         * tests/test-snprintf-posix.h (test_function): Likewise.
15172         * tests/test-sprintf-posix.h (test_function): Likewise.
15173
15174 2007-05-18  Bruno Haible  <bruno@clisp.org>
15175
15176         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
15177         (strmatch): New function.
15178         (test_function): Test the %f directive on numbers of various exponents.
15179         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
15180         (strmatch): New function.
15181         (test_function): Test the %f directive on numbers of various exponents.
15182         * tests/test-snprintf-posix.h (strmatch): New function.
15183         (test_function): Test the %f directive on numbers of various exponents.
15184         * tests/test-sprintf-posix.h (strmatch): New function.
15185         (test_function): Test the %f directive on numbers of various exponents.
15186         * tests/test-snprintf-posix.c (SIZEOF): New macro.
15187         * tests/test-sprintf-posix.c (SIZEOF): New macro.
15188         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
15189         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
15190
15191 2007-05-18  Bruno Haible  <bruno@clisp.org>
15192
15193         Add support for 'long double' number output.
15194         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
15195         * lib/vasnprintf.c: Include math.h and float+.h.
15196         (mp_limb_t): New type.
15197         (GMP_LIMB_BITS): New macro.
15198         (mp_twolimb_t): New type.
15199         (GMP_TWOLIMB_BITS): New macro.
15200         (mpn_t): New type.
15201         (multiply, divide, convert_to_decimal, decode_long_double,
15202         scale10_round_long_double, scale10_round_decimal_long_double,
15203         floorlog10l): New functions.
15204         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
15205         for the %f, %F, %e, %E, %g, %G directives.
15206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
15207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15208         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
15209         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
15210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15217         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
15218         * modules/snprintf-posix (Depends-on): Likewise.
15219         * modules/sprintf-posix (Depends-on): Likewise.
15220         * modules/vasnprintf-posix (Depends-on): Likewise.
15221         * modules/vasprintf-posix (Depends-on): Likewise.
15222         * modules/vfprintf-posix (Depends-on): Likewise.
15223         * modules/vsnprintf-posix (Depends-on): Likewise.
15224         * modules/vsprintf-posix (Depends-on): Likewise.
15225         * modules/vasnprintf (Files): Add lib/float+.h.
15226         * doc/functions/fprintf.texi: Update.
15227         * doc/functions/printf.texi: Update.
15228         * doc/functions/snprintf.texi: Update.
15229         * doc/functions/sprintf.texi: Update.
15230         * doc/functions/vfprintf.texi: Update.
15231         * doc/functions/vprintf.texi: Update.
15232         * doc/functions/vsnprintf.texi: Update.
15233         * doc/functions/vsprintf.texi: Update.
15234
15235 2007-05-18  Bruno Haible  <bruno@clisp.org>
15236
15237         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
15238
15239 2007-05-18  Bruno Haible  <bruno@clisp.org>
15240
15241         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
15242         for printing 64-bit integers. Needed for mingw.
15243
15244 2007-05-18  Bruno Haible  <bruno@clisp.org>
15245
15246         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15247         gl_FUNC_FREXPL_WORKS.
15248         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15249
15250 2007-05-18  Bruno Haible  <bruno@clisp.org>
15251
15252         * modules/frexpl-nolibm-tests: New file.
15253
15254         * modules/frexpl-nolibm: New file.
15255         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15256
15257 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15258
15259         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15260         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15261         GCC 4.2, which otherwise issues a lot of warnings.
15262         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15263         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15264         Likewise.
15265         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15266         * modules/iconv_open (iconv.h): Likewise.
15267         * modules/locale (locale.h): Likewise.
15268         * modules/netinet_in (netinet/in.h): Likewise.
15269         * modules/sys_select (sys_select.h): Likewise.
15270         * modules/sys_socket (sys/socket.h): Likewise.
15271         * modules/sys_stat (sys/stat.h): Likewise.
15272         * modules/sysexits (sysexits.h): Likewise.
15273         * modules/unistd (unistd.h): Likewise.
15274
15275 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15276
15277         * modules/closein-tests (Makefile.am): Distribute
15278         `test-closein.sh'.
15279
15280 2007-05-17  Bruno Haible  <bruno@clisp.org>
15281
15282         * tests/test-printf-posix.output: Renamed from
15283         tests/test-fprintf-posix.out.
15284         * modules/fprintf-posix-tests: Update.
15285         * modules/printf-posix-tests: Update.
15286         * modules/vfprintf-posix-tests: Update.
15287         * modules/vprintf-posix-tests: Update.
15288         * tests/test-fprintf-posix.sh: Update.
15289         * tests/test-printf-posix.sh: Update.
15290         * tests/test-vfprintf-posix.sh: Update.
15291         * tests/test-vprintf-posix.sh: Update.
15292         Reported by Ralf Wildenhues.
15293
15294 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15295
15296         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15297         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15298         GCC 4.2, which otherwise issues a lot of warnings.
15299         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15300         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15301         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15302         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15303         it should no longer be needed.
15304         * lib/string_.h: Likewise.
15305         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15306         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15307         * modules/inttypes (inttypes.h): Likewise.
15308         * modules/math (math.h): Likewise.
15309         * modules/search (search.h): Likewise.
15310         * modules/signal (signal.h): Likewise.
15311         * modules/stdint (stdint.h): Likewise.
15312         * modules/stdio (stdio.h): Likewise.
15313         * modules/stdlib (stdlib.h): Likewise.
15314         * modules/string (string.h): Likewise.
15315         * modules/sys_time (sys/time.h): Likewise.
15316         * modules/time (time.h): Likewise.
15317         * modules/wchar (wchar.h): Likewise.
15318         * modules/wctype (wtype.h): Likewise.
15319
15320 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15321
15322         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15323
15324 2007-05-13  Bruno Haible  <bruno@clisp.org>
15325
15326         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15327         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15328         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15329         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15330         (gl_PREREQ_STRTOK_R): Don't require it here.
15331
15332 2007-05-13  Bruno Haible  <bruno@clisp.org>
15333
15334         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15335         when used in C++ mode.
15336
15337 2007-05-12  Bruno Haible  <bruno@clisp.org>
15338
15339         * lib/linebuffer.h: Tweak doc.
15340         * lib/linebuffer.c: Likewise.
15341
15342 2007-05-12  James Youngman  <jay@gnu.org>
15343
15344         * lib/linebuffer.c (readlinebuffer_delim): New function,
15345         like readlinebuffer, but use a caller-specified delimiter.
15346         (readlinebuffer): Just call readlinebuffer_delim with '\n'
15347         as the delimiter.
15348         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15349
15350 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15351
15352         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15353         * modules/openat (Files): Remove openat-die.c.
15354         (Depends-on): Add openat-die.
15355         * modules/openat-die: New module.
15356
15357 2007-05-06  Bruno Haible  <bruno@clisp.org>
15358
15359         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15360         Update with info about Cygwin.
15361         * doc/functions/fprintf.texi: Update.
15362         * doc/functions/printf.texi: Update.
15363         * doc/functions/snprintf.texi: Update.
15364         * doc/functions/sprintf.texi: Update.
15365         * doc/functions/vfprintf.texi: Update.
15366         * doc/functions/vprintf.texi: Update.
15367         * doc/functions/vsnprintf.texi: Update.
15368         * doc/functions/vsprintf.texi: Update.
15369         Reported by Eric Blake.
15370
15371 2007-05-06  Bruno Haible  <bruno@clisp.org>
15372
15373         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15374         padding ourselves for the floating-point directives.
15375         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15378         gl_PRINTF_FLAG_ZERO and test its result. Invoke
15379         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15387         * tests/test-snprintf-posix.h (test_function): Also check the width
15388         and some flags in the %f directive.
15389         * tests/test-sprintf-posix.h (test_function): Likewise.
15390         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15391         * tests/test-vasprintf-posix.c (test_function): Likewise.
15392         * doc/functions/fprintf.texi: Update.
15393         * doc/functions/printf.texi: Update.
15394         * doc/functions/snprintf.texi: Update.
15395         * doc/functions/sprintf.texi: Update.
15396         * doc/functions/vfprintf.texi: Update.
15397         * doc/functions/vprintf.texi: Update.
15398         * doc/functions/vsnprintf.texi: Update.
15399         * doc/functions/vsprintf.texi: Update.
15400
15401 2007-05-06  Bruno Haible  <bruno@clisp.org>
15402
15403         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15404         pass the ' flag character to sprintf or snprintf.
15405         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15408         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15409         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15413         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15414         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15415         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15416         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15417         * tests/test-snprintf-posix.h (test_function): Also check the grouping
15418         flag.
15419         * tests/test-sprintf-posix.h (test_function): Likewise.
15420         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15421         * tests/test-vasprintf-posix.c (test_function): Likewise.
15422         * doc/functions/fprintf.texi: Update.
15423         * doc/functions/printf.texi: Update.
15424         * doc/functions/snprintf.texi: Update.
15425         * doc/functions/sprintf.texi: Update.
15426         * doc/functions/vfprintf.texi: Update.
15427         * doc/functions/vprintf.texi: Update.
15428         * doc/functions/vsnprintf.texi: Update.
15429         * doc/functions/vsprintf.texi: Update.
15430
15431 2007-05-01  Bruno Haible  <bruno@clisp.org>
15432
15433         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15434
15435 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15438         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
15439
15440 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15441
15442         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15443         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
15444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15445
15446 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
15447
15448         * lib/argp-help.c (struct hol_entry): New member `ord'.
15449         (HOL_ENTRY_PTRCMP): Use ord for comparison
15450         (hol_sort): Initialize ord.
15451
15452 2007-05-01  Bruno Haible  <bruno@clisp.org>
15453
15454         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15455         Reported by Eric Blake.
15456         * doc/gnulib.texi (Function Substitutes): Update.
15457
15458 2007-05-01  Bruno Haible  <bruno@clisp.org>
15459
15460         * doc/functions.texi: Remove file, now redundant through
15461         doc/functions/*.texi.
15462
15463 2007-05-01  Bruno Haible  <bruno@clisp.org>
15464
15465         * modules/argp (Depends-on): Add sleep.
15466
15467 2007-05-01  Bruno Haible  <bruno@clisp.org>
15468
15469         * modules/sleep-tests: New file.
15470         * tests/test-sleep.c: New file.
15471
15472         * modules/sleep: New file.
15473         * lib/sleep.c: New file.
15474         * m4/sleep.m4: New file.
15475         * lib/unistd_.h (sleep): New declaration.
15476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15477         HAVE_SLEEP.
15478         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15479         * doc/functions/sleep.texi: Document the sleep module.
15480
15481 2007-05-01  Bruno Haible  <bruno@clisp.org>
15482
15483         * lib/sigprocmask.h: Remove file.
15484         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15485         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15486         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15487         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15488         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15489         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15490         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15491         HAVE_SIGSET_T as a shell variable.
15492         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15493         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15494         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15495         (Depends-on): Add signal. Remove verify.
15496         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15497         (Include): Mention <signal.h> instead of sigprocmask.h.
15498         * NEWS: Mention the change.
15499         * lib/fatal-signal.c: Don't include sigprocmask.h.
15500
15501 2007-05-01  Bruno Haible  <bruno@clisp.org>
15502
15503         * modules/signal: New file.
15504         * lib/signal_.h: New file.
15505         * m4/signal_h.m4: New file.
15506
15507 2007-05-01  Bruno Haible  <bruno@clisp.org>
15508
15509         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15510         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15511         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15512         HAVE_WCTYPE_CTMP_BUG into wctype.h.
15513
15514 2007-05-01  Bruno Haible  <bruno@clisp.org>
15515
15516         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15517         configure time.
15518         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15519         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15520         * modules/sys_stat (Makefile.am): Substitute their values into
15521         sys/stat.h.
15522
15523 2007-05-01  Bruno Haible  <bruno@clisp.org>
15524
15525         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15526         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15527         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15528
15529 2007-05-01  Bruno Haible  <bruno@clisp.org>
15530
15531         * doc/header/assert.texi: Undo last change: don't mention the gnulib
15532         'assert' module here.
15533
15534 2007-05-01  Bruno Haible  <bruno@clisp.org>
15535
15536         * doc/functions/*.texi: New files.
15537         * doc/functions/google-ranking.txt: New file.
15538         * doc/gnulib.texi (Function Substitutes): New chapter.
15539         (ctime, inet_ntoa): Remove sections.
15540         * doc/ctime.texi: Remove file.
15541         * doc/inet_ntoa.texi: Remove file.
15542         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15543         dependencies.
15544         (%.info): New rule, specifying a --reference-limit.
15545
15546 2007-05-01  Bruno Haible  <bruno@clisp.org>
15547
15548         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15549
15550 2007-05-01  Bruno Haible  <bruno@clisp.org>
15551
15552         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15553         the portability of 'mkdir' to mingw systems.
15554
15555 2007-05-01  Bruno Haible  <bruno@clisp.org>
15556
15557         * doc/headers/google-ranking.txt: New file.
15558
15559 2007-04-30  Eric Blake  <ebb9@byu.net>
15560
15561         Prefer fseeko to fseek.
15562         * modules/getpass (Depends-on): Add fseeko.
15563         * lib/getpass.c (getpass): Use fseeko, not fseek.
15564
15565 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
15566
15567         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15568         assumes the sorting is stable, while most qsort implementations
15569         are not.  Use argument addresses to ensure they never compare as
15570         equal.
15571
15572         * tests/test-argp-2.sh (usage-indent test): Fix output
15573         (func_compare): Restore diff options
15574         * tests/test-argp.c: Restore #include "progname.h"
15575
15576 2007-04-29  Bruno Haible  <bruno@clisp.org>
15577
15578         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15580         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15582         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15583         (configure.ac): Define CHECK_SNPRINTF_POSIX.
15584         (TESTS, check_PROGRAMS): Add test-snprintf.
15585         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15586         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15587         (TESTS, check_PROGRAMS): Add test-vsnprintf.
15588         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15589         assertions that fail on HP-UX, OSF/1, or IRIX.
15590         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15591
15592 2007-04-29  Bruno Haible  <bruno@clisp.org>
15593
15594         * MODULES.html.sh (posix_functions): Remove 'contents'.
15595
15596 2007-04-29  Karl Berry  <karl@gnu.org>
15597
15598         * config/srclist.txt (gendocs_template_min): new entry.
15599
15600 2007-04-29  Bruno Haible  <bruno@clisp.org>
15601
15602         Work around fpurge bug on BSD systems.
15603         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15604         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15605         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15606         fpurge to rpl_fpurge if the system already has this function.
15607         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15608         the case where the system already has this function. Correct invariants
15609         on BSD systems.
15610         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15611         BSD systems.
15612
15613 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15614
15615         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
15616         proposed by Sven Verdoolaege.
15617
15618         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
15619         options.
15620         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15621         (usage and help tests): Update
15622
15623 2007-04-29  Bruno Haible  <bruno@clisp.org>
15624
15625         * tests/test-fflush.c (main): Use a file of size 17, not 10.
15626         Print more information in case of failure. Disable a test on BeOS.
15627
15628 2007-04-29  Bruno Haible  <bruno@clisp.org>
15629
15630         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15631         This helps debugging on systems on which no gdb is available.
15632
15633 2007-04-29  Bruno Haible  <bruno@clisp.org>
15634
15635         * lib/freading.h: Improve comments.
15636         * lib/fwriting.h: Likewise.
15637         * tests/test-freading.c (main): Don't check freading immediately after
15638         repositioning. Needed for glibc.
15639
15640 2007-04-29  Bruno Haible  <bruno@clisp.org>
15641
15642         * lib/freading.c (freading): Trivial simplification.
15643
15644 2007-04-28  Bruno Haible  <bruno@clisp.org>
15645
15646         * tests/test-fwriting.c (main): Also test the interaction between
15647         fflush and fwriting.
15648         * modules/fwriting-tests (Depends-on): Add fflush.
15649
15650         * tests/test-freading.c (main): Also test the interaction between
15651         fflush and freading.
15652         * modules/freading-tests (Depends-on): Add fflush.
15653
15654 2007-04-28  Bruno Haible  <bruno@clisp.org>
15655
15656         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15657         fseeko and ftello.
15658         Suggested by Eric Blake.
15659
15660 2007-04-28  Jim Meyering  <jim@meyering.net>
15661
15662         Avoid false-negative in gl_STDINT_H's C99 conformance test.
15663         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15664         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15665
15666 2007-04-27  Eric Blake  <ebb9@byu.net>
15667
15668         * doc/headers/assert.texi (assert.h): Document assert module use.
15669
15670 2007-04-27  Bruno Haible  <bruno@clisp.org>
15671
15672         * doc/headers/*.texi: New files.
15673         * doc/gnulib.texi (Header File Substitutes): New chapter.
15674         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15675         dependencies.
15676         (standards.info ,standards.html, standards.dvi): Update dependencies.
15677         (mostlyclean, clean): New targets.
15678
15679 2007-04-27  Bruno Haible  <bruno@clisp.org>
15680
15681         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15682         * modules/sysexits (Files, Makefile.am): Update.
15683
15684         * lib/sys_socket_.h: Renamed from lib/socket_.h.
15685         * modules/sys_socket (Files, Makefile.am): Update.
15686
15687         * lib/sys_stat_.h: Renamed from lib/stat_.h.
15688         * modules/sys_stat (Files, Makefile.am): Update.
15689
15690 2007-04-27  Eric Blake  <ebb9@byu.net>
15691
15692         * lib/freading.h: Improve comments.
15693         * lib/fwriting.h: Likewise.
15694         * lib/fflush.c: Likewise.
15695
15696         Fix closein for mingw.
15697         * modules/closein-tests: Add tests for closein.
15698         * tests/test-closein.c: New file.
15699         * tests/test-closein.sh: Likewise.
15700         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15701         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15702
15703 2007-04-27  Bruno Haible  <bruno@clisp.org>
15704
15705         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15706         version is < 6.
15707         * lib/math_.h [__DECC]: Likewise.
15708         * lib/stdio_.h [__DECC]: Likewise.
15709         * lib/stdlib_.h [__DECC]: Likewise.
15710         * lib/string_.h [__DECC]: Likewise.
15711         * lib/time_.h [__DECC]: Likewise.
15712         * lib/wchar_.h [__DECC]: Likewise.
15713         * lib/wctype_.h [__DECC]: Likewise.
15714
15715 2007-04-27  Bruno Haible  <bruno@clisp.org>
15716
15717         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15718
15719 2007-04-27  Bruno Haible  <bruno@clisp.org>
15720
15721         * lib/fflush.c: Add comments.
15722         * modules/fpurge-tests (Depends-on): Add fflush.
15723         * modules/freadable-tests (Depends-on): Likewise.
15724         * modules/fwritable-tests (Depends-on): Likewise.
15725
15726 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
15727
15728         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15729         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
15730         Report by Bruno Haible <bruno@clisp.org>.
15731
15732 2007-04-26  Eric Blake  <ebb9@byu.net>
15733
15734         Fix fflush on mingw.
15735         * modules/fflush (Depends-on): Add freading.
15736         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15737         but unread data.
15738
15739 2007-04-26  Eric Blake  <ebb9@byu.net>
15740         and Bruno Haible  <bruno@clisp.org>
15741
15742         Implement freading and fwriting.
15743         * lib/freading.c: New file.
15744         * lib/freading.h: Likewise.
15745         * m4/freading.m4: Likewise.
15746         * modules/freading: Likewise.
15747         * modules/freading-tests: Likewise.
15748         * tests/test-freading.c: Likewise.
15749         * lib/fwriting.c: New file.
15750         * lib/fwriting.h: Likewise.
15751         * m4/fwriting.m4: Likewise.
15752         * modules/fwriting: Likewise.
15753         * modules/fwriting-tests: Likewise.
15754         * tests/test-fwriting.c: Likewise.
15755         * MODULES.html.sh (File stream based Input/Output): Mention them.
15756
15757 2007-04-26  Bruno Haible  <bruno@clisp.org>
15758
15759         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15760         'long' when we assume it.
15761         Suggested by Eric Blake.
15762
15763 2007-04-26  Bruno Haible  <bruno@clisp.org>
15764
15765         Ensure fseeko, ftello are declared on glibc systems.
15766         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15767         * modules/fseeko (configure.ac-early): Likewise.
15768         * modules/ftello (configure.ac-early): Likewise.
15769         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15770         AC_FUNC_FSEEKO for this.
15771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15772         (gl_CHECK_FSEEKO): Remove macro.
15773
15774 2007-04-26  Bruno Haible  <bruno@clisp.org>
15775
15776         * tests/test-fflush.c (main): Also check the ftell result after
15777         fflush and fseek/fseeko.
15778         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15779         file descriptor position cache in the stream.
15780         * lib/fseeko.c (rpl_fseeko): Likewise.
15781
15782 2007-04-26  Bruno Haible  <bruno@clisp.org>
15783
15784         * modules/fflush-tests (Depends-on): Add fseeko.
15785
15786 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
15787             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15788
15789         * lib/argz_.h: ensure error_t definition is obtained in same
15790         mechanism system argz.h would have.
15791         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15792         argz facilities are known bad.  Err on the side of caution if
15793         cross-compiling.
15794
15795 2007-04-25  Eric Blake  <ebb9@byu.net>
15796
15797         * lib/fpurge.c (includes): Use stdlib.h for free.
15798         * tests/test-fflush.c (main): Also test fflush-fseeko.
15799
15800 2007-04-25  Bruno Haible  <bruno@clisp.org>
15801
15802         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15803         * lib/fseeko.c: New file.
15804         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15805         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15806         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15807         gl_FUNC_FSEEKO.
15808         (gl_FUNC_FSEEKO): Invoke it.
15809         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15810         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15811         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15812
15813 2007-04-25  Bruno Haible  <bruno@clisp.org>
15814
15815         * modules/fflush (Depends-on): Add ftello.
15816
15817 2007-04-25  Bruno Haible  <bruno@clisp.org>
15818
15819         * modules/ftello-tests: New file.
15820         * tests/test-ftello.c: New file.
15821
15822         * modules/ftello: New file.
15823         * m4/ftello.m4: New file.
15824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15825         HAVE_FTELLO.
15826         * lib/stdio_.h (ftello): New declaration.
15827         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15828         HAVE_FTELLO.
15829
15830 2007-04-25  Bruno Haible  <bruno@clisp.org>
15831
15832         * modules/fseeko-tests: New file.
15833         * tests/test-fseeko.c: New file.
15834
15835         * modules/fseeko: New file.
15836         * m4/fseeko.m4: New file.
15837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15838         HAVE_FSEEKO.
15839         * lib/stdio_.h (fseeko): New declaration.
15840         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15841         HAVE_FSEEKO.
15842
15843 2007-04-25  Bruno Haible  <bruno@clisp.org>
15844
15845         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15846
15847 2007-04-25  Bruno Haible  <bruno@clisp.org>
15848
15849         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15850         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15851         * tests/test-unistd.c: Likewise.
15852         * tests/test-fcntl.c: Likewise.
15853
15854 2007-04-23  Eric Blake  <ebb9@byu.net>
15855
15856         * lib/fflush.c: Fix missing include.
15857         Reported by Bruno Haible.
15858
15859 2007-04-23  Bruno Haible  <bruno@clisp.org>
15860
15861         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15862         Reported by Eric Blake.
15863
15864 2007-04-23  Bruno Haible  <bruno@clisp.org>
15865
15866         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15867
15868 2007-04-23  Bruno Haible  <bruno@clisp.org>
15869
15870         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15871
15872 2007-04-23  Bruno Haible  <bruno@clisp.org>
15873
15874         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15875         Needed on HP-UX 11.
15876
15877 2007-04-16  Eric Blake  <ebb9@byu.net>
15878
15879         Make fflush rely on fpurge.
15880         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15881         open coding all variants.
15882         * modules/fflush (Depends-on): Add fpurge and unistd.
15883         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15885
15886         Fix --with-tests compilation on cygwin.
15887         * modules/argmatch-tests (Makefile.am): List gnulib library first
15888         in LDADD.
15889         * modules/argp-tests (Makefile.am): Likewise.
15890         * modules/array-list-tests (Makefile.am): Likewise.
15891         * modules/array-oset-tests (Makefile.am): Likewise.
15892         * modules/avltree-list-tests (Makefile.am): Likewise.
15893         * modules/avltree-oset-tests (Makefile.am): Likewise.
15894         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15895         * modules/carray-list-tests (Makefile.am): Likewise.
15896         * modules/dirname-tests (Makefile.am): Likewise.
15897         * modules/frexp-tests (Makefile.am): Likewise.
15898         * modules/isnanl-tests (Makefile.am): Likewise.
15899         * modules/linked-list-tests (Makefile.am): Likewise.
15900         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15901         * modules/lock-tests (Makefile.am): Likewise.
15902         * modules/rbtree-list-tests (Makefile.am): Likewise.
15903         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15904         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15905         * modules/tls-tests (Makefile.am): Likewise.
15906         * modules/tsearch-tests (Makefile.am): Likewise.
15907         * modules/xvasprintf-tests (Makefile.am): Likewise.
15908
15909         Fix fpurge for cygwin.
15910         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15911         value.
15912         * modules/fpurge-tests (Depends-on): Clean up trash.
15913
15914 2007-04-16  Simon Josefsson  <simon@josefsson.org>
15915
15916         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15917
15918         * m4/autobuild.m4: Re-indent.
15919
15920 2007-04-13  Bruno Haible  <bruno@clisp.org>
15921
15922         * modules/fpurge-tests: New file.
15923         * tests/test-fpurge.c: New file.
15924
15925         * modules/fpurge: New file.
15926         * lib/fpurge.h: New file.
15927         * lib/fpurge.c: New file.
15928         * m4/fpurge.m4: New file.
15929
15930 2007-04-13  Bruno Haible  <bruno@clisp.org>
15931
15932         * modules/fbufmode-tests: New file.
15933         * tests/test-fbufmode.c: New file.
15934
15935         * modules/fbufmode: New file.
15936         * lib/fbufmode.h: New file.
15937         * lib/fbufmode.c: New file.
15938         * m4/fbufmode.m4: New file.
15939
15940 2007-04-13  Bruno Haible  <bruno@clisp.org>
15941
15942         * modules/fwritable-tests: New file.
15943         * tests/test-fwritable.c: New file.
15944
15945         * modules/fwritable: New file.
15946         * lib/fwritable.h: New file.
15947         * lib/fwritable.c: New file.
15948         * m4/fwritable.m4: New file.
15949
15950 2007-04-13  Bruno Haible  <bruno@clisp.org>
15951
15952         * modules/freadable-tests: New file.
15953         * tests/test-freadable.c: New file.
15954
15955         * modules/freadable: New file.
15956         * lib/freadable.h: New file.
15957         * lib/freadable.c: New file.
15958         * m4/freadable.m4: New file.
15959
15960 2007-04-13  Bruno Haible  <bruno@clisp.org>
15961
15962         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15963         MOSTLYCLEANFILES.
15964
15965 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15966
15967         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15968         gzip bootstrap.conf to avoid dragging in i18n machinery.
15969         (gnulib_tool_option): Use it.
15970
15971 2007-04-13  Bruno Haible  <bruno@clisp.org>
15972
15973         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15974         %F directives.
15975         * tests/test-vasprintf-posix.c (test_function): Likewise.
15976         * tests/test-snprintf-posix.h (test_function): Likewise.
15977         * tests/test-sprintf-posix.h (test_function): Likewise.
15978         * tests/test-fprintf-posix.h (test_function): Likewise.
15979         * tests/test-printf-posix.h (test_function): Likewise.
15980         * tests/test-fprintf-posix.out: Likewise.
15981
15982 2007-04-13  Bruno Haible  <bruno@clisp.org>
15983
15984         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15985         * modules/tls-tests (configure.ac): Likewise.
15986         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15987
15988 2007-04-13  Bruno Haible  <bruno@clisp.org>
15989
15990         * lib/tls.c (glthread_tls_get): Fix return type.
15991         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15992
15993 2007-04-12  Eric Blake  <ebb9@byu.net>
15994
15995         * modules/gettime (Depends-on): Remove gettime.
15996         Reported by Dmitry V. Levin.
15997
15998 2007-04-12  Bruno Haible  <bruno@clisp.org>
15999
16000         * modules/fflush (Include): Mention <stdio.h>.
16001         * modules/strtoimax (Include): Mention <inttypes.h>.
16002         * modules/strtoumax (Include): Likewise.
16003
16004 2007-04-12  Eric Blake  <ebb9@byu.net>
16005
16006         * .cvsignore: New file.
16007         * .gitignore: Likewise.
16008
16009 2007-04-12  Bruno Haible  <bruno@clisp.org>
16010
16011         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
16012         not before, since $(LDADD) often contains libgnu.a.
16013         * modules/striconv-tests (test_striconv_LDADD): Likewise.
16014         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
16015         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
16016         Needed on Cygwin.
16017
16018 2007-04-12  Eric Blake  <ebb9@byu.net>
16019
16020         Work around glibc's failure to flush stdin on fclose.
16021         * lib/closein.c (close_stdin): Flush stdin before closing.
16022
16023         Work around glibc's failure to reset seekable stdin on exit.
16024         * modules/closein: New module.
16025         * lib/closein.c: New file.
16026         * lib/closein.h: Likewise.
16027         * m4/closein.m4: Likewise.
16028         * MODULES.html.sh (File stream based Input/Output): Document it.
16029
16030 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16031
16032         * gnulib-tool: Rename generated 'autobuild' script to
16033         'do-autobuild' in --create-megatestdir output.
16034
16035         * doc/gnulib.texi (Build robot for gnulib): Fix.
16036
16037 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16038
16039         * modules/sysexits (Depends-on): Add absolute-header.
16040
16041 2007-04-12  Eric Blake  <ebb9@byu.net>
16042
16043         No need to preserve errno on success.
16044         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
16045         Reported by Bruno Haible.
16046
16047 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16048
16049         * MODULES.html.sh (Support for maintaining and releasing
16050         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
16051
16052 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16053
16054         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
16055
16056 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16057
16058         * modules/autobuild: New module.
16059
16060         * m4/autobuild.m4: New file.
16061
16062 2007-04-11  Bruno Haible  <bruno@clisp.org>
16063
16064         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
16065         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
16066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
16067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
16068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16069         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16070         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16072         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16073         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
16075         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16076         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
16078         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16079         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
16081         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16082         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
16084         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16085         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
16087         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16088         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
16090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16092         Reported by Eric Blake.
16093
16094 2007-04-11  Bruno Haible  <bruno@clisp.org>
16095
16096         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
16097
16098 2007-04-10  Bruno Haible  <bruno@clisp.org>
16099
16100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
16101         for NaN and Infinity. Needed on FreeBSD 6.1.
16102         * tests/test-vasnprintf-posix.c (test_function): Undo last change
16103         regarding results for "%010a" of Infinity and NaN.
16104         * tests/test-vasprintf-posix.c (test_function): Likewise.
16105         * tests/test-snprintf-posix.h (test_function): Likewise.
16106         * tests/test-sprintf-posix.h (test_function): Likewise.
16107         * tests/test-fprintf-posix.h (test_function): Likewise.
16108         * tests/test-printf-posix.h (test_function): Likewise.
16109         * tests/test-fprintf-posix.out: Likewise.
16110
16111 2007-04-10  Bruno Haible  <bruno@clisp.org>
16112
16113         * modules/locale-tests: New file.
16114         * tests/test-locale.c: New file.
16115
16116         * modules/locale: New file.
16117         * lib/locale_.h: New file.
16118         * m4/locale_h.m4: New file.
16119
16120 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
16121             Bruno Haible  <bruno@clisp.org>
16122
16123         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16124         be determined, test for availability of the copysignf, copysign,
16125         copysignl functions.
16126         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16127         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16128         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16129
16130 2007-04-09  Eric Blake  <ebb9@byu.net>
16131
16132         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16133         * modules/stdio (Makefile.am): Support fflush.
16134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16135         * modules/fflush: New file.
16136         * lib/fflush.c: Likewise.
16137         * m4/fflush.m4: Likewise.
16138         * modules/fflush-tests: New test.
16139         * tests/test-fflush.c: Likewise.
16140         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16141
16142 2007-04-06  Bruno Haible  <bruno@clisp.org>
16143
16144         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16145         (VASNPRINTF): Use signbit for faster determination whether to print a
16146         minus sign.
16147         * modules/vasnprintf (Files): Remove lib/float+.h.
16148         * modules/fprintf-posix (Depends-on): Add signbit.
16149         * modules/snprintf-posix (Depends-on): Likewise.
16150         * modules/sprintf-posix (Depends-on): Likewise.
16151         * modules/vasnprintf-posix (Depends-on): Likewise.
16152         * modules/vasprintf-posix (Depends-on): Likewise.
16153         * modules/vfprintf-posix (Depends-on): Likewise.
16154         * modules/vsnprintf-posix (Depends-on): Likewise.
16155         * modules/vsprintf-posix (Depends-on): Likewise.
16156
16157 2007-04-06  Bruno Haible  <bruno@clisp.org>
16158
16159         * tests/test-frexp.c (main): Test also the sign bit of zero results.
16160         * tests/test-frexpl.c (main): Likewise.
16161         * tests/test-ldexpl.c (main): Likewise.
16162         * modules/frexp-tests (Depends-on): Add signbit.
16163         * modules/frexpl-tests (Depdends-on): Likewise.
16164         * modules/ldexpl-tests (Depdends-on): Likewise.
16165
16166 2007-04-06  Bruno Haible  <bruno@clisp.org>
16167
16168         * modules/signbit-tests: New file.
16169         * tests/test-signbit.c: New file.
16170
16171         * modules/signbit: New file.
16172         * lib/signbitf.c: New file.
16173         * lib/signbitd.c: New file.
16174         * lib/signbitl.c: New file.
16175         * m4/signbit.m4: New file.
16176         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
16177         (signbit): New macro.
16178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
16179         REPLACE_SIGNBIT.
16180         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
16181         REPLACE_FREXPL into math.h.
16182
16183 2007-04-06  Bruno Haible  <bruno@clisp.org>
16184
16185         * modules/isnanf-nolibm-tests: New file.
16186         * tests/test-isnanf.c: New file.
16187
16188         * modules/isnanf-nolibm: New file.
16189         * lib/isnanf.h: New file.
16190         * lib/isnanf.c: New file.
16191         * lib/isnan.c: Consider the USE_FLOAT macro.
16192         * m4/isnanf.m4: New file.
16193
16194 2007-04-06  Bruno Haible  <bruno@clisp.org>
16195
16196         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
16197         (Link): New section.
16198
16199         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
16200
16201 2007-04-06  Bruno Haible  <bruno@clisp.org>
16202
16203         Assume the 'long double' type.
16204         * m4/longdouble.m4: Remove file.
16205         * config/srclist.txt: Don't mention longdouble.m4.
16206         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
16207         * lib/float+.h: Likewise.
16208         * lib/frexp.c: Likewise.
16209         * lib/printf-args.h: Likewise.
16210         * lib/printf-args.c: Likewise.
16211         * lib/printf-frexp.c: Likewise.
16212         * lib/printf-parse.c: Likewise.
16213         * lib/vasnprintf.c: Likewise.
16214         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
16215         * m4/intl.m4: Likewise.
16216         * m4/isnanl.m4: Likewise.
16217         * m4/printf.m4: Likewise.
16218         * m4/printf-frexpl.m4: Likewise.
16219         * m4/vasnprintf.m4: Likewise.
16220         * modules/allocsa (Files): Remove m4/longdouble.m4.
16221         * modules/gettext (Files): Likewise.
16222         * modules/relocatable-prog-wrapper (Files): Likewise.
16223         * modules/vasnprintf (Files): Likewise.
16224         * modules/isnanl (Files): Likewise.
16225         (Include): Simplify.
16226         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
16227         (Include): Simplify.
16228         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
16229         (Include): Simplify.
16230         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
16231         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16232         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
16233         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16234         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16235         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16236         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
16237         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16238         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16239         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16240         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
16241         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16242         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
16243         * tests/test-isnanl.c: Likewise.
16244         * tests/test-snprintf-posix.h: Likewise.
16245         * tests/test-sprintf-posix.h: Likewise.
16246         * tests/test-vasnprintf-posix.c: Likewise.
16247         * tests/test-vasnprintf-posix2.c: Likewise.
16248         * tests/test-vasprintf-posix.c: Likewise.
16249
16250 2007-04-06  Bruno Haible  <bruno@clisp.org>
16251
16252         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16253         * lib/math_.h [__DECC]: Include the overridden include file through
16254         #include_next, outside the double-inclusion guard.
16255         * lib/stdio_.h [__DECC]: Likewise.
16256         * lib/stdlib_.h [__DECC]: Likewise.
16257         * lib/string_.h [__DECC]: Likewise.
16258         * lib/time_.h [__DECC]: Likewise.
16259         * lib/wchar_.h [__DECC]: Likewise.
16260         * lib/wctype_.h [__DECC]: Likewise.
16261         * lib/inttypes_.h [__DECC]: Likewise.
16262         Reported by Albert Chin <china@thewrittenword.com> in
16263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16264
16265 2007-04-04  Eric Blake  <ebb9@byu.net>
16266
16267         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16268         1.5.x.
16269
16270 2007-04-04  Bruno Haible  <bruno@clisp.org>
16271
16272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16273         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16274
16275 2007-04-04  Bruno Haible  <bruno@clisp.org>
16276
16277         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16278         results for "%010a" of Infinity and NaN.
16279         * tests/test-vasprintf-posix.c (test_function): Likewise.
16280         * tests/test-snprintf-posix.h (test_function): Likewise.
16281         * tests/test-sprintf-posix.h (test_function): Likewise.
16282         * tests/test-fprintf-posix.h (test_function): Remove these tests.
16283         * tests/test-printf-posix.h (test_function): Likewise.
16284         * tests/test-fprintf-posix.out: Update.
16285         Needed for FreeBSD 6.1.
16286
16287 2007-04-04  Bruno Haible  <bruno@clisp.org>
16288
16289         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16290         directly used by the gnulib modules nor by gnulib-tool.
16291
16292 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         * DEPENDENCIES: Give overall description of version dependency
16295         desirability.  Use more-typical names for apps.
16296         Add shell, coreutils, diffutils, grep, tar, gzip.
16297
16298 2007-04-04  Simon Josefsson  <simon@josefsson.org>
16299
16300         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
16301
16302 2007-04-04  Karl Berry  <karl@gnu.org>
16303
16304         * MODULES.html.sh (func_module): missing '.
16305
16306 2007-04-03  Bruno Haible  <bruno@clisp.org>
16307
16308         * modules/argmatch-tests (Makefile.am): New variable
16309         test_argmatch_LDADD.
16310         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16311         * modules/array-list-tests (Makefile.am): New variable
16312         test_array_list_LDADD.
16313         * modules/array-oset-tests (Makefile.am): New variable
16314         test_array_oset_LDADD.
16315         * modules/avltree-list-tests (Makefile.am): New variable
16316         test_avltree_list_LDADD.
16317         * modules/avltree-oset-tests (Makefile.am): New variable
16318         test_avltree_oset_LDADD.
16319         * modules/avltreehash-list-tests (Makefile.am): New variable
16320         test_avltreehash_list_LDADD.
16321         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16322         test_canonicalize_lgpl_LDADD.
16323         * modules/carray-list-tests (Makefile.am): New variable
16324         test_carray_list_LDADD.
16325         * modules/dirname-tests (Makefile.am): New variable
16326         test_dirname_LDADD.
16327         * modules/linked-list-tests (Makefile.am): New variable
16328         test_linked_list_LDADD.
16329         * modules/linkedhash-list-tests (Makefile.am): New variable
16330         test_linkedhash_list_LDADD.
16331         * modules/rbtree-list-tests (Makefile.am): New variable
16332         test_rbtree_list_LDADD.
16333         * modules/rbtree-oset-tests (Makefile.am): New variable
16334         test_rbtree_oset_LDADD.
16335         * modules/rbtreehash-list-tests (Makefile.am): New variable
16336         test_rbtreehash_list_LDADD.
16337         * modules/xvasprintf-tests (Makefile.am): New variable
16338         test_xvasprintf_LDADD.
16339         Reported by Eric Blake.
16340
16341 2007-04-03  Eric Blake  <ebb9@byu.net>
16342
16343         * DEPENDENCIES: Weaken m4 requirements.
16344
16345 2007-04-03  Bruno Haible  <bruno@clisp.org>
16346
16347         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16348         * modules/isnanl-tests (configure.ac): Likewise.
16349
16350 2007-04-03  Ben Pfaff  <blp@gnu.org>
16351
16352         * modules/iconv_open: Add $(srcdir)/ to source directory
16353         references in Makefile fragments that call gperf, to fix VPATH
16354         builds.
16355
16356 2007-04-03  Bruno Haible  <bruno@clisp.org>
16357
16358         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16359         * lib/ldexpl.c: Undo last change.
16360
16361 2007-04-03  Bruno Haible  <bruno@clisp.org>
16362
16363         * modules/printf-frexpl (Depends-on): Undo last change.
16364         (Files): Add m4/ldexpl.m4.
16365
16366 2007-04-03  Bruno Haible  <bruno@clisp.org>
16367
16368         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16369         * modules/isnanl (Link): New section.
16370
16371         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16372         * modules/frexp (Link): New section.
16373
16374         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16375         * modules/frexpl (Link): New section.
16376
16377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16378         * modules/ldexpl (Link): New section.
16379
16380 2007-04-03  Bruno Haible  <bruno@clisp.org>
16381
16382         * modules/TEMPLATE-EXTENDED: New file.
16383         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16384
16385 2007-04-03  Bruno Haible  <bruno@clisp.org>
16386
16387         * DEPENDENCIES: New file.
16388         Suggested by Simon Josefsson.
16389
16390 2007-04-03  Bruno Haible  <bruno@clisp.org>
16391
16392         * doc/gnulib.texi: Escape @.
16393
16394 2007-04-03  James Youngman  <jay@gnu.org>
16395         and Paul Eggert  <eggert@cs.ucla.edu>
16396
16397         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16398         birthtime on all systems that have birthtime, not just those which
16399         use st_birthtimensec rather than st_birthtim.  Putting zero in
16400         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16401         that the birth time is not available for files on an NFS mount.
16402
16403 2007-04-03  Simon Josefsson  <simon@josefsson.org>
16404
16405         * modules/memxor: Move back from crypto/, suggested by Bruno.
16406         * modules/crypto/hmac-sha1: Fix memxor dependency.
16407
16408         * modules/crypto/gc: Moved from ../.
16409
16410 2007-04-02  Eric Blake  <ebb9@byu.net>
16411
16412         * lib/ldexpl.c (includes): Avoid libm.
16413
16414         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16415
16416 2007-04-02  Bruno Haible  <bruno@clisp.org>
16417
16418         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16419         on IRIX.
16420
16421 2007-04-02  Bruno Haible  <bruno@clisp.org>
16422
16423         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16424         x86 or x86_64 platforms running MacOS X.
16425         Reported by Ryan Schmidt <@ryandesign.com>.
16426
16427 2007-04-02  Bruno Haible  <bruno@clisp.org>
16428
16429         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16430         i386.
16431
16432 2007-04-01  Simon Josefsson  <simon@josefsson.org>
16433
16434         * modules/crypto/arcfour: Moved from ../.
16435         * modules/crypto/arcfour-tests: Moved from ../.
16436         * modules/crypto/arctwo: Moved from ../.
16437         * modules/crypto/arctwo-tests: Moved from ../.
16438         * modules/crypto/des: Moved from ../.
16439         * modules/crypto/des-tests: Moved from ../.
16440         * modules/crypto/gc-arcfour: Moved from ../.
16441         * modules/crypto/gc-arcfour-tests: Moved from ../.
16442         * modules/crypto/gc-arctwo: Moved from ../.
16443         * modules/crypto/gc-arctwo-tests: Moved from ../.
16444         * modules/crypto/gc-des: Moved from ../.
16445         * modules/crypto/gc-des-tests: Moved from ../.
16446         * modules/crypto/gc-hmac-md5: Moved from ../.
16447         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16448         * modules/crypto/gc-hmac-sha1: Moved from ../.
16449         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16450         * modules/crypto/gc-md2: Moved from ../.
16451         * modules/crypto/gc-md2-tests: Moved from ../.
16452         * modules/crypto/gc-md4: Moved from ../.
16453         * modules/crypto/gc-md4-tests: Moved from ../.
16454         * modules/crypto/gc-md5: Moved from ../.
16455         * modules/crypto/gc-md5-tests: Moved from ../.
16456         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16457         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16458         * modules/crypto/gc-random: Moved from ../.
16459         * modules/crypto/gc-rijndael: Moved from ../.
16460         * modules/crypto/gc-rijndael-tests: Moved from ../.
16461         * modules/crypto/gc-sha1: Moved from ../.
16462         * modules/crypto/gc-sha1-tests: Moved from ../.
16463         * modules/crypto/gc-tests: Moved from ../.
16464         * modules/crypto/hmac-md5: Moved from ../.
16465         * modules/crypto/hmac-md5-tests: Moved from ../.
16466         * modules/crypto/hmac-sha1: Moved from ../.
16467         * modules/crypto/hmac-sha1-tests: Moved from ../.
16468         * modules/crypto/md2: Moved from ../.
16469         * modules/crypto/md2-tests: Moved from ../.
16470         * modules/crypto/md4: Moved from ../.
16471         * modules/crypto/md4-tests: Moved from ../.
16472         * modules/crypto/md5: Moved from ../.
16473         * modules/crypto/md5-tests: Moved from ../.
16474         * modules/crypto/memxor: Moved from ../.
16475         * modules/crypto/rijndael: Moved from ../.
16476         * modules/crypto/rijndael-tests: Moved from ../.
16477         * modules/crypto/sha1: Moved from ../.
16478
16479 2007-03-30  James Youngman  <jay@gnu.org>
16480
16481         * tests/test-stat-time.c (prepare_test): use chmod() rather than
16482         rename() to change the ctime of a file (because ctime is unaffected
16483         by rename on jfs2 on AIX 5.1).
16484         (main): Start by doing cleanup, in case a previous run failed leaving
16485         test files behind.
16486
16487 2007-03-31  Bruno Haible  <bruno@clisp.org>
16488
16489         Support old proprietary implementations of iconv.
16490         * modules/iconv_open: New file.
16491         * lib/iconv_.h: New file.
16492         * m4/iconv_h.m4: New file.
16493         * lib/iconv_open.c: New file.
16494         * lib/iconv_open-aix.gperf: New file.
16495         * lib/iconv_open-hpux.gperf: New file.
16496         * lib/iconv_open-irix.gperf: New file.
16497         * lib/iconv_open-osf.gperf: New file.
16498         * m4/iconv_open.m4: New file.
16499         * modules/linebreak (Depends-on): Add iconv_open.
16500         * modules/striconv (Depends-on): Likewise.
16501         * modules/striconveh (Depends-on): Likewise.
16502         * modules/unicodeio (Depends-on): Likewise.
16503         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16504         (iconv_t)(-1).
16505         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16506         conversion if cd is (iconv_t)(-1).
16507         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16508         is not possible.
16509
16510 2007-03-31  Bruno Haible  <bruno@clisp.org>
16511
16512         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16513         work on Solaris either. Protect also second use of "autodetect_jp".
16514
16515 2007-03-31  Bruno Haible  <bruno@clisp.org>
16516
16517         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16518         the function is not present.
16519
16520 2007-03-31  Bruno Haible  <bruno@clisp.org>
16521
16522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16523         the function is not present.
16524
16525 2007-03-31  Bruno Haible  <bruno@clisp.org>
16526
16527         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16528         a bug in HP-UX iconv_open().
16529
16530 2007-03-31  Bruno Haible  <bruno@clisp.org>
16531
16532         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16533         (Mathematics <math.h>): New section, add fpieee.
16534         (Input/output <stdio.h>): Add fseterr.
16535         (Mathematics <math.h>): New section, add printf-frexp.
16536         (Container data structures): Add sublist.
16537         (Core language properties): Add fpucw, inline.
16538         (Functions for greatest-width integer types <inttypes.h>): Add
16539         imaxabs, imaxdiv, inttypes.
16540         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16541         isnanl-nolibm, ldexp.
16542         (Mathematics <math.h>): New section, add printf-frexpl.
16543         (Support for systems lacking POSIX:2001): Add fprintf-posix,
16544         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16545         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16546         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16547         (Unicode string functions): Add unistr/u*-mbtoucr.
16548         (Java): Add javacomp-script, javaexec-script.
16549         (C#): Add csharpcomp-script, csharpexec-script.
16550         (Support for building libraries and executables): Add havelib,
16551         relocatable-*.
16552         (Support for maintaining and releasing projects): Renamed from
16553         'Support for maintaining and release projects'. Add announce-gen.
16554
16555 2007-03-31  Bruno Haible  <bruno@clisp.org>
16556
16557         * README: Talk primarily about git.
16558         (git and CVS): Renamed from CVS.
16559         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16560         gnulib is available through git.
16561         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16562
16563 2007-03-30  Bruno Haible  <bruno@clisp.org>
16564
16565         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16566         * lib/poll_.h: Likewise.
16567         * lib/stat_.h: Likewise.
16568         * lib/sys_time_.h: Likewise.
16569         * lib/sysexit_.h: Likewise.
16570         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16571         * lib/stdbool_.h: Likewise.
16572         * lib/byteswap_.h: Add double-inclusion guard.
16573
16574 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
16575
16576         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16577
16578 2007-03-30  Karl Berry  <karl@gnu.org>
16579
16580         * config/srclist-update: double space after USA in the license
16581         substitution, since that's how it's usually (?) written.
16582
16583 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16584
16585         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16586         reported by Bruno Haible.
16587
16588 2007-03-29  Bruno Haible  <bruno@clisp.org>
16589
16590         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16591         a bug in AIX iconv().
16592
16593 2007-03-29  Bruno Haible  <bruno@clisp.org>
16594
16595         * modules/ldexpl-tests: New file.
16596         * tests/test-ldexpl.c: New file.
16597
16598 2007-03-29  Bruno Haible  <bruno@clisp.org>
16599
16600         * lib/ldexpl.c: Include fpucw.h.
16601         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16602         multiplication.
16603         * modules/ldexpl (Depends-on): Add fpucw.
16604
16605 2007-03-29  Bruno Haible  <bruno@clisp.org>
16606
16607         * modules/ldexpl: New file.
16608         * m4/ldexpl.m4: New file.
16609         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16610         set.
16611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16612         REPLACE_LDEXPL.
16613         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16614         REPLACE_LDEXPL.
16615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16616         gl_FUNC_LDEXPL_WORKS.
16617         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16618         * modules/mathl (Files): Remove lib/ldexpl.c.
16619         (Depends-on): Add ldexpl.
16620
16621 2007-03-29  Bruno Haible  <bruno@clisp.org>
16622
16623         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16624
16625 2007-03-29  Bruno Haible  <bruno@clisp.org>
16626
16627         * tests/test-striconveh.c (main): Don't assume that a direct conversion
16628         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16629         and possibly also HP-UX.
16630         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16631         work on AIX, IRIX, HP-UX, OSF/1.
16632         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16633         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16634         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16635         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16636         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16637         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16638
16639 2007-03-29  Bruno Haible  <bruno@clisp.org>
16640
16641         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16642
16643 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16646         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16647
16648 2007-03-29  Eric Blake  <ebb9@byu.net>
16649
16650         * lib/acl-internal.h: Remove redundant include.
16651         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16652         Cygwin when a file is locked.
16653
16654 2007-03-29  Bruno Haible  <bruno@clisp.org>
16655
16656         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16657         file.
16658         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16659
16660 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16661
16662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16663         try to remove a parent directory if the child couldn't be removed
16664         (except for the first rmdir, which could fail because the child
16665         doesn't exist).  Problem reported by Jeff Blaine in
16666         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16667
16668 2007-03-28  Bruno Haible  <bruno@clisp.org>
16669
16670         * lib/striconveh.c (utf8conv_carefully): New function.
16671         (mem_cd_iconveh_internal): Invoke it.
16672
16673 2007-03-28  Bruno Haible  <bruno@clisp.org>
16674
16675         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16676         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16677         input.
16678         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16679         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16680         unistr/u8-uctomb.
16681
16682 2007-03-28  Bruno Haible  <bruno@clisp.org>
16683
16684         * modules/unistr/u8-mbtoucr: New file.
16685         * lib/unistr/u8-mbtoucr.c: New file.
16686         * modules/unistr/u16-mbtoucr: New file.
16687         * lib/unistr/u16-mbtoucr.c: New file.
16688         * modules/unistr/u16-mbtoucr: New file.
16689         * lib/unistr/u16-mbtoucr.c: New file.
16690         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16691
16692 2007-03-27  Simon Josefsson  <simon@josefsson.org>
16693             Bruno Haible  <bruno@clisp.org>
16694
16695         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16696         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
16697         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16698
16699         * m4/stdio_h.m4: Add stubs for vasprintf too.
16700
16701         * modules/stdio: Support vasprintf in sed command.
16702
16703         * modules/vasprintf: Depend on stdio for prototypes.  Remove
16704         vasprintf.h.  Add stdio module indicator.
16705
16706         * lib/stdio_.h: Declare asprintf and vasprintf, based on
16707         vasprintf.h.
16708
16709         * lib/vasprintf.h: File removed.
16710
16711         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16712         * lib/vasprintf.c: Ditto.
16713         * lib/xvasprintf.c: Ditto.
16714         * tests/test-vasprintf-posix.c: Ditto.
16715         * tests/test-vasprintf.c: Ditto.
16716
16717 2007-03-27  Bruno Haible  <bruno@clisp.org>
16718
16719         Make vasnprintf multithread-safe.
16720         * lib/vasnprintf.c (decimal_point_char): New function.
16721         (VASNPRINTF): Use it.
16722         Suggested by Simon Josefsson.
16723
16724 2007-03-27  Eric Blake  <ebb9@byu.net>
16725
16726         Support sub-second birthtime on cygwin.
16727         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16728         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16729         (get_stat_birthtime): Also work with st_birthtim.
16730
16731 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16732
16733         * lib/stat-time.h (USE_BIRTHTIME): Remove.
16734         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16735         (get_stat_birthtime_ns): Do not try to use "spare" fields.
16736         (get_stat_birthtime_ns): Simplify compile-time tests.
16737         (get_stat_birthtime): Change the API to look like
16738         get_stat_mtime etc., except return a negative tv_nsec on error.
16739         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16740         Don't check for "spare" fields.
16741         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16742         or for struct stat.st_birthtime, as these tests aren't used.
16743         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16744
16745 2007-03-27  Bruno Haible  <bruno@clisp.org>
16746
16747         * lib/stat-time.h: Include <sys/stat.h>.
16748
16749 2007-03-27  James Youngman  <jay@gnu.org>
16750
16751         * lib/stat-time.h (get_stat_birthtime): New function for
16752           retrieving st_birthtime as provided by UFS2 (hence *BSD).
16753         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16754           and its variants.
16755         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16756         * modules/stat-time-test: New file.
16757         * tests/test-stat-time.c: New test, devised by Bruno Haible.
16758
16759 2007-03-26  Bruno Haible  <bruno@clisp.org>
16760
16761         Better support of signalling NaNs.
16762         * lib/atanl.c: Include isnanl.h.
16763         (atanl): Perform test for NaN at the beginning of the function and
16764         through a call to isnanl.
16765         * lib/cosl.c: Include isnanl.h.
16766         (cosl): Perform test for NaN at the beginning of the function and
16767         through a call to isnanl.
16768         * lib/ldexpl.c: Include isnanl.h.
16769         (ldexpl): Perform test for NaN through a call to isnanl.
16770         * lib/logl.c: Include isnanl.h.
16771         (logl): Perform test for NaN at the beginning of the function and
16772         through a call to isnanl.
16773         * lib/sinl.c: Include isnanl.h.
16774         (sinl): Perform test for NaN at the beginning of the function and
16775         through a call to isnanl.
16776         * lib/sqrtl.c: Include isnanl.h.
16777         (sqrtl): Perform test for NaN at the beginning of the function and
16778         through a call to isnanl.
16779         * lib/tanl.c: Include isnanl.h.
16780         (tanl): Perform test for NaN at the beginning of the function and
16781         through a call to isnanl.
16782         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16783         * modules/mathl (Depends-on): Add isnanl.
16784
16785 2007-03-26  Eric Blake  <ebb9@byu.net>
16786
16787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16788         regression in logic sense of previous patch.
16789
16790 2007-03-26  Bruno Haible  <bruno@clisp.org>
16791
16792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16793         unportable shell command "if ! ...".
16794         Reported by Ralf Wildenhues.
16795
16796 2007-03-25  Bruno Haible  <bruno@clisp.org>
16797
16798         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16799         <sysexits.h> file, and only add EX_CONFIG.
16800         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16801         absolute file name and whether it is sufficient. Substitute also
16802         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16803         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16804         ABSOLUTE_SYSEXITS_H into sysexits.h.
16805
16806 2007-03-25  Bruno Haible  <bruno@clisp.org>
16807
16808         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16809         hints is NULL.
16810
16811 2007-03-25  Bruno Haible  <bruno@clisp.org>
16812
16813         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16814         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16815
16816 2007-03-25  Bruno Haible  <bruno@clisp.org>
16817
16818         * lib/vasnprintf.c: Include langinfo.h.
16819         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16820         multithread-safe.
16821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16830         Reported by Simon Josefsson.
16831
16832 2007-03-25  Bruno Haible  <bruno@clisp.org>
16833
16834         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16835         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16836         * modules/vasnprintf (Depends-on): Add stdint.
16837
16838 2007-03-25  Bruno Haible  <bruno@clisp.org>
16839
16840         * modules/fpieee: New file.
16841         * m4/fpieee.m4: New file.
16842         * modules/isnan-nolibm (Depends-on): Add fpieee.
16843         * modules/isnanl-nolibm (Depends-on): Add fpieee.
16844         * modules/isnanl (Depends-on): Add fpieee.
16845
16846 2007-03-25  Bruno Haible  <bruno@clisp.org>
16847
16848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16849
16850 2007-03-25  Bruno Haible  <bruno@clisp.org>
16851
16852         Avoid test failures on IRIX 6.5.
16853         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16854         (main): Use it.
16855         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16856         macros.
16857         (main): Use them.
16858
16859 2007-03-25  Bruno Haible  <bruno@clisp.org>
16860
16861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16862         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16863         exists but doesn't work.
16864         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16865         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16867         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16868
16869 2007-03-25  Bruno Haible  <bruno@clisp.org>
16870
16871         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16872         returns inf. Needed on IRIX 6.5.
16873
16874 2007-03-25  Bruno Haible  <bruno@clisp.org>
16875
16876         * tests/test-frexpl.c: Include isnanl-nolibm.h.
16877         (main): Use isnanl instead of x != x idiom.
16878         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16879
16880         * tests/test-frexp.c: Include isnan.h.
16881         (main): Use isnan instead of x != x idiom.
16882         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16883
16884 2007-03-25  Bruno Haible  <bruno@clisp.org>
16885
16886         * tests/test-frexp.c (NaN): New function/macro.
16887         (main): Use it instead of 0.0 / 0.0.
16888         * tests/test-isnan.c (NaN): New function/macro.
16889         (main): Use it instead of 0.0 / 0.0.
16890         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16891         (test_function): Use it instead of 0.0 / 0.0.
16892         * tests/test-vasprintf-posix.c (NaN): New function/macro.
16893         (test_function): Use it instead of 0.0 / 0.0.
16894         * tests/test-snprintf-posix.h (NaN): New function/macro.
16895         (test_function): Use it instead of 0.0 / 0.0.
16896         * tests/test-sprintf-posix.h (NaN): New function/macro.
16897         (test_function): Use it instead of 0.0 / 0.0.
16898         * tests/test-fprintf-posix.h (NaN): New function/macro.
16899         (test_function): Use it instead of 0.0 / 0.0.
16900         * tests/test-printf-posix.h (NaN): New function/macro.
16901         (test_function): Use it instead of 0.0 / 0.0.
16902
16903         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16904
16905 2007-03-25  Bruno Haible  <bruno@clisp.org>
16906
16907         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16908
16909 2007-03-25  Bruno Haible  <bruno@clisp.org>
16910
16911         * lib/regexec.c (merge_state_with_log): Make static.
16912
16913 2007-03-25  Bruno Haible  <bruno@clisp.org>
16914
16915         * lib/trigl.c (kernel_rem_pio2): Make static.
16916
16917 2007-03-25  Bruno Haible  <bruno@clisp.org>
16918
16919         * lib/sincosl.c (sincosl_table): Make static.
16920
16921 2007-03-25  Bruno Haible  <bruno@clisp.org>
16922
16923         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16924         if the compiler does not support C99.
16925
16926 2007-03-25  Bruno Haible  <bruno@clisp.org>
16927
16928         * modules/time (Makefile.am): Ensure all rule action lines start with a
16929         tab.
16930
16931 2007-03-24  Bruno Haible  <bruno@clisp.org>
16932
16933         * modules/tsearch-tests: New file.
16934         * tests/test-tsearch.sh: New file.
16935         * tests/test-tsearch.c: New file, mostly copied from glibc.
16936
16937         * modules/search-tests: New file.
16938         * tests/test-search.c: New file.
16939
16940         * modules/search: New file.
16941         * lib/search_.h: New file, incorporating lib/tsearch.h.
16942         * m4/search_h.m4: New file.
16943         * lib/tsearch.h: Remove file.
16944         * lib/tsearch.c: Include search.h instead of tsearch.h.
16945         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16946         HAVE_TSEARCH.
16947         * modules/tsearch (Files): Remove lib/tsearch.h.
16948         (Depends-on): Add search.
16949         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16950         (Include): Change tsearch.h into search.h.
16951
16952 2007-03-24  Bruno Haible  <bruno@clisp.org>
16953
16954         * modules/fpucw: New file.
16955         * lib/fpucw.h: New file.
16956         * lib/frexp.c: Include fpucw.h.
16957         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16958         (FUNC): Use them.
16959         * lib/printf-frexp.c: Include fpucw.h.
16960         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16961         (FUNC): Use them.
16962         * lib/vasnprintf.c: Include fpucw.h.
16963         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16964         'long double' calculations.
16965         * tests/test-frexpl.c: Include fpucw.h.
16966         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16967         * tests/test-printf-frexpl.c: Include fpucw.h.
16968         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16969         * modules/frexpl (Depends-on): Add fpucw.
16970         * modules/printf-frexpl (Depends-on): Likewise.
16971         * modules/fprintf-posix (Depends-on): Likewise.
16972         * modules/snprintf-posix (Depends-on): Likewise.
16973         * modules/sprintf-posix (Depends-on): Likewise.
16974         * modules/vasnprintf-posix (Depends-on): Likewise.
16975         * modules/vasprintf-posix (Depends-on): Likewise.
16976         * modules/vfprintf-posix (Depends-on): Likewise.
16977         * modules/vsnprintf-posix (Depends-on): Likewise.
16978         * modules/vsprintf-posix (Depends-on): Likewise.
16979         * modules/frexpl-tests (Depends-on): Likewise.
16980         * modules/printf-frexpl-tests (Depends-on): Likewise.
16981
16982 2007-03-24  Bruno Haible  <bruno@clisp.org>
16983
16984         * lib/float+.h: New file.
16985         * lib/isnan.c: Include float+.h.
16986         (SIZE): New macro.
16987         (FUNC): Compare only SIZE bytes of the value.
16988         * lib/vasnprintf.c: Include float+.h.
16989         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16990         SIZEOF_LDBL or SIZEOF_DBL bytes.
16991         * modules/isnan-nolibm (Files): Add lib/float+.h.
16992         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16993         * modules/isnanl (Files): Add lib/float+.h.
16994         * modules/vasnprintf (Files): Add lib/float+.h.
16995
16996 2007-03-24  Bruno Haible  <bruno@clisp.org>
16997
16998         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16999         include isnanl-nolibm.h.
17000
17001 2007-03-24  Bruno Haible  <bruno@clisp.org>
17002
17003         * tests/test-read-file.c (main): Don't produce spurious output for
17004         expected situations. Make the test fail if it encountered unexpected
17005         results.
17006
17007 2007-03-24  Bruno Haible  <bruno@clisp.org>
17008
17009         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
17010         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
17011
17012 2007-03-24  Bruno Haible  <bruno@clisp.org>
17013
17014         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
17015
17016 2007-03-24  Bruno Haible  <bruno@clisp.org>
17017
17018         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
17019         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
17020
17021         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
17022         * modules/utf8-ucs4: Turn into a symbolic link to module
17023         unistr/u8-mbtouc.
17024
17025         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
17026         utf8-ucs4-unsafe.
17027         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
17028         unistr/u8-mbtouc-unsafe.
17029
17030         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
17031         * modules/utf16-ucs4: Turn into a symbolic link to module
17032         unistr/u16-mbtouc.
17033
17034         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
17035         utf16-ucs4-unsafe.
17036         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
17037         unistr/u16-mbtouc-unsafe.
17038
17039         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
17040         * modules/ucs4-utf8: Turn into a symbolic link to module
17041         unistr/u8-ubtomb.
17042
17043         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
17044         * modules/ucs4-utf16: Turn into a symbolic link to module
17045         unistr/u16-ubtomb.
17046
17047 2007-03-24  Bruno Haible  <bruno@clisp.org>
17048
17049         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
17050         Enable the function only if HAVE_INLINE.
17051         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
17052         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17053         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
17054         Enable the function only if HAVE_INLINE.
17055         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
17056         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17057         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
17058         Enable the function only if HAVE_INLINE.
17059         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
17060         Enable the function only if HAVE_INLINE.
17061         * modules/utf8-ucs4: Update.
17062         * modules/utf8-ucs4-unsafe: Update.
17063         * modules/utf16-ucs4: Update.
17064         * modules/utf16-ucs4-unsafe: Update.
17065         * modules/ucs4-utf8: Update.
17066         * modules/ucs4-utf16: Update.
17067
17068 2007-03-24  Bruno Haible  <bruno@clisp.org>
17069
17070         * lib/utf8-ucs4.h: Remove file.
17071         * lib/utf8-ucs4-unsafe.h: Remove file.
17072         * lib/utf16-ucs4.h: Remove file.
17073         * lib/utf16-ucs4-unsafe.h: Remove file.
17074         * lib/ucs4-utf8.h: Remove file.
17075         * lib/ucs4-utf16.h: Remove file.
17076         * lib/unistr.h: Include their previous contents.
17077         * m4/utf-ucs4.m4: Remove file.
17078         * m4/ucs4-utf.m4: Remove file.
17079         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
17080         (Depends-on): Add unistr/base.
17081         (configure.ac): Remove gl_UTF_UCS4.
17082         (Makefile.am): Update.
17083         (Include): Change to unistr.h.
17084         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
17085         (Depends-on): Add unistr/base.
17086         (configure.ac): Remove gl_UTF_UCS4.
17087         (Makefile.am): Update.
17088         (Include): Change to unistr.h.
17089         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
17090         (Depends-on): Add unistr/base.
17091         (configure.ac): Remove gl_UTF_UCS4.
17092         (Makefile.am): Update.
17093         (Include): Change to unistr.h.
17094         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
17095         (Depends-on): Add unistr/base.
17096         (configure.ac): Remove gl_UTF_UCS4.
17097         (Makefile.am): Update.
17098         (Include): Change to unistr.h.
17099         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
17100         (Depends-on): Add unistr/base.
17101         (configure.ac): Remove gl_UCS4_UTF.
17102         (Makefile.am): Update.
17103         (Include): Change to unistr.h.
17104         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
17105         (Depends-on): Add unistr/base.
17106         (configure.ac): Remove gl_UCS4_UTF.
17107         (Makefile.am): Update.
17108         (Include): Change to unistr.h.
17109         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
17110         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
17111         utf8-ucs4-unsafe.h.
17112         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17113         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17114         utf16-ucs4-unsafe.h.
17115         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17116         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17117         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17118         * lib/unistr/u8-strchr.c: Likewise.
17119         * lib/unistr/u8-strrchr.c: Likewise.
17120         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17121         * lib/unistr/u16-strchr.c: Likewise.
17122         * lib/unistr/u16-strrchr.c: Likewise.
17123         * lib/striconveh.c: Update.
17124         * lib/linebreak.c: Update.
17125
17126 2007-03-24  Bruno Haible  <bruno@clisp.org>
17127
17128         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17129         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17130
17131 2007-03-22  Bruno Haible  <bruno@clisp.org>
17132
17133         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17134
17135 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17136
17137         * MODULES.html.sh (File system functions): New module write-any-file.
17138         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17139         * m4/write-any-file.m4: New files.
17140
17141 2007-03-23  Eric Blake  <ebb9@byu.net>
17142
17143         * gnulib-tool: Rearrange space-tab sequences, since some editors
17144         like to eat them.
17145
17146 2007-03-23  Eric Blake  <ebb9@byu.net>
17147
17148         * lib/version-etc.c (version_etc_va): Update license wording to
17149         be more concise.  Recommended by Richard Stallman.
17150
17151 2007-03-22  Bruno Haible  <bruno@clisp.org>
17152
17153         * lib/poll.c (MSG_PEEK): New fallback definition.
17154
17155 2007-03-22  Bruno Haible  <bruno@clisp.org>
17156
17157         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17158         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17159         (main): Update.
17160         Fixes a compilation error on BeOS.
17161
17162 2007-03-22  Bruno Haible  <bruno@clisp.org>
17163
17164         * modules/frexpl-tests: New file.
17165         * tests/test-frexpl.c: New file.
17166
17167         * modules/frexpl: New file.
17168         * m4/frexpl.m4: New file.
17169         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17170         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17172         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17173         (Depends-on): Add frexpl. Remove isnanl-nolibm.
17174         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
17175
17176 2007-03-22  Bruno Haible  <bruno@clisp.org>
17177
17178         * lib/frexpl.c: Share code with lib/frexp.c.
17179         * modules/mathl (Files): Add lib/frexp.c.
17180         (Depends-on): Add isnanl-nolibm.
17181
17182 2007-03-22  Bruno Haible  <bruno@clisp.org>
17183
17184         * modules/printf-frexp (Files): Add m4/frexp.m4.
17185         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
17186         only if the found frexp function actually works.
17187
17188 2007-03-22  Bruno Haible  <bruno@clisp.org>
17189
17190         * lib/frexp.c: Remove older implementation that uses divisions.
17191
17192 2007-03-21  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/frexp-tests: New file.
17195         * tests/test-frexp.c: New file.
17196
17197         * modules/frexp: New file.
17198         * lib/frexp.c: New file.
17199         * m4/frexp.m4: New file.
17200         * lib/math_.h (frexp): New declaration.
17201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
17202         REPLACE_FREXP.
17203         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
17204
17205 2007-03-21  Bruno Haible  <bruno@clisp.org>
17206
17207         * modules/isnanl-tests: New file.
17208         * tests/test-isnanl.c: New file.
17209
17210         * modules/isnanl: New file.
17211         * lib/isnanl.h: New file.
17212         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
17213         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
17214         gl_FUNC_ISNANL_WORKS.
17215         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
17216         New macros.
17217
17218 2007-03-21  Bruno Haible  <bruno@clisp.org>
17219
17220         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
17221         lib/isnanl.h.
17222         (Include): Update.
17223         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
17224         * lib/vasnprintf.c: Update.
17225         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
17226         tests/test-isnanl.h, remove tests/test-isnanl.c.
17227         (Makefile.am): Update.
17228         * tests/test-isnanl-nolibm.c: New file.
17229         * tests/test-isnanl.h: New file.
17230         * tests/test-isnanl.c: Remove file.
17231
17232 2007-03-21  Jim Meyering  <jim@meyering.net>
17233
17234         When trying to open ".", treat ESTALE like EACCES.
17235         * lib/savewd.c (savewd_save): Resort to forking not just upon
17236         failure with EACCES, but also when errno is ESTALE.
17237
17238 2007-03-20  Bruno Haible  <bruno@clisp.org>
17239
17240         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
17241         Needed on AIX 5.1. Reported by Matthew Woehlke.
17242
17243 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17244
17245         Suggestions by Bruno Haible:
17246         * lib/acl-internal.h: Include "gettext.h" rather than rolling
17247         our own.
17248         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17249         * modules/acl (Depends-on): Add gettext.
17250
17251 2007-03-19  Bruno Haible  <bruno@clisp.org>
17252
17253         * modules/iconvme: Remove file.
17254         * lib/iconvme.h: Remove file.
17255         * lib/iconvme.c: Remove file.
17256         * m4/iconvme.m4: Remove file.
17257
17258 2007-03-19  Bruno Haible  <bruno@clisp.org>
17259
17260         * doc/relocatable-maint.texi: Break long shell script line.
17261         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17262
17263 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17264
17265         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17266         handle file_has_acl.
17267         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17268         * lib/acl.c: Move header inclusions and related macro defns into
17269         lib/acl-internal.h.
17270         (S_ISLNK): Remove defn, since that's now done for us.
17271         (file_has_acl): Move to lib/file-has-acl.c.
17272         Call acl_trivial if available.  This is the crucial part of the fix.
17273         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
17274         shared within the library.  Rewrite a bit, partly to make it compatible
17275         with the GNU coding style.
17276         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17277         Remove unnecessary double-quotes.
17278         Don't test for acl_to_text; the build will catch that.
17279         Replace acl_entries if it doesn't exist and it is needed.
17280         Check for -lsec and acl_trivial (as used on Solaris 10).
17281         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17282         lib/file-has-acl.c.
17283         (Depends-on): Add sys_stat, for S_ISLNK.
17284
17285 2007-03-19  Ben Pfaff  <blp@gnu.org>
17286
17287         * doc/gnulib.texi: Fix typos.
17288         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17289
17290 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17291
17292         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17293         If size is zero here, buf must be zero.
17294
17295 2007-03-19  Simon Josefsson  <simon@josefsson.org>
17296
17297         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
17298         <bruno@clisp.org>.
17299
17300 2007-03-18  Bruno Haible  <bruno@clisp.org>
17301
17302         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17303         Suggested by Eric Blake.
17304
17305 2007-03-18  Ben Pfaff  <blp@gnu.org>
17306
17307         * doc/relocatable.texi: Recommend using as prefix a directory
17308         that does not exist and will never be created.  Based on
17309         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17310         and others.
17311
17312 2007-03-17  Bruno Haible  <bruno@clisp.org>
17313
17314         * lib/fchownat.c: Include lchown.h.
17315
17316 2007-03-17  Bruno Haible  <bruno@clisp.org>
17317
17318         Fix endless loop when the given allocated size was > INT_MAX.
17319         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17320         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17321         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17322         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17323         * lib/sprintf.c (sprintf): Likewise.
17324
17325 2007-03-17  Bruno Haible  <bruno@clisp.org>
17326
17327         * tests/test-argp-2.sh (func_compare): Output a context diff.
17328
17329 2007-03-17  Bruno Haible  <bruno@clisp.org>
17330
17331         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17332         locale's decimal-point character.
17333
17334 2007-03-17  Bruno Haible  <bruno@clisp.org>
17335
17336         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17337         before comparing it. Needed because on some platforms (e.g. x86) a
17338         'long double' occupies less bytes than sizeof (long double).
17339
17340 2007-03-17  Bruno Haible  <bruno@clisp.org>
17341
17342         * tests/test-crc.c (main): Make printf statements 64-bit clean.
17343         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17344         * tests/test-getaddrinfo.c (simple): Likewise.
17345         * tests/test-read-file.c (main): Likewise.
17346
17347 2007-03-17  Bruno Haible  <bruno@clisp.org>
17348
17349         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17350
17351 2007-03-17  Bruno Haible  <bruno@clisp.org>
17352
17353         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17354         unused variable.
17355
17356 2007-03-17  Bruno Haible  <bruno@clisp.org>
17357
17358         * tests/test-c-strcasecmp.c: Include c-strcase.h.
17359         * tests/test-c-strncasecmp.c: Likewise.
17360
17361 2007-03-17  Bruno Haible  <bruno@clisp.org>
17362
17363         * modules/stdlib (Depends-on): Add unistd.
17364         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17365         Needed for MacOS X 10.3.
17366
17367 2007-03-17  Bruno Haible  <bruno@clisp.org>
17368
17369         * lib/unistr/u-strdup.h: Include <stdlib.h>.
17370
17371 2007-03-17  Bruno Haible  <bruno@clisp.org>
17372
17373         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17374
17375 2007-03-17  Bruno Haible  <bruno@clisp.org>
17376
17377         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17378         to reflect files copied from gnulib (with or without modifications).
17379         Suggested by Jim Meyering.
17380
17381 2007-03-17  Eric Blake  <ebb9@byu.net>
17382
17383         * NEWS: Document stdlib change from 2007-02-18.
17384
17385 2007-03-17  Jim Meyering  <jim@meyering.net>
17386
17387         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17388         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17389         someone uses a name containing shell meta-characters.
17390         Reported by Alfred M. Szmidt.
17391
17392         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
17393
17394 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17395
17396         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
17397         and copy gettext configuration files only if configure.ac contains
17398         a use of AM_GNU_GETTEXT_VERSION.
17399
17400 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17401
17402         * build-aux/bootstrap (gnulib_name): New variable.
17403         (gnulib_tool_options): Use it.
17404
17405 2007-03-13  Simon Josefsson  <simon@josefsson.org>
17406
17407         * tests/test-des.c: Use new namespace.
17408
17409 2007-03-15  Bruno Haible  <bruno@clisp.org>
17410
17411         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17412         Reported by James Youngman <jay@gnu.org>.
17413
17414 2007-03-15  Bruno Haible  <bruno@clisp.org>
17415
17416         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17417         declared prototype. Needed with cc on OSF/1 5.1.
17418
17419 2007-03-15  Bruno Haible  <bruno@clisp.org>
17420
17421         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17422         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17423         (struct gl_list_implementation): Add dispose_fn argument to the
17424         'create_empty', 'create' methods.
17425         (struct gl_list_impl_base): Add field 'dispose_fn'.
17426         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17427         argument.
17428         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17429         dispose_fn argument.
17430         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17431         dispose_fn on the dropped values.
17432         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17433         dispose_fn argument.
17434         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17435         dropped values.
17436         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17437         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17438         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17439         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17440         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17441         argument.
17442         (gl_tree_list_free): Call dispose_fn on the dropped values.
17443         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17444         the dropped values.
17445         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17446         Add dispose_fn argument.
17447         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17448         Call dispose_fn on the dropped values.
17449         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17450         Add dispose_fn argument.
17451         (gl_sublist_create): Initialize the 'dispose_fn' field.
17452         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17453         * tests/test-array_list.c (main): Update.
17454         * tests/test-carray_list.c (main): Update.
17455         * tests/test-avltree_list.c (main): Update.
17456         * tests/test-rbtree_list.c (main): Update.
17457         * tests/test-avltreehash_list.c (main): Update.
17458         * tests/test-rbtreehash_list.c (main): Update.
17459         * tests/test-linked_list.c (main): Update.
17460         * tests/test-linkedhash_list.c (main): Update.
17461         * tests/test-array_oset.c (main): Update.
17462
17463 2007-03-15  Bruno Haible  <bruno@clisp.org>
17464
17465         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17466         (gl_oset_create_empty): Add dispose_fn argument.
17467         (struct gl_oset_implementation): Add dispose_fn argument to
17468         'create_empty' method.
17469         (struct gl_oset_impl_base): Add dispose_fn field.
17470         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17471         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17472         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17473         values.
17474         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17475         (gl_tree_oset_free): Call dispose_fn on the dropped values.
17476         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17477         dropped value.
17478         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17479         dropped value.
17480         * tests/test-array_oset.c (main): Update.
17481         * tests/test-avltree_oset.c (main): Update.
17482         * tests/test-rbtree_oset.c (main): Update.
17483         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17484
17485 2007-03-13  Bruno Haible  <bruno@clisp.org>
17486
17487         * tests/test-stdbool.c (i): Update after last patch.
17488
17489 2007-03-12  Bruno Haible  <bruno@clisp.org>
17490
17491         * lib/quotearg.c: Include <wctype.h> early, before the definition of
17492         the iswprint macro. Needed on Solaris 2.5.1.
17493
17494 2007-03-12  Bruno Haible  <bruno@clisp.org>
17495
17496         * tests/test-printf-frexp.c (main): Declare x as volatile.
17497
17498 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17499
17500         * doc/gnulib.texi (Build robot for gnulib): New section.
17501
17502 2007-03-12  Jim Meyering  <jim@meyering.net>
17503
17504         * build-aux/bootstrap: New file.
17505         * build-aux/bootstrap.conf: New file, from coreutils.
17506
17507 2007-03-11  Bruno Haible  <bruno@clisp.org>
17508
17509         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17510
17511 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17512
17513         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17514         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
17515         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
17516
17517 2007-03-11  Bruno Haible  <bruno@clisp.org>
17518
17519         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17520         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17521
17522 2007-03-11  Bruno Haible  <bruno@clisp.org>
17523
17524         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17525         formula. Needed for SunPRO C 5.0.
17526
17527 2007-03-11  Bruno Haible  <bruno@clisp.org>
17528
17529         * modules/long-options (Depends-on): Add getopt.
17530
17531 2007-03-11  Bruno Haible  <bruno@clisp.org>
17532
17533         * modules/modechange (Depends-on): Add stdbool.
17534
17535 2007-03-11  Bruno Haible  <bruno@clisp.org>
17536
17537         * modules/i-ring (Depends-on): Add stdbool.
17538
17539 2007-03-11  Bruno Haible  <bruno@clisp.org>
17540
17541         * modules/gc-des (Depends-on): Add stdbool.
17542
17543 2007-03-11  Bruno Haible  <bruno@clisp.org>
17544
17545         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17546
17547 2007-03-11  Bruno Haible  <bruno@clisp.org>
17548
17549         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17550
17551 2007-03-11  Bruno Haible  <bruno@clisp.org>
17552
17553         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17554
17555 2007-03-11  Bruno Haible  <bruno@clisp.org>
17556
17557         * lib/vasnprintf.c (sprintf): Undefine.
17558
17559 2007-03-11  Bruno Haible  <bruno@clisp.org>
17560
17561         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17562         initializers in SunPRO C and Compaq C compilers.
17563
17564 2007-03-11  Bruno Haible  <bruno@clisp.org>
17565
17566         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17567         decrementing code ANSI C compliant.
17568
17569 2007-03-11  Bruno Haible  <bruno@clisp.org>
17570
17571         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17572         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17573
17574 2007-03-11  Bruno Haible  <bruno@clisp.org>
17575
17576         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17577         <stdbool.h> substitute doesn't pass.
17578
17579 2007-03-11  Bruno Haible  <bruno@clisp.org>
17580
17581         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17582
17583 2007-03-11  Bruno Haible  <bruno@clisp.org>
17584
17585         * gnulib-tool (func_create_megatestdir): Create also an autobuild
17586         script, for submission to autobuild.josefsson.org.
17587
17588 2007-03-10  Bruno Haible  <bruno@clisp.org>
17589
17590         * modules/canonicalize-lgpl-tests: New file.
17591         * tests/test-canonicalize-lgpl.sh: New file.
17592         * tests/test-canonicalize-lgpl.c: New file.
17593
17594         * modules/c-strcase-tests: New file.
17595         * tests/test-c-strcase.sh: New file.
17596         * tests/test-c-strcasecmp.c: New file.
17597         * tests/test-c-strncasecmp.c: New file.
17598
17599         * modules/atexit-tests: New file.
17600         * tests/test-atexit.sh: New file.
17601         * tests/test-atexit.c: New file.
17602
17603 2007-03-10  Bruno Haible  <bruno@clisp.org>
17604
17605         * tests/test-binary-io.sh: Use temporary filenames that are not so
17606         likely to clash with those of other tests (in a parallel make).
17607         * tests/test-binary-io.c: Likewise.
17608
17609 2007-03-10  Bruno Haible  <bruno@clisp.org>
17610
17611         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17612         fallback; use #error instead.
17613         Suggested by Simon Josefsson.
17614
17615 2007-03-10  Bruno Haible  <bruno@clisp.org>
17616
17617         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17618         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17619         first and the last.
17620
17621 2007-03-10  Bruno Haible  <bruno@clisp.org>
17622
17623         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17624
17625 2007-03-10  Bruno Haible  <bruno@clisp.org>
17626
17627         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17628         "make distcheck".
17629         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17630         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17631         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17632
17633 2007-03-10  Bruno Haible  <bruno@clisp.org>
17634
17635         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17636         variable.
17637         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17638         variable.
17639
17640 2007-03-09  Eric Blake  <ebb9@byu.net>
17641         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
17642
17643         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17644         types are not being provided by gnulib.
17645         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17646         types are supported.
17647
17648 2007-03-10  Bruno Haible  <bruno@clisp.org>
17649
17650         * lib/stdio_.h (__attribute__): New macro.
17651         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17652         vsprintf): Specify __attribute__ __format__ for GCC.
17653         Suggested by Eric Blake.
17654
17655 2007-03-09  Bruno Haible  <bruno@clisp.org>
17656
17657         * modules/printf-posix-tests: New file.
17658         * tests/test-printf-posix.sh: New file.
17659         * tests/test-printf-posix.c: New file.
17660
17661         * modules/printf-posix: New file.
17662         * lib/printf.c: New file.
17663         * m4/printf-posix-rpl.m4: New file.
17664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17665         REPLACE_PRINTF.
17666         * lib/stdio_.h (printf): New declaration.
17667         (format, __format__, ____printf____, ____scanf____, ____strftime____,
17668         ____strfmon____): New macros.
17669         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17670         REPLACE_PRINTF.
17671
17672 2007-03-09  Bruno Haible  <bruno@clisp.org>
17673
17674         * tests/test-vasnprintf-posix2.sh: New file.
17675         * tests/test-vasnprintf-posix2.c: New file.
17676         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17677         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17678         (Makefile.am): Activate test-vasnprintf-posix2.sh.
17679
17680         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17681         a locale dependent decimal point, rather than always '.'.
17682
17683 2007-03-09  Eric Blake  <ebb9@byu.net>
17684
17685         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17686         spite of platforms like Tandem/NSK that define it to -1.
17687
17688 2007-03-08  Bruno Haible  <bruno@clisp.org>
17689
17690         * modules/vprintf-posix-tests: New file.
17691         * tests/test-vprintf-posix.sh: New file.
17692         * tests/test-vprintf-posix.c: New file.
17693         * tests/test-printf-posix.h: New file.
17694
17695         * modules/vprintf-posix: New file.
17696         * lib/vprintf.c: New file.
17697         * m4/vprintf-posix.m4: New file.
17698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17699         REPLACE_VPRINTF.
17700         * lib/stdio_.h (vprintf): New declaration.
17701         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17702         REPLACE_VPRINTF.
17703
17704 2007-03-08  Bruno Haible  <bruno@clisp.org>
17705
17706         * modules/fprintf-posix-tests: New file.
17707         * tests/test-fprintf-posix.sh: New file.
17708         * tests/test-fprintf-posix.c: New file.
17709
17710         * modules/fprintf-posix: New file.
17711         * lib/fprintf.c: New file.
17712         * m4/fprintf-posix.m4: New file.
17713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17714         REPLACE_FPRINTF.
17715         * lib/stdio_.h (fprintf): New declaration.
17716         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17717         REPLACE_FPRINTF.
17718
17719 2007-03-08  Bruno Haible  <bruno@clisp.org>
17720
17721         * modules/vfprintf-posix-tests: New file.
17722         * tests/test-vfprintf-posix.sh: New file.
17723         * tests/test-vfprintf-posix.c: New file.
17724         * tests/test-fprintf-posix.h: New file.
17725         * tests/test-fprintf-posix.out: New file.
17726
17727         * modules/vfprintf-posix: New file.
17728         * lib/vfprintf.c: New file.
17729         * m4/vfprintf-posix.m4: New file.
17730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17731         REPLACE_VFPRINTF.
17732         * lib/stdio_.h (vfprintf): New declaration.
17733         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17734         REPLACE_VFPRINTF.
17735
17736 2007-03-08  Bruno Haible  <bruno@clisp.org>
17737
17738         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17739
17740 2007-03-08  Bruno Haible  <bruno@clisp.org>
17741
17742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17743         instead of 'expr' invocations.
17744         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17745         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17746         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17749         Suggested by Paul Eggert.
17750
17751 2007-03-08  Bruno Haible  <bruno@clisp.org>
17752
17753         * modules/fseterr-tests: New file.
17754         * tests/test-fseterr.c: New file.
17755
17756         * modules/fseterr: New file.
17757         * lib/fseterr.h: New file.
17758         * lib/fseterr.c: New file.
17759
17760 2007-03-08  Bruno Haible  <bruno@clisp.org>
17761
17762         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17763         * lib/getopt_.h: Likewise.
17764         * lib/mbswidth.h: Likewise.
17765         * lib/setenv.h: Likewise.
17766         * lib/vasnprintf.h: Likewise.
17767         * lib/vasprintf.h: Likewise.
17768         * lib/verror.h: Likewise.
17769         * lib/xsetenv.h: Likewise.
17770         * lib/xvasprintf.h: Likewise.
17771
17772 2007-03-08  Jim Meyering  <jim@meyering.net>
17773
17774         * users.txt: Add parted.
17775
17776         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17777
17778 2007-03-07  Bruno Haible  <bruno@clisp.org>
17779
17780         * m4/printf.m4: Make the shell script snippets copy&pastable.
17781
17782 2007-03-02  Bruno Haible  <bruno@clisp.org>
17783
17784         * lib/netinet_in_.h: New file.
17785         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17786         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17787         * modules/netinet_in (Files): Add lib/netinet_in_.h.
17788         (Depends-on): Add absolute-header.
17789         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17790         into netinet/in.h.
17791
17792 2007-03-03  Bruno Haible  <bruno@clisp.org>
17793
17794         * lib/sys_select_.h: New file.
17795         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17796         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17797         * modules/sys_select (Files): Add lib/sys_select_.h.
17798         (Depends-on): Add absolute-header.
17799         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17800         into sys/select.h.
17801
17802 2007-03-02  Bruno Haible  <bruno@clisp.org>
17803
17804         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17805         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17806         values.
17807         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17808         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17809         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17810         * modules/sys_socket (Depends-on): Add absolute-header.
17811         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17812         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17813         (Include): Remove requirement of inclusion of <sys/types.h>.
17814
17815 2007-03-02  Bruno Haible  <bruno@clisp.org>
17816
17817         * lib/byteswap_.h (bswap_32): Fix formula.
17818
17819 2007-03-06  Bruno Haible  <bruno@clisp.org>
17820
17821         * modules/sprintf-posix-tests: New file.
17822         * tests/test-sprintf-posix.c: New file.
17823
17824         * modules/sprintf-posix: New file.
17825         * lib/sprintf.c: New file.
17826         * m4/sprintf-posix.m4: New file.
17827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17828         REPLACE_SPRINTF.
17829         * lib/stdio_.h (sprintf): New declaration.
17830         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17831         REPLACE_SPRINTF.
17832
17833 2007-03-06  Bruno Haible  <bruno@clisp.org>
17834
17835         * modules/vsprintf-posix-tests: New file.
17836         * tests/test-vsprintf-posix.c: New file.
17837         * tests/test-sprintf-posix.h: New file.
17838
17839         * modules/vsprintf-posix: New file.
17840         * lib/vsprintf.c: New file.
17841         * m4/vsprintf-posix.m4: New file.
17842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17843         REPLACE_VSPRINTF.
17844         * lib/stdio_.h (vsprintf): New declaration.
17845         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17846         REPLACE_VSPRINTF.
17847
17848 2007-03-06  Bruno Haible  <bruno@clisp.org>
17849
17850         * modules/vsnprintf (Depend-on): Remove minmax.
17851
17852 2007-03-06  Bruno Haible  <bruno@clisp.org>
17853
17854         * modules/snprintf-posix-tests: New file.
17855         * tests/test-snprintf-posix.c: New file.
17856
17857         * modules/snprintf-posix: New file.
17858         * m4/snprintf-posix.m4: New file.
17859         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17860         gl_FUNC_SNPRINTF.
17861         (gl_FUNC_SNPRINTF): Invoke it.
17862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17863         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17864         is set.
17865         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17866
17867 2007-03-06  Bruno Haible  <bruno@clisp.org>
17868
17869         * modules/vsnprintf-posix-tests: New file.
17870         * tests/test-vsnprintf-posix.c: New file.
17871         * tests/test-snprintf-posix.h: New file.
17872
17873         * modules/vsnprintf-posix: New file.
17874         * m4/vsnprintf-posix.m4: New file.
17875         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17876         gl_FUNC_VSNPRINTF.
17877         (gl_FUNC_VSNPRINTF): Invoke it.
17878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17879         * lib/stdio_.h (vsnprintf): Define as a replacement if
17880         REPLACE_VSNPRINTF is set.
17881         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17882
17883 2007-03-06  Bruno Haible  <bruno@clisp.org>
17884
17885         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17887
17888 2007-03-06  Bruno Haible  <bruno@clisp.org>
17889
17890         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17891         (asinl): Declare also if HAVE_DECL_ASINL is set.
17892         (atanl): Declare also if HAVE_DECL_ATANL is set.
17893         (ceill): Declare also if HAVE_DECL_CEILL is set.
17894         (cosl): Declare also if HAVE_DECL_COSL is set.
17895         (expl): Declare also if HAVE_DECL_EXPL is set.
17896         (floorl): Declare also if HAVE_DECL_FLOORL is set.
17897         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17898         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17899         (logl): Declare also if HAVE_DECL_LOGL is set.
17900         (sinl): Declare also if HAVE_DECL_SINL is set.
17901         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17902         (tanl): Declare also if HAVE_DECL_TANL is set.
17903         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17905         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17906         declaration of frexpl, ldexpl.
17907         * modules/printf-frexpl (Depends-on): Add math.
17908         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17909
17910 2007-03-05  Bruno Haible  <bruno@clisp.org>
17911
17912         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17913         frexpl and ldexpl are declared.
17914         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17915
17916 2007-03-05  Bruno Haible  <bruno@clisp.org>
17917
17918         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17919         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17920
17921 2007-03-05  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/stdio_.h: Include <stddef.h>.
17924
17925 2007-03-05  Bruno Haible  <bruno@clisp.org>
17926
17927         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17928
17929 2007-03-05  Bruno Haible  <bruno@clisp.org>
17930
17931         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17932         NetBSD 4, from Ralf Wildenhues.
17933
17934 2007-03-04  Bruno Haible  <bruno@clisp.org>
17935
17936         * lib/vasprintf.h: Update #if logic for the case when the functions
17937         exist but are overridden.
17938
17939 2007-03-04  Bruno Haible  <bruno@clisp.org>
17940
17941         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17942         implementations: glibc-2.4 and MacOS X 10.3.
17943         * tests/test-vasnprintf-posix.c (test_function): Test also the case
17944         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17945         * tests/test-vasprintf-posix.c (test_function): Likewise.
17946
17947 2007-03-04  Bruno Haible  <bruno@clisp.org>
17948
17949         * modules/vasprintf-posix-tests: New file.
17950         * tests/test-vasprintf-posix.c: New file.
17951
17952         * modules/vasprintf-posix: New file.
17953         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17954         defined.
17955         * m4/vasprintf-posix.m4: New file.
17956         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17957         gl_FUNC_VASPRINTF.
17958         (gl_FUNC_VASPRINTF): Invoke it.
17959         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17960         here.
17961         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17962
17963 2007-03-04  Bruno Haible  <bruno@clisp.org>
17964
17965         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17966         REPLACE_GETTIMEOFDAY.
17967         * modules/sys_time (Makefile.am): Likewise.
17968         * m4/sys_time_h.m4: Likewise.
17969         * m4/gettimeofday.m4: Likewise.
17970
17971 2007-03-04  Bruno Haible  <bruno@clisp.org>
17972
17973         * modules/vasnprintf-posix-tests: New file.
17974         * tests/test-vasnprintf-posix.c: New file.
17975
17976         * modules/vasnprintf-posix: New file.
17977         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17978         printf-frexpl.h.
17979         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17980         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17981         REPLACE_VASNPRINTF is defined.
17982         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17983         gl_FUNC_VASNPRINTF.
17984         (gl_FUNC_VASNPRINTF): Invoke it.
17985         * m4/vasnprintf-posix.m4: New file.
17986         * m4/printf.m4: New file.
17987
17988 2007-03-04  Bruno Haible  <bruno@clisp.org>
17989
17990         Compile progreloc.c only if --enable-relocatable is specified.
17991         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17992         if --enable-relocatable was specified.
17993         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17994         lib_SOURCES.
17995
17996 2007-03-04  Jim Meyering  <jim@meyering.net>
17997
17998         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17999         Use it consistently, rather than enumerating errno constants.
18000
18001 2007-03-04  Bruno Haible  <bruno@clisp.org>
18002
18003         * modules/xvasprintf-tests: New file.
18004         * tests/test-xvasprintf.c: New file.
18005
18006         * modules/vasprintf-tests: New file.
18007         * tests/test-vasprintf.c: New file.
18008
18009         * modules/vasnprintf-tests: New file.
18010         * tests/test-vasnprintf.c: New file.
18011
18012         * modules/vsnprintf-tests: New file.
18013         * tests/test-vsnprintf.c: New file.
18014
18015         * modules/snprintf-tests: New file.
18016         * tests/test-snprintf.c: New file.
18017
18018 2007-03-04  Bruno Haible  <bruno@clisp.org>
18019
18020         Compile relocatable.c only if --enable-relocatable is specified.
18021         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
18022         gl_RELOCATABLE_LIBRARY.
18023         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
18024         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
18025         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
18026         gl_RELOCATABLE_LIBRARY.
18027         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
18028         (Makefile.am): Remove lib_SOURCES.
18029         * modules/relocatable-lib-lgpl (configure.ac): Invoke
18030         gl_RELOCATABLE_LIBRARY.
18031         (Makefile.am): Remove lib_SOURCES.
18032         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
18033         always.
18034         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18035         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
18036
18037 2007-03-04  Bruno Haible  <bruno@clisp.org>
18038
18039         * modules/argmatch-tests: New file.
18040         * tests/test-argmatch.c: New file.
18041
18042         * tests/test-allocsa.c (main): Halve the number of loop runs.
18043
18044         * modules/alloca-opt-tests: New file.
18045         * tests/test-alloca-opt.c: New file.
18046
18047 2007-03-04  Jim Meyering  <jim@meyering.net>
18048
18049         Work around difference between Linux ACLs and Solaris 10 ZFS.
18050         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
18051         for EINVAL.
18052
18053 2007-03-03  Bruno Haible  <bruno@clisp.org>
18054
18055         * modules/relocatable-prog (Depends-on): Add back progreloc's
18056         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
18057
18058 2007-03-03  Bruno Haible  <bruno@clisp.org>
18059
18060         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
18061         * modules/relocatable-lib: New file.
18062
18063 2007-03-03  Bruno Haible  <bruno@clisp.org>
18064
18065         * modules/relocatable-prog: Renamed from modules/relocatable.
18066         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
18067
18068 2007-03-03  Bruno Haible  <bruno@clisp.org>
18069
18070         * modules/relocatable-script (Files): Add doc/relocatable.texi,
18071         m4/relocatable-lib.m4.
18072         (Depends-on): Remove 'relocatable'.
18073         (configure.ac): Add gl_RELOCATABLE_NOP.
18074
18075 2007-03-03  Bruno Haible  <bruno@clisp.org>
18076
18077         * modules/relocatable-prog-wrapper: New file.
18078         * modules/relocatable (Depends-on): Add it. Remove all other
18079         dependencies except progname.
18080         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
18081
18082         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
18083         (gl_FUNC_STRERROR): Nop.
18084         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
18085
18086         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
18087         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
18088
18089         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
18090         (gl_FUNC_READLINK): Update.
18091
18092         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
18093
18094 2007-03-03  Bruno Haible  <bruno@clisp.org>
18095
18096         * lib/xreadlink.c: Include <unistd.h> unconditionally.
18097         * modules/xreadlink (Depends-on): Add unistd.
18098         * modules/xreadlink-with-size (Depends-on): Likewise.
18099
18100 2007-03-03  Bruno Haible  <bruno@clisp.org>
18101
18102         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
18103         extracted from gt_FUNC_SETENV.
18104         (gt_FUNC_SETENV): Remove macro.
18105         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
18106         remove gt_FUNC_SETENV.
18107
18108 2007-03-03  Bruno Haible  <bruno@clisp.org>
18109
18110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
18111         ENABLE_RELOCATABLE here.
18112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18113
18114 2007-03-03  Bruno Haible  <bruno@clisp.org>
18115
18116         * modules/rbtreehash-list-tests (Depends-on): Add progname.
18117         * tests/test-rbtreehash_list.c: Include progname.h.
18118         (main): Call set_program_name.
18119
18120         * modules/rbtree-oset-tests (Depends-on): Add progname.
18121         * tests/test-rbtree_oset.c: Include progname.h.
18122         (main): Call set_program_name.
18123
18124         * modules/rbtree-list-tests (Depends-on): Add progname.
18125         * tests/test-rbtree_list.c: Include progname.h.
18126         (main): Call set_program_name.
18127
18128         * modules/linked-list-tests (Depends-on): Add progname.
18129         * tests/test-linked_list.c: Include progname.h.
18130         (main): Call set_program_name.
18131
18132 2007-03-03  Bruno Haible  <bruno@clisp.org>
18133
18134         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18135         All uses of __restrict changed to _Restrict_.
18136         * lib/glob_.h (__restrict): Remove macro.
18137
18138 2007-03-02  Bruno Haible  <bruno@clisp.org>
18139
18140         * modules/gettext (configure.ac): Require gettext infrastructure
18141         from version 0.16.1.
18142
18143 2007-03-02  Bruno Haible  <bruno@clisp.org>
18144
18145         * modules/linkedhash-list-tests (Depends-on): Add progname.
18146         * tests/test-linkedhash_list.c: Include progname.h.
18147         (main): Call set_program_name.
18148
18149         * modules/carray-list-tests (Depends-on): Add progname.
18150         * tests/test-carray_list.c: Include progname.h.
18151         (main): Call set_program_name.
18152
18153         * modules/avltreehash-list-tests (Depends-on): Add progname.
18154         * tests/test-avltreehash_list.c: Include progname.h.
18155         (main): Call set_program_name.
18156
18157         * modules/avltree-oset-tests (Depends-on): Add progname.
18158         * tests/test-avltree_oset.c: Include progname.h.
18159         (main): Call set_program_name.
18160
18161         * modules/avltree-list-tests (Depends-on): Add progname.
18162         * tests/test-avltree_list.c: Include progname.h.
18163         (main): Call set_program_name.
18164
18165         * modules/array-oset-tests (Depends-on): Add progname.
18166         * tests/test-array_oset.c: Include progname.h.
18167         (main): Call set_program_name.
18168
18169         * modules/array-list-tests (Depends-on): Add progname.
18170         * tests/test-array_list.c: Include progname.h.
18171         (main): Call set_program_name.
18172
18173         * modules/argp-tests (Depends-on): Add progname.
18174         * tests/test-argp.c: Include argp.h first. Include progname.h.
18175         (main): Call set_program_name.
18176
18177 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
18178
18179         * doc/gnulib-tool.texi (Initial import): Reword description of
18180         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
18181         limited effect even if defined after the first system include.
18182
18183 2007-03-01  Bruno Haible  <bruno@clisp.org>
18184
18185         * build-aux/config.libpath: Update to libtool-1.5.22.
18186         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18187
18188 2007-03-01  Bruno Haible  <bruno@clisp.org>
18189
18190         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
18191         foo_CFLAGS.
18192         Reported by Ralf Wildenhues.
18193
18194 2007-03-01  Bruno Haible  <bruno@clisp.org>
18195
18196         * build-aux/install-reloc: Remove object files left over by some
18197         compilers.
18198         Reported by Ralf Wildenhues.
18199
18200 2007-03-01  Bruno Haible  <bruno@clisp.org>
18201
18202         * build-aux/install-reloc: Break long lines.
18203
18204 2007-03-01  Bruno Haible  <bruno@clisp.org>
18205
18206         * doc/relocatable.texi: Document that it may not work on OpenBSD.
18207         Reported by Ralf Wildenhues.
18208
18209 2007-03-01  Bruno Haible  <bruno@clisp.org>
18210
18211         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
18212         include ordering constraints.
18213
18214 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18215
18216         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
18217         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
18218         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
18219         as another example.
18220         * lib/time_.h: Fix misspelling.
18221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18222         Require gl_HEADER_TIME_H_DEFAULTS.
18223         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
18224         * m4/time_r.m4 (gl_TIME_R): Likewise.
18225         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
18226
18227 2007-03-01  Bruno Haible  <bruno@clisp.org>
18228
18229         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
18230         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18231
18232 2007-03-01  Jim Meyering  <jim@meyering.net>
18233
18234         * modules/xreadlink (Maintainer): Add my name.
18235         * modules/xreadlink-with-size (Depends-on): Alphabetize.
18236
18237 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
18238             Bruno Haible  <bruno@clisp.org>
18239
18240         * build-aux/install-reloc: Compile also c-ctype.c.
18241         * build-aux/relocatable.sh.in: New file.
18242         * doc/relocatable.texi: New file.
18243         * doc/relocatable-maint.texi: New file.
18244         * doc/gnulib.texi: Include relocatable-maint.texi.
18245         * lib/progreloc.c: Include unistd.h unconditionally.
18246         * lib/relocwrapper.c: Include unistd.h unconditionally.
18247         Include c-ctype.h.
18248         (add_dotbin): Use c_tolower.
18249         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18250         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18251         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18252         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18253         to m4/relocatable-lib.m4.
18254         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18255         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18256         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18257         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18258         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18259         * modules/relocatable: New file.
18260         * modules/relocatable-lib: New file.
18261         * modules/relocatable-script: New file.
18262
18263 2007-02-28  Bruno Haible  <bruno@clisp.org>
18264
18265         Import --enable-relocatable infrastructure.
18266         * build-aux/config.libpath: New file, from GNU gettext.
18267         * build-aux/install-reloc: New file, from GNU gettext.
18268         * build-aux/reloc-ldflags: New file, from GNU gettext.
18269         * lib/relocatable.h: New file, from GNU gettext.
18270         * lib/relocatable.c: New file, from GNU gettext.
18271         * lib/relocwrapper.c: New file, from GNU gettext.
18272         * m4/relocatable.m4: New file, from GNU gettext.
18273
18274 2007-02-28  Bruno Haible  <bruno@clisp.org>
18275
18276         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18277
18278         * modules/xreadlink: New file, from GNU gettext with modifications.
18279         * lib/xreadlink.c: New file, from GNU gettext.
18280         * lib/xreadlink.h: Add comments.
18281         (xreadlink): New declaration.
18282
18283         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18284         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18285         lib/xreadlink-with-size.c.
18286         (configure.ac): Remove gl_XREADLINK invocation.
18287         (Makefile.am): Augment lib_SOURCES.
18288         * m4/xreadlink.m4: Remove file.
18289         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18290         (xreadlink_with_size): Renamed from xreadink.
18291         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18292         * modules/canonicalize (Depends-on): Replace xreadlink with
18293         xreadlink-with-size.
18294         * lib/canonicalize.c (canonicalize_filename_mode): Update.
18295
18296 2007-02-25  Jim Meyering  <jim@meyering.net>
18297
18298         * build-aux/announce-gen: When complaining about excess arguments,
18299         list them.
18300
18301 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18302
18303         * README: Document signed integer overflow situation more
18304         accurately.
18305
18306 2007-02-25  Bruno Haible  <bruno@clisp.org>
18307
18308         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18309         'a' or 'A' conversion.
18310
18311 2007-02-25  Bruno Haible  <bruno@clisp.org>
18312
18313         * modules/filename: Renamed from modules/pathname.
18314         (Files): Replace lib/pathname.h with lib/filename.h. Replace
18315         lib/concatpath.c with lib/concat-filename.c.
18316         (Makefile.am): Update.
18317         (Include): Replace pathname.h with filename.h.
18318         * lib/filename.h: Renamed from lib/pathname.h.
18319         (concatenated_filename): Renamed from concatenated_pathname.
18320         * lib/concat-filename.c: Renamed from lib/concatpath.c.
18321         (concatenated_filename): Renamed from concatenated_pathname.
18322         * lib/findprog.c: Include filename.h instead of pathname.h.
18323         (find_in_path): Update.
18324         * lib/javacomp.c: Include filename.h instead of pathname.h.
18325         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18326         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18327         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18328         is_oldgcj_14_13_usable, is_javac_usable): Update.
18329         * lib/javaexec.c: Include filename.h instead of pathname.h.
18330         (execute_java_class): Update.
18331         * modules/findprog: Update.
18332         * modules/javacomp: Update.
18333         * modules/javaexec: Update.
18334         * MODULES.html.sh (File system functions): Add 'filename', remove
18335         'pathname'.
18336
18337 2007-02-25  Bruno Haible  <bruno@clisp.org>
18338
18339         * modules/printf-frexpl-tests: New file.
18340         * tests/test-printf-frexpl.c: New file.
18341
18342         * modules/printf-frexpl: New file.
18343         * lib/printf-frexpl.h: New file.
18344         * lib/printf-frexpl.c: New file.
18345         * m4/printf-frexpl.m4: New file.
18346
18347 2007-02-25  Bruno Haible  <bruno@clisp.org>
18348
18349         * modules/printf-frexp-tests: New file.
18350         * tests/test-printf-frexp.c: New file.
18351
18352         * modules/printf-frexp: New file.
18353         * lib/printf-frexp.h: New file.
18354         * lib/printf-frexp.c: New file.
18355         * m4/printf-frexp.m4: New file.
18356
18357 2007-02-25  Bruno Haible  <bruno@clisp.org>
18358
18359         Assume automake >= 1.10 for the tests.
18360         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18361         * modules/arctwo-tests: Likewise.
18362         * modules/argp-tests: Likewise.
18363         * modules/avltree-list-tests: Likewise.
18364         * modules/avltree-oset-tests: Likewise.
18365         * modules/avltreehash-list-tests: Likewise.
18366         * modules/carray-list-tests: Likewise.
18367         * modules/crc-tests: Likewise.
18368         * modules/des-tests: Likewise.
18369         * modules/gc-arcfour-tests: Likewise.
18370         * modules/gc-arctwo-tests: Likewise.
18371         * modules/gc-des-tests: Likewise.
18372         * modules/gc-hmac-md5-tests: Likewise.
18373         * modules/gc-hmac-sha1-tests: Likewise.
18374         * modules/gc-md2-tests: Likewise.
18375         * modules/gc-md4-tests: Likewise.
18376         * modules/gc-md5-tests: Likewise.
18377         * modules/gc-pbkdf2-sha1-tests: Likewise.
18378         * modules/gc-rijndael-tests: Likewise.
18379         * modules/gc-sha1-tests: Likewise.
18380         * modules/gc-tests: Likewise.
18381         * modules/getaddrinfo-tests: Likewise.
18382         * modules/hmac-md5-tests: Likewise.
18383         * modules/hmac-sha1-tests: Likewise.
18384         * modules/linked-list-tests: Likewise.
18385         * modules/linkedhash-list-tests: Likewise.
18386         * modules/lock-tests: Likewise.
18387         * modules/md2-tests: Likewise.
18388         * modules/md4-tests: Likewise.
18389         * modules/md5-tests: Likewise.
18390         * modules/rbtree-list-tests: Likewise.
18391         * modules/rbtree-oset-tests: Likewise.
18392         * modules/rbtreehash-list-tests: Likewise.
18393         * modules/read-file-tests: Likewise.
18394         * modules/rijndael-tests: Likewise.
18395         * modules/stdint-tests: Likewise.
18396         * modules/tls-tests: Likewise.
18397
18398 2007-02-24  Bruno Haible  <bruno@clisp.org>
18399
18400         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18401         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18402         function; instead check whether isnan with a double argument links.
18403         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18404         function; instead check whether isnan with a 'long double' argument
18405         links.
18406         Reported by Eric Blake <ebb9@byu.net>.
18407
18408 2007-02-24  Bruno Haible  <bruno@clisp.org>
18409
18410         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18411         defined.
18412         * lib/isnanl.c: Remove all code. Just include isnan.c.
18413         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18414
18415 2007-02-25  Jim Meyering  <jim@meyering.net>
18416
18417         Avoid conflicting types for 'unsetenv' on FreeBSD.
18418         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18419         conflicting with FreeBSD's (5.0 and 6.1) function declaration
18420         in stdlib.h.
18421
18422 2007-02-24  Bruno Haible  <bruno@clisp.org>
18423
18424         * modules/isnanl-nolibm-tests: New file.
18425         * tests/test-isnanl.c: New file.
18426
18427         * modules/isnanl-nolibm: New file.
18428         * lib/isnanl.h: New file.
18429         * lib/isnanl.c: New file.
18430         * m4/isnanl.m4: New file.
18431
18432 2007-02-24  Bruno Haible  <bruno@clisp.org>
18433
18434         * modules/isnan-nolibm-tests: New file.
18435         * tests/test-isnan.c: New file.
18436
18437         * modules/isnan-nolibm: New file.
18438         * lib/isnan.h: New file.
18439         * lib/isnan.c: New file.
18440         * m4/isnan.m4: New file.
18441
18442 2007-02-24  Bruno Haible  <bruno@clisp.org>
18443
18444         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18445         assume that an exponent fits in 20 bits.
18446
18447 2007-02-24  Jim Meyering  <jim@meyering.net>
18448
18449         * m4/regex.m4: Update the description of the configure-time option,
18450         --without-included-regex, to state accurately what the defaults are,
18451         and perhaps to give people an idea why using this option is risky.
18452
18453 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18454
18455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18456         loops on small arguments.  This attempts to avoid the problem
18457         Bruno Haible reported for AIX 4.3.2 in
18458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18459
18460 2007-02-23  Bruno Haible  <bruno@clisp.org>
18461
18462         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18463         Needed for help2man.
18464
18465 2007-02-23  Karl Berry  <karl@gnu.org>
18466
18467         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18468         exists, foo.h should be cvs-ignored, not committed.
18469
18470 2007-02-23  Eric Blake  <ebb9@byu.net>
18471
18472         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
18473         * lib/stat-time.h (includes): Likewise.
18474         * lib/utimecmp.c (includes): Likewise.
18475         * lib/utimens.h (includes): Likewise.
18476         * lib/getdate.y (includes): Also include "timespec.h" for use
18477         internal to the module.
18478         * modules/utimens (Depends-on): Revert yesterday's patch.
18479         * modules/nanosleep (Depends-on): Add missing dependency.
18480
18481 2007-02-22  Bruno Haible  <bruno@clisp.org>
18482
18483         * lib/glob.c: Don't include getlogin_r.h.
18484
18485 2007-02-22  Jim Meyering  <jim@meyering.net>
18486
18487         * modules/utimens (Depends-on): Add timespec, required for
18488         utimens.h's inclusion of timespec.h.
18489
18490 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18491
18492         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18493         long unreadable paths in GNU/Linux.  Problem reported by Andreas
18494         Schwab in
18495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18496         I'll try to think of a better way to fix the Solaris problem.
18497
18498         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18499         like glibc; on Solaris 10, it fails with errno == EINVAL.
18500         POSIX says the behavior is unspecified if the first argument is NULL,
18501         so play it safe and never pass NULL to the system getcwd.
18502
18503 2007-02-21  Jim Meyering  <jim@meyering.net>
18504
18505         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18506         of gettimeofday.  It would conflict with the one now always
18507         provided via sys_time_.h.  Reported by Matthew Woehlke, as
18508         an IRIX 6.5 build failure.
18509
18510 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18511
18512         Minor fixups to port to Solaris 10 with Sun C 5.8.
18513         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18514         * modules/getcwd (Depends-on): Add dirfd.
18515         * lib/putenv.c (putenv): #undef it.
18516         (rpl_putenv): New decl.
18517         (malloc, free): Include <stdlib.h> rather than prototyping separately.
18518
18519 2007-02-20  Bruno Haible  <bruno@clisp.org>
18520
18521         * modules/stdio-tests: New file.
18522         * tests/test-stdio.c: New file.
18523
18524         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18525         (Depends-on): Add stdio.
18526         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18527         (Include): Use <stdio.h> instead of vsnprintf.h.
18528         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18529         HAVE_DECL_VSNPRINTF.
18530         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18531
18532         * modules/snprintf (Files): Remove lib/snprintf.h.
18533         (Depends-on): Add stdio.
18534         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18535         (Include): Use <stdio.h> instead of snprintf.h.
18536         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18537         HAVE_DECL_SNPRINTF.
18538         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18539         * lib/getaddrinfo.c: Likewise.
18540
18541         * modules/stdio: New file.
18542         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18543         * lib/snprintf.h: Remove file.
18544         * lib/vsnprintf.h: Remove file.
18545         * lib/.cppi-disable: Remove snprintf.h.
18546         * m4/stdio_h.m4: New file.
18547         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18548
18549 2007-02-20  Jim Meyering  <jim@meyering.net>
18550
18551         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18552         used by e.g., mingw.  From Bruno Haible.
18553
18554 2007-02-19  Bruno Haible  <bruno@clisp.org>
18555
18556         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18557         warnings.
18558         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18559
18560 2007-02-19  Bruno Haible  <bruno@clisp.org>
18561
18562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18563         from mingw users.
18564
18565 2007-02-19  Bruno Haible  <bruno@clisp.org>
18566
18567         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18568         warnings.
18569         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18570
18571 2007-02-19  Jim Meyering  <jim@meyering.net>
18572
18573         Don't use FD after a successful "fdopendir (fd)".
18574         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18575         Reset it by calling dirfd on the just-obtained DIR*.
18576
18577         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18578         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18579
18580 2007-02-18  Bruno Haible  <bruno@clisp.org>
18581
18582         * lib/readlink.c: Include <unistd.h>.
18583         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18584         HAVE_READLINK.
18585         * modules/readlink (Depends-on): Add unistd.
18586         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18587         (Include): Add <unistd.h>.
18588
18589         * lib/getlogin_r.h: Remove file.
18590         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18591         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18592         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18593         HAVE_DECL_GETLOGIN_R.
18594         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18596         (Include): Use <unistd.h> instead of getlogin_r.h.
18597
18598         * lib/getcwd.h: Remove file.
18599         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18600         * lib/xgetcwd.c: Likewise.
18601         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18602         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18603         * modules/getcwd (Files): Remove lib/getcwd.h.
18604         (Depends-on): Add unistd.
18605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18606         (Include): Use <unistd.h> instad of getcwd.h.
18607
18608         * lib/ftruncate.c: Include <unistd.h> first.
18609         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18610         Set HAVE_FTRUNCATE.
18611         * modules/ftruncate (Depends-on): Add unistd.
18612         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18613
18614         * lib/fchdir.c: Include <unistd.h> first.
18615         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18617         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18618         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18619         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18620
18621         * lib/dup2.c: Include <unistd.h> first.
18622         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18623         HAVE_DUP2.
18624         * modules/dup2 (Depends-on): Add unistd.
18625         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18626
18627         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18628         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18629         REPLACE_CHOWN. Don't define chown as a macro here.
18630         * modules/chown (Depends-on): Add unistd.
18631         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18632
18633         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18634         Add definition for GL_LINK_WARNING.
18635         (chown, dup2): New declarations.
18636         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18637         link warning.
18638         (ftruncate): New declaration.
18639         (getcwd): New declaration, taken from old getcwd.h.
18640         (getlogin_r): New declaration, taken from old getlogin_r.h.
18641         (readlink): New declaration.
18642         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18643         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18644         (gl_PREREQ_UNISTD): Remove macro.
18645         (gl_UNISTD_MODULE_INDICATOR): New macro.
18646         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18647         many new variables. Don't set UNISTD_H.
18648         * modules/unistd (Description): Change.
18649         (Depends-on): Add link-warning.
18650         (configure.ac): Update.
18651         (Makefile.am): Create unistd.h always. Substitute many new variables
18652         into it.
18653
18654 2007-02-18  Bruno Haible  <bruno@clisp.org>
18655
18656         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18657         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18658         HAVE_GETSUBOPT.
18659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18660         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18661         * lib/getsubopt.h: Remove file.
18662         * modules/getsubopt (Files): Remove lib/getsubopt.h.
18663         (Depends-on): Add stdlib.
18664         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18665         (Includes): Use <stdlib.h> instead of getsubopt.h.
18666         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18667         Set HAVE_GETSUBOPT.
18668         * lib/getsubopt.c: Don't include getsubopt.h.
18669
18670 2007-02-18  Bruno Haible  <bruno@clisp.org>
18671
18672         * modules/fchdir (Depends-on): Add dup2.
18673
18674 2007-02-18  Bruno Haible  <bruno@clisp.org>
18675
18676         * lib/stdlib_.h: Handle glibc's special invocation convention
18677         specially.
18678
18679 2007-02-18  Bruno Haible  <bruno@clisp.org>
18680
18681         * modules/stdlib-tests: New file.
18682         * tests/test-stdlib.c: New file.
18683
18684         * modules/mkstemp (Files): Remove lib/mkstemp.h.
18685         (Depends-on): Add stdlib.
18686         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18687         (Includes): Use <stdlib.h> instead of mkstemp.h.
18688         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18689         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18690         * lib/mkstemp.c: Don't include mkstemp.h.
18691         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18692         * lib/stdlib--.h: Don't include mkstemp.h.
18693
18694         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18695         (Depends-on): Add stdlib.
18696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18697         (Includes): Use <stdlib.h> instead of mkdtemp.h.
18698         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18699         HAVE_MKDTEMP.
18700         * lib/mkdtemp.c: Don't include mkdtemp.h.
18701         * lib/clean-temp.c: Don't include mkdtemp.h.
18702
18703         * modules/exit (Files): Remove lib/exit.h.
18704         (Depends-on): Add stdlib.
18705         (Makefile.am): Remove lib_SOURCES.
18706         (Include): Use <stdlib.h> instead of exit.h.
18707         * lib/argmatch.c: Don't include exit.h.
18708         * lib/execute.c: Likewise.
18709         * lib/pagealign_alloc.c: Likewise.
18710         * lib/pipe.c: Likewise.
18711         * lib/wait-process.c: Likewise.
18712         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18713         * lib/exitfail.c: Likewise.
18714         * lib/savewd.c: Likewise.
18715         * lib/xsetenv.c: Likewise.
18716
18717         * modules/stdlib: New file.
18718         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18719         and extra comments about mkstemp().
18720         * lib/exit.h: Remove file.
18721         * lib/mkdtemp.h: Remove file.
18722         * lib/mkstemp.h: Remove file.
18723         * m4/stdlib_h.m4: New file.
18724         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18725
18726 2007-02-18  Bruno Haible  <bruno@clisp.org>
18727
18728         * modules/math-tests: New file.
18729         * tests/test-math.c: New file.
18730
18731         * modules/math: New file.
18732         * modules/mathl (Files): Remove lib/mathl.h.
18733         (Depends-on): Add math.
18734         (Makefile.am): Don't mention mathl.h.
18735         (Include): Use <math.h> instead of mathl.h.
18736         * lib/math_.h: New file.
18737         * lib/mathl.h: Remove file.
18738         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18739         mathl.h.
18740         * lib/asinl.c: Likewise.
18741         * lib/atanl.c: Likewise.
18742         * lib/ceill.c: Likewise.
18743         * lib/cosl.c: Likewise.
18744         * lib/expl.c: Likewise.
18745         * lib/floorl.c: Likewise.
18746         * lib/frexpl.c: Likewise.
18747         * lib/ldexpl.c: Likewise.
18748         * lib/logl.c: Likewise.
18749         * lib/sincosl.c: Likewise.
18750         * lib/sinl.c: Likewise.
18751         * lib/sqrtl.c: Likewise.
18752         * lib/tanl.c: Likewise.
18753         * lib/trigl.c: Likewise.
18754         * m4/math_h.m4: New file.
18755         * MODULES.html.sh (Mathematics): Add math.
18756
18757 2007-02-17  Bruno Haible  <bruno@clisp.org>
18758
18759         * modules/wctype-tests: New file.
18760         * tests/test-wctype.c: New file.
18761
18762         * modules/wchar-tests: New file.
18763         * tests/test-wchar.c: New file.
18764
18765         * modules/unistd-tests: New file.
18766         * tests/test-unistd.c: New file.
18767
18768         * modules/time-tests: New file.
18769         * tests/test-time.c: New file.
18770
18771         * modules/sysexits-tests: New file.
18772         * tests/test-sysexits.c: New file.
18773
18774         * modules/sys_time-tests: New file.
18775         * tests/test-sys_time.c: New file.
18776
18777         * modules/sys_stat-tests: New file.
18778         * tests/test-sys_stat.c: New file.
18779
18780         * modules/sys_socket-tests: New file.
18781         * tests/test-sys_socket.c: New file.
18782
18783         * modules/sys_select-tests: New file.
18784         * tests/test-sys_select.c: New file.
18785
18786         * modules/string-tests: New file.
18787         * tests/test-string.c: New file.
18788
18789         * modules/stdbool-tests: New file.
18790         * tests/test-stdbool.c: New file.
18791
18792         * modules/netinet_in-tests: New file.
18793         * tests/test-netinet_in.c: New file.
18794
18795         * modules/inttypes-tests: New file.
18796         * tests/test-inttypes.c: New file.
18797
18798         * modules/fcntl-tests: New file.
18799         * tests/test-fcntl.c: New file.
18800
18801         * modules/byteswap-tests: New file.
18802         * tests/test-byteswap.c: New file.
18803
18804         * modules/arpa_inet-tests: New file.
18805         * tests/test-arpa_inet.c: New file.
18806
18807 2007-02-17  Bruno Haible  <bruno@clisp.org>
18808
18809         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18810         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18811         if the corresponding module is not enabled. Emit link warnings if
18812         the function is used nevertheless.
18813         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18814         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18815         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18816         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18817         * modules/inttypes (Depends-on): Add link-warning.
18818         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18819         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18820         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18821         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18822         * modules/imaxdiv (configure.ac): Likewise.
18823         * modules/strtoimax (configure.ac): Likewise.
18824         * modules/strtoumax (configure.ac): Likewise.
18825
18826 2007-02-17  Bruno Haible  <bruno@clisp.org>
18827
18828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18829         gl_STRING_MODULE_INDICATOR_DEFAULTS.
18830         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18831         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18832
18833 2007-02-17  Bruno Haible  <bruno@clisp.org>
18834
18835         * modules/link-warning: New file.
18836         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18837         * lib/string_.h (GL_LINK_WARNING): Remove definition.
18838         * modules/string (Depends-on): Add link-warning.
18839         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18840         string.h.
18841         * MODULES.html.sh (Support for building libraries and executables): Add
18842         link-warning.
18843
18844 2007-02-17  Bruno Haible  <bruno@clisp.org>
18845
18846         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18847         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18848         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18849         long lines.
18850
18851 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
18852             Bruno Haible  <bruno@clisp.org>
18853
18854         * modules/tmpfile: New file.
18855         * lib/tmpfile.c: New file.
18856         * m4/tmpfile.m4: New file.
18857         * MODULES.html.sh (func_all_modules): New section "Input/output".
18858
18859 2007-02-15  Bruno Haible  <bruno@clisp.org>
18860
18861         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18862         (supports_delete_on_close): New function.
18863         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18864
18865 2007-02-14  Bruno Haible  <bruno@clisp.org>
18866
18867         * modules/mbspcasecmp-tests: New file.
18868         * tests/test-mbspcasecmp.sh: New file.
18869         * tests/test-mbspcasecmp.c: New file.
18870
18871         New module mbspcasecmp.
18872         * modules/mbspcasecmp: New file.
18873         * lib/mbspcasecmp.c: New file.
18874         * lib/string_.h (strncasecmp): Change warning message.
18875         (mbspcasecmp): New declaration.
18876         * m4/mbspcasecmp.m4: New file.
18877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18878         GNULIB_MBSPCASECMP.
18879         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18880         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18881
18882 2007-02-14  Bruno Haible  <bruno@clisp.org>
18883
18884         * modules/mbsncasecmp-tests: New file.
18885         * tests/test-mbsncasecmp.sh: New file.
18886         * tests/test-mbsncasecmp.c: New file.
18887
18888         New module mbsncasecmp.
18889         * modules/mbsncasecmp: New file.
18890         * lib/mbsncasecmp.c: New file.
18891         * lib/string_.h (mbsncasecmp): New declaration.
18892         * m4/mbsncasecmp.m4: New file.
18893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18894         GNULIB_MBSNCASECMP.
18895         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18896         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18897
18898 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18899
18900         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18901         Verify that it doesn't overlap with our flags.
18902         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18903         do not have the desired effect in multibyte locales; instead, use
18904         mbscasecmp.
18905         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18906         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
18907         we don't require GNU fnmatch ourselves (if our users require it, they
18908         should do so explicitly).
18909
18910         Fix regex code so it doesn't rely on strcasecmp.
18911         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18912         Otherwise, include gnulib's langinfo.h.
18913         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18914         undesirable behavior in non-C locales.  Instead, rely on localecharset.
18915         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18916         * modules/regex (FILES): Remove m4/codeset.m4.
18917         (Depends-on): Add localcharset.  Remove strcase.
18918
18919 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18920
18921         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18922         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18923
18924 2007-02-13  Bruno Haible  <bruno@clisp.org>
18925
18926         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18928
18929 2007-02-12  Bruno Haible  <bruno@clisp.org>
18930
18931         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18932         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18933         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18934         time warning rather than a link error.
18935
18936 2007-02-12  Bruno Haible  <bruno@clisp.org>
18937
18938         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18939         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18941
18942 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18943
18944         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18945         args, not 2.
18946
18947 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18948
18949         New module 'time', so that apps can include <time.h> as per
18950         POSIX and GNU instead of separate include files like time_r.h
18951         and timegm.h.  This implementation tries out a simpler approach
18952         for replacing decls in standard include files (as compared to
18953         the string module), somewhat as an experiment.
18954
18955         * config/srclist.txt: Comment out mktime.c for now.
18956         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18957         since it doesn't apply any more.  Use generic wording instead.
18958         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18959         'time'.
18960         * lib/time_.h, m4/time_h.m4, modules/time: New files.
18961         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18962         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18963         Don't include <sys/types.h>; no longer needed since we assume C89.
18964         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18965         * lib/strftime.c: Likewise.
18966         * lib/time_r.c: Likewise.
18967         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18968         * lib/nanosleep.c: Include <time.h> first, to check interface.
18969         * lib/strptime.c: Likewise.
18970         * lib/time_r.c: Likewise.
18971         * lib/timegm.c: Likewise.
18972         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18973         needed.
18974         * lib/timegm.c: Don't include timegm.h; no longer needed.
18975         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18976         time.h now handles any problems in that area.
18977         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18978         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18979         that time.h defines struct timespec.
18980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18981         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18982         handles that.
18983         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18984         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18985         needed.  Set REPLACE_LOCALTIME.
18986         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18987         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18988         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18989         nanosleep; time_h.m4 now does that.  Don't require
18990         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18991         module handles this now.
18992         * modules/getdate (Depends-on): Remove timespec.  Add time.
18993         * modules/nanosleep (Depends-on): Likewise.
18994         * modules/stat-time (Depends-on): Likewise.
18995         * modules/nanosleep (Include): Include time.h, not timespec.h.
18996         * modules/strptime (Files): Remove lib/strptime.h.
18997         (Depends-on): Add extensions, time.
18998         (Include): Include time.h, not strptime.h.
18999         * modules/time_r (Files): Remove lib/time_r.h.
19000         (Depends-on): Add time.
19001         (Include): Include time.h, not time_r.h.
19002         * modules/timegm: Likewise.
19003         * modules/timespec (Description): Now does timespec-related decls
19004         of our own, instead of struct timespec itself.
19005         (Depends-on): Add time; remove extensions.
19006         (Maintainer): Add self.
19007         * modules/utimecmp (Depends-on): Add time; remove timespec.
19008         * modules/utimens (Depends-on): Likewise.
19009         * modules/xnanosleep (Depends-on): Likewise.
19010
19011 2007-02-11  Bruno Haible  <bruno@clisp.org>
19012
19013         * lib/c-strstr.c: Include allocsa.h.
19014         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19015         * lib/c-strcasestr.c: Include allocsa.h.
19016         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19017         * lib/strcasestr.c: Include allocsa.h.
19018         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19019         * lib/mbsstr.c: Include allocsa.h.
19020         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19021         allocsa/freesa instead of malloc/free.
19022         * lib/mbscasestr.c: Include allocsa.h.
19023         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19024         allocsa/freesa instead of malloc/free.
19025         * modules/c-strstr (Depends-on): Add allocsa.
19026         * modules/c-strcasestr (Depends-on): Likewise.
19027         * modules/strcasestr (Depends-on): Likewise.
19028         * modules/mbsstr (Depends-on): Likewise.
19029         * modules/mbscasestr (Depends-on): Likewise.
19030
19031 2007-02-11  Bruno Haible  <bruno@clisp.org>
19032
19033         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
19034
19035         * modules/mbsspn-tests: New file.
19036         * tests/test-mbsspn.sh: New file.
19037         * tests/test-mbsspn.c: New file.
19038
19039 2007-02-11  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
19042
19043         * modules/mbspbrk-tests: New file.
19044         * tests/test-mbspbrk.sh: New file.
19045         * tests/test-mbspbrk.c: New file.
19046
19047 2007-02-11  Bruno Haible  <bruno@clisp.org>
19048
19049         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
19050         unneeded cast.
19051
19052         * modules/mbscspn-tests: New file.
19053         * tests/test-mbscspn.sh: New file.
19054         * tests/test-mbscspn.c: New file.
19055
19056 2007-02-11  Bruno Haible  <bruno@clisp.org>
19057
19058         * modules/mbscasecmp-tests: New file.
19059         * tests/test-mbscasecmp.sh: New file.
19060         * tests/test-mbscasecmp.c: New file.
19061
19062 2007-02-11  Bruno Haible  <bruno@clisp.org>
19063
19064         Ensure O(n) worst-case complexity of mbscasestr.
19065         * lib/mbscasestr.c: Include stdbool.h.
19066         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19067         functions.
19068         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
19069         the bookkeeping indicates that it's worth it.
19070         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
19071
19072         * modules/mbscasestr-tests: New file.
19073         * tests/test-mbscasestr1.c: New file.
19074         * tests/test-mbscasestr2.sh: New file.
19075         * tests/test-mbscasestr2.c: New file.
19076         * tests/test-mbscasestr3.sh: New file.
19077         * tests/test-mbscasestr3.c: New file.
19078         * tests/test-mbscasestr4.sh: New file.
19079         * tests/test-mbscasestr4.c: New file.
19080         * m4/locale-tr.m4: New file.
19081
19082 2007-02-11  Bruno Haible  <bruno@clisp.org>
19083
19084         Ensure O(n) worst-case complexity of mbsstr.
19085         * lib/mbsstr.c: Include stdbool.h.
19086         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19087         functions.
19088         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
19089         bookkeeping indicates that it's worth it.
19090         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
19091
19092         * modules/mbsstr-tests: New file.
19093         * tests/test-mbsstr1.c: New file.
19094         * tests/test-mbsstr2.sh: New file.
19095         * tests/test-mbsstr2.c: New file.
19096         * tests/test-mbsstr3.sh: New file.
19097         * tests/test-mbsstr3.c: New file.
19098         * m4/locale-fr.m4: New file.
19099
19100 2007-02-11  Bruno Haible  <bruno@clisp.org>
19101
19102         * lib/mbsrchr.c (mbsrchr): Fix bug.
19103
19104         * modules/mbsrchr-tests: New file.
19105         * tests/test-mbsrchr.sh: New file.
19106         * tests/test-mbsrchr.c: New file.
19107
19108 2007-02-11  Bruno Haible  <bruno@clisp.org>
19109
19110         * lib/mbschr.c (mbschr): Fix bug.
19111
19112         * modules/mbschr-tests: New file.
19113         * tests/test-mbschr.sh: New file.
19114         * tests/test-mbschr.c: New file.
19115         * m4/locale-zh.m4: New file.
19116
19117 2007-02-11  Bruno Haible  <bruno@clisp.org>
19118
19119         Support for copying multibyte string iterators.
19120         * lib/mbiter.h: Include <string.h>.
19121         (mbiter_multi_copy): New function.
19122         (mbi_copy): New macro.
19123         * lib/mbuiter.h: Include <string.h>.
19124         (mbuiter_multi_copy): New function.
19125         (mbui_copy): New macro.
19126
19127 2007-02-11  Bruno Haible  <bruno@clisp.org>
19128
19129         New module mbslen.
19130         * modules/mbslen: New file.
19131         * lib/mbslen.c: New file.
19132         * lib/string_.h (mbslen): New declaration.
19133         * m4/mbslen.m4: New file.
19134         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19135         GNULIB_MBSLEN.
19136         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19137         * MODULES.html.sh (Internationalization functions): Add mbslen.
19138
19139 2007-02-11  Bruno Haible  <bruno@clisp.org>
19140
19141         Ensure O(n) worst-case complexity of strcasestr substitute.
19142         * lib/strcasestr.c: Include stdbool.h.
19143         (knuth_morris_pratt): New function.
19144         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19145         bookkeeping indicates that it's worth it.
19146         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19147
19148         * modules/strcasestr-tests: New file.
19149         * tests/test-strcasestr.c: New file.
19150
19151 2007-02-11  Bruno Haible  <bruno@clisp.org>
19152
19153         Ensure O(n) worst-case complexity of c_strcasestr.
19154         * lib/c-strcasestr.c: Include stdbool.h, string.h.
19155         (knuth_morris_pratt): New function.
19156         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19157         the bookkeeping indicates that it's worth it.
19158         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19159
19160         * modules/c-strcasestr-tests: New file.
19161         * tests/test-c-strcasestr.c: New file.
19162
19163 2007-02-11  Bruno Haible  <bruno@clisp.org>
19164
19165         Ensure O(n) worst-case complexity of c_strstr.
19166         * lib/c-strstr.c: Include stdbool.h, string.h.
19167         (knuth_morris_pratt): New function.
19168         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19169         bookkeeping indicates that it's worth it.
19170         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19171
19172         * lib/c-strstr.c: Complete rewrite for maintainability.
19173
19174         * modules/c-strstr-tests: New file.
19175         * tests/test-c-strstr.c: New file.
19176
19177 2007-02-11  Bruno Haible  <bruno@clisp.org>
19178
19179         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
19180         5.2.1 and earlier, whereby \055 was treated just like the range
19181         delimiter '-'.
19182         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19183
19184 2007-02-08  Bruno Haible  <bruno@clisp.org>
19185
19186         * modules/regex (Depends-on): Add stdbool.
19187         Reported by Dalibor Topic <robilad@kaffe.org>.
19188
19189 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19190
19191         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
19192         Prefer returning from main to exiting from it.
19193         Remove unnecessary parens after sizeof.
19194
19195 2007-02-05  Bruno Haible  <bruno@clisp.org>
19196
19197         New module mbssep.
19198         * modules/mbssep: New file.
19199         * lib/mbssep.c: New file.
19200         * lib/string_.h (strsep): Add a conditional link warning.
19201         (mbssep): New declaration.
19202         * m4/mbssep.m4: New file.
19203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19204         GNULIB_MBSSEP.
19205         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
19206         * MODULES.html.sh (Internationalization functions): Add mbssep.
19207
19208 2007-02-05  Bruno Haible  <bruno@clisp.org>
19209
19210         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
19211         Optimize search in case of 1 delimiter.
19212
19213 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19214
19215         * lib/acl.h: Include sys/types.h before sys/acl.h.
19216
19217 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19218
19219         Merge upstream fix for glibc bugzilla #3957:
19220
19221         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
19222
19223         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
19224         bit for RE_HAT_LISTS_NOT_NEWLINE.
19225         (build_charclass_op): Remove bogus comment.
19226
19227 2007-02-05  Simon Josefsson  <simon@josefsson.org>
19228
19229         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
19230
19231 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19232
19233         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
19234         * lib/memmem.c [!defined _LIBC]: Include config.h.
19235
19236 2007-02-04  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
19239         warning message.
19240
19241 2007-02-04  Bruno Haible  <bruno@clisp.org>
19242
19243         New module mbstok_r.
19244         * modules/mbstok_r: New file.
19245         * lib/mbstok_r.c: New file.
19246         * lib/string_.h (strtok_r): Change argument names to match the
19247         comments. Add a conditional link warning.
19248         (mbstok_r): New declaration.
19249         * m4/mbstok_r.m4: New file.
19250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19251         GNULIB_MBSTOK_R.
19252         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19253         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19254
19255 2007-02-04  Bruno Haible  <bruno@clisp.org>
19256
19257         New module mbsspn.
19258         * modules/mbsspn: New file.
19259         * lib/mbsspn.c: New file.
19260         * lib/string_.h (strspn): Add a conditional link warning.
19261         (mbsspn): New declaration.
19262         * m4/mbsspn.m4: New file.
19263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19264         GNULIB_MBSSPN.
19265         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19266         * MODULES.html.sh (Internationalization functions): Add mbsspn.
19267
19268 2007-02-04  Bruno Haible  <bruno@clisp.org>
19269
19270         New module mbspbrk.
19271         * modules/mbspbrk: New file.
19272         * lib/mbspbrk.c: New file.
19273         * lib/string_.h (strpbrk): Add a conditional link warning.
19274         (mbspbrk): New declaration.
19275         * m4/mbspbrk.m4: New file.
19276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19277         GNULIB_MBSPBRK.
19278         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19279         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19280
19281 2007-02-04  Bruno Haible  <bruno@clisp.org>
19282
19283         New module mbscspn.
19284         * modules/mbscspn: New file.
19285         * lib/mbscspn.c: New file.
19286         * lib/string_.h (strcspn): Add a conditional link warning.
19287         (mbscspn): New declaration.
19288         * m4/mbscspn.m4: New file.
19289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19290         GNULIB_MBSCSPN.
19291         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19292         * MODULES.html.sh (Internationalization functions): Add mbscspn.
19293
19294 2007-02-04  Bruno Haible  <bruno@clisp.org>
19295
19296         New module mbscasestr, reduced goal of strcasestr.
19297         * modules/mbscasestr: New file.
19298         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19299         (mbscasestr): Renamed from strcasestr.
19300         * lib/strcasestr.c: Don't include mbuiter.h.
19301         (strcasestr): Remove support for multibyte locales.
19302         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19303         Change the conditional link warning.
19304         (mbscasestr): New declaration.
19305         * m4/mbscasestr.m4: New file.
19306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19307         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19308         REPLACE_STRCASESTR.
19309         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19311         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19312         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19313         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19314         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19315         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19316         (Depends-on): Remove mbuiter.
19317         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19318
19319 2007-02-04  Bruno Haible  <bruno@clisp.org>
19320
19321         Simplify handling of strncasecmp.
19322         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19323         the conditional link warning.
19324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19325         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19326         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19327         * modules/strcase (configure.ac): Don't invoke
19328         gl_STRING_MODULE_INDICATOR.
19329         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19330
19331 2007-02-04  Bruno Haible  <bruno@clisp.org>
19332
19333         New module mbscasecmp, reduced goal of strcasecmp.
19334         * modules/mbscasecmp: New file.
19335         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19336         (mbscasecmp): Renamed from strcasecmp.
19337         * lib/strcasecmp.c: Don't include mbuiter.h.
19338         (strcasecmp): Remove support for multibyte locales.
19339         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19340         Change the conditional link warning.
19341         (mbscasecmp): New declaration.
19342         * m4/mbscasecmp.m4: New file.
19343         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19344         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19345         REPLACE_STRCASECMP.
19346         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19348         GNULIB_MBSCASECMP.
19349         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19350         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19351         * modules/strcase (Files): Remove m4/mbrtowc.m4.
19352         (Depends-on): Remove mbuiter.
19353         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19354
19355 2007-02-04  Bruno Haible  <bruno@clisp.org>
19356
19357         New module mbsstr. Remove module strstr.
19358         * modules/mbsstr: New file.
19359         * modules/strstr: Remove file.
19360         * lib/mbsstr.c: Renamed from lib/strstr.c.
19361         (mbsstr): Renamed from strstr.
19362         * lib/string_.h (strstr): Remove declaration. Change the conditional
19363         link warning.
19364         (mbsstr): New declaration.
19365         * m4/mbsstr.m4: New file.
19366         * m4/strstr.m4: Remove file.
19367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19368         REPLACE_STRSTR.
19369         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19370         Don't initialize GNULIB_STRSTR.
19371         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19372         substitute GNULIB_STRSTR and REPLACE_STRSTR.
19373         * MODULES.html.sh (Internationalization functions): Add mbsstr.
19374         (Support for systems lacking ANSI C 89): Remove strstr.
19375
19376 2007-02-04  Bruno Haible  <bruno@clisp.org>
19377
19378         New module mbsrchr.
19379         * modules/mbsrchr: New file.
19380         * lib/mbsrchr.c: New file.
19381         * lib/string_.h (strrchr): Add a conditional link warning.
19382         (mbsrchr): New declaration.
19383         * m4/mbsrchr.m4: New file.
19384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19385         GNULIB_MBSRCHR.
19386         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19387         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19388
19389 2007-02-04  Bruno Haible  <bruno@clisp.org>
19390
19391         New module mbschr.
19392         * modules/mbschr: New file.
19393         * lib/mbschr.c: New file.
19394         * lib/string_.h (strchr): Add a conditional link warning.
19395         (mbschr): New declaration.
19396         * m4/mbschr.m4: New file.
19397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19398         GNULIB_MBSCHR.
19399         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19400         * MODULES.html.sh (Internationalization functions): Add mbschr.
19401
19402 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19403
19404         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19405
19406         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19407
19408 2007-02-04  Bruno Haible  <bruno@clisp.org>
19409
19410         New module description section 'configure.ac-early'.
19411         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19412         (func_get_autoconf_early_snippet): New function.
19413         (func_import, func_create_testdir): Use it. Remove special cases for
19414         modules 'extensions' and 'lock'.
19415         * modules/extensions (configure.ac-early): Require
19416         gl_USE_SYSTEM_EXTENSIONS.
19417         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19418
19419 2007-02-04  Bruno Haible  <bruno@clisp.org>
19420
19421         Make use of gcj-4.3's -fsource and -ftarget option.
19422         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19423         and if so try the options -fsource and -ftarget.
19424         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19425         source_version, ftarget_option, target_version arguments.
19426         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19427         (is_envjavac_oldgcj_14_14_usable): Renamed from
19428         is_envjavac_gcj_14_14_usable.
19429         (is_envjavac_oldgcj_14_13_usable): Renamed from
19430         is_envjavac_gcj_14_13_usable.
19431         (is_gcj_present): Update.
19432         (is_gcj_43, is_gcj43_usable): New functions.
19433         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19434         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19435         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19436         try the options -fsource and -ftarget.
19437
19438 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19439
19440         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19441         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
19442         larger value.
19443
19444 2007-02-03  Jim Meyering  <jim@meyering.net>
19445
19446         Give tools a better chance to allocate space for very large buffers.
19447         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19448
19449         Make pwd and readlink work also when run with an unreadable parent dir
19450         on systems with openat support.
19451         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19452         provided getcwd function, even when we have openat support.
19453         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19454
19455 2007-02-02  Bruno Haible  <bruno@clisp.org>
19456
19457         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19458         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19459         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19460         portability problems if one of these functions is only used on specific
19461         platforms.
19462         Reported by Paul Eggert.
19463
19464 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19465
19466         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19467         is causing more trouble than it's curing.
19468         * lib/regex_internal.h (__mempcpy): Remove.
19469         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19470         (and make the code a tad smaller to boot).
19471         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19472
19473 2007-02-02  Jim Meyering  <jim@meyering.net>
19474
19475         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19476         section, not in the Makefile.am: one.
19477
19478 2007-02-02  Eric Blake  <ebb9@byu.net>
19479
19480         * lib/strchrnul.c: Always include config.h first.
19481
19482         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19483         gnulib strstr is not necessary here.
19484
19485 2007-02-02  Simon Josefsson  <simon@josefsson.org>
19486
19487         * m4/socklen.m4: Fix typo.
19488
19489 2007-02-02  Eric Blake  <ebb9@byu.net>
19490
19491         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19492         * modules/netinet_in (Makefile.am): Likewise.
19493
19494 2007-02-01  Bruno Haible  <bruno@clisp.org>
19495
19496         * lib/string_.h (GL_LINK_WARNING): New macro.
19497         (strcasecmp, strstr, strcasestr): If provided by the system,
19498         conditionally define as a macro that leads to a warning instead of to
19499         an error.
19500         (strncasecmp): Conditionally define as a macro that leads to a warning.
19501
19502 2007-02-01  Karl Berry  <karl@gnu.org>
19503
19504         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19505
19506 2007-02-01  Bruno Haible  <bruno@clisp.org>
19507
19508         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19509         renamings.
19510
19511 2007-02-01  Eric Blake  <ebb9@byu.net>
19512
19513         * modules/regex (Depends-on): Revert dependence on mempcpy.
19514         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19515         module's definition of mempcpy.
19516         Reported by Paul Eggert.
19517
19518 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19519
19520         * lib/string_.h: If the gnulib module XYZ is not present, undefine
19521         the symbol XYZ before redefining it.  This fixes a problem with
19522         programs that don't use XYZ, when compiled on systems that define
19523         XYZ to something else.
19524
19525 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19526
19527         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19528         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19529         writeable to group or other and (2) is intended to have a special
19530         mode bit that is set or cleared.  In such a case, the directory
19531         should be neither group- nor other-writeable until the special
19532         mode bits are right.
19533
19534 2007-01-31  Eric Blake  <ebb9@byu.net>
19535
19536         * modules/mountlist (Depends-on): Add strstr.
19537
19538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19539         bug.
19540         * modules/string (Makefile.am): Remove redundant replacement.
19541         * modules/regex (Depends-on): Add mempcpy.
19542
19543 2007-01-31  Bruno Haible  <bruno@clisp.org>
19544
19545         New module description field 'Link'.
19546         * gnulib-tool (func_usage): Document --extract-link-directive.
19547         (sed_extract_prog): Recognize 'Link' directive.
19548         (func_get_link_directive): New function.
19549         (func_import): Show summary of link directives.
19550         Handle --extract-link-directive option.
19551         * modules/acl (Link): New section.
19552         * modules/clock-time (Link): New section.
19553         * modules/euidaccess (Link): New section.
19554         * modules/gettext (Link): New section.
19555         * modules/iconv (Link): New section.
19556         * modules/lock (Link): New section.
19557         * modules/nanosleep (Link): New section.
19558         * modules/readline (Link): New section.
19559
19560 2007-01-27  Bruno Haible  <bruno@clisp.org>
19561
19562         Enforce the use of gnulib modules for unportable <string.h> functions.
19563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19565         (gl_HEADER_STRING_H_BODY): Require it.
19566         * lib/string_.h: If the gnulib module XYZ is not present, redefine
19567         the symbol XYZ to one that gives a link error.
19568         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19569         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19570         * modules/mempcpy (configure.ac): Likewise.
19571         * modules/memrchr (configure.ac): Likewise.
19572         * modules/stpcpy (configure.ac): Likewise.
19573         * modules/stpncpy (configure.ac): Likewise.
19574         * modules/strcase (configure.ac): Likewise.
19575         * modules/strcasestr (configure.ac): Likewise.
19576         * modules/strchrnul (configure.ac): Likewise.
19577         * modules/strdup (configure.ac): Likewise.
19578         * modules/strndup (configure.ac): Likewise.
19579         * modules/strnlen (configure.ac): Likewise.
19580         * modules/strpbrk (configure.ac): Likewise.
19581         * modules/strsep (configure.ac): Likewise.
19582         * modules/strstr (configure.ac): Likewise.
19583         * modules/strtok_r (configure.ac): Likewise.
19584
19585 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
19586
19587         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19588
19589 2007-01-30  Jim Meyering  <jim@meyering.net>
19590
19591         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19592
19593 2007-01-29  Bruno Haible  <bruno@clisp.org>
19594
19595         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19596         * lib/execute.c: Likewise.
19597         * lib/pipe.c: Likewise.
19598         * lib/printf-args.h: Likewise.
19599         * lib/printf-args.c: Likewise.
19600         * lib/printf-parse.c: Likewise.
19601         * lib/vasnprintf.c: Likewise.
19602
19603 2007-01-29  Eric Blake  <ebb9@byu.net>
19604
19605         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19606         declaration.
19607
19608 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19609
19610         * lib/strptime.h (strptime): Use 'restrict' for args where
19611         POSIX requires this.
19612         * lib/strptime.c (strptime): Likewise.
19613         Change license notice from LGPL to GPL, since gnulib-tool will
19614         change this as needed.
19615         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19616         defined.
19617         Include "strptime.h" first, to check interface.
19618         Do not #undef _LIBC and _NL_CURRENT.
19619         Do not include <stdlib.h>; no longer needed.
19620         Include "time_r.h" and declare ptime_locale_status
19621         only if _LIBC is not defined.
19622         (__P): Remove unused macro.
19623         (match_string): Bring back glibc version, but use it only if _LIBC
19624         is defined.
19625         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19626         Remove unnecessary assertion and abort() call.
19627         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19628         * m4/strptime.m4: Fix serial number comment.
19629         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19630         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19631         (Depends-on): Add time_r.
19632
19633 2007-01-29  Bruno Haible  <bruno@clisp.org>
19634
19635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19636         strptime.
19637         * modules/strptime (Depends-on): Add stdbool.
19638         * lib/strptime.h: Include <time.h> always. Add comments.
19639
19640 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19641
19642         * modules/strptime: New file.
19643         * lib/strptime.h: New file.
19644         * lib/strptime.c: New file.
19645         * m4/strptime.m4: New file.
19646
19647 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19648
19649         * MODULES.html.sh: New module mpsort.
19650         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19651
19652         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19653         a circularity problem with HP-UX ia64 reported by Bob Proulx in
19654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19655         All uses changed.
19656         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19657         All uses changed.
19658         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19659         to _Restrict_.
19660         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19661         the parameter matches the prototype.
19662
19663 2007-01-28  Jim Meyering  <jim@meyering.net>
19664
19665         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19666         sys/time.h here, reverting that part of the previous patch:
19667         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19668
19669 2007-01-28  Bruno Haible  <bruno@clisp.org>
19670
19671         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19672         value of $(SYS_TIME_H).
19673         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19674         remove it conditionally, too. [added by Jim Meyering]
19675         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19676         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19677         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19678         GETTIMEOFDAY_REPLACEMENT to 1.
19679
19680 2007-01-28  Bruno Haible  <bruno@clisp.org>
19681
19682         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19683         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19685         Set UNISTD_H instead of UNISTD_H2.
19686         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19687
19688 2007-01-28  Bruno Haible  <bruno@clisp.org>
19689
19690         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19691         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19692
19693 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19694
19695         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19696         (func_create_testdir): Ensure C locale for `grep' and `tr'
19697         character ranges.
19698         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
19699         ACLOCAL_AMFLAGS parsing state machine.
19700
19701 2007-01-27  Bruno Haible  <bruno@clisp.org>
19702
19703         * modules/unistr/base: Update.
19704
19705 2007-01-27  Bruno Haible  <bruno@clisp.org>
19706
19707         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19708         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19709         * modules/unistr/u32-mbtouc-unsafe: Renamed from
19710         modules/unistr/u32-mbtouc.
19711         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19712         * lib/unistr.h: Update.
19713         * lib/linebreak.c: Update.
19714         * modules/unistr/u32-mbtouc: Renamed from
19715         modules/unistr/u32-mbtouc-safe.
19716         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19717         * lib/unistr.h: Update.
19718         * lib/unistr/u32-to-u8.c: Update.
19719         * lib/unistr/u32-to-u16.c: Update.
19720
19721 2007-01-27  Bruno Haible  <bruno@clisp.org>
19722
19723         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19724         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19725         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19726         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19727         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19728         * modules/unistr/u16-mbtouc-unsafe: Renamed from
19729         modules/unistr/u16-mbtouc.
19730         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19731         * lib/unistr.h: Update.
19732         * lib/linebreak.c: Update.
19733         * modules/linebreak: Update.
19734         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19735         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19736         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19737         * modules/unistr/u16-mbtouc: Renamed from
19738         modules/unistr/u16-mbtouc-safe.
19739         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19740         * lib/unistr.h: Update.
19741         * lib/unistr/u16-to-u8.c: Update.
19742         * modules/unistr/u16-to-u8: Update.
19743         * lib/unistr/u16-to-u32.c: Update.
19744         * modules/unistr/u16-to-u32: Update.
19745
19746 2007-01-27  Bruno Haible  <bruno@clisp.org>
19747
19748         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19749         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19750         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19751         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19752         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19753         * modules/unistr/u8-mbtouc-unsafe: Renamed from
19754         modules/unistr/u8-mbtouc.
19755         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19756         * lib/unistr.h: Update.
19757         * lib/striconveh.c: Update.
19758         * modules/striconveh: Update.
19759         * lib/linebreak.c: Update.
19760         * modules/linebreak: Update.
19761         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19762         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19763         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19764         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19765         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19766         * lib/unistr.h: Update.
19767         * lib/striconveh.c: Update.
19768         * modules/striconveh: Update.
19769         * lib/unistr/u8-to-u16.c: Update.
19770         * modules/unistr/u8-to-u16: Update.
19771         * lib/unistr/u8-to-u32.c: Update.
19772         * modules/unistr/u8-to-u32: Update.
19773
19774 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19775
19776         Sync from Libtool.
19777         * lib/argz.c: Do not include strings.h nor memory.h, include
19778         string.h unconditionally.  Patch by Simon Josefsson.
19779
19780 2007-01-27  Bruno Haible  <bruno@clisp.org>
19781
19782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19783         from gl_HEADER_STRING_H_BODY.
19784         (gl_HEADER_STRING_H_BODY): Require it.
19785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19786         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19787         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19788         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19789         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19790         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19792         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19793         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19795         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19796         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19797         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19798         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19799         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19800
19801 2007-01-27  Bruno Haible  <bruno@clisp.org>
19802
19803         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19804         check_PROGRAMS into noinst_PROGRAMS.
19805         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19806         check_PROGRAMS in this case.
19807         (func_import): Set for_test to false.
19808         (func_create_testdir): Set for_test to true.
19809
19810 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19811             Bruno Haible  <bruno@clisp.org>
19812
19813         * modules/strcasestr (Files): Remove lib/strcasestr.h.
19814         (Depends-on): Add string.
19815         (Includes): Use <string.h> instead of strcasestr.h.
19816         * modules/string (Makefile.am): Also substitute the value of
19817         REPLACE_STRCASESTR.
19818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19819         assume strcasestr is declared in <string.h> not <strings.h>. Also
19820         set REPLACE_STRCASESTR.
19821         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19822         REPLACE_STRCASESTR.
19823         * lib/strcasestr.h: Remove file.
19824         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19825         * lib/string_.h (strcasestr): New declaration.
19826
19827 2007-01-27  Bruno Haible  <bruno@clisp.org>
19828
19829         * lib/string_.h: Use 'extern'.
19830
19831 2007-01-27  Jim Meyering  <jim@meyering.net>
19832
19833         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19834         of set-but-not-used local, "q".
19835
19836         * lib/mempcpy.c: Include <config.h> before <string.h>.
19837         This fixes a compilation error on HP-UX, due to the system's
19838         "restrict"-using mempcpy prototype.
19839
19840 2007-01-26  Bruno Haible  <bruno@clisp.org>
19841
19842         Small optimization.
19843         * lib/javacomp.c: Include c-strstr.h.
19844          (is_envjavac_gcj): Use c_strstr instead of strstr.
19845         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19846
19847 2007-01-26  Bruno Haible  <bruno@clisp.org>
19848
19849         * MODULES.html.sh (Unicode string functions): Add the new modules.
19850
19851         * modules/uniconv/u32-strconv-to-locale: New file.
19852         * lib/uniconv/u32-strconv-to-locale.c: New file.
19853
19854         * modules/uniconv/u16-strconv-to-locale: New file.
19855         * lib/uniconv/u16-strconv-to-locale.c: New file.
19856
19857         * modules/uniconv/u8-strconv-to-locale: New file.
19858         * lib/uniconv/u8-strconv-to-locale.c: New file.
19859
19860         * modules/uniconv/u32-strconv-from-locale: New file.
19861         * lib/uniconv/u32-strconv-from-locale.c: New file.
19862
19863         * modules/uniconv/u16-strconv-from-locale: New file.
19864         * lib/uniconv/u16-strconv-from-locale.c: New file.
19865
19866         * modules/uniconv/u8-strconv-from-locale: New file.
19867         * lib/uniconv/u8-strconv-from-locale.c: New file.
19868
19869         * modules/uniconv/u32-strconv-to-enc: New file.
19870         * lib/uniconv/u32-strconv-to-enc.c: New file.
19871         * modules/uniconv/u32-strconv-to-enc-tests: New file.
19872         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19873
19874         * modules/uniconv/u16-strconv-to-enc: New file.
19875         * lib/uniconv/u16-strconv-to-enc.c: New file.
19876         * lib/uniconv/u-strconv-to-enc.h: New file.
19877         * modules/uniconv/u16-strconv-to-enc-tests: New file.
19878         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19879
19880         * modules/uniconv/u8-strconv-to-enc: New file.
19881         * lib/uniconv/u8-strconv-to-enc.c: New file.
19882         * modules/uniconv/u8-strconv-to-enc-tests: New file.
19883         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19884
19885         * modules/uniconv/u32-strconv-from-enc: New file.
19886         * lib/uniconv/u32-strconv-from-enc.c: New file.
19887         * modules/uniconv/u32-strconv-from-enc-tests: New file.
19888         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19889
19890         * modules/uniconv/u16-strconv-from-enc: New file.
19891         * lib/uniconv/u16-strconv-from-enc.c: New file.
19892         * modules/uniconv/u16-strconv-from-enc-tests: New file.
19893         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19894
19895         * modules/uniconv/u8-strconv-from-enc: New file.
19896         * lib/uniconv/u8-strconv-from-enc.c: New file.
19897         * lib/uniconv/u-strconv-from-enc.h: New file.
19898         * modules/uniconv/u8-strconv-from-enc-tests: New file.
19899         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19900
19901         * modules/uniconv/u32-conv-from-enc: New file.
19902         * lib/uniconv/u32-conv-from-enc.c: New file.
19903         * modules/uniconv/u32-conv-from-enc-tests: New file.
19904         * tests/uniconv/test-u32-conv-from-enc.c: New file.
19905
19906         * modules/uniconv/u16-conv-from-enc: New file.
19907         * lib/uniconv/u16-conv-from-enc.c: New file.
19908         * lib/uniconv/u-conv-from-enc.h: New file.
19909         * modules/uniconv/u16-conv-from-enc-tests: New file.
19910         * tests/uniconv/test-u16-conv-from-enc.c: New file.
19911
19912         * modules/uniconv/u8-conv-from-enc: New file.
19913         * lib/uniconv/u8-conv-from-enc.c: New file.
19914         * modules/uniconv/u8-conv-from-enc-tests: New file.
19915         * tests/uniconv/test-u8-conv-from-enc.c: New file.
19916
19917         * modules/uniconv/base: New file.
19918         * lib/uniconv.h: New file.
19919
19920 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19921
19922         * doc/gnulib-tool.texi (Initial import): Update to match current
19923         behavior with strdup module.
19924         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19925         * lib/memmem.h: Remove; all uses removed.  This is now done
19926         by <string.h>.
19927         * lib/mempcpy.h: Likewise.
19928         * lib/memrchr.h: Likewise.
19929         * lib/stpcpy.h: Likewise.
19930         * lib/stpncpy.h: Likewise.
19931         * lib/strcase.h: Likewise.
19932         * lib/strchrnul.h: Likewise.
19933         * lib/strdup.h: Likewise.
19934         * lib/strndup.h: Likewise.
19935         * lib/strnlen.h: Likewise.
19936         * lib/strpbrk.h: Likewise.
19937         * lib/strsep.h: Likewise.
19938         * lib/strstr.h: Likewise.
19939         * lib/strtok_r.h: Likewise.
19940         * lib/string_.h: New file.
19941         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19942         Rely on <string.h> instead.
19943         * lib/canon-host.c: Likewise.
19944         * lib/chdir-long.c: Likewise.
19945         * lib/concatpath.c: Likewise.
19946         * lib/exclude.c: Likewise.
19947         * lib/fchdir.c: Likewise.
19948         * lib/getaddrinfo.c: Likewise.
19949         * lib/getcwd.c: Likewise.
19950         * lib/getsubopt.c: Likewise.
19951         * lib/glob.c: Likewise.
19952         * lib/hard-locale.c: Likewise.
19953         * lib/iconvme.c: Likewise.
19954         * lib/javacomp.c: Likewise.
19955         * lib/mempcpy.c: Likewise.
19956         * lib/memrchr.c: Likewise.
19957         * lib/regex_internal.h: Likewise.
19958         * lib/stpncpy.c: Likewise.
19959         * lib/strcasecmp.c: Likewise.
19960         * lib/strchrnul.c: Likewise.
19961         * lib/strdup.c: Likewise.
19962         * lib/striconv.c: Likewise.
19963         * lib/striconveh.c: Likewise.
19964         * lib/striconveha.c: Likewise.
19965         * lib/strncasecmp.c: Likewise.
19966         * lib/strndup.c: Likewise.
19967         * lib/strnlen.c: Likewise.
19968         * lib/strsep.c: Likewise.
19969         * lib/strstr.c: Likewise.
19970         * lib/strtok_r.c: Likewise.
19971         * lib/userspec.c: Likewise.
19972         * lib/w32spawn.h: Likewise.
19973         * lib/xstrndup.c: Likewise.
19974         * lib/mountlist.c (strstr): Remove decl.
19975         * m4/string_h.m4: New file.
19976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19977         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19978         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19979         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19980         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19981         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19982         Set REPLACE_STRCASECMP if necessary.
19983         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19984         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19985         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19986         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19987         HAVE_DECL_STRDUP if necessary.
19988         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19989         since gl_FUNC_STRNDUP does that now.
19990         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19991         Check for decl here...
19992         (gl_PREREQ_STRNLEN): ... not here.
19993         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19994         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19995         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19996         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19997         necessary.
19998         * modules/string: New file.
19999         * modules/memmem (Files): Remove special-purpose include file.
20000         (Depends-on): Add string.
20001         (Include): Include <string.h>, not the removed file.
20002         * modules/mempcpy: Likewise.
20003         * modules/memrchr: Likewise.
20004         * modules/stpcpy: Likewise.
20005         * modules/stpncpy: Likewise.
20006         * modules/strcase: Likewise.
20007         * modules/strchrnul: Likewise.
20008         * modules/strdup: Likewise.
20009         * modules/strndup: Likewise.
20010         * modules/strnlen: Likewise.
20011         * modules/strpbrk: Likewise.
20012         * modules/strsep: Likewise.
20013         * modules/strstr: Likewise.
20014         * modules/strtok_r: Likewise.
20015         * tests/test-dirname.c: Don't include "strdup.h", since
20016         <string.h> now suffices.
20017         * tests/test-memmem.c: Don't include "memmem.h", since
20018         <string.h> now suffices.
20019
20020 2007-01-25  Bruno Haible  <bruno@clisp.org>
20021
20022         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
20023         *resultp is 0.
20024
20025         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
20026         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
20027         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
20028         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
20029
20030         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
20031         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
20032         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
20033         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
20034         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
20035         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
20036
20037 2007-01-24  Bruno Haible  <bruno@clisp.org>
20038
20039         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
20040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
20041         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
20042         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
20043         gl_FUNC_FTS_CORE.
20044         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
20045         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
20046         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20047         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
20048         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
20049         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
20050         gl_FUNC_FCHOWNAT.
20051         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
20052         gl_FUNC_STRFTIME.
20053         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
20054         Reported by Ralf Wildenhues.
20055
20056 2007-01-24  Bruno Haible  <bruno@clisp.org>
20057
20058         Drop AC_REQUIRE calls that are redundant with the module dependencies.
20059         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
20060         gl_GETADDRINFO.
20061         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
20062         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
20063         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
20064
20065 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20066
20067         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
20068         Don't use 'exit'; just return from 'main'.
20069         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
20070
20071         * lib/fnmatch_.h: Readjust white space and comments to match
20072         glibc, to avoid spurious diffs.
20073
20074 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20075
20076         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
20077         2004-12-01 change by Jakub Jelinek, since this code won't compile
20078         if !LIBC.  Problem reported by Bob Proulx.
20079
20080 2007-01-23  Bruno Haible  <bruno@clisp.org>
20081
20082         * lib/striconveh.c: Include c-strcaseeq.h.
20083         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
20084         * modules/striconveh (Depends-on): Add c-strcaseeq.
20085
20086 2007-01-23  Bruno Haible  <bruno@clisp.org>
20087
20088         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
20089
20090         * modules/c-strcaseeq: New file.
20091         * lib/c-strcaseeq.h: New file.
20092
20093         * modules/streq: New file.
20094         * lib/streq.h: New file.
20095
20096 2007-01-23  Bruno Haible  <bruno@clisp.org>
20097
20098         * modules/striconveha-tests: New file.
20099         * tests/test-striconveha.c: New file.
20100
20101         * lib/striconveha.h: Include <stdbool.h>.
20102         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
20103         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
20104         (mem_iconveha_notranslit): Renamed from mem_iconveha.
20105         (mem_iconveha): New function.
20106         (str_iconveha_notranslit): Renamed from str_iconveha.
20107         (str_iconveha): New function.
20108         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
20109         c-strcase.
20110
20111 2007-01-23  Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20114         encodings without forgiving before trying any encoding with handler.
20115         (str_iconveha): Try all encodings without forgiving before trying any
20116         encoding with handler.
20117
20118 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20119
20120         Import the following changes from libc.
20121
20122         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20123
20124         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20125
20126         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20127
20128         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20129         normal_bracket label.
20130
20131         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
20132
20133         [BZ #361]
20134         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20135         to normal_bracket after fetching the next character.
20136
20137 2007-01-22  Bruno Haible  <bruno@clisp.org>
20138
20139         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20140         argument.
20141         * lib/striconveh.c (iconv_carefully_1): New function.
20142         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20143         argument.
20144         (str_cd_iconveh): Update.
20145         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20146         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20147         * tests/test-striconveh.c (MAGIC): New macro.
20148         (new_offsets): New function.
20149         (main): Test call with and without offsets.
20150
20151 2007-01-22  Bruno Haible  <bruno@clisp.org>
20152
20153         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20154         * modules/sys_select (Makefile.am): Likewise.
20155         * modules/sys_socket (Makefile.am): Likewise.
20156         * modules/sys_time (Makefile.am): Likewise.
20157
20158 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         * modules/gettimeofday (License): Change from GPL to LGPL, since
20161         gettimeofday is a library function.
20162
20163 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20164
20165         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20166
20167 2007-01-21  Bruno Haible  <bruno@clisp.org>
20168
20169         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20170
20171 2007-01-21  Bruno Haible  <bruno@clisp.org>
20172
20173         * modules/striconveha: New file.
20174         * lib/striconveha.h: New file.
20175         * lib/striconveha.c: New file.
20176         * MODULES.html.sh (Internationalization functions): Add striconveha.
20177         * lib/striconv.c (str_iconv): Optimize the case of an empty input
20178         string.
20179         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
20180
20181 2007-01-21  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
20184         * lib/striconveh.c (str_iconveh): Likewise.
20185
20186 2007-01-21  Bruno Haible  <bruno@clisp.org>
20187
20188         * lib/striconveh.h (mem_iconveh): New declaration.
20189         * lib/striconveh.c (mem_iconveh): New function.
20190         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
20191
20192 2007-01-21  Bruno Haible  <bruno@clisp.org>
20193
20194         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
20195
20196         * lib/striconveh.h (mem_cd_iconveh): Change specification.
20197         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
20198         original result buffer.
20199         (str_cd_iconveh): Update.
20200         * tests/test-striconveh.c (main): Update.
20201
20202         * lib/striconv.h (mem_cd_iconv): Change specification.
20203         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
20204         result buffer.
20205         (str_cd_iconv): Update.
20206         * tests/test-striconv.c (main): Update.
20207
20208 2007-01-21  Bruno Haible  <bruno@clisp.org>
20209
20210         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
20211
20212 2007-01-20  Jim Meyering  <jim@meyering.net>
20213
20214         * lib/userspec.c (parse_with_separator): If a user or group string
20215         starts with "+", skip the corresponding name-to-ID look-up, since
20216         such a look-up must fail: user and group names may not include "+".
20217
20218 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20219
20220         * lib/poll.c: Include sys/time.h and time.h unconditionally,
20221         since we now assume the sys_time module.
20222         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
20223         check for sys/time.h; no longer needed.
20224         * modules/poll (Depends-on): Depend on sys_time.
20225
20226 2007-01-18  Bruno Haible  <bruno@clisp.org>
20227
20228         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
20229         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20230
20231         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
20232         gettimeofday.
20233
20234         * tests/test-gettimeofday.c: Include <time.h>.
20235         (dummy): Remove variable.
20236
20237         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
20238         gl_HEADER_SYS_TIME_H.
20239         (gl_HEADER_SYS_TIME_H): New macro.
20240
20241         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
20242         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20244         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20245         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
20247         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
20248         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20249         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20250         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20251         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20252
20253         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20254         last change; it caused a compilation error when cross-compiling to
20255         Cygwin.
20256
20257 2007-01-18  Jim Meyering  <jim@meyering.net>
20258
20259         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20260         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20261         than the race-prone "test -d sys || mkdir sys".
20262         (configure.ac): Use AC_PROG_MKDIR_P.
20263         * modules/sys_select: Likewise.
20264         * modules/sys_socket: Likewise.
20265         * modules/sys_time: Likewise.
20266
20267 2007-01-18  Eric Blake  <ebb9@byu.net>
20268
20269         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20270         replace gettimeofday.
20271         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20272         name, to avoid infinite recursion.
20273
20274 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20277         module sys_time.
20278         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20279         assume timespec.h defines struct timeval.
20280         * lib/settime.c: Likewise.
20281         * lib/utimens.c: Likewise.
20282         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20283         since we now assume the gettimeofday module.
20284         * lib/tempname.c (__gen_tempname): Likewise.
20285         * lib/gettimeofday.h: Remove.
20286         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20287         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20288         Include <time.h>, for 'time()'.
20289         (localtime_buffer_addr): Also use this workaround if
20290         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
20291         to simplify the uses.  All uses changed.
20292         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20293         that #undef is inside {}, and 'const' follows type name consistently.
20294         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20295         (gettimeofday): Do not use the maximum possible value for
20296         tv->tv_usec, since that might break usages other than ls.c.
20297         Instead, we'll leave ls.c alone.  This undoes today's patch
20298         by Bruno.  Add a compile-time warning for 1s-clock resolution;
20299         we've never observed the problem but might as well keep the
20300         canary.
20301         * lib/nanosleep.c: Include timespec.h first, for interface check.
20302         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20303         now assume the sys_time module.
20304         * lib/tempname.c: Likewise.
20305         * lib/timespec.h: Likewise.
20306         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20307         needed.
20308         * lib/strftime.c: Likewise.
20309         * lib/timespec.h: Likewise.
20310         * lib/posixtm.c: Include posixtm.h first, for interface check.
20311         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20312         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20313         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20314         * lib/sys_time_.h: New file.
20315         * lib/timespec.h (struct timespec): Use long int, not long.
20316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20317         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20318         Remove obsolescent call to AC_HEADER_TIME.
20319         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20321         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20322         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20323         Likewise.
20324         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20325         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20327         into the sys_time module.  Check for gettimeofday just once.
20328         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
20329         for gettimeofday signature to just check the signature.  Merely
20330         compile it, since linking doesn't test signature.  Improve test for
20331         whether gettimeofday.o is actually needed.
20332         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20333         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
20334         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
20335         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20336         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20337         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20338         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20339         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20340         than worrying about sys/time.h.
20341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20342         Don't bother worrying about TIME_WITH_SYS_TIME.
20343         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20344         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20345         * m4/sys_time_h.m4: New file.
20346         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20347         Don't include sys/time.h.  Return from main rather than exiting.
20348         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20349         all uses changed.
20350         * modules/gethrxtime (Depends-on): Add sys_time.
20351         * modules/gettime (Depends-on): Likewise.
20352         * modules/gettimeofday (Depends-on): Likewise.
20353         * modules/nanosleep (Depends-on): Likewise.
20354         * modules/settime (Depends-on): Likewise.
20355         * modules/tempname (Depends-on): Likewise.
20356         * modules/utimens (Depends-on): Likewise.
20357         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20358         (Include:) Change back to <sys/time.h>.
20359         (Maintainer:) Add self.
20360         * modules/sys_time: New file.
20361         * modules/tempname (Depends-on): Add gettimeofday.
20362         * tests/test-gettimeofday.c: Include <sys/time.h>
20363         rather than gettimeofday.h.
20364
20365 2007-01-17  Bruno Haible  <bruno@clisp.org>
20366
20367         * gnulib-tool (func_get_license): Revert last patch. Instead, let
20368         the license default to GPL.
20369         (func_create_testdir): Don't complain if a module is LGPL and its
20370         tests module depends on GPLed modules.
20371
20372 2007-01-17  Bruno Haible  <bruno@clisp.org>
20373
20374         * lib/gettimeofday.c (gettimeofday): Add code for the case
20375         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20376         maximum possible value for tv->tv_usec, rather than the minimum one.
20377
20378 2005-10-08  Martin Lambers  <marlam@marlam.de>
20379 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20380 2007-01-16  Bruno Haible  <bruno@clisp.org>
20381
20382         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20383         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20384         gl_FUNC_GETTIMEOFDAY.
20385         (Include): Add gettimeofday.h.
20386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20387         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20388         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20389         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20390         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20391         * lib/gettimeofday.h: New file.
20392         * lib/gettimeofday.c: Include <sys/timeb.h>.
20393         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20394         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20395         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20396         fall back on time().
20397
20398         * tests/test-gettimeofday.c: New file.
20399         * modules/gettimeofday-tests: New file.
20400
20401 2007-01-16  Eric Blake  <ebb9@byu.net>
20402
20403         * modules/fnmatch (Depends-on): Depend on wchar.
20404         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20405         * m4/fnmatch.m4: Likewise.
20406         * modules/mbchar (Makefile.am): Assume <wchar.h>.
20407         * m4/mbchar.m4: Likewise.
20408         * modules/mbswidth (Depends-on): Depend on wchar.
20409         * lib/mbswidth.c: Assume <wchar.h>.
20410         * m4/mbswidth.m4: Likewise.
20411         * modules/quotearg (Depends-on): Depend on wchar.
20412         * lib/quotearg.c: Assume <wchar.h>.
20413         * m4/quotearg.m4: Likewise.
20414         * modules/regex (Depends-on): Depend on wchar.
20415         * lib/regex_internal.h: Assume <wchar.h>.
20416         * m4/regex.m4: Likewise.
20417         * modules/stdint (Depends-on): Depend on wchar.
20418         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20419         * m4/stdint.m4: Likewise.
20420         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20421         * modules/strftime (Depends-on): Depend on wchar.
20422         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20423         * modules/strtol (Depends-on): Depend on wchar.
20424         * lib/strtol.c: Assume <wchar.h>.
20425         * modules/wcwidth (Depends-on): Depend on wchar.
20426         * lib/wcwidth.h: Assume <wchar.h>.
20427         * m4/wcwidth.m4: Likewise.
20428
20429 2007-01-16  Bruno Haible  <bruno@clisp.org>
20430
20431         * modules/csharpexec-script: New, created from...
20432         * modules/csharpexec: ... this.
20433
20434 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20435
20436         * modules/javaexec-script: New, created from...
20437         * modules/javaexec: ... this.
20438
20439 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20440
20441         * modules/poll (Dependencies): Add sys_select.
20442
20443 2007-01-15  Jim Meyering  <jim@meyering.net>
20444
20445         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20446         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20447         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
20448         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20449
20450 2007-01-15  Bruno Haible  <bruno@clisp.org>
20451
20452         * modules/striconveh: New file.
20453         * lib/striconveh.h: New file.
20454         * lib/striconveh.c: New file.
20455         * MODULES.html.sh (Internationalization functions): Add striconveh.
20456
20457         * modules/striconveh-tests: New file.
20458         * tests/test-striconveh.c: New file.
20459
20460 2007-01-15  Bruno Haible  <bruno@clisp.org>
20461
20462         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20463         not from GNU libiconv or GNU libc.
20464
20465 2007-01-15  Bruno Haible  <bruno@clisp.org>
20466
20467         * doc/gnulib-intro.texi (Copyright): Explain the different license
20468         terms for module descriptions, autoconf macros, tests, documentation.
20469
20470 2007-01-14  Bruno Haible  <bruno@clisp.org>
20471
20472         * modules/striconv-tests: New file.
20473         * tests/test-striconv.c: New file.
20474
20475 2007-01-14  Bruno Haible  <bruno@clisp.org>
20476
20477         * modules/iconv-tests: New file.
20478         * tests/test-iconv.c: New file.
20479
20480 2007-01-14  Bruno Haible  <bruno@clisp.org>
20481
20482         * gnulib-tool (func_get_license): For test modules, use the license of
20483         the main module.
20484
20485 2007-01-14  Bruno Haible  <bruno@clisp.org>
20486
20487         * modules/iconv (Include): Clarify that <iconv.h> can only be included
20488         if iconv is found to exist.
20489
20490 2007-01-14  Bruno Haible  <bruno@clisp.org>
20491
20492         * modules/c-ctype-tests: New file.
20493         * tests/test-c-ctype.c: New file.
20494
20495 2007-01-14  Bruno Haible  <bruno@clisp.org>
20496
20497         * modules/binary-io-tests: New file.
20498         * tests/test-binary-io.sh: New file.
20499         * tests/test-binary-io.c: New file.
20500
20501 2007-01-14  Bruno Haible  <bruno@clisp.org>
20502
20503         * modules/array-oset-tests: New file.
20504         * tests/test-array_oset.c: New file.
20505
20506 2007-01-14  Bruno Haible  <bruno@clisp.org>
20507
20508         * modules/array-list-tests: New file.
20509         * tests/test-array_list.c: New file.
20510
20511 2007-01-14  Bruno Haible  <bruno@clisp.org>
20512
20513         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20514         and make.
20515         Reported by Simon Josefsson in
20516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20517
20518 2007-01-14  Bruno Haible  <bruno@clisp.org>
20519
20520         * modules/allocsa-tests: New file.
20521         * tests/test-allocsa.c: New file.
20522
20523 2007-01-14  Bruno Haible  <bruno@clisp.org>
20524
20525         * modules/fchdir (Depends-on): Add absolute-header.
20526         * modules/unistd (Depends-on): Likewise.
20527
20528 2006-12-30  Bruno Haible  <bruno@clisp.org>
20529
20530         * modules/fchdir: New file.
20531         * modules/unistd (Files): Add lib/unistd_.h.
20532         (Makefile.am): Generate unistd.h from unistd_.h.
20533         * lib/fchdir.c: New file.
20534         * lib/dirent_.h: New file.
20535         * lib/unistd_.h: New file.
20536         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20537         * m4/fchdir.m4: New file.
20538         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20539         (gl_HEADER_UNISTD): Invoke it.
20540         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20541         function.
20542         * lib/backupfile.c (opendir, closedir): Undefine.
20543         * lib/chown.c (open, close): Undefine.
20544         * lib/clean-temp.c (open, close): Undefine.
20545         * lib/copy-file.c (open, close): Undefine.
20546         * lib/execute.c (open, close): Undefine.
20547         * lib/fsusage.c (open, close): Undefine.
20548         * lib/gc-gnulib.c (open, close): Undefine.
20549         * lib/getcwd.c (opendir, closedir): Undefine.
20550         * lib/glob.c (opendir, closedir): Undefine.
20551         * lib/javacomp.c (open, close): Undefine.
20552         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20553         * lib/openat-proc.c (open, close): Undefine.
20554         * lib/pagealign_alloc.c (open, close): Undefine.
20555         * lib/pipe.c (open, close): Undefine.
20556         * lib/progreloc.c (open, close): Undefine.
20557         * lib/savedir.c (opendir, closedir): Undefine.
20558         * lib/utime.c (open, close): Undefine.
20559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20560
20561 2007-01-10  Bruno Haible  <bruno@clisp.org>
20562
20563         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20564
20565 2007-01-12  Eric Blake  <ebb9@byu.net>
20566
20567         Provide a robust <wchar.h>.  Further simplifications are now
20568         possible in other modules, but not included here.
20569         * modules/wchar: New module.
20570         * m4/wchar.m4: New file.
20571         * lib/wchar_.h: Likewise.
20572         * modules/mbchar (Depends-on): Depend on wchar, as the first use
20573         of the new module.
20574         * MODULES.html.sh (Extended multibyte and wide character utilities):
20575         New section.
20576
20577 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20578
20579         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20580         to a reasonable default for memory allocation.
20581         (xreadlink): Don't allocate a huge buffer, to work around a buggy
20582         file system that reports garbage st_size values for symlinks.
20583         Problem reported by Liyang Hu.
20584
20585 2007-01-11  Simon Josefsson  <simon@josefsson.org>
20586
20587         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20588         Emacs .#* auto-save files).
20589
20590 2007-01-11  Bruno Haible  <bruno@clisp.org>
20591
20592         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20593         directory.
20594
20595 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20596
20597         Use @...@ consistently in lib/wctype_.h.
20598         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20599         on it being set to 1 or 0.
20600         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20601         go back to AC_SUBSTing it.
20602         * modules/wctype (Makefile.am): Undo previous change.
20603
20604 2007-01-10  Eric Blake  <ebb9@byu.net>
20605
20606         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20607         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20608         * modules/wctype (Makefile.am): Likewise.
20609         Reported by Chris McGuire.
20610
20611 2007-01-10  Jim Meyering  <jim@meyering.net>
20612
20613         fts.c: a small readability/maintainability improvement
20614         * lib/fts.c (fts_read): Make this code slightly more readable and
20615         maintainable by hoisting the "sp->fts_cur = p" assignments to
20616         immediately follow the statements that set P.  Derived from
20617         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20618
20619 2007-01-10  Eric Blake  <ebb9@byu.net>
20620
20621         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20622         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20624         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20625         Reported by Chris McGuire.
20626
20627 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20628
20629         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20630         in sed script.
20631
20632 2007-01-09  Bruno Haible  <bruno@clisp.org>
20633
20634         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20635         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20636         variables.
20637         (func_module): Use them.
20638
20639 2007-01-09  Bruno Haible  <bruno@clisp.org>
20640
20641         * modules/unistr/base: New file.
20642         * lib/unistr.h: New file.
20643
20644         * modules/unistr/u8-to-u16: New file.
20645         * lib/unistr/u8-to-u16.c: New file.
20646
20647         * modules/unistr/u8-to-u32: New file.
20648         * lib/unistr/u8-to-u32.c: New file.
20649
20650         * modules/unistr/u16-to-u8: New file.
20651         * lib/unistr/u16-to-u8.c: New file.
20652
20653         * modules/unistr/u16-to-u32: New file.
20654         * lib/unistr/u16-to-u32.c: New file.
20655
20656         * modules/unistr/u32-to-u8: New file.
20657         * lib/unistr/u32-to-u8.c: New file.
20658
20659         * modules/unistr/u32-to-u16: New file.
20660         * lib/unistr/u32-to-u16.c: New file.
20661
20662         * modules/unistr/u8-check: New file.
20663         * modules/unistr/u16-check: New file.
20664         * modules/unistr/u32-check: New file.
20665         * lib/unistr/u8-check.c: New file.
20666         * lib/unistr/u16-check.c: New file.
20667         * lib/unistr/u32-check.c: New file.
20668
20669         * modules/unistr/u8-chr: New file.
20670         * modules/unistr/u16-chr: New file.
20671         * modules/unistr/u32-chr: New file.
20672         * lib/unistr/u8-chr.c: New file.
20673         * lib/unistr/u16-chr.c: New file.
20674         * lib/unistr/u32-chr.c: New file.
20675
20676         * modules/unistr/u8-cmp: New file.
20677         * modules/unistr/u16-cmp: New file.
20678         * modules/unistr/u32-cmp: New file.
20679         * lib/unistr/u8-cmp.c: New file.
20680         * lib/unistr/u16-cmp.c: New file.
20681         * lib/unistr/u32-cmp.c: New file.
20682
20683         * modules/unistr/u8-cpy: New file.
20684         * modules/unistr/u16-cpy: New file.
20685         * modules/unistr/u32-cpy: New file.
20686         * lib/unistr/u8-cpy.c: New file.
20687         * lib/unistr/u16-cpy.c: New file.
20688         * lib/unistr/u32-cpy.c: New file.
20689         * lib/unistr/u-cpy.h: New file.
20690
20691         * modules/unistr/u8-cpy-alloc: New file.
20692         * modules/unistr/u16-cpy-alloc: New file.
20693         * modules/unistr/u32-cpy-alloc: New file.
20694         * lib/unistr/u8-cpy-alloc.c: New file.
20695         * lib/unistr/u16-cpy-alloc.c: New file.
20696         * lib/unistr/u32-cpy-alloc.c: New file.
20697         * lib/unistr/u-cpy-alloc.h: New file.
20698
20699         * modules/unistr/u8-endswith: New file.
20700         * modules/unistr/u16-endswith: New file.
20701         * modules/unistr/u32-endswith: New file.
20702         * lib/unistr/u8-endswith.c: New file.
20703         * lib/unistr/u16-endswith.c: New file.
20704         * lib/unistr/u32-endswith.c: New file.
20705         * lib/unistr/u-endswith.h: New file.
20706
20707         * modules/unistr/u8-mblen: New file.
20708         * modules/unistr/u16-mblen: New file.
20709         * modules/unistr/u32-mblen: New file.
20710         * lib/unistr/u8-mblen.c: New file.
20711         * lib/unistr/u16-mblen.c: New file.
20712         * lib/unistr/u32-mblen.c: New file.
20713
20714         * modules/unistr/u8-mbtouc: New file.
20715         * modules/unistr/u16-mbtouc: New file.
20716         * modules/unistr/u32-mbtouc: New file.
20717         * lib/unistr/u8-mbtouc.c: New file.
20718         * lib/unistr/u16-mbtouc.c: New file.
20719         * lib/unistr/u32-mbtouc.c: New file.
20720
20721         * modules/unistr/u8-mbtouc-safe: New file.
20722         * modules/unistr/u16-mbtouc-safe: New file.
20723         * modules/unistr/u32-mbtouc-safe: New file.
20724         * lib/unistr/u8-mbtouc-safe.c: New file.
20725         * lib/unistr/u16-mbtouc-safe.c: New file.
20726         * lib/unistr/u32-mbtouc-safe.c: New file.
20727
20728         * modules/unistr/u8-move: New file.
20729         * modules/unistr/u16-move: New file.
20730         * modules/unistr/u32-move: New file.
20731         * lib/unistr/u8-move.c: New file.
20732         * lib/unistr/u16-move.c: New file.
20733         * lib/unistr/u32-move.c: New file.
20734         * lib/unistr/u-move.h: New file.
20735
20736         * modules/unistr/u8-next: New file.
20737         * modules/unistr/u16-next: New file.
20738         * modules/unistr/u32-next: New file.
20739         * lib/unistr/u8-next.c: New file.
20740         * lib/unistr/u16-next.c: New file.
20741         * lib/unistr/u32-next.c: New file.
20742
20743         * modules/unistr/u8-prev: New file.
20744         * modules/unistr/u16-prev: New file.
20745         * modules/unistr/u32-prev: New file.
20746         * lib/unistr/u8-prev.c: New file.
20747         * lib/unistr/u16-prev.c: New file.
20748         * lib/unistr/u32-prev.c: New file.
20749
20750         * modules/unistr/u8-set: New file.
20751         * modules/unistr/u16-set: New file.
20752         * modules/unistr/u32-set: New file.
20753         * lib/unistr/u8-set.c: New file.
20754         * lib/unistr/u16-set.c: New file.
20755         * lib/unistr/u32-set.c: New file.
20756         * lib/unistr/u-set.h: New file.
20757
20758         * modules/unistr/u8-startswith: New file.
20759         * modules/unistr/u16-startswith: New file.
20760         * modules/unistr/u32-startswith: New file.
20761         * lib/unistr/u8-startswith.c: New file.
20762         * lib/unistr/u16-startswith.c: New file.
20763         * lib/unistr/u32-startswith.c: New file.
20764         * lib/unistr/u-startswith.h: New file.
20765
20766         * modules/unistr/u8-stpcpy: New file.
20767         * modules/unistr/u16-stpcpy: New file.
20768         * modules/unistr/u32-stpcpy: New file.
20769         * lib/unistr/u8-stpcpy.c: New file.
20770         * lib/unistr/u16-stpcpy.c: New file.
20771         * lib/unistr/u32-stpcpy.c: New file.
20772         * lib/unistr/u-stpcpy.h: New file.
20773
20774         * modules/unistr/u8-stpncpy: New file.
20775         * modules/unistr/u16-stpncpy: New file.
20776         * modules/unistr/u32-stpncpy: New file.
20777         * lib/unistr/u8-stpncpy.c: New file.
20778         * lib/unistr/u16-stpncpy.c: New file.
20779         * lib/unistr/u32-stpncpy.c: New file.
20780         * lib/unistr/u-stpncpy.h: New file.
20781
20782         * modules/unistr/u8-strcat: New file.
20783         * modules/unistr/u16-strcat: New file.
20784         * modules/unistr/u32-strcat: New file.
20785         * lib/unistr/u8-strcat.c: New file.
20786         * lib/unistr/u16-strcat.c: New file.
20787         * lib/unistr/u32-strcat.c: New file.
20788         * lib/unistr/u-strcat.h: New file.
20789
20790         * modules/unistr/u8-strchr: New file.
20791         * modules/unistr/u16-strchr: New file.
20792         * modules/unistr/u32-strchr: New file.
20793         * lib/unistr/u8-strchr.c: New file.
20794         * lib/unistr/u16-strchr.c: New file.
20795         * lib/unistr/u32-strchr.c: New file.
20796
20797         * modules/unistr/u8-strcmp: New file.
20798         * modules/unistr/u16-strcmp: New file.
20799         * modules/unistr/u32-strcmp: New file.
20800         * lib/unistr/u8-strcmp.c: New file.
20801         * lib/unistr/u16-strcmp.c: New file.
20802         * lib/unistr/u32-strcmp.c: New file.
20803
20804         * modules/unistr/u8-strcpy: New file.
20805         * modules/unistr/u16-strcpy: New file.
20806         * modules/unistr/u32-strcpy: New file.
20807         * lib/unistr/u8-strcpy.c: New file.
20808         * lib/unistr/u16-strcpy.c: New file.
20809         * lib/unistr/u32-strcpy.c: New file.
20810         * lib/unistr/u-strcpy.h: New file.
20811
20812         * modules/unistr/u8-strcspn: New file.
20813         * modules/unistr/u16-strcspn: New file.
20814         * modules/unistr/u32-strcspn: New file.
20815         * lib/unistr/u8-strcspn.c: New file.
20816         * lib/unistr/u16-strcspn.c: New file.
20817         * lib/unistr/u32-strcspn.c: New file.
20818         * lib/unistr/u-strcspn.h: New file.
20819
20820         * modules/unistr/u8-strdup: New file.
20821         * modules/unistr/u16-strdup: New file.
20822         * modules/unistr/u32-strdup: New file.
20823         * lib/unistr/u8-strdup.c: New file.
20824         * lib/unistr/u16-strdup.c: New file.
20825         * lib/unistr/u32-strdup.c: New file.
20826         * lib/unistr/u-strdup.h: New file.
20827
20828         * modules/unistr/u8-strlen: New file.
20829         * modules/unistr/u16-strlen: New file.
20830         * modules/unistr/u32-strlen: New file.
20831         * lib/unistr/u8-strlen.c: New file.
20832         * lib/unistr/u16-strlen.c: New file.
20833         * lib/unistr/u32-strlen.c: New file.
20834         * lib/unistr/u-strlen.h: New file.
20835
20836         * modules/unistr/u8-strmblen: New file.
20837         * modules/unistr/u16-strmblen: New file.
20838         * modules/unistr/u32-strmblen: New file.
20839         * lib/unistr/u8-strmblen.c: New file.
20840         * lib/unistr/u16-strmblen.c: New file.
20841         * lib/unistr/u32-strmblen.c: New file.
20842
20843         * modules/unistr/u8-strmbtouc: New file.
20844         * modules/unistr/u16-strmbtouc: New file.
20845         * modules/unistr/u32-strmbtouc: New file.
20846         * lib/unistr/u8-strmbtouc.c: New file.
20847         * lib/unistr/u16-strmbtouc.c: New file.
20848         * lib/unistr/u32-strmbtouc.c: New file.
20849
20850         * modules/unistr/u8-strncat: New file.
20851         * modules/unistr/u16-strncat: New file.
20852         * modules/unistr/u32-strncat: New file.
20853         * lib/unistr/u8-strncat.c: New file.
20854         * lib/unistr/u16-strncat.c: New file.
20855         * lib/unistr/u32-strncat.c: New file.
20856         * lib/unistr/u-strncat.h: New file.
20857
20858         * modules/unistr/u8-strncmp: New file.
20859         * modules/unistr/u16-strncmp: New file.
20860         * modules/unistr/u32-strncmp: New file.
20861         * lib/unistr/u8-strncmp.c: New file.
20862         * lib/unistr/u16-strncmp.c: New file.
20863         * lib/unistr/u32-strncmp.c: New file.
20864
20865         * modules/unistr/u8-strncpy: New file.
20866         * modules/unistr/u16-strncpy: New file.
20867         * modules/unistr/u32-strncpy: New file.
20868         * lib/unistr/u8-strncpy.c: New file.
20869         * lib/unistr/u16-strncpy.c: New file.
20870         * lib/unistr/u32-strncpy.c: New file.
20871         * lib/unistr/u-strncpy.h: New file.
20872
20873         * modules/unistr/u8-strnlen: New file.
20874         * modules/unistr/u16-strnlen: New file.
20875         * modules/unistr/u32-strnlen: New file.
20876         * lib/unistr/u8-strnlen.c: New file.
20877         * lib/unistr/u16-strnlen.c: New file.
20878         * lib/unistr/u32-strnlen.c: New file.
20879         * lib/unistr/u-strnlen.h: New file.
20880
20881         * modules/unistr/u8-strpbrk: New file.
20882         * modules/unistr/u16-strpbrk: New file.
20883         * modules/unistr/u32-strpbrk: New file.
20884         * lib/unistr/u8-strpbrk.c: New file.
20885         * lib/unistr/u16-strpbrk.c: New file.
20886         * lib/unistr/u32-strpbrk.c: New file.
20887         * lib/unistr/u-strpbrk.h: New file.
20888
20889         * modules/unistr/u8-strrchr: New file.
20890         * modules/unistr/u16-strrchr: New file.
20891         * modules/unistr/u32-strrchr: New file.
20892         * lib/unistr/u8-strrchr.c: New file.
20893         * lib/unistr/u16-strrchr.c: New file.
20894         * lib/unistr/u32-strrchr.c: New file.
20895
20896         * modules/unistr/u8-strspn: New file.
20897         * modules/unistr/u16-strspn: New file.
20898         * modules/unistr/u32-strspn: New file.
20899         * lib/unistr/u8-strspn.c: New file.
20900         * lib/unistr/u16-strspn.c: New file.
20901         * lib/unistr/u32-strspn.c: New file.
20902         * lib/unistr/u-strspn.h: New file.
20903
20904         * modules/unistr/u8-strstr: New file.
20905         * modules/unistr/u16-strstr: New file.
20906         * modules/unistr/u32-strstr: New file.
20907         * lib/unistr/u8-strstr.c: New file.
20908         * lib/unistr/u16-strstr.c: New file.
20909         * lib/unistr/u32-strstr.c: New file.
20910         * lib/unistr/u-strstr.h: New file.
20911
20912         * modules/unistr/u8-strtok: New file.
20913         * modules/unistr/u16-strtok: New file.
20914         * modules/unistr/u32-strtok: New file.
20915         * lib/unistr/u8-strtok.c: New file.
20916         * lib/unistr/u16-strtok.c: New file.
20917         * lib/unistr/u32-strtok.c: New file.
20918         * lib/unistr/u-strtok.h: New file.
20919
20920         * modules/unistr/u8-uctomb: New file.
20921         * modules/unistr/u16-uctomb: New file.
20922         * modules/unistr/u32-uctomb: New file.
20923         * lib/unistr/u8-uctomb.c: New file.
20924         * lib/unistr/u16-uctomb.c: New file.
20925         * lib/unistr/u32-uctomb.c: New file.
20926
20927         * MODULES.html.sh (Unicode string functions): Add the new modules.
20928
20929 2007-01-08  Bruno Haible  <bruno@clisp.org>
20930
20931         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20932         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20933         subdirectories.
20934
20935 2007-01-08  Karl Berry  <karl@gnu.org>
20936
20937         * doc/error.texi: mention that main() fns must set program_name
20938         when progname is used.
20939
20940 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
20941
20942         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20943         WCTYPE_H is empty, for the benefit of builds from non-distclean
20944         directories.  Problem reported by Eric Blake in
20945         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20946
20947 2007-01-08  Bruno Haible  <bruno@clisp.org>
20948
20949         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20950         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20951         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20952         PROVIDE_CANONICALIZE_FILENAME_MODE.
20953         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20954
20955 2007-01-08  Bruno Haible  <bruno@clisp.org>
20956
20957         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20958         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20959         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20960         * lib/fts.c: Likewise.
20961         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20962
20963 2006-12-25  Bruno Haible  <bruno@clisp.org>
20964
20965         * modules/utf8-ucs4-safe: New file.
20966         * lib/utf8-ucs4-safe.h: New file.
20967         * lib/unistr/utf8-ucs4-safe.c: New file.
20968
20969         * modules/utf16-ucs4-safe: New file.
20970         * lib/utf16-ucs4-safe.h: New file.
20971         * lib/unistr/utf16-ucs4-safe.c: New file.
20972
20973         * MODULES.html.sh (Unicode string functions): Add the new modules.
20974
20975 2007-01-08  Bruno Haible  <bruno@clisp.org>
20976
20977         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20978         (Depends-on): Add unitypes.
20979         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20980         (u8_mbtouc_aux): Move out to separate file.
20981         (u8_mbtouc): Use ucs4_t, uint8_t types.
20982         * lib/unistr/utf8-ucs4.c: New file.
20983
20984         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20985         (Depends-on): Add unitypes.
20986         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20987         (u16_mbtouc_aux): Move out to separate file.
20988         (u16_mbtouc): Use ucs4_t, uint16_t types.
20989         * lib/unistr/utf16-ucs4.c: New file.
20990
20991         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20992         (Depends-on): Add unitypes.
20993         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20994         (u8_uctomb_aux): Move out to separate file.
20995         (u8_uctomb): Use ucs4_t, uint8_t types.
20996         * lib/unistr/ucs4-utf8.c: New file.
20997
20998         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20999         (Depends-on): Add unitypes.
21000         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
21001         (u16_uctomb_aux): Move out to separate file.
21002         (u16_uctomb): Use ucs4_t, uint16_t types.
21003         * lib/unistr/ucs4-utf16.c: New file.
21004
21005 2006-12-25  Bruno Haible  <bruno@clisp.org>
21006
21007         * modules/unitypes: New file.
21008         * lib/unitypes.h: New file.
21009         * MODULES.html.sh (func_all_modules): New section "Unicode string
21010         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
21011         this section. Add unitypes.
21012
21013 2007-01-08  Bruno Haible  <bruno@clisp.org>
21014
21015         Avoid variable names that conflict with those from libtool.
21016         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
21017         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
21018         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
21019         library_names_spec to acl_library_names_spec, hardcode_* to
21020         acl_hardcode_*.
21021         Reported by Ralf Wildenhues.
21022
21023 2007-01-08  Bruno Haible  <bruno@clisp.org>
21024
21025         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
21026         definition.
21027         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
21028         definition.
21029         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
21030         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
21031         definition.
21032         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
21033         definition.
21034         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
21035         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
21036         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
21037         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
21038         definition.
21039         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
21040         definition.
21041         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
21042         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
21043         GC_USE_<algorithm>.
21044         * lib/gc-libgcrypt.c: Likewise.
21045         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
21046         * modules/gc-arctwo (configure.ac): Likewise.
21047         * modules/gc-des (configure.ac): Likewise.
21048         * modules/gc-hmac-md5 (configure.ac): Likewise.
21049         * modules/gc-hmac-sha1 (configure.ac): Likewise.
21050         * modules/gc-md2 (configure.ac): Likewise.
21051         * modules/gc-md4 (configure.ac): Likewise.
21052         * modules/gc-md5 (configure.ac): Likewise.
21053         * modules/gc-random (configure.ac): Likewise.
21054         * modules/gc-rijndael (configure.ac): Likewise.
21055         * modules/gc-sha1 (configure.ac): Likewise.
21056
21057 2007-01-08  Bruno Haible  <bruno@clisp.org>
21058
21059         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
21060         macro definition.
21061         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
21062         definition.
21063         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
21064         definition.
21065         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
21066         * modules/fcntl-safer (configure.ac): Likewise.
21067         * modules/fopen-safer (configure.ac): Likewise.
21068         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
21069         GNULIB_FWRITEERROR macro definition.
21070
21071 2007-01-08  Bruno Haible  <bruno@clisp.org>
21072
21073         * m4/gnulib-common.m4: New file.
21074         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
21075         (func_get_filelist): Add m4/gnulib-common.m4.
21076
21077 2007-01-08  Bruno Haible  <bruno@clisp.org>
21078
21079         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
21080         command.
21081
21082 2007-01-08  Jim Meyering  <jim@meyering.net>
21083
21084         Use a more robust test for a "can't happen" condition.
21085         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
21086         narrowed the st_size value.  Presuming the "can't happen" condition
21087         is true, that narrowing could conceivably convert an invalid st_size
21088         value into a valid one.  Instead, use a change based on Matthew
21089         Woehlke's original patch.
21090
21091         Slight readability improvement: use an assert-like macro
21092         in place of literal "abort ()" uses.
21093         * lib/fts.c (fts_assert): Define.
21094         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
21095         Use this macro instead of a bare 'abort'.
21096
21097 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
21098
21099         Don't worry about using IRIX 5.3's wctype.h broken definitions;
21100         simply work around them.
21101         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
21102         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
21103         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
21104         declaring.
21105         Don't bother to define as macros, since the standard doesn't require it.
21106         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
21107         longer worry about IRIX 5.3.
21108         (HAVE_WCTYPE_CTMP_BUG): Remove.
21109
21110 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21111
21112         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21113         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
21114         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21115         Problems reported by Georg Schwarz for IRIX 5.3.
21116
21117         * gnulib-tool (autoconf_minversion): Take the maximum version number
21118         found, not the minimum.  Problem reported by James Youngman.
21119
21120 2007-01-03  Karl Berry  <karl@gnu.org>
21121
21122         * doc/error.texi: new file, explaining interaction with progname.
21123         * doc/gnulib.texi: include it.  Update copyright.
21124
21125 2007-01-03  Simon Josefsson  <simon@josefsson.org>
21126
21127         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21128         AC_CANONICAL_HOST, to improve autobuild outputs.
21129
21130 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
21131             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21132
21133         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21134         sockets, server sockets, and other file descriptors.  Count errors
21135         to compute the return value.  Reorder the code a bit to be easier
21136         to follow.  Don't set event bits that were not requested (except
21137         POLLERR and POLLHUP).
21138
21139 2007-01-01  Bruno Haible  <bruno@clisp.org>
21140
21141         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21142
21143 2007-01-03  Jim Meyering  <jim@meyering.net>
21144
21145         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
21146
21147 2007-01-02  Bruno Haible  <bruno@clisp.org>
21148
21149         * modules/settime (Include): Require timespec.h.
21150         * modules/nanosleep (Include): Likewise.
21151
21152 2007-01-01  Bruno Haible  <bruno@clisp.org>
21153
21154         * gnulib-tool (func_emit_copyright_notice): Bump year.
21155         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21156
21157 2007-01-01  Bruno Haible  <bruno@clisp.org>
21158
21159         Improve support for OpenBSD.
21160         * build-aux/config.rpath (libname_spec): Export.
21161         (library_names_spec): New variable. Export.
21162         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21163         library_names_spec from the config.rpath output. Locate shared library
21164         through the name pattern in library_names_spec.
21165
21166 2007-01-01  Eric Blake  <ebb9@byu.net>
21167
21168         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21169
21170 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21171
21172         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21173         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
21174         assume the C locale, and avoid an "eval" that could cause trouble.
21175         Problem with SORT reported by Bob Proulx.
21176
21177         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
21178         Define.  Trivial patch from Henning Nielsen Lund, originally
21179         sent to bug-grep@gnu.org today.
21180
21181 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21182
21183         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
21184         struct stat.  Problem reported by Henning Nielsen Lund.
21185         * lib/acl.c: Include acl.h first, to check interface.  Don't
21186         bother to include sys/types.h and sys/stat.h again.
21187
21188 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21189
21190         Import the following change from libc; problem reported by
21191         Sven Verdoolaege.
21192
21193         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
21194
21195         [BZ #1373]
21196         * lib/argp.h: Remove __NTH for __argp_usage inline function.
21197
21198 2006-12-28  Jim Meyering  <jim@meyering.net>
21199
21200         * build-aux/announce-gen: Do not assume that the package
21201         builds any of tar.gz, tar.bz2, and .xdelta files.
21202         Suggestion from Simon Josefsson.
21203
21204 2006-12-28  Simon Josefsson  <simon@josefsson.org>
21205
21206         * modules/announce-gen: New file.
21207
21208 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         * lib/mbchar.h: Just include <wctype.h>; the wctype module
21211         handles its gotchas now.
21212         * lib/mbswidth.c: Likewise.
21213         * lib/wcwidth.h: Likewise.
21214         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
21215         and iswcntrl; the wctype module does this stuff now.
21216         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21218         * modules/mbchar (Depends-on): Add wctype.
21219         * modules/mbswidth (Depends-on): Likewise.
21220         * modules/wcwidth (Depends-on): Likewise.
21221
21222 2006-12-27  Eric Blake  <ebb9@byu.net>
21223
21224         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
21225         module uses more than what <wctype.h> is required to provide.
21226
21227 2006-12-26  Eric Blake  <ebb9@byu.net>
21228
21229         * gnulib-tool (sed_extract_prog): Avoid space-tab.
21230
21231 2006-12-26  Eric Blake  <ebb9@byu.net>
21232
21233         * modules/absolute-header: New module.
21234         * modules/fcntl (Depends-on): Depend on it.
21235         * modules/inttypes (Depends-on): Likewise.
21236         * modules/stdint (Depends-on): Likewise.
21237         * modules/sys_stat (Depends-on): Likewise.
21238         * modules/wctype (Depends-on): Likewise.
21239         * MODULES.html.sh (Support for building libraries and
21240         executables): Document it.
21241
21242 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21243
21244         * gnulib-tool (SED): Remove, undoing previous change.
21245         The problem was that it broke coreutils on Solaris, because
21246         "sed --posix" leaked into a makefile.
21247         (sed): New alias, if 'alias' and GNU sed.
21248
21249 2006-12-24  Jim Meyering  <jim@meyering.net>
21250
21251         Work around an fchownat bug in glibc-2.4:
21252         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21253         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21254         in spite of the -P option.
21255         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21256         New macros.
21257         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21258         * modules/openat (Files): Add lib/fchownat.c.
21259         * lib/openat.c (fchownat): Don't define here.  Move to...
21260         * lib/fchownat.c: ...this new file.
21261
21262 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21263
21264         Fix bug reported by Bruno Haible in
21265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21266         where quotearg.c didn't compile on Mac OS X 10.2 because it
21267         lacks <wchar.h> and wint_t.
21268         * lib/wctype_.h (__wctype_wint_t): New type.
21269         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21270         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21271         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21272         Arg is now of type __wctype_wint_t, not wint_t.
21273         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21274         substitute HAVE_WINT_T.
21275         * modules/wctype (Files): Add m4/wint_t.m4.
21276         (wctype.h): Substitute HAVE_WINT_T.
21277
21278 2006-12-23  Bruno Haible  <bruno@clisp.org>
21279
21280         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21281
21282 2006-12-23  Bruno Haible  <bruno@clisp.org>
21283
21284         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21285         S_ISLNK.
21286         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21287         mingw.
21288
21289 2006-12-22  Bruno Haible  <bruno@clisp.org>
21290
21291         * lib/copy-file.c: Include acl.h.
21292         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21293         Close the file descriptors only after being done with copy_acl.
21294         * modules/copy-file (Depends-on): Add acl.
21295
21296 2006-12-22  Bruno Haible  <bruno@clisp.org>
21297
21298         * gnulib-tool (SED): New variable.
21299         Use $SED instead of sed everywhere.
21300
21301 2006-12-22  Bruno Haible  <bruno@clisp.org>
21302
21303         * modules/no-c++: New file.
21304         * m4/no-c++.m4: New file.
21305         * MODULES.html.sh (Support for building libraries and executables):
21306         Add no-c++.
21307
21308 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21311         Include <limits.h>, and use its INT_MAX to rewrite the
21312         j loop so that it does not overflow 'int'.  Problem reported by
21313         Ralf Wildenhues in
21314         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21315         Play it safe by shifting left by 1 rather than multiplying by 2,
21316         as GCC is less likely to optimize this away when the value
21317         is signed (when it assumes overflow leads to undefined behavior).
21318         Also, don't assume time_t uses two's complement.
21319
21320 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21321
21322         * MODULES.html.sh: New module wctype.
21323         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21324         * lib/fnmatch.c: Don't bother to include <wchar.h> before
21325         <wctype.h>, since the new wctype module should fix this.
21326         * lib/quotearg.c: Include <wctype.h> unconditionally, since
21327         the wctype module should arrange for it.
21328         * lib/regex_internal.h: Likewise.
21329         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21330         since the wctype module should handle this now.
21331         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21332         * modules/fnmatch (Depends-on): Add wctype.
21333         * modules/quotearg (Depends-on): Likewise.
21334         * modules/regex (Depends-on): Likewise.
21335
21336 2006-12-19  Bruno Haible  <bruno@clisp.org>
21337
21338         * lib/strdup.h [C++]: Wrap definitions in extern "C".
21339         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21340
21341 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21342
21343         * modules/savewd (Depends-on): Fix dependency on fcntl.
21344
21345 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21346
21347         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21348         conforms to C99, rather than relying on the user's environment
21349         setting of STDINT_H.
21350
21351 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21352         and Eric Blake  <ebb9@byu.net>
21353
21354         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21355         This is more consistent with the other defines here.
21356         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21357         Port to z/OS.  Problem reported by Paul Gilmartin.
21358         Change local vars to use gl_ prefix rather than ac_.
21359         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21360         with other defines.
21361         * modules/double-slash-root: New module.
21362         * modules/dirname (Files): Remove m4/double-slash-root.m4.
21363         (Depends-on): Add double-slash-root.
21364         * MODULES.html.sh (File system functions): Mention new module.
21365
21366 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21367
21368         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21369         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21370         This is for the benefit of gzip, which doesn't do i18n.
21371
21372 2006-12-12  Jim Meyering  <jim@meyering.net>
21373
21374         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21375         Reported by Andreas Schwab <schwab@suse.de>.
21376
21377 2006-12-12  Bruno Haible  <bruno@clisp.org>
21378
21379         Merge these changes.
21380         2006-09-05  Bruno Haible  <bruno@clisp.org>
21381         * lib/iconvme.c (iconv_string): No need to save and restore errno when
21382         iconv_alloc succeeded.
21383         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21384         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21385         test for " && dest " at the end - dest is always != NULL there. Call
21386         iconv with 4xNULL arguments initially, to reset the state. Call iconv
21387         with 2xNULL arguments, also to flush the state storage. Handle the
21388         IRIX iconv behaviour. Realloc the final result, to throw away unused
21389         memory.
21390
21391 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21394         and fchmodat unconditionally, since glibc 2.4 has them.
21395         Problem reported by Arkadiusz Miskiewicz.
21396
21397 2006-12-10  Bruno Haible  <bruno@clisp.org>
21398
21399         * gnulib-tool (func_import): Show the include files only for those
21400         modules that are copied and specified.
21401         Reported by Karl Berry.
21402
21403 2006-12-08  Jim Meyering  <jim@meyering.net>
21404
21405         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21406         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
21407
21408         * build-aux/announce-gen: Add two new options, both optional:
21409         --bootstrap-tools=TOOL_LIST
21410               a comma-separated list of tools, e.g.,
21411               autoconf,automake,bison,gnulib
21412         --gnulib-snapshot-date=DATE
21413               if gnulib is in the bootstrap tool list,
21414               then report this as the snapshot date.
21415               If not specified, use the current date/time.
21416               If you specify a date here, be sure it's UTC.
21417
21418 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21419
21420         * tests/test-argp-2.sh: Fix test to match actual output.
21421         (func_compare): Fix sed script to be portable.
21422
21423 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
21424
21425         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21426         workaround for this case.  It is not autoconfigured now; offhand
21427         it's hard to see how to autoconfigure it.
21428
21429 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21430
21431         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21432         a directory that is about to be chowned.  Such a directory's
21433         initial file permissions should permit the owner only and this
21434         should not be changed until after the chown, since the group and
21435         other bits would be incorrect if they granted permission before
21436         the chown.
21437
21438         Fix porting problem for iswctype reported by Georg Schwarz in:
21439         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21440         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21441         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21442         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21443         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21444
21445 2006-12-03  Jim Meyering  <jim@meyering.net>
21446
21447         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21448         p->fts_statp may not yet be defined.
21449         (fts_read): Instead, set it in the caller, once p->fts_statp is
21450         sure to be defined, and corresponds to a top-level directory.
21451         This bug made du -x fail.  Here's the coreutils test case:
21452         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21453         Reported by Mike Frysinger.
21454
21455 2006-12-01  Jim Meyering  <jim@meyering.net>
21456
21457         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21458         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21459         Reported by Simon Josefsson.
21460
21461 2006-11-30  Jim Meyering  <jim@meyering.net>
21462
21463         * m4/warning.m4: Use the all-permissive copyright notice
21464         recommended by RMS (rather than LGPL).
21465         * m4/vararrays.m4: Likewise.
21466         * m4/flexmember.m4: Likewise.
21467
21468 2006-11-29  Bruno Haible  <bruno@clisp.org>
21469
21470         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21471         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21472         using +=.
21473         Reported by Simon Josefsson <simon@josefsson.org>.
21474
21475 2006-11-28  James Youngman <jay@gnu.org>
21476
21477         * README: Advise users that they might find the bug-gnulib@gnu.org
21478         and autotools-announce@gnu.org mailing lists useful.
21479
21480 2006-11-28  Bruno Haible  <bruno@clisp.org>
21481
21482         * m4/ptrdiff_max.m4: Remove file.
21483
21484 2006-11-21  Bruno Haible  <bruno@clisp.org>
21485
21486         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21487         _AC_COMPUTE_INT.
21488         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21489         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21490         _AC_COMPUTE_INT.
21491         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21492         * m4/size_max.m4 (gl_SIZE_MAX): 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-28  Jim Meyering  <jim@meyering.net>
21497
21498         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21499         warning from "gcc -Wshadow" about shadowing the builtin.
21500
21501 2006-11-27  Bruno Haible  <bruno@clisp.org>
21502
21503         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21504         _AC_COMPUTE_INT.
21505         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21506
21507 2006-11-27  Bruno Haible  <bruno@clisp.org>
21508             Paul Eggert  <eggert@cs.ucla.edu>
21509
21510         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21511
21512 2006-11-26  Bruno Haible  <bruno@clisp.org>
21513
21514         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21515         noinst_LTLIBRARIES.
21516
21517 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21518             Bruno Haible  <bruno@clisp.org>
21519
21520         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21521         if compiling with "gcc -ansi".
21522
21523 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21524
21525         Fix some incompatibilities with gcc -ansi -pedantic.
21526         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21527         if compiling pedantically with GCC, unless it's C99 or later.
21528         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21529         it mishandles gcc -ansi -pedantic as well.
21530         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21531         if gcc -pedantic.
21532         * lib/regexec.c (check_node_accept_bytes): Don't use auto
21533         initializers for struct if -pedantic, unless it's C99 or later.
21534
21535 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
21536
21537         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21538         Don't close an fd more than once. Identical atimes indicate
21539         success, not failure.
21540
21541 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
21542
21543         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21544
21545 2006-11-23  Jim Meyering  <jim@meyering.net>
21546
21547         * build-aux/announce-gen: New file.  From coreutils.
21548
21549 2006-11-22  Jim Meyering  <jim@meyering.net>
21550
21551         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21552         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21553         (fts_read): Use a temporary to narrow the overused st_size member
21554         before using it in a switch statement.  Reported by Matthew Woehlke.
21555
21556         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21557         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21558
21559 2006-11-20  Bruno Haible  <bruno@clisp.org>
21560
21561         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21562         changequote instead of pairs of brackets.
21563         Reported by Andreas Schwab <schwab@suse.de>.
21564
21565 2006-11-21  Jim Meyering  <jim@meyering.net>
21566
21567         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21568         so as to remain compatible with older compilers.
21569         Patch from Michael Deutschmann.
21570
21571 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21572
21573         * MODULES.html.sh (File system functions): Add openat.
21574
21575         * lib/openat.h (rpl_fstatat): New macro, if
21576         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21577         (fstatat): Define to rpl_fstatat under the same conditions,
21578         unless COMPILING_FSTATAT.
21579         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21580         seems to have the bug.
21581         * lib/fstatat.c: New file.
21582         * modules/openat (Files): Add it.
21583
21584 2006-11-20  Bruno Haible  <bruno@clisp.org>
21585
21586         * Makefile: New file.
21587
21588 2006-11-20  Jim Meyering  <jim@meyering.net>
21589
21590         The beginnings of syntax-related checks for gnulib.
21591         * lib/Makefile: New file.
21592         * lib/t-idcache: New script.  Ensure that the two halves of
21593         idcache.c stay in sync.
21594
21595         * lib/idcache.c: Adjust comments in user- and group- portions to
21596         be more accurate, and to be consistent with one another.
21597
21598 2006-11-20  Jim Meyering  <jim@meyering.net>
21599
21600         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21601         continue using the flexible array member (thus, this module performs
21602         half as many malloc calls), with the addition that...
21603         (getgroup, getuser): Consistently record a non-match via an empty
21604         "name" string, and map an empty string match to a NULL return value.
21605         * modules/idcache (Depends-on): Re-add flexmember.
21606
21607         * lib/idcache.c (getuser): Remove all uses of the register keyword.
21608         (getuidbyname, getgroup, getgidbyname): Likewise.
21609
21610         Use cleaner syntax: NULL rather than 0.
21611         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21612
21613 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21614
21615         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21616         It mishandled the case where the group was missing.
21617         Problem reported by Greg Schafer.
21618         * modules/idcache: Likewise.
21619
21620 2006-11-18  Jim Meyering  <jim@meyering.net>
21621
21622         * check-module (%exempt_header): Add exception for some
21623         conditionally-included headers.
21624
21625         * modules/i-ring (Depends-on): Add verify.
21626         (License): Change to LGPL.
21627
21628 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21631         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21632         and inttostr.h.  Use snprintf rather than uinttostr, so that
21633         LGPLed code doesn't depend on GPLed.
21634
21635 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21636
21637         * modules/inline (License): Change from GPL to LGPL.
21638
21639 2006-11-17  Jim Meyering  <jim@meyering.net>
21640
21641         * modules/d-type (License): Switch to LGPL.
21642
21643 2006-11-15  Bruno Haible  <bruno@clisp.org>
21644
21645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21646
21647 2006-11-15  Eric Blake  <ebb9@byu.net>
21648
21649         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21650         the module dependency.
21651
21652 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21653             Bruno Haible  <bruno@clisp.org>
21654
21655         * gnulib-tool (func_create_testdir): Add license consistency check.
21656
21657 2006-11-15  Eric Blake  <ebb9@byu.net>
21658
21659         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21660         random "(cached)" in configure output.
21661
21662 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21663
21664         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21665         test for conforming inttypes.h is both announced and cached.
21666
21667         * MODULES.html.sh (seen_modules, seen_files): New variables.
21668         (func_module): Rewrite to use a few less gnulib-tool and sed
21669         invocations.  Avoid a couple of quadratic algorithms for ...
21670         (missed_modules, missed_files): ... these, with ...
21671         (func_append, func_tmpdir): ... these new functions, from
21672         gnulib-tool.  Analogously, install traps for cleanup.
21673
21674         * tests/test-gc.c (main): Remove unused variables.
21675         * tests/test-read-file.c: Include stdlib.h, for 'free'.
21676
21677 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21678
21679         * modules/inttostr (License): Change to LGPL.
21680
21681 2006-11-14  Eric Blake  <ebb9@byu.net>
21682
21683         * modules/tempname (License): Change to LGPL.
21684
21685 2006-11-14  Eric Blake  <ebb9@byu.net>
21686
21687         * doc/functions.texi (Function Portability): *printf functions on
21688         Cygwin now understand all POSIX size specifiers.
21689
21690 2006-11-14  Bruno Haible  <bruno@clisp.org>
21691
21692         * modules/c-ctype (License): Change to LGPL.
21693
21694 2006-11-12  Bruno Haible  <bruno@clisp.org>
21695
21696         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21697         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21698         for GNOME libraries, for which the include files are installed in
21699         subdirectories of $prefix/include.
21700
21701 2006-11-12  Bruno Haible  <bruno@clisp.org>
21702
21703         * m4/lib-link.m4: Require at least autoconf-2.54.
21704         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21705         name to underscores for the --with option.
21706
21707 2006-11-13  Bruno Haible  <bruno@clisp.org>
21708
21709         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21710         the tests directory.
21711         Reported by Ralf Wildenhues.
21712
21713 2006-11-13  Bruno Haible  <bruno@clisp.org>
21714
21715         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21716         (func_emit_initmacro_end): Undo the override here.
21717         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21718         Works around the famous automake error in coreutils.
21719
21720 2006-11-13  Eric Blake  <ebb9@byu.net>
21721
21722         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21723         element, not its node.
21724
21725 2006-11-12  Bruno Haible  <bruno@clisp.org>
21726
21727         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21728         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21729
21730 2006-11-12  Bruno Haible  <bruno@clisp.org>
21731
21732         * gnulib-tool: New option --local-symlink.
21733         (func_usage): Document it.
21734         (lsymbolic): New variable.
21735         (func_import, func_create_testdir): If --symlink was not specified,
21736         test whether --local-symlink was specified and the file comes from
21737         the local_gnulib_dir.
21738
21739 2006-11-12  Bruno Haible  <bruno@clisp.org>
21740
21741         * gnulib-tool (func_ln): New function.
21742         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21743
21744 2006-11-12  Bruno Haible  <bruno@clisp.org>
21745
21746         Finish support for source files in subdirectories.
21747         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21748         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21749         AUTOMAKE_OPTIONS.
21750         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21751
21752 2006-11-12  Bruno Haible  <bruno@clisp.org>
21753
21754         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21755         EXTRA_lib_SOURCES augmentation.
21756         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21757
21758 2006-11-12  Jim Meyering  <jim@meyering.net>
21759
21760         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21761         file descriptors.  This also averts a failure on systems with
21762         native openat support when a traversed directory lacks "x" access.
21763         * lib/fts_.h: Include "i-ring.h"
21764         (struct FTS) [fts_fd_ring]: New member.
21765         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21766         (FCHDIR): Add parentheses.
21767         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21768         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
21769         When descending, rather than simply closing the previous
21770         fts_cwd_fd value, push that file descriptor onto the ring.
21771         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21772         (fts_open): Initialize the new fd_ring member.
21773         (fts_close): Clear the ring.
21774         (fts_safe_changedir): When possible, use our new fd_ring to skip
21775         the diropen and fstat and dev/ino comparison that would normally
21776         accompany a virtual `chdir ("..")'.
21777
21778         * modules/fts (Depends-on): Add i-ring.
21779         * modules/i-ring: New module.
21780         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21781         * m4/i-ring.m4: New file.
21782
21783 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21784
21785         * gnulib-tool (func_create_testdir): Fix replacement of
21786         `build-aux' in configure.ac.  Run autotools in gltests
21787         subdirectory.
21788         (func_create_testdir, func_create_megatestdir, test): There is
21789         no need for '--force' in most autotool invocations in a new
21790         tree.  Actually fail the whole test if any of the tools, or the
21791         configure or make stages fail.
21792
21793         Sync from Automake.
21794         * build-aux/gnupload: Revert last change.  Add pointer to upload
21795         instructions of the GNU Maintenance Instructions.
21796         Suggestion by Karl Berry.
21797
21798 2006-11-10  Jim Meyering  <jim@meyering.net>
21799
21800         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21801
21802 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21803
21804         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21805         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21806         (bind_textdomain_codeset) [! ENABLE_NLS]:
21807         Evaluate all the arguments.  That way, callers get compatible behavior
21808         if the arguments have side effects.  Also, it avoids some GCC
21809         diagnostics in some cases; Joel E. Denny reported problems when Bison
21810         was configured with --enable-gcc-warnigs.
21811
21812 2006-11-10  Jim Meyering  <jim@meyering.net>
21813
21814         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21815         relevant options in CFLAGS (like -O, -fno-inline) are taken into
21816         account.
21817
21818 2006-11-10  Jim Meyering  <jim@meyering.net>
21819
21820         * modules/inline: New file/module.
21821         * modules/xalloc (Files): Remove m4/inline.m4.
21822         (Depends-on): Add inline, instead.
21823         * modules/oset: Likewise.
21824         * modules/list: Likewise.
21825
21826 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21827
21828         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21829         Problem reported by Matthew Woehlke.
21830
21831 2006-11-09  Bruno Haible  <bruno@clisp.org>
21832
21833         * lib/tempname.c (gen_tempname): Remove variant that invokes
21834         __gen_tempname.
21835         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21836         __gen_tempname.
21837
21838 2006-11-08  Bruno Haible  <bruno@clisp.org>
21839
21840         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21841         to 'yes' instead of 'cross-compiling'.
21842
21843 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21844
21845         * lib/quotearg.h (quotearg_free): New decl.
21846         * lib/quotearg.c (quotearg_free): New function.
21847         (slot0, nslots, slotvec0, slotvec):
21848         Now file-scope so that quotearg_free can get at them.
21849
21850 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21851
21852         Sync from Automake.
21853         * build-aux/gnupload: Add missing 'gnu' to example URL.
21854         Report by Karl Berry.
21855
21856 2006-11-08  Bruno Haible  <bruno@clisp.org>
21857
21858         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21859         Suggested by Paul Eggert.
21860
21861 2006-11-08  Jim Meyering  <jim@meyering.net>
21862
21863         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21864         It's already included if !_LIBC.
21865         (fts_safe_changedir): Add a comment.
21866
21867 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21868
21869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21870         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21871         Matthew Woehlke.
21872
21873         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21874         definitions up, to avoid colliding with change below.
21875         (static_inline) [HAVE_INLINE]: New macro.
21876         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21877         Provide extern decls when !HAVE_INLINE.  Do not define unless
21878         static_inline is defined, either by us or by xmalloc.c.  Use
21879         static_inline rather than static inline.
21880         (XCALLOC): Optimize sizeof(T) = 1 case.
21881         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21882
21883 2006-11-07  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21886         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21887         AC_C_INLINE.
21888         * modules/xalloc (Files): Add m4/inline.m4.
21889
21890 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21891
21892         * README: Fix typo.
21893         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21894         (Miscellanous Notes): ...from this.
21895
21896 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21897
21898         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21899         Mention that offsetof should be used instead of sizeof.
21900         From Bruno Haible.
21901
21902 2006-11-07  Bruno Haible  <bruno@clisp.org>
21903
21904         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21905
21906 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21907
21908         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21909         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21910         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21911         (gl_tree_add_before, gl_tree_add_after):
21912         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21913         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21914         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21915         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21916         (gl_linked_add_after, gl_linked_add_at): Likewise.
21917         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21918         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21919         (gl_tree_add_before, gl_tree_add_after): Likewise.
21920         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21921         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21922         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21923
21924 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21925
21926         * lib/gl_oset.h: Use C comment style, not C++ comment style.
21927
21928 2006-11-06  Bruno Haible  <bruno@clisp.org>
21929
21930         * m4/inline.m4: New file.
21931         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21932         * modules/list (Files): Add m4/inline.m4.
21933         * modules/oset (Files): Likewise.
21934
21935 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21936
21937         * lib/idcache.c: Include <stddef.h>, for offsetof.
21938         (struct userid.name): Change from char * to a flexible array member.
21939         All uses changed.
21940         * modules/idcache (Depends-on): Add flexmember.
21941
21942         * MODULES.html.sh (Core language properties): New module flexmember.
21943         * modules/flexmember, m4/flexmember.m4: New files.
21944
21945         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21946         inline functions that are identical with the old xnmalloc_inline,
21947         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
21948         that we can avoid some unnecessary integer multiplications and
21949         divisions in the common case where the element size is known at
21950         compile time.
21951         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21952         needed.
21953         (xnboundedmalloc): Remove.
21954         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21955         arguments, for consistency with rest of this header.
21956         (xcharalloc): Rewrite using XNMALLOC.
21957         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21958         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
21959         versions have been moved to lib/xalloc.h and renamed to be the
21960         non-*_inline versions.
21961         (xmalloc, xrealloc): Implement without reference to the xnmalloc
21962         and xnrealloc functions, since those functions are now inline and
21963         now call us.
21964         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21965         renaming described above.
21966         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21967         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
21968         captures the dependency in AC_C_INLINE.
21969
21970         New module canonicalize-lgpl, proposed by Charles Wilson in
21971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21972         with a few small changes afterwards.
21973         * MODULES.html.sh (File system functions): New module
21974         canonicalize-lgpl.
21975         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21976         and canonicalize_file_name.
21977         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21978         * modules/canonicalize-lgpl: New files.
21979
21980 2006-11-05  Bruno Haible  <bruno@clisp.org>
21981
21982         * gnulib-tool (func_import, func_create_testdir): Create directories
21983         also for files in subdirectories of lib/.
21984
21985 2006-11-05  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21988         ANSI C compliant.
21989
21990 2006-11-03  Bruno Haible  <bruno@clisp.org>
21991
21992         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21993         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21994         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21995         (xnboundedmalloc): New inline function.
21996         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21997         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21998         xmalloc.
21999         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
22000         xmalloc.
22001         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
22002         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
22003         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
22004         xmalloc.
22005         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22006         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
22007         xmalloc.
22008         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
22009         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22010         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
22011         xmalloc.
22012         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22013         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
22014         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22015         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
22016         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
22017         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
22018         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
22019
22020 2006-11-03  Bruno Haible  <bruno@clisp.org>
22021
22022         * lib/c-ctype.h [C++]: Define functions without name mangling.
22023         * lib/fwriteerror.h [C++]: Likewise.
22024         * lib/gcd.h [C++]: Likewise.
22025         * lib/linebreak.h [C++]: Likewise.
22026
22027 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22028
22029         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
22030         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
22031         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
22032         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22033         Check for functions and headers just once.
22034         Check for declaration of canonicalize_file_name.
22035         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
22036
22037 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22038
22039         * gnulib-tool (func_import): Fix typo in actioncmd.
22040
22041 2006-11-02  Bruno Haible  <bruno@clisp.org>
22042
22043         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
22044         newline sequence in the Makefile.am snippet as a space, like "make"
22045         does.
22046         Reported by Roger Persson <perrog@gmail.com>.
22047
22048 2006-11-01  Bruno Haible  <bruno@clisp.org>
22049
22050         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
22051         already declared in <string.h>.
22052         * lib/strcase.h (strncasecmp): Don't declare it if yes.
22053
22054 2006-11-01  Bruno Haible  <bruno@clisp.org>
22055
22056         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
22057         * lib/strcase.h: Include <string.h>.
22058         (strcasecmp): Define to rpl_strcasecmp here.
22059
22060 2006-11-01  Bruno Haible  <bruno@clisp.org>
22061
22062         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
22063
22064 2006-11-01  Eric Blake  <ebb9@byu.net>
22065
22066         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
22067
22068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
22069
22070 2006-10-29  Bruno Haible  <bruno@clisp.org>
22071
22072         Make it compile in C++ mode.
22073         * lib/full-write.c (full_rw): Add a cast.
22074
22075 2006-11-01  Bruno Haible  <bruno@clisp.org>
22076
22077         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
22078         be POSIX compliant.
22079         Reported by Roger Persson <perrog@gmail.com>.
22080
22081 2006-11-01  Eric Blake  <ebb9@byu.net>
22082
22083         * lib/getopt_.h: Fix comments.
22084
22085 2006-10-31  Eric Blake  <ebb9@byu.net>
22086
22087         * modules/tmpdir (Depends-on): Add sys_stat.
22088         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
22089         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
22090         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
22091         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
22092         tempname.
22093
22094 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
22095
22096         Avoid some C++ diagnostics reported by Bruno Haible.
22097         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
22098         xmalloc.
22099         (quotearg_alloc): Use xcharalloc rather than xmalloc.
22100         (struct slotvec): Move to top level.
22101         (quotearg_n_options): Rewrite to avoid xmalloc.
22102         * lib/xalloc.h (xcharalloc): New function.
22103         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
22104         [defined __cplusplus]: Add function template that provides result
22105         type propagation.  This part of the change is from Bruno Haible.
22106
22107 2006-10-29  Bruno Haible  <bruno@clisp.org>
22108
22109         Make it compile in C++ mode.
22110         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
22111         * lib/strnlen1.c (strnlen1): Cast memchr result.
22112         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22113         * lib/clean-temp.c (string_equals, string_hash): Add casts.
22114         (create_temp_dir): Rename local variable 'template'.
22115         (compile_csharp_using_sscli): Add cast.
22116         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22117         * lib/findprog.c (find_in_path): Likewise.
22118         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22119         * lib/wait-process.c (register_slave_subprocess): Likewise.
22120
22121 2006-10-22  Bruno Haible  <bruno@clisp.org>
22122
22123         * modules/tsearch: New file.
22124         * lib/tsearch.h: New file.
22125         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22126         * m4/tsearch.m4: New file.
22127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22128
22129 2006-10-29  Eric Blake  <ebb9@byu.net>
22130
22131         * lib/arcfour.c: Assume config.h.
22132         * lib/arctwo.c: Likewise.
22133         * lib/base64.c: Likewise.
22134         * lib/check-version.c: Likewise.
22135         * lib/crc.c: Likewise.
22136         * lib/des.c: Likewise.
22137         * lib/gc-gnulib.c: Likewise.
22138         * lib/gc-libgcrypt.c: Likewise.
22139         * lib/gc-pbkdf2-sha1.c: Likewise.
22140         * lib/getaddrinfo.c: Likewise.
22141         * lib/getdelim.c: Likewise.
22142         * lib/getline.c: Likewise.
22143         * lib/hmac-md5.c: Likewise.
22144         * lib/hmac-sha1.c: Likewise.
22145         * lib/iconvme.c: Likewise.
22146         * lib/md2.c: Likewise.
22147         * lib/md4.c: Likewise.
22148         * lib/memxor.c: Likewise.
22149         * lib/read-file.c: Likewise.
22150         * lib/readline.c: Likewise.
22151         * lib/rijndael-alg-fst.c: Likewise.
22152         * lib/rijndael-api-fst.c: Likewise.
22153         * lib/xgetdomainname.c: Likewise.
22154
22155 2006-10-28  Eric Blake  <ebb9@byu.net>
22156
22157         * lib/xstrndup.c: Assume config.h.
22158
22159 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22160
22161         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22162         stat-macros.h is now for our own macros, whereas stat_h is for
22163         macros in the <sys/stat.h> name space.
22164         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22165         (STAT_MACROS_H): Remove.
22166         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22167         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22168         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22169         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22170         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22171         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22172         Move these macros to ...
22173         * lib/stat_.h: here.  Don't include stat-macros.h.
22174         * lib/canonicalize.c: Don't include stat-macros.h.
22175         * lib/chown.c: Likewise.
22176         * lib/euidaccess.c: Likewise.
22177         * lib/file-type.c: Likewise.
22178         * lib/filemode.c: Likewise.
22179         * lib/glob.c: Likewise.
22180         * lib/isapipe.c: Likewise.
22181         * lib/lchown.c: Likewise.
22182         * lib/lstat.c: Likewise.
22183         * lib/mkdir-p.c: Likewise.
22184         * lib/rmdir.c: Likewise.
22185         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
22186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
22187         unless mkdir isn't declared, to speed up 'configure'.
22188         Always create sys/stat.h, since it's unlikely any real sys/stat.h
22189         would define all the S_* symbols.
22190         * modules/canonicalize (Depends-on):
22191         Depend on sys_stat, not stat-macros.
22192         * modules/chown: Likewise.
22193         * modules/euidaccess: Likewise.
22194         * modules/filemode: Likewise.
22195         * modules/file-type: Likewise.
22196         * modules/glob: Likewise.
22197         * modules/isapipe: Likewise.
22198         * modules/lchown: Likewise.
22199         * modules/lstat: Likewise.
22200         * modules/mkancesdirs: Likewise.
22201         * modules/rmdir: Likewise.
22202         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
22203         * modules/modechange: Likewise.
22204         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
22205         (configure.ac): Remove gl_STAT_MACROS.
22206         * modules/sys_stat (Depends-on): Remove stat-macros.
22207
22208 2006-10-27  Bruno Haible  <bruno@clisp.org>
22209
22210         * m4/signed.m4: Remove file.
22211         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
22212         invocation.
22213         * modules/vasnprintf (Files): Remove m4/signed.m4.
22214
22215 2006-10-27  Bruno Haible  <bruno@clisp.org>
22216
22217         Update to GNU gettext 0.16.
22218         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
22219         m4/inttypes-h.m4, m4/signed.m4.
22220         * m4/gettext.m4: Update to GNU gettext 0.16.
22221         * m4/intl.m4: New file, from GNU gettext.
22222         * m4/intldir.m4: New file, from GNU gettext.
22223         * config/srclist.txt: Update
22224
22225 2006-10-27  Eric Blake  <ebb9@byu.net>
22226
22227         * MODULES.html.sh: Document tempname.
22228         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
22229         dependencies.
22230         (Files): Move lib/tempname.c...
22231         * modules/tempname: ...to this new module.
22232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
22233         (gl_PREREQ_TEMPNAME): Move...
22234         * m4/tempname.m4: ...to this new file.
22235         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
22236         * modules/sys_stat (Depends-on): Add stat-macros.
22237         * lib/stat_.h (includes): Pick up stat macros.
22238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
22239         if stat macros are broken.
22240         * lib/tempname.c (includes): No need to include "stat-macros.h".
22241         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
22242         (direxists, __path_search) [!_LIBC]: Don't compile these in
22243         gnulib; the tmpdir module covers that.
22244         * lib/tempname.h: New file.
22245
22246 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22247
22248         * COPYING: Explain how gnulib-tool converts licence headers.
22249         Almost all wording by Eric Blake.
22250
22251 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22252
22253         * lib/mbchar.h (is_basic_table): Make read-only.
22254         * lib/mbchar.c (is_basic_table): Likewise.
22255         Reported by John Darrington.
22256
22257 2006-10-25  Bruno Haible  <bruno@clisp.org>
22258
22259         * lib/progname.h (set_program_name): Undefine before defining.
22260
22261 2006-10-25  Bruno Haible  <bruno@clisp.org>
22262
22263         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22264         false for non-gcc C++ compilers.
22265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22266
22267 2006-10-24  Bruno Haible  <bruno@clisp.org>
22268
22269         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22270         iconv implementations like Irix iconv.
22271
22272 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         * modules/vararrays: New file.
22275         * m4/vararrays.m4: New file, taken from diffutils.
22276         * MODULES.html.sh: New module vararrays.
22277
22278 2006-10-24  Karl Berry  <karl@gnu.org>
22279
22280         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22281         Don't call GNU Unix.
22282
22283 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22284
22285         * users.txt: Add Libtool.
22286
22287         Sync from Libtool:
22288
22289         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22290
22291         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22292         to gnulib's policy of including config.h unconditionally.
22293
22294 2006-10-24  Bruno Haible  <bruno@clisp.org>
22295
22296         * modules/wcwidth (Files): Add m4/wint_t.m4.
22297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22298         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22299
22300 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22301
22302         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22303         to pacify GCC with some -W flags enabled.  Problem reported by
22304         Bruno Haible.
22305
22306 2006-10-24  Jim Meyering  <jim@meyering.net>
22307
22308         * MODULES.html.sh: Remove uinttostr.  It's not a module.
22309         Reported by Karl Berry.
22310
22311 2006-10-23  Bruno Haible  <bruno@clisp.org>
22312
22313         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22314
22315 2006-10-24  Bruno Haible  <bruno@clisp.org>
22316
22317         * lib/gl_list.h: Use C comment style, not C++ comment style.
22318
22319 2006-10-23  Eric Blake  <ebb9@byu.net>
22320
22321         * lib/getaddrinfo.c (includes): Add missing include.
22322
22323 2006-10-23  Bruno Haible  <bruno@clisp.org>
22324             Paul Eggert  <eggert@cs.ucla.edu>
22325
22326         Ability to rename obstack_free.
22327         * lib/obstack.h (__obstack_free): New macro. Declare instead of
22328         obstack_free.
22329         (obstack_free): Invoke the __obstack_free macro.
22330         * lib/obstack.c (obstack_free): Use __obstack_free macro.
22331
22332 2006-10-23  Bruno Haible  <bruno@clisp.org>
22333             Paul Eggert  <eggert@cs.ucla.edu>
22334
22335         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22336         __argc, __argv from the declaration. (They are defined as macros on
22337         mingw.)
22338
22339 2006-10-22  Bruno Haible  <bruno@clisp.org>
22340
22341         * doc/gnulib-intro.texi: New file.
22342         * doc/gnulib.texi: Include it.
22343
22344 2006-10-21  Bruno Haible  <bruno@clisp.org>
22345
22346         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22347         "Introduction", "Miscellanous Notes", "Particular Modules".
22348
22349 2006-10-21  Bruno Haible  <bruno@clisp.org>
22350
22351         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22352         Change mostlyclean-local rule to avoid sh syntax error from bash
22353         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22354
22355 2006-10-23  Jim Meyering  <jim@meyering.net>
22356
22357         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22358         in place of snprintf.
22359
22360         * modules/inttostr (Files): Add lib/uinttostr.c.
22361         * lib/uinttostr.c (inttostr): New file/function.
22362         * lib/inttostr.h (uinttostr): Declare.
22363         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22364         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22365         Add uinttostr.
22366         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
22367
22368 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22369
22370         * lib/canonicalize.c (ELOOP): Define if not already defined.
22371         Problem reported by Bruno Haible in
22372         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22373
22374 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22375
22376         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22377         Problem reported by Perry Smith and Ville Laurikari.
22378
22379         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22380         uses.
22381
22382 2006-10-19  Bruno Haible  <bruno@clisp.org>
22383
22384         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22385         for mingw.
22386
22387 2006-10-19  Bruno Haible  <bruno@clisp.org>
22388
22389         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22390         Needed for mingw.
22391
22392 2006-10-19  Bruno Haible  <bruno@clisp.org>
22393
22394         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22395
22396 2006-10-19  Bruno Haible  <bruno@clisp.org>
22397
22398         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22399         it.
22400
22401 2006-10-19  Bruno Haible  <bruno@clisp.org>
22402
22403         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22404         invocation.
22405
22406 2006-10-19  Bruno Haible  <bruno@clisp.org>
22407
22408         * gnulib-tool (func_create_testdir): Don't include ftruncate and
22409         mountlist by default.
22410
22411 2006-10-16  Bruno Haible  <bruno@clisp.org>
22412
22413         * lib/c-strstr.c: Include c-strstr.h.
22414
22415 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22416
22417         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22418         in a slash.
22419
22420 2006-10-18  Bruno Haible  <bruno@clisp.org>
22421
22422         * lib/lock.h [C++]: Wrap definitions in extern "C".
22423
22424 2006-10-18  Bruno Haible  <bruno@clisp.org>
22425
22426         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22427         gl_LIBOBJS list.
22428
22429 2006-10-18  Bruno Haible  <bruno@clisp.org>
22430
22431         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22432
22433 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22434
22435         * lib/xstrtol.h: Include gettext.h.
22436         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22437         Problem reported by Eric Blake.
22438         * modules/xstrtol (Depends-on): Add gettext-h.
22439
22440 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
22441
22442         * lib/strftime.c (advance): New macro.
22443         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
22444         incomplete type, so you can't add 0 to it.  Problem and patch
22445         reported by Eelco Dolstra for dietlibc.
22446
22447 2006-10-18  Jim Meyering  <jim@meyering.net>
22448
22449         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22450         type for a local, and rename it: s/up/user_proc/.
22451
22452 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22453
22454         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22455         READ_UTMP_USER_PROCESS.
22456         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22457
22458 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22459
22460         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22461         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22462
22463 2006-10-17  Eric Blake  <ebb9@byu.net>
22464
22465         * lib/sigprocmask.c (sigprocmask): Fix typo.
22466
22467         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22468
22469         * modules/clean-temp (Makefile.am): Don't add to make output...
22470         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22471         config.h.
22472
22473 2006-10-17  Bruno Haible  <bruno@clisp.org>
22474
22475         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22476         differently if DEFAULT_TEXT_DOMAIN is set.
22477
22478 2006-10-16  Bruno Haible  <bruno@clisp.org>
22479
22480         * lib/clean-temp.c: Include fwriteerror.h.
22481
22482 2006-10-16  Bruno Haible  <bruno@clisp.org>
22483
22484         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22485
22486 2006-10-16  Bruno Haible  <bruno@clisp.org>
22487
22488         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22489         * lib/sigprocmask.h: Include <sys/types.h>.
22490         (sigset_t): Use the system's definition if present.
22491
22492 2006-10-17  Eric Blake  <ebb9@byu.net>
22493
22494         * lib/xvasprintf.c (includes): Assume config.h.
22495         * lib/xasprintf.c (includes): Likewise.
22496
22497 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22498
22499         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22500         at least as wide as intmax_t.
22501
22502 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
22503
22504         (Imported from Automake.)
22505         * build-aux/gnupload: Update to version 1.1 of directive file.
22506
22507 2006-10-16  Eric Blake  <ebb9@byu.net>
22508
22509         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22510         match Automake 1.10a.
22511
22512 2006-10-14  Bruno Haible  <bruno@clisp.org>
22513
22514         * modules/sigprocmask: New file.
22515         * lib/sigprocmask.h: New file.
22516         * lib/sigprocmask.c: New file.
22517         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22518         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22519         request sigprocmask.o.
22520         (gl_PREREQ_SIGPROCMASK): New macro.
22521         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22522         (Depends-on): Add sigprocmask.
22523         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22524         gt_SIGNALBLOCKING. Test for 'raise' only once.
22525         * lib/fatal-signal.c: Include sigprocmask.h.
22526         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22527         unblock_fatal_signals): Define always.
22528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22529         sigprocmask.
22530
22531 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         Sync from Automake.
22534         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22535         which incorrectly sets the mode of an existing destination
22536         directory.  In some cases the unpatched install-sh could do the
22537         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22538         system.  We hope this is rare in practice, but it's clearly worth
22539         fixing.  Problem reported by Alex Unleashed in
22540         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22541         Also, don't bother to check for -m bugs unless we're using -m;
22542         suggested by Stepan Kasal.
22543
22544 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22545
22546         Sync from Automake.
22547         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22548         `-c' flag, so they appear at the same position as in %FASTDEP%
22549         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
22550         which ignores unknown options only after the first non-option.
22551         Bug report against M4 by Nelson H. F. Beebe.
22552
22553 2006-10-13  Jim Meyering  <jim@meyering.net>
22554
22555         Fix a bug in yesterday's change.
22556         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22557         p->fts_statp->st_dev would be used uninitialized.
22558         Ensures that we always call fts_stat on the very first entry.
22559         Miklos Szeredi reported that find -xdev stopped working.
22560
22561 2006-10-12  Bruno Haible  <bruno@clisp.org>
22562
22563         * gnulib-tool (func_get_automake_snippet): Append an automatically
22564         computed EXTRA_DIST augmentation.
22565         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22566         * modules/alloca-opt (Makefile.am): Likewise.
22567         * modules/allocsa (Makefile.am): Likewise.
22568         * modules/arcfour (Makefile.am): Likewise.
22569         * modules/arctwo (Makefile.am): Likewise.
22570         * modules/argmatch (Makefile.am): Likewise.
22571         * modules/argz (Makefile.am): Likewise.
22572         * modules/atexit (Makefile.am): Likewise.
22573         * modules/backupfile (Makefile.am): Likewise.
22574         * modules/byteswap (Makefile.am): Likewise.
22575         * modules/c-strtod (Makefile.am): Likewise.
22576         * modules/c-strtold (Makefile.am): Likewise.
22577         * modules/calloc (Makefile.am): Likewise.
22578         * modules/canon-host (Makefile.am): Likewise.
22579         * modules/canonicalize (Makefile.am): Likewise.
22580         * modules/chdir-long (Makefile.am): Likewise.
22581         * modules/chdir-safer (Makefile.am): Likewise.
22582         * modules/check-version (Makefile.am): Likewise.
22583         * modules/chown (Makefile.am): Likewise.
22584         * modules/cloexec (Makefile.am): Likewise.
22585         * modules/close-stream (Makefile.am): Likewise.
22586         * modules/closeout (Makefile.am): Likewise.
22587         * modules/crc (Makefile.am): Likewise.
22588         * modules/csharpexec (Makefile.am): Likewise.
22589         * modules/cycle-check (Makefile.am): Likewise.
22590         * modules/des (Makefile.am): Likewise.
22591         * modules/dev-ino (Makefile.am): Likewise.
22592         * modules/dirfd (Makefile.am): Likewise.
22593         * modules/dirname (Makefile.am): Likewise.
22594         * modules/dup2 (Makefile.am): Likewise.
22595         * modules/eealloc (Makefile.am): Likewise.
22596         * modules/error (Makefile.am): Likewise.
22597         * modules/euidaccess (Makefile.am): Likewise.
22598         * modules/exclude (Makefile.am): Likewise.
22599         * modules/exitfail (Makefile.am): Likewise.
22600         * modules/fcntl-safer (Makefile.am): Likewise.
22601         * modules/fcntl (Makefile.am): Likewise.
22602         * modules/file-type (Makefile.am): Likewise.
22603         * modules/fileblocks (Makefile.am): Likewise.
22604         * modules/filemode (Makefile.am): Likewise.
22605         * modules/filenamecat (Makefile.am): Likewise.
22606         * modules/fnmatch (Makefile.am): Likewise.
22607         * modules/fopen-safer (Makefile.am): Likewise.
22608         * modules/fpending (Makefile.am): Likewise.
22609         * modules/fprintftime (Makefile.am): Likewise.
22610         * modules/free (Makefile.am): Likewise.
22611         * modules/fsusage (Makefile.am): Likewise.
22612         * modules/ftruncate (Makefile.am): Likewise.
22613         * modules/fts (Makefile.am): Likewise.
22614         * modules/gc-arcfour (Makefile.am): Likewise.
22615         * modules/gc-des (Makefile.am): Likewise.
22616         * modules/gc-hmac-md5 (Makefile.am): Likewise.
22617         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22618         * modules/gc-md4 (Makefile.am): Likewise.
22619         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22620         * modules/gc-sha1 (Makefile.am): Likewise.
22621         * modules/gc (Makefile.am): Likewise.
22622         * modules/getaddrinfo (Makefile.am): Likewise.
22623         * modules/getcwd (Makefile.am): Likewise.
22624         * modules/getdelim (Makefile.am): Likewise.
22625         * modules/getdomainname (Makefile.am): Likewise.
22626         * modules/getgroups (Makefile.am): Likewise.
22627         * modules/gethostname (Makefile.am): Likewise.
22628         * modules/gethrxtime (Makefile.am): Likewise.
22629         * modules/getline (Makefile.am): Likewise.
22630         * modules/getloadavg (Makefile.am): Likewise.
22631         * modules/getlogin_r (Makefile.am): Likewise.
22632         * modules/getndelim2 (Makefile.am): Likewise.
22633         * modules/getopt (Makefile.am): Likewise.
22634         * modules/getpagesize (Makefile.am): Likewise.
22635         * modules/getpass-gnu (Makefile.am): Likewise.
22636         * modules/getpass (Makefile.am): Likewise.
22637         * modules/getsubopt (Makefile.am): Likewise.
22638         * modules/gettime (Makefile.am): Likewise.
22639         * modules/gettimeofday (Makefile.am): Likewise.
22640         * modules/getugroups (Makefile.am): Likewise.
22641         * modules/getusershell (Makefile.am): Likewise.
22642         * modules/glob (Makefile.am): Likewise.
22643         * modules/group-member (Makefile.am): Likewise.
22644         * modules/hard-locale (Makefile.am): Likewise.
22645         * modules/hash (Makefile.am): Likewise.
22646         * modules/hmac-md5 (Makefile.am): Likewise.
22647         * modules/hmac-sha1 (Makefile.am): Likewise.
22648         * modules/human (Makefile.am): Likewise.
22649         * modules/idcache (Makefile.am): Likewise.
22650         * modules/imaxabs (Makefile.am): Likewise.
22651         * modules/imaxdiv (Makefile.am): Likewise.
22652         * modules/inet_ntop (Makefile.am): Likewise.
22653         * modules/inet_pton (Makefile.am): Likewise.
22654         * modules/intprops (Makefile.am): Likewise.
22655         * modules/inttostr (Makefile.am): Likewise.
22656         * modules/inttypes (Makefile.am): Likewise.
22657         * modules/isapipe (Makefile.am): Likewise.
22658         * modules/javaversion (Makefile.am): Likewise.
22659         * modules/lchmod (Makefile.am): Likewise.
22660         * modules/lchown (Makefile.am): Likewise.
22661         * modules/localcharset (Makefile.am): Likewise.
22662         * modules/long-options (Makefile.am): Likewise.
22663         * modules/lstat (Makefile.am): Likewise.
22664         * modules/malloc (Makefile.am): Likewise.
22665         * modules/mathl (Makefile.am): Likewise.
22666         * modules/mbchar (Makefile.am): Likewise.
22667         * modules/md2 (Makefile.am): Likewise.
22668         * modules/md4 (Makefile.am): Likewise.
22669         * modules/md5 (Makefile.am): Likewise.
22670         * modules/memcasecmp (Makefile.am): Likewise.
22671         * modules/memchr (Makefile.am): Likewise.
22672         * modules/memcmp (Makefile.am): Likewise.
22673         * modules/memcoll (Makefile.am): Likewise.
22674         * modules/memcpy (Makefile.am): Likewise.
22675         * modules/memmem (Makefile.am): Likewise.
22676         * modules/memmove (Makefile.am): Likewise.
22677         * modules/mempcpy (Makefile.am): Likewise.
22678         * modules/memrchr (Makefile.am): Likewise.
22679         * modules/memset (Makefile.am): Likewise.
22680         * modules/memxor (Makefile.am): Likewise.
22681         * modules/mkancesdirs (Makefile.am): Likewise.
22682         * modules/mkdir-p (Makefile.am): Likewise.
22683         * modules/mkdir (Makefile.am): Likewise.
22684         * modules/mkdtemp (Makefile.am): Likewise.
22685         * modules/mkstemp (Makefile.am): Likewise.
22686         * modules/mktime (Makefile.am): Likewise.
22687         * modules/modechange (Makefile.am): Likewise.
22688         * modules/mountlist (Makefile.am): Likewise.
22689         * modules/nanosleep (Makefile.am): Likewise.
22690         * modules/obstack (Makefile.am): Likewise.
22691         * modules/openat (Makefile.am): Likewise.
22692         * modules/pagealign_alloc (Makefile.am): Likewise.
22693         * modules/pathmax (Makefile.am): Likewise.
22694         * modules/physmem (Makefile.am): Likewise.
22695         * modules/poll (Makefile.am): Likewise.
22696         * modules/posixtm (Makefile.am): Likewise.
22697         * modules/posixver (Makefile.am): Likewise.
22698         * modules/putenv (Makefile.am): Likewise.
22699         * modules/quote (Makefile.am): Likewise.
22700         * modules/quotearg (Makefile.am): Likewise.
22701         * modules/raise (Makefile.am): Likewise.
22702         * modules/read-file (Makefile.am): Likewise.
22703         * modules/readline (Makefile.am): Likewise.
22704         * modules/readlink (Makefile.am): Likewise.
22705         * modules/readtokens (Makefile.am): Likewise.
22706         * modules/readutmp (Makefile.am): Likewise.
22707         * modules/realloc (Makefile.am): Likewise.
22708         * modules/regex (Makefile.am): Likewise.
22709         * modules/rename-dest-slash (Makefile.am): Likewise.
22710         * modules/rename (Makefile.am): Likewise.
22711         * modules/rijndael (Makefile.am): Likewise.
22712         * modules/rmdir (Makefile.am): Likewise.
22713         * modules/rpmatch (Makefile.am): Likewise.
22714         * modules/safe-read (Makefile.am): Likewise.
22715         * modules/safe-write (Makefile.am): Likewise.
22716         * modules/same-inode (Makefile.am): Likewise.
22717         * modules/same (Makefile.am): Likewise.
22718         * modules/save-cwd (Makefile.am): Likewise.
22719         * modules/savedir (Makefile.am): Likewise.
22720         * modules/setenv (Makefile.am): Likewise.
22721         * modules/settime (Makefile.am): Likewise.
22722         * modules/sha1 (Makefile.am): Likewise.
22723         * modules/sig2str (Makefile.am): Likewise.
22724         * modules/snprintf (Makefile.am): Likewise.
22725         * modules/stat-macros (Makefile.am): Likewise.
22726         * modules/stat-time (Makefile.am): Likewise.
22727         * modules/stdbool (Makefile.am): Likewise.
22728         * modules/stdint (Makefile.am): Likewise.
22729         * modules/stdlib-safer (Makefile.am): Likewise.
22730         * modules/stpcpy (Makefile.am): Likewise.
22731         * modules/stpncpy (Makefile.am): Likewise.
22732         * modules/strcase (Makefile.am): Likewise.
22733         * modules/strcasestr (Makefile.am): Likewise.
22734         * modules/strchrnul (Makefile.am): Likewise.
22735         * modules/strcspn (Makefile.am): Likewise.
22736         * modules/strdup (Makefile.am): Likewise.
22737         * modules/strerror (Makefile.am): Likewise.
22738         * modules/strftime (Makefile.am): Likewise.
22739         * modules/strndup (Makefile.am): Likewise.
22740         * modules/strnlen (Makefile.am): Likewise.
22741         * modules/strpbrk (Makefile.am): Likewise.
22742         * modules/strsep (Makefile.am): Likewise.
22743         * modules/strstr (Makefile.am): Likewise.
22744         * modules/strtod (Makefile.am): Likewise.
22745         * modules/strtoimax (Makefile.am): Likewise.
22746         * modules/strtok_r (Makefile.am): Likewise.
22747         * modules/strtol (Makefile.am): Likewise.
22748         * modules/strtoll (Makefile.am): Likewise.
22749         * modules/strtoul (Makefile.am): Likewise.
22750         * modules/strtoull (Makefile.am): Likewise.
22751         * modules/strtoumax (Makefile.am): Likewise.
22752         * modules/strverscmp (Makefile.am): Likewise.
22753         * modules/sys_socket (Makefile.am): Likewise.
22754         * modules/sys_stat (Makefile.am): Likewise.
22755         * modules/sysexits (Makefile.am): Likewise.
22756         * modules/time_r (Makefile.am): Likewise.
22757         * modules/timegm (Makefile.am): Likewise.
22758         * modules/timespec (Makefile.am): Likewise.
22759         * modules/tmpfile-safer (Makefile.am): Likewise.
22760         * modules/trim (Makefile.am): Likewise.
22761         * modules/unistd-safer (Makefile.am): Likewise.
22762         * modules/unlinkdir (Makefile.am): Likewise.
22763         * modules/unlocked-io (Makefile.am): Likewise.
22764         * modules/userspec (Makefile.am): Likewise.
22765         * modules/utime (Makefile.am): Likewise.
22766         * modules/utimecmp (Makefile.am): Likewise.
22767         * modules/utimens (Makefile.am): Likewise.
22768         * modules/vasnprintf (Makefile.am): Likewise.
22769         * modules/vasprintf (Makefile.am): Likewise.
22770         * modules/vsnprintf (Makefile.am): Likewise.
22771         * modules/xalloc (Makefile.am): Likewise.
22772         * modules/xgetcwd (Makefile.am): Likewise.
22773         * modules/xnanosleep (Makefile.am): Likewise.
22774         * modules/xreadlink (Makefile.am): Likewise.
22775         * modules/xstrtod (Makefile.am): Likewise.
22776         * modules/xstrtol (Makefile.am): Likewise.
22777         * modules/xstrtold (Makefile.am): Likewise.
22778         * modules/yesno (Makefile.am): Likewise.
22779         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22780
22781 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22782
22783         * modules/error (Makefile.am): Distribute files through
22784         EXTRA_DIST, not lib_SOURCES.
22785
22786 2006-10-12  Eric Blake  <ebb9@byu.net>
22787
22788         * modules/error (Makefile.am): Distribute files in /lib.
22789         * modules/obstack (Makefile.am): Likewise.
22790
22791 2006-10-12  Bruno Haible  <bruno@clisp.org>
22792
22793         * modules/acl (Makefile.am): Distribute all files in lib/ through
22794         EXTRA_DIST.
22795         * modules/arcfour (Makefile.am): Likewise.
22796         * modules/arctwo (Makefile.am): Likewise.
22797         * modules/argmatch (Makefile.am): Likewise.
22798         * modules/argz (Makefile.am): Likewise.
22799         * modules/atexit (Makefile.am): Likewise.
22800         * modules/backupfile (Makefile.am): Likewise.
22801         * modules/c-strtod (Makefile.am): Likewise.
22802         * modules/c-strtold (Makefile.am): Likewise.
22803         * modules/calloc (Makefile.am): Likewise.
22804         * modules/canon-host (Makefile.am): Likewise.
22805         * modules/canonicalize (Makefile.am): Likewise.
22806         * modules/chdir-long (Makefile.am): Likewise.
22807         * modules/chdir-safer (Makefile.am): Likewise.
22808         * modules/check-version (Makefile.am): Likewise.
22809         * modules/chown (Makefile.am): Likewise.
22810         * modules/cloexec (Makefile.am): Likewise.
22811         * modules/close-stream (Makefile.am): Likewise.
22812         * modules/closeout (Makefile.am): Likewise.
22813         * modules/crc (Makefile.am): Likewise.
22814         * modules/cycle-check (Makefile.am): Likewise.
22815         * modules/des (Makefile.am): Likewise.
22816         * modules/dirfd (Makefile.am): Likewise.
22817         * modules/dirname (Makefile.am): Likewise.
22818         * modules/dup2 (Makefile.am): Likewise.
22819         * modules/euidaccess (Makefile.am): Likewise.
22820         * modules/exclude (Makefile.am): Likewise.
22821         * modules/exitfail (Makefile.am): Likewise.
22822         * modules/fcntl-safer (Makefile.am): Likewise.
22823         * modules/file-type (Makefile.am): Likewise.
22824         * modules/fileblocks (Makefile.am): Likewise.
22825         * modules/filemode (Makefile.am): Likewise.
22826         * modules/filenamecat (Makefile.am): Likewise.
22827         * modules/fnmatch (Makefile.am): Likewise.
22828         * modules/fopen-safer (Makefile.am): Likewise.
22829         * modules/fpending (Makefile.am): Likewise.
22830         * modules/fprintftime (Makefile.am): Likewise.
22831         * modules/free (Makefile.am): Likewise.
22832         * modules/fsusage (Makefile.am): Likewise.
22833         * modules/ftruncate (Makefile.am): Likewise.
22834         * modules/fts (Makefile.am): Likewise.
22835         * modules/gc (Makefile.am): Likewise.
22836         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22837         * modules/getaddrinfo (Makefile.am): Likewise.
22838         * modules/getcwd (Makefile.am): Likewise.
22839         * modules/getdelim (Makefile.am): Likewise.
22840         * modules/getdomainname (Makefile.am): Likewise.
22841         * modules/getgroups (Makefile.am): Likewise.
22842         * modules/gethostname (Makefile.am): Likewise.
22843         * modules/gethrxtime (Makefile.am): Likewise.
22844         * modules/getline (Makefile.am): Likewise.
22845         * modules/getloadavg (Makefile.am): Likewise.
22846         * modules/getlogin_r (Makefile.am): Likewise.
22847         * modules/getopt (Makefile.am): Likewise.
22848         * modules/getpass (Makefile.am): Likewise.
22849         * modules/getpass-gnu (Makefile.am): Likewise.
22850         * modules/getsubopt (Makefile.am): Likewise.
22851         * modules/gettime (Makefile.am): Likewise.
22852         * modules/gettimeofday (Makefile.am): Likewise.
22853         * modules/getugroups (Makefile.am): Likewise.
22854         * modules/getusershell (Makefile.am): Likewise.
22855         * modules/glob (Makefile.am): Likewise.
22856         * modules/group-member (Makefile.am): Likewise.
22857         * modules/hard-locale (Makefile.am): Likewise.
22858         * modules/hash (Makefile.am): Likewise.
22859         * modules/hmac-md5 (Makefile.am): Likewise.
22860         * modules/hmac-sha1 (Makefile.am): Likewise.
22861         * modules/human (Makefile.am): Likewise.
22862         * modules/idcache (Makefile.am): Likewise.
22863         * modules/imaxabs (Makefile.am): Likewise.
22864         * modules/imaxdiv (Makefile.am): Likewise.
22865         * modules/inet_ntop (Makefile.am): Likewise.
22866         * modules/inet_pton (Makefile.am): Likewise.
22867         * modules/inttostr (Makefile.am): Likewise.
22868         * modules/isapipe (Makefile.am): Likewise.
22869         * modules/lchown (Makefile.am): Likewise.
22870         * modules/long-options (Makefile.am): Likewise.
22871         * modules/lstat (Makefile.am): Likewise.
22872         * modules/malloc (Makefile.am): Likewise.
22873         * modules/mathl (Makefile.am): Likewise.
22874         * modules/mbchar (Makefile.am): Likewise.
22875         * modules/md2 (Makefile.am): Likewise.
22876         * modules/md4 (Makefile.am): Likewise.
22877         * modules/md5 (Makefile.am): Likewise.
22878         * modules/memcasecmp (Makefile.am): Likewise.
22879         * modules/memchr (Makefile.am): Likewise.
22880         * modules/memcmp (Makefile.am): Likewise.
22881         * modules/memcoll (Makefile.am): Likewise.
22882         * modules/memcpy (Makefile.am): Likewise.
22883         * modules/memmem (Makefile.am): Likewise.
22884         * modules/memmove (Makefile.am): Likewise.
22885         * modules/mempcpy (Makefile.am): Likewise.
22886         * modules/memrchr (Makefile.am): Likewise.
22887         * modules/memset (Makefile.am): Likewise.
22888         * modules/memxor (Makefile.am): Likewise.
22889         * modules/mkancesdirs (Makefile.am): Likewise.
22890         * modules/mkdir (Makefile.am): Likewise.
22891         * modules/mkdir-p (Makefile.am): Likewise.
22892         * modules/mkdtemp (Makefile.am): Likewise.
22893         * modules/mkstemp (Makefile.am): Likewise.
22894         * modules/mktime (Makefile.am): Likewise.
22895         * modules/modechange (Makefile.am): Likewise.
22896         * modules/mountlist (Makefile.am): Likewise.
22897         * modules/nanosleep (Makefile.am): Likewise.
22898         * modules/openat (Makefile.am): Likewise.
22899         * modules/pagealign_alloc (Makefile.am): Likewise.
22900         * modules/physmem (Makefile.am): Likewise.
22901         * modules/poll (Makefile.am): Likewise.
22902         * modules/posixtm (Makefile.am): Likewise.
22903         * modules/posixver (Makefile.am): Likewise.
22904         * modules/putenv (Makefile.am): Likewise.
22905         * modules/quote (Makefile.am): Likewise.
22906         * modules/quotearg (Makefile.am): Likewise.
22907         * modules/raise (Makefile.am): Likewise.
22908         * modules/read-file (Makefile.am): Likewise.
22909         * modules/readline (Makefile.am): Likewise.
22910         * modules/readlink (Makefile.am): Likewise.
22911         * modules/readtokens (Makefile.am): Likewise.
22912         * modules/readutmp (Makefile.am): Likewise.
22913         * modules/realloc (Makefile.am): Likewise.
22914         * modules/regex (Makefile.am): Likewise.
22915         * modules/rename (Makefile.am): Likewise.
22916         * modules/rename-dest-slash (Makefile.am): Likewise.
22917         * modules/rijndael (Makefile.am): Likewise.
22918         * modules/rmdir (Makefile.am): Likewise.
22919         * modules/rpmatch (Makefile.am): Likewise.
22920         * modules/safe-read (Makefile.am): Likewise.
22921         * modules/safe-write (Makefile.am): Likewise.
22922         * modules/same (Makefile.am): Likewise.
22923         * modules/save-cwd (Makefile.am): Likewise.
22924         * modules/savedir (Makefile.am): Likewise.
22925         * modules/setenv (Makefile.am): Likewise.
22926         * modules/settime (Makefile.am): Likewise.
22927         * modules/sha1 (Makefile.am): Likewise.
22928         * modules/sig2str (Makefile.am): Likewise.
22929         * modules/snprintf (Makefile.am): Likewise.
22930         * modules/stdlib-safer (Makefile.am): Likewise.
22931         * modules/stpcpy (Makefile.am): Likewise.
22932         * modules/stpncpy (Makefile.am): Likewise.
22933         * modules/strcase (Makefile.am): Likewise.
22934         * modules/strcasestr (Makefile.am): Likewise.
22935         * modules/strchrnul (Makefile.am): Likewise.
22936         * modules/strcspn (Makefile.am): Likewise.
22937         * modules/strdup (Makefile.am): Likewise.
22938         * modules/strerror (Makefile.am): Likewise.
22939         * modules/strftime (Makefile.am): Likewise.
22940         * modules/strndup (Makefile.am): Likewise.
22941         * modules/strnlen (Makefile.am): Likewise.
22942         * modules/strpbrk (Makefile.am): Likewise.
22943         * modules/strsep (Makefile.am): Likewise.
22944         * modules/strstr (Makefile.am): Likewise.
22945         * modules/strtod (Makefile.am): Likewise.
22946         * modules/strtoimax (Makefile.am): Likewise.
22947         * modules/strtok_r (Makefile.am): Likewise.
22948         * modules/strtol (Makefile.am): Likewise.
22949         * modules/strtoll (Makefile.am): Likewise.
22950         * modules/strtoul (Makefile.am): Likewise.
22951         * modules/strtoull (Makefile.am): Likewise.
22952         * modules/strtoumax (Makefile.am): Likewise.
22953         * modules/strverscmp (Makefile.am): Likewise.
22954         * modules/time_r (Makefile.am): Likewise.
22955         * modules/timegm (Makefile.am): Likewise.
22956         * modules/tmpfile-safer (Makefile.am): Likewise.
22957         * modules/unistd-safer (Makefile.am): Likewise.
22958         * modules/unlinkdir (Makefile.am): Likewise.
22959         * modules/userspec (Makefile.am): Likewise.
22960         * modules/utime (Makefile.am): Likewise.
22961         * modules/utimecmp (Makefile.am): Likewise.
22962         * modules/utimens (Makefile.am): Likewise.
22963         * modules/vasnprintf (Makefile.am): Likewise.
22964         * modules/vasprintf (Makefile.am): Likewise.
22965         * modules/vsnprintf (Makefile.am): Likewise.
22966         * modules/xalloc (Makefile.am): Likewise.
22967         * modules/xgetcwd (Makefile.am): Likewise.
22968         * modules/xnanosleep (Makefile.am): Likewise.
22969         * modules/xreadlink (Makefile.am): Likewise.
22970         * modules/xstrtod (Makefile.am): Likewise.
22971         * modules/xstrtol (Makefile.am): Likewise.
22972         * modules/xstrtold (Makefile.am): Likewise.
22973         * modules/yesno (Makefile.am): Likewise.
22974
22975 2006-10-12  Jim Meyering  <jim@meyering.net>
22976
22977         * m4/getloadavg.m4: Revert the change below.
22978
22979         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22980         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22981         fail with a symlink, which is what coreutils' ./bootstrap now
22982         creates by default.
22983
22984 2006-10-12  Bruno Haible  <bruno@clisp.org>
22985
22986         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22987         mingw.
22988         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22989         MSVC and mingw explicitly.
22990
22991 2006-10-11  Simon Josefsson  <jas@extundo.com>
22992             Bruno Haible  <bruno@clisp.org>
22993
22994         Add support for multiple gnulib-tool invocations in the scope of a
22995         single configure.ac file.
22996         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22997         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22998         with the same contents as the _LIBADD variable.
22999         (func_emit_initmacro_start, func_emit_initmacro_end,
23000         func_emit_initmacro_done): New functions.
23001         (func_import, func_create_testdir): Invoke them. Allow the identifiers
23002         gl_LIBOBJS and gl_LTLIBOBJS.
23003
23004 2006-10-11  Bruno Haible  <bruno@clisp.org>
23005
23006         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
23007         (func_create_testdir): Don't create po/Makefile.am, don't invoke
23008         autoreconf. Instead, invoke autopoint explicitly but move back the
23009         *.m4 files from gnulib.
23010
23011 2006-10-11  Bruno Haible  <bruno@clisp.org>
23012
23013         * gnulib-tool (func_usage): Make module names after --create-testdir
23014         optional.
23015         (func_create_testdir): If no module was specified, use nearly all
23016         modules.
23017
23018 2006-10-12  Jim Meyering  <jim@meyering.net>
23019
23020         Big performance improvement for fts-based tools that use FTS_NOSTAT.
23021         Avoid spurious inode-mismatch problems on non-POSIX file systems.
23022         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
23023         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
23024         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
23025         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
23026         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
23027         (fts_set_stat_required): New function.
23028         (fts_open): Defer the calls to fts_stat, if possible or requested.
23029         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
23030         into fts_stat itself.
23031         (fts_read): Perform any required (deferred) fts_stat call.
23032         (fts_build): Likewise, for the directory we're about to open and read.
23033         In the readdir loop, carefully decide whether each entry will require
23034         an eventual call to fts_stat, using dirent.d_type info if available.
23035         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
23036         a command line argument into this function.  Update all callers.
23037         Map a return value of FTS_DOT to FTS_D for a command line argument.
23038         * modules/fts (Depends-on): Add d-type.  Alphabetize.
23039         Thanks to Miklos Szeredi for his tenacity and for the initial
23040         bug report about "find" failing on a FUSE-based file system.
23041
23042         * lib/fts.c (fts_open): Use consistent indentation.
23043
23044 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23045
23046         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
23047         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
23048         reported by Jim Meyering.  All uses of cache variables renamed
23049         to match Autoconf's.
23050         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
23051         the other one.
23052
23053         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23054         Fix misspelling in diagnostic.
23055
23056 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23057
23058         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
23059         defined.  Problem reported by Matthew Woehlke.
23060
23061         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
23062         Add support for Tandem NonStop R series.
23063         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
23064         Use new macro.
23065
23066         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
23067         (has_trailing_slash): Omit size arg; all callers changed.
23068         Omit 'inline', since it doesn't help performance and we'd
23069         need to configure it.
23070         Don't count //, ///, etc. as having a trailing slash.
23071         As a side effect, this removes a C99ism reported by Matthew Woehlke.
23072         (rpl_rename_dest_slash): On failure, use rename's errno rather
23073         than (in some cases) an incorrect or junk errno.
23074         Simplify code by removing need to compute length; this does
23075         cause it to make two passes instead of one over the file name,
23076         but it's worth it.
23077
23078         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
23079         change, since Autoconf's version may no longer be appropriate now
23080         that we are using CVS Autoconf's version.  Add support for Tandem.
23081
23082 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23083             Bruno Haible  <bruno@clisp.org>
23084
23085         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
23086         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
23087         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
23088         gl_AC_TYPE_LONG_LONG.
23089
23090         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
23091         instead of HAVE_LONG_LONG.
23092         * lib/printf-args.c (printf_fetchargs): Likewise.
23093         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23094         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23095         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
23096         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
23097         gl_AC_TYPE_LONG_LONG.
23098
23099 2006-10-11  Bruno Haible  <bruno@clisp.org>
23100
23101         * m4/longlong.m4: Add comments.
23102         * m4/ulonglong.m4: Likewise.
23103
23104 2006-10-10  Bruno Haible  <bruno@clisp.org>
23105
23106         Make it possible to #define stpcpy, strdup to aliases.
23107         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
23108         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
23109
23110 2006-10-10  Bruno Haible  <bruno@clisp.org>
23111
23112         Make it possible to #define gcd to an alias.
23113         * lib/gcd.c: Include config.h.
23114
23115 2006-10-10  Bruno Haible  <bruno@clisp.org>
23116
23117         Make it possible to #define c_isascii to an alias.
23118         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23119         defined. Undefine the macros before defining them, to avoid gcc
23120         warnings.
23121         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23122         define NO_C_CTYPE_MACROS early.
23123
23124 2006-10-10  Bruno Haible  <bruno@clisp.org>
23125
23126         Make it possible to #define set_program_name to an alias.
23127         * lib/progname.c: Don't undefine set_program_name; instead, undefine
23128         ENABLE_RELOCATABLE early.
23129
23130 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23131
23132         Port to Tandem NSK OSS, which has 64-bit signed int but at most
23133         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
23134         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23135         More generally, don't assume that 64-bit signed int is available
23136         if unsigned int is, and vice versa.
23137         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23138         unsigned symbols, not on their signed counterparts.
23139         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23140         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23141         (UINT64_C, UINTMAX_C):
23142         Likewise.
23143         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23144         unsigned counterparts.
23145         (Have_long_long, Unsigned): New macros.
23146         (Int): Renamed from INT.
23147         (strtoimax): Use the new macros.
23148         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23149         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23150         * modules/inttypes (inttypes.h): Substitute
23151         HAVE_UNSIGNED_LONG_LONG_INT.
23152         * modules/stdint (stdint.h): Likewise.
23153         (Files): Add m4/ulonglong.m4.
23154
23155 2006-10-10  Bruno Haible  <bruno@clisp.org>
23156
23157         Fix a gcc -Wshadow warning.
23158         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23159         to 'bucket'.
23160         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23161         gl_linked_indexof_from_to): Likewise.
23162         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23163         Likewise.
23164         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23165         Likewise.
23166         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23167         Reported by Eric Blake.
23168
23169 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23170
23171         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23172         for NetBSD.  Problem reported by Bruno Haible.
23173
23174 2006-10-09  Jim Meyering  <jim@meyering.net>
23175
23176         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23177         Patch from Bruno Haible.
23178
23179 2006-10-09  Jim Meyering  <jim@meyering.net>
23180
23181         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
23182         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
23183         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
23184
23185 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         Don't include <config.h> twice; this doesn't work in some cases,
23188         e.g., when config.h has "#define intmax_t long long int" and
23189         we include <config.h>, <inttypes.h>, <config.h> in that order.
23190         Problem reported by Matthew Woehlke in:
23191         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
23192         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
23193         * lib/fts-cycle.c: Don't include config.h.
23194         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
23195         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
23196         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
23197         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
23198         inttypes.h.
23199         * lib/xstrtoumax.c: Likewise.
23200         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
23201         __strtol and the like, so that this module is more like its siblings.
23202         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
23203         Remove; no longer needed now that we assume gnulib inttypes.h.
23204
23205 2006-10-08  Bruno Haible  <bruno@clisp.org>
23206
23207         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
23208         option.
23209
23210 2006-10-07  Jim Meyering  <jim@meyering.net>
23211
23212         * modules/inttypes (inttypes.h): Revert what seems to have been
23213         an inadvertent part of today's change: use "|", not "/" in the
23214         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
23215
23216 2006-10-07  Bruno Haible  <bruno@clisp.org>
23217
23218         * modules/sublist: New file.
23219
23220 2006-10-07  Bruno Haible  <bruno@clisp.org>
23221
23222         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
23223         * modules/argz (argz.h): Likewise.
23224         * modules/arpa_inet (arpa/inet.h): Likewise.
23225         * modules/byteswap (byteswap.h): Likewise.
23226         * modules/configmake (configmake.h): Likewise.
23227         * modules/fcntl (fcntl.h): Likewise.
23228         * modules/fnmatch (fnmatch.h): Likewise.
23229         * modules/getopt (getopt.h): Likewise.
23230         * modules/glob (glob.h): Likewise.
23231         * modules/inttypes (inttypes.h): Likewise.
23232         * modules/netinet_in (netinet/in.h): Likewise.
23233         * modules/poll (poll.h): Likewise.
23234         * modules/stdbool (stdbool.h): Likewise.
23235         * modules/stdint (stdint.h): Likewise.
23236         * modules/sys_select (sys/select.h): Likewise.
23237         * modules/sys_socket (sys/socket.h): Likewise.
23238         * modules/sys_stat (sys/stat.h): Likewise.
23239         * modules/sysexits (sysexits.h): Likewise.
23240         * modules/unistd (unistd.h): Likewise.
23241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23242         Add a "DO NOT EDIT" comment to the generated file.
23243         (func_import): Likewise for gnulib-comp.m4.
23244
23245 2006-10-07  Bruno Haible  <bruno@clisp.org>
23246
23247         * lib/gl_sublist.h: New file.
23248         * lib/gl_sublist.c: New file.
23249
23250 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23251
23252         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23253         name (relative to the original working directory) and the file
23254         name component (relative to the temporary working directory).  All
23255         callers changed.
23256         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23257         * lib/mkdir-p.c (make_dir_parents): Likewise.
23258         * lib/mkdir-p.h (make_dir_parents): Likewise.
23259
23260 2006-10-06  Eric Blake  <ebb9@byu.net>
23261
23262         Define several macros for use by the clean-temp module.
23263         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23264         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23265         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23266
23267         * lib/clean-temp.h (close_stream_temp): New declaration.
23268         * lib/clean-temp.c (includes): Pull in headers according to what
23269         other modules are in use.
23270         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23271
23272 2006-10-06  Bruno Haible  <bruno@clisp.org>
23273
23274         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23275         instead of fopen, fwriteerror.
23276
23277 2006-10-06  Bruno Haible  <bruno@clisp.org>
23278
23279         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23280         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23281         int.
23282         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23283         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23284         Return an error indicator.
23285         Suggested by Eric Blake.
23286
23287 2006-10-06  Bruno Haible  <bruno@clisp.org>
23288
23289         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23290         Reported by Eric Blake.
23291
23292 2006-10-06  Bruno Haible  <bruno@clisp.org>
23293
23294         * modules/closeout (Description): Mention stderr too.
23295
23296 2006-10-06  Bruno Haible  <bruno@clisp.org>
23297         and Paul Eggert  <eggert@cs.ucla.edu>
23298
23299         * lib/closeout.c (close_stdout): Also close stderr.
23300         * lib/closeout.h: Update comment.
23301
23302 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23303
23304         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23305         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23306         * lib/dirchownmod.c: Include lchown.h.
23307         * lib/lchown.c: Don't include files that lchown.h now includes.
23308         Don't declare chown, since lchown.h now does that.
23309         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23310         (lchown): Define to rpl_chown if lchown is declared but
23311         does not exist.  Declare using a prototype if lchown is not
23312         declared.  Add a copyright notice.
23313         * lib/mkstemp.h: Include <unistd.h>.
23314         * lib/openat.c: Include lchown.h.
23315
23316         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23317         we now test for that separately.
23318         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23319         rather than O_NOFOLLOW, when testing whether it's possible to
23320         avoid a race condition reliably.
23321         * lib/savewd.c (savewd_chdir): Likewise.
23322
23323         Remove macros that are no longer needed now that stdint.h is
23324         reliable.
23325         * lib/fsusage.c (UINTMAX_MAX): Remove.
23326         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23327         * lib/utimecmp.c (SIZE_MAX): Remove.
23328
23329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23330
23331         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23332         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
23333         O_NOATIME works.
23334
23335 2006-10-05  Bruno Haible  <bruno@clisp.org>
23336
23337         * lib/gl_list.h (gl_sortedlist_search_from_to,
23338         gl_sortedlist_indexof_from_to): New declarations.
23339         (gl_list_implementation): New fields sortedlist_search_from_to,
23340         sortedlist_indexof_from_to.
23341         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23342         inline functions.
23343         * lib/gl_list.c (gl_sortedlist_search_from_to,
23344         gl_sortedlist_indexof_from_to): New functions.
23345         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23346         function.
23347         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23348         (gl_array_sortedlist_search_from_to): New function.
23349         (gl_array_list_implementation): Update.
23350         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23351         function.
23352         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23353         (gl_carray_sortedlist_search_from_to): New function.
23354         (gl_carray_list_implementation): Update.
23355         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23356         gl_linked_sortedlist_indexof_from_to): New functions.
23357         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23358         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23359         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23360         gl_tree_sortedlist_indexof_from_to): New functions.
23361         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23362         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23363         Update.
23364         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23365         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23366         Update.
23367
23368 2006-10-05  Bruno Haible  <bruno@clisp.org>
23369
23370         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23371         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23372         (struct gl_list_implementation): Add fields search_from_to,
23373         indexof_from_to. Remove fields search, indexof.
23374         (gl_list_search): Use the search_from_to method.
23375         (gl_list_search_from, gl_list_search_from_to): New functions.
23376         (gl_list_indexof): Use the indexof_from_to method.
23377         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23378         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23379         (gl_list_search_from, gl_list_search_from_to): New functions.
23380         (gl_list_indexof): Use the indexof_from_to method.
23381         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23382         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23383         gl_array_indexof. Add start_index, end_index arguments.
23384         (gl_array_search_from_to): Renamed from gl_array_search. Add
23385         start_index, end_index arguments.
23386         (gl_array_remove, gl_array_list_implementation): Update.
23387         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23388         gl_carray_indexof. Add start_index, end_index arguments.
23389         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23390         start_index, end_index arguments.
23391         (gl_carray_remove, gl_carray_list_implementation): Update.
23392         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23393         gl_linked_search. Add start_index, end_index arguments.
23394         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23395         start_index, end_index arguments.
23396         (gl_linked_remove): Update.
23397         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23398         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23399         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23400         field to 'size_t'.
23401         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23402         gl_tree_search. Add start_index, end_index arguments.
23403         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23404         start_index, end_index arguments.
23405         (gl_tree_remove): Update.
23406         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23407         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23408         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23409         function.
23410         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23411         gl_tree_search. Add start_index, end_index arguments.
23412         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23413         start_index, end_index arguments.
23414         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23415         Update.
23416         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23417
23418 2006-10-05  Bruno Haible  <bruno@clisp.org>
23419
23420         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23421
23422         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23423         fwriteerror_temp): New declarations.
23424         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23425         (descriptors): New variable.
23426         (cleanup): First, close the descriptors.
23427         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23428         fclose_temp, fwriteerror_temp): New functions.
23429
23430 2006-10-04  Jim Meyering  <jim@meyering.net>
23431
23432         * lib/fts.c (fts_open): Tiny comment change.
23433
23434 2006-10-04  Bruno Haible  <bruno@clisp.org>
23435
23436         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23437         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23438         gl_LOCK_BODY.
23439         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23440         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23441         gl_LOCK_EARLY_BODY.
23442         (gl_LOCK): Require gl_LOCK_BODY.
23443
23444 2006-10-04  Bruno Haible  <bruno@clisp.org>
23445
23446         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23447         (gl_oset_search_atleast): New declaration.
23448         (struct gl_oset_implementation): Add field 'search_atleast'.
23449         (gl_oset_search_atleast): New inline function.
23450         * lib/gl_oset.c (gl_oset_search_atleast): New function.
23451         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23452         (gl_array_oset_implementation): Update.
23453         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23454         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23455         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23456
23457 2006-10-04  Bruno Haible  <bruno@clisp.org>
23458
23459         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23460
23461 2006-10-03  Bruno Haible  <bruno@clisp.org>
23462
23463         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23464         from gl_avltreehash_list_implementation.
23465
23466 2006-10-03  Bruno Haible  <bruno@clisp.org>
23467
23468         * lib/gl_oset.c (gl_oset_add): Fix return type.
23469
23470 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
23471
23472         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23473
23474 2006-10-02  Eric Blake  <ebb9@byu.net>
23475
23476         * modules/strnlen (Depends-on): Add extensions.
23477
23478 2006-10-02  Eric Blake  <ebb9@byu.net>
23479
23480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23481         definition in 2.60+.
23482
23483 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
23484
23485         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23486         checks.
23487
23488 2006-10-02  Bruno Haible  <bruno@clisp.org>
23489
23490         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23491         to the AUTOMAKE_OPTIONS.
23492         Reported by Jim Meyering.
23493
23494 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23495
23496         Work around bug in Solaris 10 /proc file system:
23497         /proc/self/fd/NNN/.. isn't the parent directory of
23498         the directory whose file descriptor is NNN.  This needs to
23499         be worked around at run time, not compile time, since a
23500         program might be built on Solaris 8, where things work, and
23501         run on Solaris 10.
23502         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
23503         to use the following interface instead:
23504         (OPENAT_BUFFER_SIZE): New macro.
23505         (openat_proc_name): New function.
23506         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23507         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23508         Likewise.
23509         * lib/openat-proc.c: New file.
23510         * modules/openat (Files): Add lib/openat-proc.c.
23511         (Depends-on): Add same-inode, stdbool.
23512         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23513
23514 2006-09-29  Bruno Haible  <bruno@clisp.org>
23515
23516         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23517         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23518         argument. Set stdout_closed before testing for ferror, not after.
23519         (fwriteerror, fwriteerror_no_ebadf): New functions.
23520
23521 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23522
23523         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23524
23525 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
23526
23527         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23528         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23529
23530 2006-09-28  Jim Meyering  <jim@meyering.net>
23531
23532         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23533         Include <unistd.h>.
23534
23535 2006-09-28  Bruno Haible  <bruno@clisp.org>
23536
23537         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23538         * modules/linkedhash-list (Depends-on): Likewise.
23539         * modules/rbtreehash-list (Depends-on): Likewise.
23540
23541 2006-09-28  Bruno Haible  <bruno@clisp.org>
23542
23543         * lib/strndup.h: Simplify the redefinition of strndup.
23544         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23546
23547 2006-09-28  Bruno Haible  <bruno@clisp.org>
23548
23549         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23550         * lib/gl_linkedhash_list.c: Likewise.
23551         * lib/gl_rbtreehash_list.c: Likewise.
23552
23553 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23554
23555         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23556         getaddrinfo.
23557
23558         * lib/__fpending.h: Don't include <stdio_ext.h> unless
23559         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
23560         it causes <stdio_ext.h> to cause a compile-time error.
23561         Problem reported by Nelson H. F. Beebe.
23562         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23563         of HAVE_DECL___PENDING.
23564
23565         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23566         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23567         declaration.
23568
23569 2006-09-27  Jim Meyering  <jim@meyering.net>
23570
23571         This file could end up with a definition for a function
23572         named __strndup, rather than rpl_strndup on a system with
23573         incomplete weak_alias support.
23574         * lib/strndup.c (strndup): Rename from __strndup.
23575         Remove #defines that used to map __strndup to strndup.
23576         Don't use K&R prototypes.
23577         Remove LIBC-related code, since this file is not sync'd with glibc.
23578         * lib/strndup.h: Revamp, accordingly.
23579         * m4/strndup.m4: Modernize.
23580
23581 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23582
23583         * modules/savewd (Depends-on): Add 'raise'.
23584         * lib/savewd.c: Include <signal.h>, for 'raise'.
23585
23586 2006-09-26  Jim Meyering  <jim@meyering.net>
23587
23588         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23589         when we detect Darwin 8.7.0's acl_get_file bug.
23590         Rearrange to perform the new (below) run-test while $LIBS
23591         contains any acl-related library.  Set USE_ACL at the end.
23592         (gl_ACL_GET_FILE): New function.
23593
23594 2006-09-26  Eric Blake  <ebb9@byu.net>
23595
23596         * lib/verror.c: Include <config.h> unconditionally.
23597
23598 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23599
23600         * modules/clock-time (Maintainer): Add self.
23601         * modules/getlogin_r (Depends-on): Add extensions.
23602
23603 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23604
23605         * modules/clock-time: New module.
23606         * modules/nanosleep (Depends-on): Add clock-time.
23607         * modules/gethrxtime (Depends-on): Likewise.
23608         * modules/gettime (Depends-on): Likewise.
23609         * modules/settime (Depends-on): Likewise.
23610
23611         * modules/fts-lgpl: Depend on openat.
23612         * modules/mkancesdirs: Depend on savewd.
23613         * modules/mkdir-p: Likewise.
23614
23615 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23616
23617         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23618
23619         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23620         `gl_have_arbitrary_file_name_length_limit' to
23621         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23622         actually works between configure runs.
23623
23624 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23625             Bruno Haible  <bruno@clisp.org>
23626
23627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23628
23629 2006-09-25  Jim Meyering  <jim@meyering.net>
23630
23631         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23632         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23633
23634 2006-09-25  Eric Blake  <ebb9@byu.net>
23635
23636         * gnulib-tool (func_import, func_create_testdir): Fix typos in
23637         exec's in 2006-09-18 patch when shuffling fds.
23638
23639 2006-09-25  Bruno Haible  <bruno@clisp.org>
23640
23641         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23642         Reported by Jim Meyering.
23643
23644 2006-09-24  Jim Meyering  <jim@meyering.net>
23645
23646         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23647         compare a pointer against a literal "0".  That caused failures with
23648         at least HP-UX's hpcc.
23649
23650 2006-09-22  Simon Josefsson  <jas@extundo.com>
23651
23652         * modules/gc-sha1:
23653         * modules/gc-md4:
23654         * modules/gc-hmac-sha1:
23655         * modules/gc-hmac-md5:
23656         * modules/gc-des:
23657         * modules/gc-arcfour: Distribute more files.
23658
23659 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23660
23661         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23662         (gl_linked_iterator_from_to): Initialize struct completely.
23663         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23664         (gl_tree_iterator_from_to): Likewise
23665         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23666         * lib/gl_array_list.c [lint] (gl_array_iterator)
23667         (gl_array_iterator_from_to): Likewise.
23668         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23669         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23670         (gl_carray_iterator_from_to): Likewise.
23671
23672         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23673         * lib/md4.c (md4_process_block): Remove unused variable.
23674         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23675         parentheses for clarity.
23676
23677 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23678
23679         * modules/bison-i18n (Depends-on): Add gettext.
23680
23681 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23682
23683         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23685         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23686         also add missing comma that caused broken test.
23687         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23688         stdlib.h, for `abort'.
23689         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23690         variables.
23691         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23692         include unistd.h if present, for `rmdir'.
23693         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23694         variables.
23695         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23696         in the process include standard headers for prototypes.
23697         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23698         gets declared on GNU/Linux.
23699         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23700         unistd.h, for `rmdir'.
23701         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23702
23703         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23704         always true.
23705         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23706
23707         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23708
23709 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23710
23711         * gnulib-tool (func_version): Create output all at once.  This
23712         may help avoid triggering unnecessary SIGPIPEs, and at any
23713         rate it doesn't hurt.
23714
23715 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23716             Bruno Haible  <bruno@clisp.org>
23717
23718         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23719         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23720         * m4/signed.m4 (bh_C_SIGNED): Likewise.
23721
23722         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23723         (gl_FUNC_VASPRINTF): Invoke it.
23724
23725 2006-09-22  Bruno Haible  <bruno@clisp.org>
23726
23727         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23728         getloadavg.c as first argument.
23729
23730 2006-09-22  Bruno Haible  <bruno@clisp.org>
23731
23732         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23733         at the beginning of the gl_INIT macro.
23734         * modules/getloadavg (configure.ac): Pass $gl_source_base to
23735         gl_GETLOADAVG.
23736
23737 2006-09-22  Bruno Haible  <bruno@clisp.org>
23738
23739         * gnulib-tool (func_create_megatestdir): Don't include the config-h
23740         module.
23741         Suggested by Ralf Wildenhues.
23742
23743 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23744
23745         Import this patch from libc:
23746
23747         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
23748
23749         * lib/regex_internal.c (re_string_reconstruct): Handle
23750         offset < pstr->valid_raw_len && pstr->offsets_needed case.
23751         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
23752         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23753         re_string_context_at.
23754
23755         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23756         now requires it.
23757         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23758         gl_REGEX now does it for us.
23759         (gl_REGEX): Add test taken from
23760         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23761
23762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23763         Check that large offsets work.  Modernize Autoconf usages.
23764         Prefer "yes" to mean a good thing rather than a bad.
23765         Don't put "#define mkstemp" in config.h, as this might interfere
23766         with standard system headers that "#define mkstemp mkstemp64".
23767
23768         * modules/mkstemp (Depends-on): Add extensions, so that
23769         mkstemp is visible on some platforms.
23770         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23771         (Include): Change to "mkstemp.h" from <stdlib.h>.
23772         (Files): Add mkstemp.h.
23773
23774         * lib/mkstemp.h: New file, since some standard headers
23775         #define mkstemp.
23776         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23777         Include "mkstemp.h".
23778         Make the _LIBC code resemble glibc original more,
23779         e.g., use K&R style.
23780         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23781         (mkstemp): Remove, since mkstemp.h does this for us.
23782         * lib/stdlib--.h: Include mkstemp.h.
23783
23784         Import this patch from libc:
23785
23786         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23787
23788         * lib/tempname.c (__gen_tempname): Change attempts_min
23789         into a macro.  Use preprocessor to decide how to initialize
23790         attempts [Coverity CID 67].
23791
23792 2006-09-20  Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/mkdtemp.c: Import from libc.
23795         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23796                 * sysdeps/posix/tempname.c (__gen_tempname): Change
23797                 attempts_min into a macro.  Use preprocessor to decide how to
23798                 initialize attempts [Coverity CID 67].
23799         2001-11-27  Paul Eggert  <eggert@twinsun.com>
23800                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23801                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23802
23803 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23804
23805         * gnulib-tool (func_exit): New function, to allow to pass the
23806         exit status portably through the trap.  Use everywhere.
23807         (--help, --version): Signal a write error.
23808         (trap): catch SIGPIPE, for write errors.
23809         Exit at the end of the trap, with the correct exit status.
23810
23811 2006-09-19  Karl Berry  <karl@gnu.org>
23812
23813         * doc/gnulib.texi: note about the license texinfo files.
23814
23815 2006-09-19  Eric Blake  <ebb9@byu.net>
23816
23817         * gnulib-tool: Avoid space-tab.
23818
23819 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23820
23821         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23822         that prevented coreutils 6.1 from building.  Problem reported
23823         by Petter Reinholdtsen.
23824
23825 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23826
23827         * gnulib-tool (avoidlist): Fix typo that broke options like
23828         --avoid=lock that are used by coreutils bootstrap.
23829
23830 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
23831
23832         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23833         more systematically.
23834
23835 2006-09-18  Jim Meyering  <jim@meyering.net>
23836
23837         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23838
23839 2006-09-18  Bruno Haible  <bruno@clisp.org>
23840
23841         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23842
23843 2006-09-18  Bruno Haible  <bruno@clisp.org>
23844
23845         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23846         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23847         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23848         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23849         * m4/gettext.m4: Require autoconf >= 2.52.
23850         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23851         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23852         of gl_cv_header_inttypes_h.
23853
23854 2006-09-18  Bruno Haible  <bruno@clisp.org>
23855
23856         * lib/javaversion.c: Include configmake.h.
23857
23858 2006-09-18  Bruno Haible  <bruno@clisp.org>
23859
23860         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23861         avoid that the while loops be executed in a subshell.
23862
23863 2006-09-18  Bruno Haible  <bruno@clisp.org>
23864
23865         * MODULES.html.sh (func_module): Break long lines.
23866         Suggested by Bruce Korb <bkorb@gnu.org>.
23867
23868 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23869
23870         Speed up by a factor of 1.12.
23871         * gnulib-tool (nl): New variable.
23872         (func_import): Rewrite include directive extraction to only read each
23873         directive once.
23874
23875 2006-09-17  Bruno Haible  <bruno@clisp.org>
23876
23877         * modules/javaversion (Makefile.am): Remove DEFS setting.
23878         (Depends-on): Add configmake, for PKGDATADIR definition.
23879
23880 2006-09-17  Bruno Haible  <bruno@clisp.org>
23881
23882         * gnulib-tool (func_create_testdir): Rewrite all files at once.
23883
23884 2006-09-17  Bruno Haible  <bruno@clisp.org>
23885
23886         * gnulib-tool (func_append): New function, stolen from libtool.m4.
23887         (func_modules_transitive_closure, func_modules_add_dummy,
23888         func_modules_to_filelist, func_import, func_create_testdir,
23889         func_create_megatestdir, ...): Use it wherever possible.
23890         Suggested by Ralf Wildenhues.
23891
23892 2006-09-16  Karl Berry  <karl@gnu.org>
23893
23894         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23895         to avoid sectioning errors.
23896         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23897         [ifinfo]: blank line after @center-ed titles.
23898         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23899         Spell FSF address consistently with others.
23900         (These changes approved by rms.)
23901
23902 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23903
23904         Speed up by a factor of 1.61.
23905         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23906         already checked module names again.
23907
23908 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23909
23910         Speed up by a factor of 1.13.
23911         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23912         for new_files, and the input to func_add_or_update.
23913
23914 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23915
23916         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23917         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23918
23919 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23920
23921         * modules/mkancesdirs (Depends-on): Add fcntl.
23922         * modules/savewd: New file.
23923         * MODULES.html.sh (File system functions): Add savewd.
23924
23925         * modules/configmake (Makefile.am): Add support for the
23926         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23927
23928 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23929
23930         * m4/savewd.m4: New file.
23931
23932 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23933
23934         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23935         (dirchownmod): New arg FD.  All callers changed.
23936         Use FD rather than opening the directory ourself, as opening is
23937         now the caller's responsibility.
23938         * lib/dirchownmod.h: Likewise.
23939         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23940         hosts that require <sys/types.h> before <sys/stat.h>.  Include
23941         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23942         (test_dir): Remove.
23943         (mkancesdirs): Return length of prefix of FILE that has already
23944         been made, or -2 if there is a child doing the work.  Redo
23945         algorithm so that it is O(N) rather than O(N**2).  Optimize away
23946         ".", and treat ".." specially since it might stray back into
23947         already-created areas.  Use a subprocess if necessary.  New arg
23948         WD; all users changed.  MAKE_DIR function should now return 1
23949         if it creates a directory that is not readable.  Return -2 if
23950         a child process is spun off.
23951         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23952         Adjust signature to match code.
23953         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23954         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
23955         all users changed.
23956         * lib/savewd.c, lib/savewd.h: New files.
23957
23958 2006-09-15  Jim Meyering  <jim@meyering.net>
23959
23960         * modules/rename-dest-slash: New module.
23961         * MODULES.html.sh (posix_compat): Add it here.
23962
23963         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23964
23965 2006-09-15  Jim Meyering  <jim@meyering.net>
23966
23967         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23968         file.
23969
23970         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23971
23972 2006-09-15  Jim Meyering  <jim@meyering.net>
23973
23974         * lib/rename-dest-slash.c (has_trailing_slash): Use
23975         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23976         (rpl_rename_dest_slash): Perform the cheaper trailing slash
23977         test before testing whether SRC is a directory.
23978         Suggestions from Bruno Haible.
23979
23980         Avoid a warning about an unused variable.
23981         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23982         into the #ifdef block where it's used.
23983
23984         * lib/rename-dest-slash.c: New file.
23985
23986 2006-09-14  Bruno Haible  <bruno@clisp.org>
23987
23988         * lib/allocsa.c: Include <config.h> unconditionally.
23989         * lib/asnprintf.c: Likewise.
23990         * lib/asprintf.c: Likewise.
23991         * lib/c-strcasecmp.c: Likewise.
23992         * lib/c-strcasestr.c: Likewise.
23993         * lib/c-strncasecmp.c: Likewise.
23994         * lib/c-strstr.c: Likewise.
23995         * lib/classpath.c: Likewise.
23996         * lib/clean-temp.c: Likewise.
23997         * lib/concatpath.c: Likewise.
23998         * lib/copy-file.c: Likewise.
23999         * lib/csharpcomp.c: Likewise.
24000         * lib/csharpexec.c: Likewise.
24001         * lib/execute.c: Likewise.
24002         * lib/fatal-signal.c: Likewise.
24003         * lib/findprog.c: Likewise.
24004         * lib/fwriteerror.c: Likewise.
24005         * lib/gl_array_list.c: Likewise.
24006         * lib/gl_array_oset.c: Likewise.
24007         * lib/gl_avltree_list.c: Likewise.
24008         * lib/gl_avltree_oset.c: Likewise.
24009         * lib/gl_avltreehash_list.c: Likewise.
24010         * lib/gl_carray_list.c: Likewise.
24011         * lib/gl_linked_list.c: Likewise.
24012         * lib/gl_linkedhash_list.c: Likewise.
24013         * lib/gl_list.c: Likewise.
24014         * lib/gl_oset.c: Likewise.
24015         * lib/gl_rbtree_list.c: Likewise.
24016         * lib/gl_rbtree_oset.c: Likewise.
24017         * lib/gl_rbtreehash_list.c: Likewise.
24018         * lib/imaxabs.c: Likewise.
24019         * lib/imaxdiv.c: Likewise.
24020         * lib/javacomp.c: Likewise.
24021         * lib/javaexec.c: Likewise.
24022         * lib/javaversion.c: Likewise.
24023         * lib/linebreak.c: Likewise.
24024         * lib/localcharset.c: Likewise.
24025         * lib/lock.c: Likewise.
24026         * lib/mbchar.c: Likewise.
24027         * lib/mbswidth.c: Likewise.
24028         * lib/mkdtemp.c: Likewise.
24029         * lib/pipe.c: Likewise.
24030         * lib/printf-args.c: Likewise.
24031         * lib/printf-parse.c: Likewise.
24032         * lib/progname.c: Likewise.
24033         * lib/progreloc.c: Likewise.
24034         * lib/readlink.c: Likewise.
24035         * lib/sh-quote.c: Likewise.
24036         * lib/stpcpy.c: Likewise.
24037         * lib/stpncpy.c: Likewise.
24038         * lib/strcasecmp.c: Likewise.
24039         * lib/strcasestr.c: Likewise.
24040         * lib/strcspn.c: Likewise.
24041         * lib/striconv.c: Likewise.
24042         * lib/strncasecmp.c: Likewise.
24043         * lib/strnlen1.c: Likewise.
24044         * lib/strstr.c: Likewise.
24045         * lib/strtok_r.c: Likewise.
24046         * lib/tls.c: Likewise.
24047         * lib/tmpdir.c: Likewise.
24048         * lib/unicodeio.c: Likewise.
24049         * lib/unsetenv.c: Likewise.
24050         * lib/vasnprintf.c: Likewise.
24051         * lib/vasprintf.c: Likewise.
24052         * lib/wait-process.c: Likewise.
24053         * lib/xallocsa.c: Likewise.
24054         * lib/xsetenv.c: Likewise.
24055         * lib/xstriconv.c: Likewise.
24056
24057 2006-09-13  Simon Josefsson  <jas@extundo.com>
24058
24059         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
24060         that internally, suggested by Ralf Wildenhues
24061         <Ralf.Wildenhues@gmx.de>.
24062
24063 2006-09-13  Simon Josefsson  <jas@extundo.com>
24064
24065         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
24066         @LIBOBJS@.
24067         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24068
24069 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24070
24071         * lib/_fpending.c: Include <config.h> unconditionally, since we no
24072         longer worry about uses that don't define HAVE_CONFIG_H.
24073         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
24074         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
24075         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
24076         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
24077         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
24078         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
24079         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
24080         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
24081         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
24082         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
24083         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
24084         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
24085         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
24086         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
24087         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
24088         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
24089         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
24090         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
24091         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
24092         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
24093         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
24094         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
24095         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
24096         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
24097         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
24098         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
24099         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
24100         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
24101         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
24102         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
24103         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
24104         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
24105         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
24106         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
24107         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
24108         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
24109         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
24110         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
24111         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24112         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24113         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24114         Likewise.
24115
24116 2006-09-13  Eric Blake  <ebb9@byu.net>
24117
24118         * lib/getopt.c: Fix typo in last commit.
24119
24120 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24121
24122         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24123         dgettext.
24124
24125 2006-09-12  Jim Meyering  <jim@meyering.net>
24126
24127         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24128         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24129         Reported by Nelson H. F. Beebe.
24130
24131 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24132
24133         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24134         program_invocation_name and program_invocation_short_name are
24135         initialized.
24136         * lib/argp-namefrob.h: Move declarations of program_invocation_name
24137         and program_invocation_short_name to argp.h, so they are visible
24138         to user programs.
24139         * lib/argp.h: Likewise
24140
24141 2006-09-10  Bruno Haible  <bruno@clisp.org>
24142
24143         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24144         m4/inttypes_h.m4, m4/uintmax_t.m4.
24145
24146 2006-09-10  Bruno Haible  <bruno@clisp.org>
24147
24148         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24149         gl_AC_TYPE_UINTMAX_T.
24150
24151 2006-09-10  Bruno Haible  <bruno@clisp.org>
24152
24153         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24154
24155 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24156
24157         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24158         convention.  Text proposed by Bruno Haible.
24159         (struct argp_option): Document the use of N_() wrappers.
24160
24161         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24162         '\v', and translate the two parts separately, instead of feeding
24163         the whole string to gettext.  This allows to exclude
24164         '\v' from the strings visible to the translator by writing doc
24165         strings as N_("..") "\v" N_("..").
24166
24167 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         * config/srclist.txt: Undo latest change; the bug was fixed.
24170
24171 2006-09-09  Bruno Haible  <bruno@clisp.org>
24172
24173         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
24174         assignments if building a library without libtool.
24175         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
24176         in func_emit_lib_Makefile_am.
24177         (func_import): When building a static library libfoo.a, arrange to
24178         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
24179         (func_create_testdir): Likewise.
24180         * modules/gc (configure.ac, Makefile.am): If building statically,
24181         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
24182         * modules/iconvme (configure.ac, Makefile.am): Likewise.
24183         * modules/striconv (configure.ac, Makefile.am): Likewise.
24184         Based on a suggestion by Ralf Wildenhues.
24185
24186 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24187
24188         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24189         Check for unistd.h too, since Autoconf doesn't assume POSIX.
24190         Also:
24191
24192         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24193         Add year_2050_test to catch glibc bug 2821
24194         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24195
24196         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24197         Prefer #ifdef to #if.
24198
24199         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
24200         Return from 'main' instead of calling 'exit'.
24201
24202 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24203
24204         * lib/mktime.c (guess_time_tm): Fix bug where mktime
24205         returned the maximum time_t value rather than (time_t) -1.
24206         Problem originally reported by William Bardwell
24207         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24208
24209         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24210         Moved to here ...
24211         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24212         ... from here.
24213
24214 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24215
24216         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
24217         2821 is fixed.
24218
24219 2006-09-08  Jim Meyering  <jim@meyering.net>
24220
24221         Don't make generated files read-only.  That would bother too many
24222         people.  However, do retain the ability to work when targets are
24223         read-only: remove the destination and temporary files before writing
24224         them (when generated via sed or echo), or by using the -f option for
24225         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
24226         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24227         * modules/byteswap, modules/configmake, modules/fcntl:
24228         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24229         * modules/localcharset, modules/netinet_in, modules/poll:
24230         * modules/stdbool, modules/stdint, modules/sys_select:
24231         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24232
24233 2006-09-08  Jim Meyering  <jim@meyering.net>
24234
24235         Avoid new build failure on FreeBSD 6.0.
24236         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
24237         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
24238         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
24239
24240 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24241
24242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
24243
24244 2006-09-07  Jim Meyering  <jim@meyering.net>
24245
24246         Fix global typo in last change: use chmod u-w, not chmod u-x.
24247         Spotted by Paul Eggert and Bruce Korb.
24248         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24249         * modules/byteswap, modules/configmake, modules/fcntl:
24250         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24251         * modules/localcharset, modules/netinet_in, modules/poll:
24252         * modules/stdbool, modules/stdint, modules/sys_select:
24253         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24254
24255 2006-09-06  Jim Meyering  <jim@meyering.net>
24256
24257         Make generated files be read-only.
24258         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24259         Ensure that each generated file is now read-only.
24260         * modules/argz: Likewise.
24261         * modules/arpa_inet: Likewise.
24262         * modules/byteswap: Likewise.
24263         * modules/configmake: Likewise.
24264         * modules/fcntl: Likewise.
24265         * modules/fnmatch: Likewise.
24266         * modules/getopt: Likewise.
24267         * modules/glob: Likewise.
24268         * modules/inttypes: Likewise.
24269         * modules/netinet_in: Likewise.
24270         * modules/poll: Likewise.
24271         * modules/stdbool: Likewise.
24272         * modules/stdint: Likewise.
24273         * modules/sys_select: Likewise.
24274         * modules/sys_socket: Likewise.
24275         * modules/sys_stat: Likewise.
24276         * modules/sysexits: Likewise.
24277         * modules/localcharset: Same as above, but continue using temporary
24278         file named "t-$@" (why different?) rather than the "$@-t" used
24279         everywhere else.
24280
24281         * modules/sysexits (Makefile.am): Replace literal occurrences
24282         of "sysexit.h" more readable, and more consistent, "$@".
24283
24284 2006-09-06  Bruno Haible  <bruno@clisp.org>
24285
24286         * modules/striconv: New file.
24287         * modules/xstriconv: New file.
24288         * MODULES.html.sh (Internationalization functions): Add striconv,
24289         xstriconv.
24290
24291 2006-09-06  Bruno Haible  <bruno@clisp.org>
24292
24293         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24294         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24295         not using libtool correctly.
24296
24297 2006-09-06  Bruno Haible  <bruno@clisp.org>
24298
24299         * lib/striconv.h: New file.
24300         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24301         iconvstring.c.
24302         * lib/xstriconv.h: New file.
24303         * lib/xstriconv.c: New file.
24304
24305 2006-09-06  Bruno Haible  <bruno@clisp.org>
24306
24307         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24308         lib_..._LDFLAGS.
24309
24310 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24311
24312         * lib/argz_.h: Sync from Libtool.
24313
24314         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
24315                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24316
24317         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24318
24319 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24320
24321         * modules/trim: New file.
24322
24323 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24324
24325         * lib/trim.h: New file.
24326         * lib/trim.c: New file.
24327
24328 2006-09-05  Bruno Haible  <bruno@clisp.org>
24329
24330         * MODULES.html.sh (String handling): Add trim.
24331
24332 2006-09-04  Karl Berry  <karl@gnu.org>
24333
24334         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24335         until next release.
24336
24337 2006-09-03  Bruno Haible  <bruno@clisp.org>
24338
24339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24340         correctly.
24341
24342 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24343
24344         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24345         not gl_GETLOADAVG.  Omit unneeded semicolons.
24346         Problems reported by Ralf Wildenhues in
24347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24348         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
24349         at the end, which is the usual gnulib style.
24350
24351         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24352         of doing all the work ourselves.
24353         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24354         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24355
24356 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24357
24358         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24359         Problem reported by Ralf Wildenhues in
24360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24361
24362         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24363         HAVE_STRUCT_STATFS_F_FSTYPENAME.
24364
24365 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24366
24367         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24368         yesterday's patch by changing test -n to test -z.
24369
24370 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24371
24372         * modules/getloadavg (Files): Add m4/getloadavg.m4.
24373         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24374         the former is now obsolescent.
24375
24376         * modules/chdir-long (Depends-on): Add fcntl.
24377
24378 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24381         obsolescent, and programs should use gnulib instead.
24382         * m4/getloadavg.m4: New file, with contents taken from Autoconf
24383         but with prefixes changed.
24384
24385 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24386
24387         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24388         or stdbool.h, because they might not exist while configuring.
24389
24390         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24391         Don't include unistd.h or limits.h; not needed, since chdir-long.h
24392         does that for us.
24393         (O_DIRECTORY): Remove.
24394
24395 2006-08-31  Eric Blake  <ebb9@byu.net>
24396
24397         * gnulib-tool: Don't let emacs change spaces to TAB.
24398
24399 2006-08-31  Bruno Haible  <bruno@clisp.org>
24400
24401         * gnulib-tool: When calling func_import more than once, do it in a
24402         subshell.
24403         Reported by Eric Blake <ebb9@byu.net>.
24404
24405 2006-08-31  Bruno Haible  <bruno@clisp.org>
24406
24407         * gnulib-tool (nl): Remove variable.
24408         (sed_transform_lib_file): Use more robust test for config-h module.
24409         (func_import): Fix typo in 2006-08-25 patch.
24410
24411 2006-08-31  Bruno Haible  <bruno@clisp.org>
24412
24413         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24414         specified, augment Makefile.am variables instead of assigning them.
24415
24416 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24417
24418         Work around a bug in both the Linux and SunOS 64-bit kernels:
24419         nanosleep mishandles sleeps for longer than 2**31 seconds.
24420         Problem reported by Frank v Waveren in
24421         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24423         Check for nanosleep bug.
24424         (LIB_NANOSLEEP): Append clock_gettime library if needed.
24425
24426 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24427
24428         Work around a bug in both the Linux and SunOS 64-bit kernels:
24429         nanosleep mishandles sleeps for longer than 2**31 seconds.
24430         Problem reported by Frank v Waveren in
24431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24432         * lib/nanosleep.c (BILLION): New constant.
24433         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24434         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24435         implementation.
24436
24437 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24438
24439         * modules/nanosleep (Depends-on): Add gettime.
24440
24441 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24442         and Simon Josefsson  <jas@extundo.com>
24443         and Oskar Liljeblad  <oskar@osk.mine.nu>
24444
24445         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24446         * gnulib-tool (func_import): New license type 'unmodifiable license
24447         text'.
24448         * modules/fdl: Use it.  Longer description.
24449         * module/gpl, module/lgpl: New files.
24450
24451 2006-08-30  Jim Meyering  <jim@meyering.net>
24452
24453         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24454         shadowing the parameter.
24455
24456 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24457
24458         Sync from Libtool:
24459
24460         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24461
24462         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24463         sharing with gnulib.  Report by Eric Blake.
24464
24465 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24466
24467         * modules/isapipe: New file.
24468         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24469
24470 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24471
24472         * modules/configmake (Makefile.am): Add a comment, and omit
24473         the CONFIGMAKE_ prefix from generated macro names.  Suggested
24474         by Bruno Haible.
24475
24476 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24477
24478         * m4/isapipe.m4: New file.
24479
24480 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24481
24482         * lib/isapipe.c, lib/isapipe.h: New files.
24483
24484 2006-08-29  Jim Meyering  <jim@meyering.net>
24485
24486         * modules/configmake (Makefile.am): Make configmake.h depend on
24487         Makefile.  Otherwise, a stale configmake.h could hang around.
24488
24489 2006-08-29  Eric Blake  <ebb9@byu.net>
24490
24491         * lib/error.c (error_at_line, print_errno_message): Match libc, after
24492         resolution of upstream bug 3044.
24493
24494 2006-08-29  Bruno Haible  <bruno@clisp.org>
24495
24496         * modules/localcharset (Depends-on): Add configmake.
24497         (Makefile.am): Remove setting of LIBDIR through DEFS.
24498
24499 2006-08-29  Bruno Haible  <bruno@clisp.org>
24500
24501         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24502         defined.
24503
24504 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24505
24506         * modules/fcntl: New file.
24507         * modules/chdir-safer (Depends-on): Add fcntl.
24508         * modules/fts: Likewise.
24509         * modules/mkdir-p: Likewise.
24510
24511         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24512         This undoes the most recent change, since we're now addressing the
24513         problem in a different way.
24514
24515         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24516         into output, since the output might be called Makefile.am even
24517         if $makefile_name is something different.
24518         (func_import): Use $makefile_am rather than
24519         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24520         empty.
24521
24522         * modules/inttypes (Files): Add m4/inttypes-h.m4.
24523
24524 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24527         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
24528         recent change to stdint.m4, since we're now addressing the problem in a
24529         different way.
24530
24531 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24532
24533         * m4/fcntl_h.m4: New file.
24534
24535 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24536
24537         * lib/fcntl_.h: New file.
24538         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24539         the fcntl module.
24540         * lib/dirchownmod.c: Likewise.
24541         * lib/fts.c: Likewise.
24542
24543         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24544         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24545         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24546         just before including <inttypes.h>, to avoid circular inclusion.
24547
24548 2006-08-28  Jim Meyering  <jim@meyering.net>
24549
24550         * doc/visibility.texi: Actually read and correct the grammar of the
24551         sentence affected by yesterday's change.
24552
24553 2006-08-28  Eric Blake  <ebb9@byu.net>
24554
24555         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24556         needs wrapper.
24557
24558 2006-08-28  Eric Blake  <ebb9@byu.net>
24559
24560         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24561
24562 2006-08-28  Eric Blake  <ebb9@byu.net>
24563
24564         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24565
24566 2006-08-28  Bruno Haible  <bruno@clisp.org>
24567
24568         * modules/c-strstr: New file, from GNU gettext.
24569         * MODULES.html.sh (String handling): Add c-strstr.
24570
24571 2006-08-28  Bruno Haible  <bruno@clisp.org>
24572
24573         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24574         macros.
24575         Reported by Eric Blake.
24576
24577 2006-08-28  Bruno Haible  <bruno@clisp.org>
24578
24579         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24580         (VASNPRINTF): Return a string of length > INT_MAX without failing.
24581         * lib/vasprintf.c: Include errno.h, limits.h.
24582         (EOVERFLOW): New fallback definition.
24583         (vasprintf): Test here whether the string length is > INT_MAX.
24584         * lib/vsnprintf.c: Include errno.h, limits.h.
24585         (EOVERFLOW): New fallback definition.
24586         (vsnprintf): Fix bug when generated string was too long for the buffer.
24587         Test here whether the string length is > INT_MAX.
24588
24589 2006-08-28  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/inttypes_.h (SCNX*): Remove definitions.
24592         Reported by Eric Blake.
24593
24594 2006-08-28  Bruno Haible  <bruno@clisp.org>
24595
24596         * lib/c-strstr.h: New file, from GNU gettext.
24597         * lib/c-strstr.c: New file, from GNU gettext.
24598
24599 2006-08-28  Bruno Haible  <bruno@clisp.org>
24600
24601         * gnulib-tool: Reorder some statements.
24602
24603 2006-08-28  Bruno Haible  <bruno@clisp.org>
24604
24605         * gnulib-tool: New option --makefile-name.
24606         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24607         $makefile_name.
24608         (func_import): Write $makefile_name to the cache file, and read it from
24609         there unless explicitly specified. Use $makefile_name as file name
24610         instead of Makefile.am. Adjust the recommendations accordingly.
24611
24612 2006-08-28  Bruno Haible  <bruno@clisp.org>
24613
24614         * gnulib-tool (func_verify_module): Check against misapplying patch.
24615
24616 2006-08-28  Bruno Haible  <bruno@clisp.org>
24617
24618         * gnulib-tool (func_relativize, func_relconcat): New functions.
24619         Give an error if --local-dir is given with --update.
24620         Remove trailing slashes from $local_gnulib_dir.
24621         (func_import): Store the relativized $local_gnulib_dir in
24622         gnulib-cache.m4, and read it from there if not specified explicitly.
24623
24624 2006-08-28  Bruno Haible  <bruno@clisp.org>
24625
24626         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24627         is the current directory. Respect also $local_gnulib_dir.
24628
24629 2006-08-28  Bruno Haible  <bruno@clisp.org>
24630             Simon Josefsson  <jas@extundo.com>
24631
24632         BeOS portability.
24633         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24634
24635 2006-08-27  Jim Meyering  <jim@meyering.net>
24636
24637         * doc/visibility.texi: Remove duplicate word: "pointer".
24638
24639 2006-08-26  Bruno Haible  <bruno@clisp.org>
24640
24641         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24642         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24643         (Makefile.am): Create inttypes.h from inttypes_.h.
24644         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24645
24646         * modules/imaxabs: New file.
24647
24648         * modules/imaxdiv: New file.
24649
24650 2006-08-26  Bruno Haible  <bruno@clisp.org>
24651
24652         * m4/inttypes.m4: New file.
24653         * m4/_inttypes_h.m4: Remove file.
24654         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24655         PRI_MACROS_BROKEN.
24656         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24657
24658         * m4/imaxabs.m4: New file.
24659
24660         * m4/imaxdiv.m4: New file.
24661
24662 2006-08-26  Bruno Haible  <bruno@clisp.org>
24663
24664         * lib/inttypes_.h: New file.
24665         * lib/inttypes.h: Remove file.
24666         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24667
24668         * lib/imaxabs.c: New file.
24669
24670         * lib/imaxdiv.c: New file.
24671
24672 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24673
24674         New config-h module, so that "make" output needn't be cluttered
24675         by -DHAVE_CONFIG_H.
24676         * MODULES.html.sh (Support for building libraries and executables):
24677         Add config-h.
24678         * modules/config-h: New file.
24679         * gnulib-tool (nl, sed_transform_lib_file): New vars.
24680         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24681         the config-h module is used.
24682
24683         New configmake module, so that "make" output needn't be cluttered
24684         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24685         * MODULES.html.sh (Support for building libraries and executables):
24686         Add configmake.
24687         * modules/configmake: New file.
24688
24689 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24690
24691         * m4/config-h.m4: New file.
24692
24693 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24694
24695         * config/srclist.txt: Add elisp-comp.
24696
24697 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24698
24699         * MODULES.html.sh (Support for building libraries and executables):
24700         Add elisp-comp.
24701         * build-aux/elisp-comp: New file.
24702         * modules/elisp-comp: New file.
24703
24704 2006-08-24  Bruno Haible  <bruno@clisp.org>
24705
24706         * gnulib-tool (func_create_testdir): Use non-default values of
24707         sourcebase and m4base.
24708
24709 2006-08-24  Bruno Haible  <bruno@clisp.org>
24710
24711         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24712         HTML structure.
24713
24714 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24715
24716         * modules/openat (Depends-on): Add lchown.
24717
24718 2006-08-23  Bruno Haible  <bruno@clisp.org>
24719
24720         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24721         of gl_LOCK_EARLY instead of gl_LOCK.
24722
24723 2006-08-23  Bruno Haible  <bruno@clisp.org>
24724
24725         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24726         on OSF/1 to no.
24727         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24728
24729 2006-08-23  Bruno Haible  <bruno@clisp.org>
24730
24731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24732         as unusable.
24733
24734         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24735         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24736         (gl_LOCK): New macro.
24737
24738 2006-08-22  Simon Josefsson  <jas@extundo.com>
24739
24740         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24741         to md5 module.
24742
24743 2006-08-22  Simon Josefsson  <jas@extundo.com>
24744
24745         * MODULES.html.sh: Add "Support for maintaining and release
24746         projects".
24747
24748         * build-aux/gnupload: New file, from coreutils.
24749
24750 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24751
24752         Avoid the need for AC_LIBSOURCES in m4 macros.
24753         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24754         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24755         * modules/check-version (EXTRA_DIST): Add check-version.h.
24756         * modules/crc (EXTRA_DIST): Add crc.h.
24757         * modules/des (EXTRA_DIST): Add des.h.
24758         * modules/gc (EXTRA_DIST): Add gc.h.
24759         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24760         * modules/getline (EXTRA_DIST): Add getline.h.
24761         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24762         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24763         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24764         * modules/md2 (EXTRA_DIST): Add md2.h.
24765         * modules/md4 (EXTRA_DIST): Add md4.h.
24766         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24767         * modules/read-file (EXTRA_DIST): Add read-file.h.
24768         * modules/readline (EXTRA_DIST): Add readline.h.
24769         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24770         rijndael-api-fst.h.
24771
24772 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24773
24774         * m4/rijndael.m4 (gl_ARCFOUR):
24775         * m4/arctwo.m4 (gl_ARCTWO):
24776         * m4/check-version.m4 (gl_CHECK_VERSION):
24777         * m4/crc.m4 (gl_CRC):
24778         * m4/des.m4 (gl_DES):
24779         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24780         * m4/gc.m4 (gl_GC):
24781         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24782         * m4/getline.m4 (gl_FUNC_GETLINE):
24783         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24784         * m4/hmac-md5.m4 (gl_HMAC_MD5):
24785         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24786         * m4/md2.m4 (gl_MD2):
24787         * m4/md4.m4 (gl_MD4):
24788         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24789         * m4/read-file.m4 (gl_FUNC_READ_FILE):
24790         * m4/readline.m4 (gl_FUNC_READLINE):
24791         * m4/rijndael.m4 (gl_RIJNDAEL):
24792         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24793         to get the necessary .h files and whatnot.
24794
24795 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24796
24797         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24798         gnulib rather than the other way around.
24799         * config/srclistvars.sh (COREUTILS): Remove.
24800
24801 2006-08-22  Jim Meyering  <jim@meyering.net>
24802
24803         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24804
24805         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24806
24807 2006-08-22  Eric Blake  <ebb9@byu.net>
24808
24809         * modules/regexprops-generic: New file.
24810         * MODULES.html.sh (Support for building documentation): List it.
24811
24812 2006-08-22  Eric Blake  <ebb9@byu.net>
24813
24814         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24815         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24816         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24817         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24818
24819 2006-08-22  Bruno Haible  <bruno@clisp.org>
24820
24821         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24822         and lib_LTLIBRARIES like the other lib_* variables.
24823
24824 2006-08-22  Bruno Haible  <bruno@clisp.org>
24825
24826         * build-aux/x-to-1.in: New file, from GNU gettext.
24827
24828 2006-08-22  Bruno Haible  <bruno@clisp.org>
24829
24830         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24831         <utmpx.h> exists.
24832
24833 2006-08-22  Bruno Haible  <bruno@clisp.org>
24834
24835         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24836         <utmpx.h> exists.
24837
24838 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24839
24840         BeOS portability.
24841         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24842         exist.
24843         Problem reported by Bruno Haible.
24844
24845 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24846
24847         Avoid the need for AC_LIBSOURCES in m4 macros.
24848         * modules/acl (EXTRA_DIST): Add acl.h.
24849         * modules/argmatch (Files): Add m4/argmatch.m4.
24850         (configure.ac): Add gl_ARGMATCH.
24851         (EXTRA_DIST): Renamed from lib_SOURCES, for
24852         consistency with the other modules.  Remove argmatch.c.
24853         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24854         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24855         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24856         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24857         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24858         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24859         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24860         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24861         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24862         * modules/closeout (EXTRA_DIST): Add closeout.h.
24863         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24864         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24865         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24866         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24867         dirname.h; remove basename.c and stripslash.c.
24868         * modules/exclude (EXTRA_DIST): Add exclude.h.
24869         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24870         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24871         * modules/file-type (EXTRA_DIST): Add file-type.h.
24872         * modules/filemode (EXTRA_DIST): Add filemode.h.
24873         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24874         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24875         * modules/fpending (EXTRA_DIST): Add __fpending.h.
24876         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24877         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24878         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24879         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24880         * modules/getdate (EXTRA_DIST): Add getdate.c.
24881         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24882         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24883         * modules/getpass (EXTRA_DIST): Add getpass.h.
24884         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24885         * modules/group-member (EXTRA_DIST): Add group-member.h.
24886         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24887         * modules/hash (EXTRA_DIST): Add hash.h.
24888         * modules/human (EXTRA_DIST): Add human.h.
24889         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24890         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24891         * modules/lchown (EXTRA_DIST): Add lchown.h.
24892         * modules/long-options (EXTRA_DIST): Add long-options.h.
24893         * modules/lstat (EXTRA_DIST): Add lstat.h.
24894         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24895         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24896         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24897         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24898         * modules/memxor (EXTRA_DIST): Add memxor.h.
24899         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24900         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24901         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24902         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24903         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24904         * modules/physmem (EXTRA_DIST): Add physmem.h.
24905         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24906         * modules/posixver (EXTRA_DIST): Add posixver.h.
24907         * modules/quote (EXTRA_DIST): Add quote.h.
24908         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24909         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24910         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24911         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24912         regex_internal.h regexec.c.
24913         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24914         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24915         * modules/same (EXTRA_DIST): Add same.h.
24916         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24917         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24918         * modules/savedir (EXTRA_DIST): Add savedir.h.
24919         * modules/sha1 (EXTRA_DIST): Add sha1.h.
24920         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24921         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24922         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24923         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24924         * modules/strdup (EXTRA_DIST): Add strdup.h.
24925         * modules/strftime (EXTRA_DIST): Add strftime.h.
24926         * modules/strndup (EXTRA_DIST): Add strndup.h.
24927         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24928         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24929         * modules/time_r (EXTRA_DIST): Add time_r.h.
24930         * modules/timespec (EXTRA_DIST): Add timespec.h.
24931         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24932         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24933         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24934         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24935         * modules/userspec (EXTRA_DIST): Add userspec.h.
24936         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24937         * modules/utimens (EXTRA_DIST): Add utimens.h.
24938         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24939         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24940         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24941         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24942         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24943         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24944         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24945         * modules/yesno (EXTRA_DIST): Add yesno.h.
24946
24947 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24948
24949         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24950
24951         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24952         * m4/dev-ino.m4, same-inode.m4: Remove.
24953
24954         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24955         * m4/acl.m4 (AC_FUNC_ACL):
24956         * m4/backupfile.m4 (gl_BACKUPFILE):
24957         * m4/c-strtod.m4 (gl_C99_STRTOLD):
24958         * m4/canon-host.m4 (gl_CANON_HOST):
24959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24960         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24961         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24962         * m4/cloexec.m4 (gl_CLOEXEC):
24963         * m4/close-stream.m4 (gl_CLOSE_STREAM):
24964         * m4/closeout.m4 (gl_CLOSEOUT):
24965         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24966         * m4/dirname.m4 (gl_DIRNAME):
24967         * m4/exclude.m4 (gl_EXCLUDE):
24968         * m4/exitfail.m4 (gl_EXITFAIL):
24969         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24970         * m4/file-type.m4 (gl_FILE_TYPE):
24971         * m4/filemode.m4 (gl_FILEMODE):
24972         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24973         * m4/fpending.m4 (gl_FUNC_FPENDING):
24974         * m4/fprintftime.m4 (gl_FPRINTFTIME):
24975         * m4/fts.m4 (gl_FUNC_FTS):
24976         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24977         * m4/getdate.m4 (gl_GETDATE):
24978         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24979         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24980         * m4/getpass.m4 (gl_FUNC_GETPASS):
24981         * m4/gettime.m4 (gl_GETTIME):
24982         * m4/getugroups.m4 (gl_GETUGROUPS):
24983         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24984         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24985         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24986         * m4/hash.m4 (gl_HASH):
24987         * m4/idcache.m4 (gl_IDCACHE):
24988         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24989         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24990         * m4/long-options.m4 (gl_LONG_OPTIONS):
24991         * m4/lstat.m4 (gl_FUNC_LSTAT):
24992         * m4/md5.m4 (gl_MD5):
24993         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24994         * m4/memcoll.m4 (gl_MEMCOLL):
24995         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24996         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24997         * m4/memxor.m4 (gl_MEMXOR):
24998         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
25000         * m4/modechange.m4 (gl_MODECHANGE):
25001         * m4/mountlist.m4 (gl_MOUNTLIST):
25002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25003         * m4/openat.m4 (gl_FUNC_OPENAT):
25004         * m4/pathmax.m4 (gl_PATHMAX):
25005         * m4/physmem.m4 (gl_PHYSMEM):
25006         * m4/posixtm.m4 (gl_POSIXTM):
25007         * m4/posixver.m4 (gl_POSIXVER):
25008         * m4/quote.m4 (gl_QUOTE):
25009         * m4/quotearg.m4 (gl_QUOTEARG):
25010         * m4/readtokens.m4 (gl_READTOKENS):
25011         * m4/readutmp.m4 (gl_READUTMP):
25012         * m4/regex.m4 (gl_REGEX):
25013         * m4/safe-read.m4 (gl_SAFE_READ):
25014         * m4/safe-write.m4 (gl_SAFE_WRITE):
25015         * m4/same.m4 (gl_SAME):
25016         * m4/save-cwd.m4 (gl_SAVE_CWD):
25017         * m4/savedir.m4 (gl_SAVEDIR):
25018         * m4/settime.m4 (gl_SETTIME):
25019         * m4/sha1.m4 (gl_SHA1):
25020         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
25021         * m4/stat-macros.m4 (gl_STAT_MACROS):
25022         * m4/stat-time.m4 (gl_STAT_TIME):
25023         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
25024         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
25025         * m4/strdup.m4 (gl_FUNC_STRDUP):
25026         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
25027         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25028         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
25029         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
25030         * m4/time_r.m4 (gl_TIME_R):
25031         * m4/timespec.m4 (gl_TIMESPEC):
25032         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
25033         * m4/unlinkdir.m4 (gl_UNLINKDIR):
25034         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
25035         * m4/userspec.m4 (gl_USERSPEC):
25036         * m4/utimecmp.m4 (gl_UTIMECMP):
25037         * m4/utimens.m4 (gl_UTIMENS):
25038         * m4/xalloc.m4 (gl_XALLOC):
25039         * m4/xgetcwd.m4 (gl_XGETCWD):
25040         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
25041         * m4/xreadlink.m4 (gl_XREADLINK):
25042         * m4/xstrtod.m4 (gl_XSTRTOD):
25043         * m4/yesno.m4 (gl_YESNO):
25044         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25045         to get the necessary .h files and whatnot.
25046
25047 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
25048             Bruno Haible  <bruno@clisp.org>
25049
25050         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
25051         /bin/sh understanding of '!' conditional negation.
25052
25053 2006-08-21  Jim Meyering  <jim@meyering.net>
25054
25055         * modules/openat (Depends-on): Really alphabetize.
25056
25057         * modules/acl (Depends-on): Add error and quote.
25058
25059         * check-module (find_included_lib_files): Add at-func.c to the
25060         ok-to-include-more-than-once white list.
25061
25062         * modules/openat (Depends-on): Add lstat.  Alphabetize.
25063
25064 2006-08-21  Bruno Haible  <bruno@clisp.org>
25065
25066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25067         Emit a pkgdata_DATA variable only if some snippets add contents to it.
25068         Reported by Martin Lambers <marlam@marlam.de>.
25069
25070 2006-08-21  Bruno Haible  <bruno@clisp.org>
25071
25072         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
25073         specify an installation location, don't emit a noinst_LIBRARIES or
25074         noinst_LTLIBRARIES assignment.
25075
25076 2006-08-21  Bruno Haible  <bruno@clisp.org>
25077
25078         BeOS portability.
25079         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
25080         BeOS has mbrtowc() but no <wctype.h>.
25081
25082 2006-08-21  Bruno Haible  <bruno@clisp.org>
25083
25084         BeOS portability.
25085         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
25086         exist.
25087
25088 2006-08-21  Bruno Haible  <bruno@clisp.org>
25089
25090         BeOS portability.
25091         * lib/mbchar.h: Include <wctype.h> only if it exists.
25092
25093 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25094
25095         Remove files that are no longer needed by their respective modules.
25096         * m4/obstack.m4: Remove.
25097         * m4/strerror_r.m4: Remove.
25098         * m4/uint32_t.m4: Remove.
25099         * m4/uintptr_t.m4: Remove.
25100         * m4/ullong_max.m4: Remove.
25101         * m4/xstrtoimax.m4: Remove.
25102         * m4/xstrtoumax.m4: Remove.
25103
25104         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
25105         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
25106         dependencies now capture this.
25107
25108         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25109         Do not use AC_LIBSOURCES, since gnulib modules now do this.
25110         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
25111         * m4/human.m4 (gl_HUMAN): Likewise.
25112         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25113         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25114
25115         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25116
25117         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25118         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25119         stdint.
25120         * m4/human.m4 (gl_HUMAN): Likewise.
25121         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25122         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25123         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25124         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25125         * m4/xstrtol (gl_XSTRTOL): Likewise.
25126
25127         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25128         AC_TYPE_LONG_LONG_INT.
25129         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25130         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25131         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25132         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25133
25134         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25135         on stdbool.
25136
25137         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25138         (gl_PREREQ_XSTRTOUL): Remove.
25139
25140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25141
25142         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25143         mode.
25144
25145 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25146
25147         Add and change modules to make it easier for coreutils to use
25148         gnulib-tool.
25149         * modules/backupfile (Files): Remove m4/d-ino.m4.
25150         (Depends-on): Add d-ino.
25151         * modules/cycle-check (Depends-on): Add stdint.
25152         (lib_SOURCES): Add cycle-check.h.
25153         * modules/d-ino: New module.
25154         * modules/d-type: New module.
25155         * modules/error (Files): Remove m4/strerror_r.m4.
25156         * modules/filemode (Files): Add m4/st_dm_mode.m4.
25157         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25158         m4/inttypes_h.m4, m4/uintmax_t.m4.
25159         (Depends-on): Add stdint.
25160         (lib_SOURCES): Add fsusage.h.
25161         * modules/getcwd (Files): Remove d-ino.m4.
25162         (Depends-on): Add d-ino.
25163         * modules/getndelim2 (Depends-on): Add stdint.
25164         * modules/glob (Files): Remove m4/d-type.m4.
25165         (Depends-on): Add d-type.
25166         * modules/host-os: New module.
25167         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
25168         m4/inttypes_h.m4, m4/uintmax_t.m4.
25169         * Depends-on: Add stdint.
25170         (lib_SOURCES): Add human.h.
25171         * modules/inttostr (Files): Remove m4/intmax_t.m4,
25172         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25173         m4/uintmax_t.m4, m4/ulonglong.m4.
25174         (Depends-on): Add stdint.
25175         (EXTRA_DIST): Add inttostr.h.
25176         * modules/lchmod: New module.
25177         * modules/link-follow: New module.
25178         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
25179         (Depends-on): Add lchmod.
25180         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
25181         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
25182         (Depends-on): Add stdint.
25183         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
25184         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
25185         (Depends-on): Add stdint.
25186         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
25187         * modules/perl: New module.
25188         * modules/regex (Depends-on): Add stdint.
25189         * modules/rmdir-errno: New module.
25190         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25191         m4/intmax_t.m4.
25192         (Depends-on): Add stdint.
25193         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25194         m4/uintmax_t.m4.
25195         (Depends-on): Add stdint.
25196         * modules/unlink-busy: New module.
25197         * modules/utimecmp (Depends-on): Add stdint.
25198         * modules/uptime: New module.
25199         * modules/winsz-ioctl: New module.
25200         * modules/winsz-termios: New module.
25201         * modules/xnanosleep (Depends-on): Add nanosleep.
25202         * modules/ullong_max: Remove.
25203         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
25204         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
25205         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
25206         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
25207         (Depends-on): Add inttypes.
25208         (lib_SOURCES): Add xstrtol.h.
25209         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
25210         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
25211         * MODULES.html.sh: Move 'assert' into the assert section.
25212         Move 'dummy' into the linking section.
25213         Remove ullong_max.
25214         Add section for compatibility checks for POSIX:2001 functions,
25215         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
25216         winsz-ioctl, and winsz-termios into it.
25217         Add lchmod.
25218         Add top-level Misc section and put host-os, perl, and uptime
25219         into it.
25220
25221 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25222
25223         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
25224         now assume the stdint module.  Do not include inttypes.h.
25225         * lib/fsusage.h: Likewise.
25226         * lib/getndelim2.c: Likewise.
25227         * lib/human.h: Likewise.
25228         * lib/inttostr.h: Likewise.
25229         * lib/obstack.c: Likewise.
25230         * lib/regex_internal.h: Likewise.
25231         * lib/tempname.c: Likewise.
25232         * lib/utimecmp.c: Likewise.
25233         * lib/xstrtol.h: Likewise.
25234
25235         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
25236
25237         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
25238         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
25239         * lib/xtime.h: Likewise.
25240
25241 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25242
25243         * modules/openat (Files): Add lib/fchmodat.c.
25244         Fixes problem reported by Jay Youngman.
25245
25246 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25247
25248         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
25249         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
25250
25251 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25252             Bruno Haible  <bruno@clisp.org>
25253
25254         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25255         and is a script that invokes bison. Tighten the code. Add comments.
25256
25257 2006-08-18  Jim Meyering  <jim@meyering.net>
25258
25259         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25260         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25261         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
25262         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25263
25264 2006-08-18  Bruno Haible  <bruno@clisp.org>
25265
25266         * modules/bison-i18n: New file.
25267         * MODULES.html.sh (Internationalization functions): Add it.
25268
25269 2006-08-18  Bruno Haible  <bruno@clisp.org>
25270
25271         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25272         sys/statvfs.h. When getmntinfo was found, check its declaration and
25273         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25274
25275 2006-08-18  Bruno Haible  <bruno@clisp.org>
25276
25277         * m4/bison-i18n.m4: New file, from bison.
25278
25279 2006-08-18  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25282         (ME_DUMMY): Treat "kernfs" as a dummy.
25283         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25284
25285 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25286
25287         Update from coreutils.
25288
25289         2006-08-15  Jim Meyering  <jim@meyering.net>
25290
25291         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25292
25293         2006-01-17  Jim Meyering  <jim@meyering.net>
25294
25295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25296
25297         2006-01-11  Jim Meyering  <jim@meyering.net>
25298
25299         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25300         Check for the lchmod function.
25301
25302 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25303
25304         Update from coreutils.
25305
25306         * lib/__fpending.h: Add copyright notice.
25307         * lib/fprintftime.h: Likewise.
25308         * lib/savedir.c: Use (C) in copyright notice.
25309         * lib/savedir.h: Likewise.
25310
25311         2006-08-15  Jim Meyering  <jim@meyering.net>
25312
25313         * lib/at-func.c: New file, with the logic of all emulated at-functions.
25314         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25315         in support of the EXPECTED_ERRNO macro.
25316         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25317         definitions.  Instead, define the appropriate symbols and include
25318         "at-func.c".
25319         * lib/mkdirat.c (mkdirat): Likewise.
25320         * lib/fchmodat.c (fchmodat): Likewise.
25321         (ENOSYS): Remove definition.
25322         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25323         it.  Don't include "unistd--.h" -- it wasn't ever used.
25324
25325         2006-01-17  Jim Meyering  <jim@meyering.net>
25326
25327         Rewrite fts.c not to change the current working directory,
25328         by using openat, fstatat, fdopendir, etc..
25329
25330         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25331         (HAVE_OPENAT_SUPPORT): Define.
25332         [_LIBC] (fchdir): Don't undef or define; no longer used.
25333         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25334         Now, this `function' always succeeds, and consumes its file descriptor
25335         parameter -- so callers must not close such FDs.  Update callers.
25336         (diropen_fd, opendirat, cwd_advance_fd): New functions.
25337         (diropen): Add parameter, SP.  Adjust all callers.
25338         Implement using diropen_fd, rather than open.
25339         (fts_open): Initialize new member, fts_cwd_fd.
25340         Remove fts_rft-setting code.
25341         (fts_close): Close fts_cwd_fd, if necessary.
25342         (__opendir2): Define in terms of opendir or opendirat,
25343         depending on whether the FST_NOCHDIR flag is set.
25344         (fts_build): Since fts_safe_changedir consumes its FD, and since
25345         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25346         and close the dup'd file descriptor upon failure.
25347         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25348         (fts_safe_changedir): Tweak semantics to reflect that this function
25349         now calls cwd_advance_fd and hence consumes its FD argument.
25350         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25351         [struct FTS] (fts_rft): Remove now-unused member.
25352         [struct FTS] (fts_cycle.state): Improve comment.
25353
25354         * lib/openat.c (openat_needs_fchdir): New function.
25355         * lib/openat.h (openat_needs_fchdir): Declare it.
25356
25357 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25358
25359         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25360         Problem and fix reported by Pádraig Brady in
25361         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25362
25363 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25364
25365         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25366
25367 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25368
25369         * lib/memcoll.c (memcoll): Optimize for the common case where the
25370         arguments are bytewise equal.
25371
25372 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25373
25374         * doc/regexprops-generic.texi: Add a copyright notice.
25375
25376 2006-08-15  Bruno Haible  <bruno@clisp.org>
25377
25378         * modules/tmpdir (License): Change to LGPL.
25379
25380 2006-08-15  Bruno Haible  <bruno@clisp.org>
25381
25382         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25383         module.
25384
25385 2006-08-14  Simon Josefsson  <jas@extundo.com>
25386
25387         * config/srclist.txt: Add gnupload.
25388
25389 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25390
25391         Change copyright notice from LGPL 2 to GPL 2, since that's the
25392         standard form used in the gnulib repository.
25393         * tests/test-lock.c: Likewise.
25394         * tests/test-stdint.c: Likewise.
25395         * tests/test-tls.c: Likewise.
25396
25397         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25398         prelude-manager.  User shorter URLs for GNU projects, without '?'.
25399         Add copyright notice.
25400
25401         * check-module: Add copyright notice.  Output a copyright
25402         notice if "--version" is specified.
25403         * modules/COPYING: New file.
25404         * tests/test-getaddrinfo.c: Add copyright notice.
25405         * tests/test-verify.c: Likewise.
25406
25407 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25408
25409         Change copyright notice from LGPL 2 to GPL 2, since that's the
25410         standard form used in the gnulib repository.
25411         * lib/lock.c: LGPL -> GPL.
25412         * lib/lock.h: Likewise.
25413         * lib/strnlen1.c: Likewise.
25414         * lib/strnlen1.h: Likewise.
25415         * lib/tls.c: Likewise.
25416         * lib/tls.h: Likewise.
25417         * lib/tmpdir.c: Likewise.
25418
25419         * lib/TODO: Remove; this belongs only in coreutils.
25420
25421 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25422
25423         Add copyright notices to long-enough files that lack them, since
25424         otherwise the files aren't clearly free.  Use the same notice that
25425         getdate.texi already uses.
25426         * doc/alloca-opt.texi: Add copyright notice.
25427         * doc/alloca.texi: Likewise.
25428         * doc/ctime.texi: Likewise.
25429         * doc/functions.texi: Likewise.
25430         * doc/gcd.texi: Likewise.
25431         * doc/gnulib-tool.texi: Likewise.
25432         * doc/inet_ntoa.texi: Likewise.
25433         * doc/visibility.texi: Likewise.
25434
25435         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25436         * doc/quote.texi: Add copyright notice.
25437
25438         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25439         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
25440         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
25441         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
25442         is now obsolete, and give a pointer to the Sun list.
25443         Add copyright notice.
25444
25445 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25446
25447         * config/srclistvars.sh: Add copyright notice.
25448
25449 2006-08-14  Eric Blake  <ebb9@byu.net>
25450
25451         Import the following change from libc:
25452
25453         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
25454
25455         Upstream bug 2997.
25456         * lib/misc/error.c: Add space between program name and message if file
25457         name is missing.
25458
25459 2006-08-12  Karl Berry  <karl@gnu.org>
25460
25461         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25462         remove, these originate in gnulib now.
25463
25464 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25465
25466         * doc/Makefile (standards.info standards.html standards.dvi):
25467         Also depend on make-stds.texi.
25468
25469 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25470
25471         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25472         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
25473
25474         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25475         in wchar_t.  Problem reported by Eric Blake.
25476
25477         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25478         LEN is smaller than SIZE.  Suggested by Bruno Haible.
25479         Also, help the compiler to keep LEN in a register.
25480
25481 2006-08-11  Eric Blake  <ebb9@byu.net>
25482
25483         * users.txt: Sort.  Add tar.
25484
25485 2006-08-11  Bruno Haible  <bruno@clisp.org>
25486
25487         * users.txt: New file.
25488
25489 2006-08-11  Bruno Haible  <bruno@clisp.org>
25490
25491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25492         before <wchar.h>. Needed for OSF/1 and BSD/OS.
25493
25494 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25495
25496         * modules/snprintf (Depends-on): Remove minmax.
25497         (Maintainer): Add self and Bruno.
25498
25499 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25500
25501         * lib/.cppi-disable: Add snprintf.h, socket_.h.
25502         * lib/snprintf.c: Include <errno.h> and <limits.h>.
25503         (EOVERFLOW): Define if the system does not.
25504         Do not include "minmax.h"; it wasn't used.
25505         (snprintf): Don't assume size_t promotes to an unsigned type.
25506         Fix bug when generated string was too long for the buffer: the
25507         buffer's contents are supposed to be the initial prefix of the
25508         output.  Don't assume vasnprintf returns EOVERFLOW if the size
25509         exceeds INT_MAX; do the check ourselves.
25510
25511         Import the following changes from libc:
25512
25513         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
25514
25515         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25516         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
25517         set wc to the byte which couldn't be converted.
25518         (re_string_reconstruct): Don't clear valid_raw_len before calling
25519         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
25520         tip_context using re_string_context_at.
25521
25522         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
25523
25524         * lib/posix/regex.h: g++ still cannot handled [restrict].
25525
25526         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
25527
25528         * lib/posix/regex.h: Remove special handling for VMS.
25529
25530 2006-08-10  Jim Meyering  <jim@meyering.net>
25531
25532         * modules/same-inode: New module.
25533         * modules/dev-ino: New module.
25534         * modules/cycle-check: Depend on these modules, rather than simply
25535         including their .h files.
25536         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25537         required via m4/cycle-check.m4.
25538         * modules/same: Depend on new same-inode module, rather than
25539         including same-inode.h.
25540         * modules/chdir-safer: New file.
25541
25542         * modules/chown (Depends-on): Add stat-macros.
25543
25544 2006-08-10  Jim Meyering  <jim@meyering.net>
25545
25546         * m4/cycle-check.m4: New file.
25547         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25548         * m4/dev-ino.m4, m4/same-inode.m4: New files.
25549
25550 2006-08-10  Eric Blake  <ebb9@byu.net>
25551
25552         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25553         in from original proposal.
25554
25555 2006-08-10  Eric Blake  <ebb9@byu.net>
25556         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25557
25558         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25559         namespace.
25560
25561 2006-08-10  Bruno Haible  <bruno@clisp.org>
25562
25563         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25564         as well.
25565
25566 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25567
25568         Sync from coreutils.
25569
25570         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
25571
25572         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25573         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25574
25575 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25576
25577         * modules/restrict: Remove; no longer needed now that we assume
25578         Autoconf 2.59 or later.
25579         * MODULES.html.sh: Remove 'restrict'.
25580         * modules/argp (Depends-on): Remove 'restrict'.
25581         * modules/base64 (Depends-on): Likewise.
25582         * modules/gc (Depends-on): Likewise.
25583         * modules/getaddrinfo (Depends-on): Likewise.
25584         * modules/glob (Depends-on): Likewise.
25585         * modules/inet_ntop (Depends-on): Likewise.
25586         * modules/inet_pton (Depends-on): Likewise.
25587         * modules/memxor (Depends-on): Likewise.
25588         * modules/regex (Depends-on): Likewise.
25589         * modules/strtok_r (Depends-on): Likewise.
25590         * modules/time_r (Depends-on): Likewise.
25591
25592 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25593
25594         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25595         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25596         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25597         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25598         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25599         * m4/memxor.m4 (gl_MEMXOR): Likewise.
25600         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
25601         gl_C_RESTRICT replaced by AC_C_RESTRICT.
25602
25603         Merge from coreutils.
25604         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25605         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25607         * m4/time_r.m4 (gl_TIME_R): Likewise.
25608
25609 2006-08-09  Karl Berry  <karl@gnu.org>
25610
25611         * config/srclist.txt: no more gettext-tools, per Bruno.
25612
25613 2006-08-08  Eric Blake  <ebb9@byu.net>
25614
25615         * modules/verror: New module.
25616         * MODULES.html.sh: Document it.
25617
25618 2006-08-08  Eric Blake  <ebb9@byu.net>
25619
25620         * lib/verror.h, lib/verror.c: New files.
25621
25622 2006-08-08  Eric Blake  <ebb9@byu.net>
25623
25624         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25625         verror_at_line output complies with GNU Coding Standards even when
25626         file is NULL.
25627
25628 2006-08-07  Bruno Haible  <bruno@clisp.org>
25629
25630         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25631         versions of AIX.
25632         Reported by Ralf Wildenhues.
25633
25634 2006-08-07  Bruno Haible  <bruno@clisp.org>
25635
25636         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25637         in an AC_DEFUN. Needed so that the autoconf snippets can use
25638         AC_REQUIRE.
25639
25640 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25641
25642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25643         Initialize pkgdata_DATA.
25644         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25645         overriding it.
25646
25647 2006-08-06  Eric Blake  <ebb9@byu.net>
25648
25649         * lib/error.h: Fold in some upstream changes from glibc.
25650         * lib/error.c: Likewise.
25651
25652 2006-08-04  Bruno Haible  <bruno@clisp.org>
25653
25654         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25655         Make the mostlyclean-local rule depend on mostlyclean-generic.
25656         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25657
25658 2006-07-31  Bruno Haible  <bruno@clisp.org>
25659
25660         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25661         <stdlib.h>, <string.h>.
25662
25663 2006-07-30  Bruno Haible  <bruno@clisp.org>
25664
25665         * modules/readlink (License): Change to LGPL.
25666
25667 2006-07-30  Bruno Haible  <bruno@clisp.org>
25668
25669         * modules/javaversion (Makefile.am): Distribute javaversion.java and
25670         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25671         set PKGDATADIR to point to it.
25672
25673 2006-07-30  Bruno Haible  <bruno@clisp.org>
25674
25675         * modules/csharpexec (configure.ac): Comment out macro invocation.
25676         * modules/javaexec (configure.ac): Likewise.
25677         * modules/javacomp-script (configure.ac): Likewise.
25678
25679         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25680
25681 2006-07-30  Bruno Haible  <bruno@clisp.org>
25682
25683         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25684         linked-list.
25685
25686 2006-07-30  Bruno Haible  <bruno@clisp.org>
25687
25688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25689
25690 2006-07-30  Bruno Haible  <bruno@clisp.org>
25691
25692         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25693         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25694         get removed.
25695
25696 2006-07-29  Bruno Haible  <bruno@clisp.org>
25697
25698         Make it possible for gnulib-tool to work with locally modified or
25699         augmented gnulib repositories.
25700         * gnulib-tool (func_usage): Document --local-dir option.
25701         (local_gnulib_dir): New variable.
25702         Handle --local-dir option.
25703         (func_lookup_file): New function.
25704         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25705         (func_get_description, func_get_filelist, func_get_description,
25706         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25707         func_get_automake_snippet, func_get_include_directive,
25708         func_get_license, func_get_maintainer): Use func_lookup_file.
25709         (func_import, func_create_testdir): Use func_lookup_file.
25710
25711 2006-07-29  Bruno Haible  <bruno@clisp.org>
25712
25713         * modules/setenv (Depends-on): Add unistd.
25714
25715 2006-07-29  Bruno Haible  <bruno@clisp.org>
25716
25717         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25718
25719 2006-07-29  Bruno Haible  <bruno@clisp.org>
25720
25721         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25722
25723 2006-07-29  Bruno Haible  <bruno@clisp.org>
25724
25725         * gnulib-tool (import, update): If there is no Makefile.am, look at
25726         aclocal.m4, instead of bailing out.
25727
25728 2006-07-29  Bruno Haible  <bruno@clisp.org>
25729
25730         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25731         Categorize the options by when they are useful.
25732
25733 2006-07-29  Bruno Haible  <bruno@clisp.org>
25734
25735         * gnulib-tool (func_usage): Document option --no-libtool.
25736         Handle option --no-libtool.
25737         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25738         for changed semantics of $libtool variable.
25739         (func_import): Likewise. If libtool is not used, show this through
25740         an option --no-libtool.
25741         (func_create_testdir): Update.
25742
25743 2006-07-29  Bruno Haible  <bruno@clisp.org>
25744
25745         * gnulib-tool (func_import): Extend error message about missing
25746         --doc-base.
25747
25748 2006-07-29  Bruno Haible  <bruno@clisp.org>
25749
25750         * gnulib-tool (func_import): Don't create the $docbase directory if
25751         there is no file to store there.
25752
25753 2006-07-29  Bruno Haible  <bruno@clisp.org>
25754
25755         * gnulib-tool (autoconf_minversion): If a --dir option is given and
25756         relevant, look for configure.ac there, not in the current directory.
25757         Also use a simple search for AC_PREREQ, not "autoconf --trace".
25758
25759 2006-07-29  Bruno Haible  <bruno@clisp.org>
25760
25761         * gnulib-tool (SORT): New variable.
25762         (func_usage): Undocument --assume-autoconf option.
25763         Remove --assume-autoconf option handling.
25764         (autoconf_minversion): Determine from the contents of configure.ac.
25765         (func_import): Remove autoconf_minversion handling.
25766         Suggested by Eric Blake.
25767
25768 2006-07-29  Bruno Haible  <bruno@clisp.org>
25769
25770         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25771
25772 2006-07-29  Bruno Haible  <bruno@clisp.org>
25773
25774         * config/srclist.txt (*setenv.[ch]): Remove rules.
25775
25776 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25777
25778         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25779
25780 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25781
25782         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25783         arpa/inet.h.
25784
25785 2006-07-28  Simon Josefsson  <jas@extundo.com>
25786
25787         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25788         * modules/inet_pton (Depends-on): Likewise.
25789
25790 2006-07-28  Simon Josefsson  <jas@extundo.com>
25791
25792         * m4/netinet_in_h.m4: New file.
25793
25794 2006-07-28  Simon Josefsson  <jas@extundo.com>
25795
25796         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25797         #include's.
25798
25799 2006-07-28  Simon Josefsson  <jas@extundo.com>
25800
25801         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25802         #include's.
25803
25804 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
25805
25806         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25807         setgid on directories only if they set these bits.
25808         * lib/modechange.h: Remove obsolete comment about masks.
25809
25810 2006-07-28  Eric Blake  <ebb9@byu.net>
25811
25812         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25813         macro expansion.
25814
25815 2006-07-28  Bruno Haible  <bruno@clisp.org>
25816
25817         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25818
25819 2006-07-28  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25822
25823 2006-07-28  Bruno Haible  <bruno@clisp.org>
25824
25825         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25826         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25827         Define fallbacks.
25828         Avoids link error on FreeBSD 4.x.
25829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25830
25831         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25832         encoding.
25833         * lib/mbswidth.c (iswcntrl): Likewise.
25834
25835 2006-07-27  Bruno Haible  <bruno@clisp.org>
25836
25837         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25838         test.
25839
25840 2006-07-27  Bruno Haible  <bruno@clisp.org>
25841
25842         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25843         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25844         defined.
25845
25846 2006-07-26  Eric Blake  <ebb9@byu.net>
25847
25848         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25849
25850 2006-07-26  Eric Blake  <ebb9@byu.net>
25851
25852         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25853         like mingw that lack mkstemp.
25854         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25855         avoid compilation warning on mingw.
25856
25857 2006-07-26  Bruno Haible  <bruno@clisp.org>
25858
25859         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25860         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25861         INT_FAST*_MIN, INTPTR_MIN.
25862
25863 2006-07-25  Bruno Haible  <bruno@clisp.org>
25864
25865         * modules/version-etc (Depends-on): Add stdarg.
25866
25867 2006-07-25  Bruno Haible  <bruno@clisp.org>
25868
25869         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25870         complex commands.
25871
25872 2006-07-25  Bruno Haible  <bruno@clisp.org>
25873
25874         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25875         defined in <stdarg.h> or config.h.
25876
25877 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25878
25879         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25880         (gl_STDIO_SAFER): Remove.
25881
25882 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25883
25884         * MODULES.html.sh (File stream based Input/Output):
25885         Add fopen-safer, tmpfile-safer; remove stdio-safer.
25886         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25887         * modules/fopen-safer, modules/tmpfile-safer: New files.
25888         * modules/stdio-safer: Remove.
25889
25890 2006-07-24  Bruno Haible  <bruno@clisp.org>
25891
25892         * modules/tmpdir: New file.
25893         * MODULES.html.sh (File system functions): Add it.
25894
25895 2006-07-24  Bruno Haible  <bruno@clisp.org>
25896
25897         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25898         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25899
25900 2006-07-24  Bruno Haible  <bruno@clisp.org>
25901
25902         * modules/clean-temp: New file.
25903
25904 2006-07-24  Bruno Haible  <bruno@clisp.org>
25905
25906         * m4/tmpdir.m4: New file, from GNU gettext.
25907
25908 2006-07-24  Bruno Haible  <bruno@clisp.org>
25909
25910         * lib/tmpdir.h: New file, from GNU gettext.
25911         * lib/tmpdir.c: New file, from GNU gettext.
25912
25913 2006-07-24  Bruno Haible  <bruno@clisp.org>
25914
25915         * lib/clean-temp.h: New file, from GNU gettext.
25916         * lib/clean-temp.c: New file, from GNU gettext.
25917
25918 2006-07-23  Eric Blake  <ebb9@byu.net>
25919
25920         * modules/stdio-safer (Files): Add tmpfile-safer.c.
25921         (Depends-on): Add binary-io.
25922
25923 2006-07-23  Eric Blake  <ebb9@byu.net>
25924
25925         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25926
25927 2006-07-23  Eric Blake  <ebb9@byu.net>
25928
25929         * lib/tmpfile-safer.c: New file.
25930         * lib/stdio-safer.h (fopen_safer): Add prototype.
25931         * lib/stdio--.h (tmpfile): Make safer.
25932
25933 2006-07-23  Bruno Haible  <bruno@clisp.org>
25934
25935         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25936         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25937         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25938         gl_linked_remove_at): Use it.
25939
25940 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25941         and Simon Josefsson <jas@extundo.com>
25942
25943         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25944
25945         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25946
25947 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25948
25949         * modules/close-stream: New file.
25950         * modules/closeout (Description): Make it clear that it exits
25951         with a diagnostic on error.
25952         (Depends-on): Add close-stream.  Remove fpending, stdbool.
25953         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25954
25955 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25956
25957         * m4/close-stream.m4: New file.
25958
25959 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25960
25961         * lib/close-stream.c, lib/close-stream.h: New files.
25962
25963 2006-07-22  Bruno Haible  <bruno@clisp.org>
25964
25965         Merge from GNU gettext 0.15.
25966
25967         2006-05-01  Bruno Haible  <bruno@clisp.org>
25968
25969                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25970
25971         2006-07-22  Bruno Haible  <bruno@clisp.org>
25972
25973                 * modules/javaversion: New file.
25974                 * MODULES.html.sh (Java): Add javaversion.
25975
25976         2006-03-12  Bruno Haible  <bruno@clisp.org>
25977
25978                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25979
25980         2005-12-04  Bruno Haible  <bruno@clisp.org>
25981
25982                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25983                 (untested).
25984
25985         2006-06-21  Bruno Haible  <bruno@clisp.org>
25986
25987                 Avoid warnings from recent versions of mcs.
25988                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25989                 -o, -L, -r any more. Use options documented since mcs-1.0
25990                 instead. Similarly for -g.
25991
25992         2005-12-04  Bruno Haible  <bruno@clisp.org>
25993
25994                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25995                 .resources, not .resource.
25996
25997         2005-07-09  Bruno Haible  <bruno@clisp.org>
25998
25999                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
26000                 add a .dll suffix.
26001                 Reported by Mark Junker <mjscod@gmx.de>.
26002
26003         2006-07-22  Bruno Haible  <bruno@clisp.org>
26004
26005                 * modules/gettext: Upgrade to gettext-0.15.
26006                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
26007                 m4/visibility.m4.
26008                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
26009
26010 2006-07-22  Bruno Haible  <bruno@clisp.org>
26011
26012         Merge from GNU gettext 0.15.
26013
26014         2006-03-25  Bruno Haible  <bruno@clisp.org>
26015
26016                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
26017
26018         2006-07-21  Bruno Haible  <bruno@clisp.org>
26019
26020                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
26021                 "1.1".
26022
26023         2006-05-09  Bruno Haible  <bruno@clisp.org>
26024
26025                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
26026                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
26027                 for the conftestver execution.
26028
26029         2006-05-01  Bruno Haible  <bruno@clisp.org>
26030
26031                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
26032                 optional target-version argument. Verify that the compiler
26033                 groks source of the specified source-version, or add -source
26034                 option as necessary. Verify that the compiler produces
26035                 bytecode in the specified target-version, or add -target and
26036                 -source options as necessary. Make the result of the test
26037                 available as variable CONF_JAVAC. Also log error output in
26038                 config.log.
26039
26040         2006-03-11  Bruno Haible  <bruno@clisp.org>
26041
26042                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
26043
26044         2006-05-09  Bruno Haible  <bruno@clisp.org>
26045
26046                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
26047                 CLASSPATH_SEPARATOR to a semicolon.
26048
26049         2006-03-12  Bruno Haible  <bruno@clisp.org>
26050
26051                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
26052                 available as variable CONF_JAVA, for subsequent autoconf
26053                 tests. Also log error output in config.log.
26054
26055         2006-07-19  Bruno Haible  <bruno@clisp.org>
26056
26057                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
26058                 that getline works on glibc2 systems. Needed to avoid trouble
26059                 in relocatable.c.
26060                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
26061
26062         2005-12-04  Bruno Haible  <bruno@clisp.org>
26063
26064                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
26065                 launcher (untested).
26066
26067         2005-12-04  Bruno Haible  <bruno@clisp.org>
26068
26069                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
26070
26071         2006-07-22  Bruno Haible  <bruno@clisp.org>
26072
26073                 * gettext.m4: Update from GNU gettext-0.15.
26074                 * nls.m4: Likewise.
26075                 * po.m4: Likewise.
26076                 * inttypes-pri.m4: Likewise.
26077                 * inttypes-h.m4: Renamed from inttypes.m4.
26078                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
26079
26080 2006-07-22  Bruno Haible  <bruno@clisp.org>
26081
26082         Merge from GNU gettext 0.15.
26083
26084         2005-07-05  Bruno Haible  <bruno@clisp.org>
26085
26086                 * printf-args.c (printf_fetchargs): Work around broken
26087                 definition of wint_t on mingw.
26088
26089         2005-02-12  Bruno Haible  <bruno@clisp.org>
26090
26091                 * xallocsa.h: Add extern "C" for C++.
26092
26093         2006-05-17  Bruno Haible  <bruno@clisp.org>
26094
26095                 Cygwin portability.
26096                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
26097
26098         2006-04-30  Bruno Haible  <bruno@clisp.org>
26099
26100                 * progreloc.c: Include <mach-o/dyld.h> if available.
26101                 (find_executable): Use _NSGetExecutablePath when possible.
26102
26103         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26104
26105                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
26106                 function.
26107
26108         2005-12-29  Bruno Haible  <bruno@clisp.org>
26109
26110                 * progreloc.c (set_program_name_and_installdir): Fix
26111                 compilation error.
26112
26113         2005-12-04  Bruno Haible  <bruno@clisp.org>
26114
26115                 Cygwin portability.
26116                 * progreloc.c: Include <windows.h> also on Cygwin.
26117                 (find_executable): Add support for Cygwin.
26118                 (set_program_name_and_installdir): Handle also platforms with
26119                 nonempty EXEEXT.
26120
26121         2006-07-11  Bruno Haible  <bruno@clisp.org>
26122
26123                 * javacomp.c: Fix a comment.
26124                 Reported by Jim Meyering.
26125
26126         2006-04-30  Bruno Haible  <bruno@clisp.org>
26127
26128                 * javacomp.h (compile_java_class): Add source_version,
26129                 target_version arguments.
26130                 * javacomp.c: Rewritten to choose only a compiler that
26131                 respects the specified source_version and target_version.
26132
26133         2006-06-27  Bruno Haible  <bruno@clisp.org>
26134
26135                 Assume correct S_ISDIR macro.
26136                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26137
26138         2006-07-22  Bruno Haible  <bruno@clisp.org>
26139
26140                 * javaversion.h: New file, from GNU gettext.
26141                 * javaversion.c: New file, from GNU gettext.
26142                 * javaversion.java: New file, from GNU gettext.
26143                 * javaversion.class: New file, from GNU gettext.
26144
26145         2006-05-17  Bruno Haible  <bruno@clisp.org>
26146
26147                 Cygwin portability.
26148                 * javaexec.c (execute_java_class): Test for jview program
26149                 also on Cygwin.
26150
26151         2006-04-09  Bruno Haible  <bruno@clisp.org>
26152
26153                 * fatal-signal.c: Don't include string.h.
26154                 (at_fatal_signal): Use a copying loop instead of memcpy.
26155
26156         2005-12-04  Bruno Haible  <bruno@clisp.org>
26157
26158                 * csharpexec.c: Add support for 'clix' launcher (untested).
26159                 (execute_csharp_using_sscli): New function.
26160                 (execute_csharp_program): Call it.
26161
26162         2006-06-21  Bruno Haible  <bruno@clisp.org>
26163
26164                 Avoid warnings from recent versions of mcs.
26165                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26166                 -o, -L, -r any more. Use options documented since mcs-1.0
26167                 instead. Similarly for -g.
26168
26169         2005-07-09  Bruno Haible  <bruno@clisp.org>
26170
26171                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26172                 add a .dll suffix.
26173                 Reported by Mark Junker <mjscod@gmx.de>.
26174
26175         2006-06-17  Bruno Haible  <bruno@clisp.org>
26176
26177                 * config.charset: Update for NetBSD 3.0.
26178
26179         2006-05-17  Bruno Haible  <bruno@clisp.org>
26180
26181                 Cygwin portability.
26182                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
26183
26184         2006-05-16  Bruno Haible  <bruno@clisp.org>
26185
26186                 * localcharset.c [CYGWIN]: Include <windows.h>.
26187                 (get_charset_aliases): For Cygwin, return the same CPxxx
26188                 aliases list as under WIN32.
26189                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
26190                 the environment variables. Fall back to GetACP().
26191
26192         2006-04-05  Bruno Haible  <bruno@clisp.org>
26193
26194                 * config.charset: Update Juan Manuel Guerrero's address.
26195
26196         2005-02-12  Bruno Haible  <bruno@clisp.org>
26197
26198                 * allocsa.h: Add extern "C" for C++.
26199
26200         2005-02-10  Bruno Haible  <bruno@clisp.org>
26201
26202                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
26203                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
26204
26205         2006-07-22  Bruno Haible  <bruno@clisp.org>
26206
26207                 * gettext.h: Update to GNU gettext-0.15.
26208
26209 2006-07-22  Bruno Haible  <bruno@clisp.org>
26210
26211         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
26212         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
26213         lib-prefix.m4, longdouble.m4, ssize_t.m4.
26214
26215 2006-07-21  Eric Blake  <ebb9@byu.net>
26216
26217         * modules/stdlib-safer: New file.
26218         * MODULES.html.sh (File stream based Input/Output): Add
26219         stdlib-safer.
26220
26221 2006-07-21  Eric Blake  <ebb9@byu.net>
26222
26223         * lib/stdlib-safer.h: New file from coreutils, required by
26224         stdlib--.h.
26225
26226 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26227
26228         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
26229
26230 2006-07-20  Bruno Haible  <bruno@clisp.org>
26231
26232         * gnulib-tool: Recognize new option --assume-autoconf.
26233         (autoconf_minversion): New variable.
26234         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
26235
26236 2006-07-20  Bruno Haible  <bruno@clisp.org>
26237
26238         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
26239
26240 2006-07-19  Derek R. Price  <derek@ximbiot.com>
26241
26242         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
26243         Reindent and repaginate.
26244
26245 2006-07-19  Derek Price  <derek@ximbiot.com>
26246
26247         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
26248         Correct grammar.
26249
26250 2006-07-17  Bruno Haible  <bruno@clisp.org>
26251
26252         * modules/list: New file.
26253         * modules/array-list: New file.
26254         * modules/carray-list, modules/carray-list-tests: New files.
26255         * modules/linked-list, modules/linked-list-tests: New files.
26256         * modules/avltree-list, modules/avltree-list-tests: New files.
26257         * modules/rbtree-list, modules/rbtree-list-tests: New files.
26258         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26259         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26260         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26261         * modules/oset: New file.
26262         * modules/array-oset: New file.
26263         * modules/avltree-oset, modules/avltree-oset-tests: New files.
26264         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26265         * tests/test-carray_list.c: New file.
26266         * tests/test-linked_list.c: New file.
26267         * tests/test-avltree_list.c: New file.
26268         * tests/test-rbtree_list.c: New file.
26269         * tests/test-linkedhash_list.c: New file.
26270         * tests/test-avltreehash_list.c: New file.
26271         * tests/test-rbtreehash_list.c: New file.
26272         * tests/test-avltree_oset.c: New file.
26273         * tests/test-rbtree_oset.c: New file.
26274         * MODULES.html.sh (Container data structures): New section.
26275
26276 2006-07-17  Bruno Haible  <bruno@clisp.org>
26277
26278         * m4/gl_list.m4: New file.
26279
26280 2006-07-17  Bruno Haible  <bruno@clisp.org>
26281
26282         * lib/gl_list.h: New file.
26283         * lib/gl_list.c: New file.
26284         * lib/gl_array_list.h: New file.
26285         * lib/gl_array_list.c: New file.
26286         * lib/gl_carray_list.h: New file.
26287         * lib/gl_carray_list.c: New file.
26288         * lib/gl_linked_list.h: New file.
26289         * lib/gl_linked_list.c: New file.
26290         * lib/gl_anylinked_list1.h: New file.
26291         * lib/gl_anylinked_list2.h: New file.
26292         * lib/gl_avltree_list.h: New file.
26293         * lib/gl_avltree_list.c: New file.
26294         * lib/gl_anyavltree_list1.h: New file.
26295         * lib/gl_anyavltree_list2.h: New file.
26296         * lib/gl_rbtree_list.h: New file.
26297         * lib/gl_rbtree_list.c: New file.
26298         * lib/gl_anyrbtree_list1.h: New file.
26299         * lib/gl_anyrbtree_list2.h: New file.
26300         * lib/gl_anytree_list1.h: New file.
26301         * lib/gl_anytree_list2.h: New file.
26302         * lib/gl_linkedhash_list.h: New file.
26303         * lib/gl_linkedhash_list.c: New file.
26304         * lib/gl_anyhash_list1.h: New file.
26305         * lib/gl_anyhash_list2.h: New file.
26306         * lib/gl_avltreehash_list.h: New file.
26307         * lib/gl_avltreehash_list.c: New file.
26308         * lib/gl_rbtreehash_list.h: New file.
26309         * lib/gl_rbtreehash_list.c: New file.
26310         * lib/gl_anytreehash_list1.h: New file.
26311         * lib/gl_anytreehash_list2.h: New file.
26312
26313         * lib/gl_oset.h: New file.
26314         * lib/gl_oset.c: New file.
26315         * lib/gl_array_oset.h: New file.
26316         * lib/gl_array_oset.c: New file.
26317         * lib/gl_avltree_oset.h: New file.
26318         * lib/gl_avltree_oset.c: New file.
26319         * lib/gl_rbtree_oset.h: New file.
26320         * lib/gl_rbtree_oset.c: New file.
26321         * lib/gl_anytree_oset.h: New file.
26322
26323 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26324
26325         * m4/mkancesdirs.m4: New file.
26326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26327         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26328         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26329         it.
26330
26331 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26332
26333         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26334         * lib/mkancesdirs.h: New files.
26335         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26336         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26337         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
26338         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26339         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
26340         callers changed.  Revamp internals significantly, by not
26341         attempting to create directories that are temporarily more
26342         permissive than the final results.  Do not attempt to use
26343         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26344         This removes some race conditions, fixes some bugs, and simplifies
26345         things.  Use new dirchownmod function to do owner and mode changes.
26346         * lib/mkdir-p.h: Likewise.
26347         * lib/modechange.c (octal_to_mode): New function.
26348         (struct mode_change): New member mentioned.
26349         (make_node_op_equals): New arg mentioned.  All callers changed.
26350         (mode_compile): Keep track of which mode bits the user has explicitly
26351         mentioned.
26352         (mode_adjust): New arg DIR, so that we implement the X op correctly.
26353         New arg PMODE_BITS, to keep track of which mode bits the user
26354         mentioned; it treats S_ISUID and S_ISGID speciall.
26355         All callers changed.
26356         * lib/modechange.h: Likewise.
26357
26358 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26359
26360         * MODULES.html.sh: Add mkancestors.
26361         * modules/mkancesdirs: New module.
26362         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26363         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26364         The chdir-safer and afs files are now orphans; I'll remove them
26365         unless someone speaks up.
26366         Add lib/dirchownmod.c, lib/dirchownmod.h.
26367         (Depends-on): Remove alloca, chown, save-cwd, dirname.
26368         Add lchown, mkancesdirs.
26369         (Maintainer): Add self.
26370
26371 2006-07-15  Karl Berry  <karl@gnu.org>
26372
26373         * gnulib-tool: help message wording/arrangement.
26374
26375 2006-07-14  Simon Josefsson  <jas@extundo.com>
26376
26377         * doc/gnulib.texi (Libtool and Windows): New section.
26378
26379 2006-07-12  Simon Josefsson  <jas@extundo.com>
26380
26381         * modules/gendocs (License): Fix license, approved by Karl.
26382
26383 2006-07-12  Eric Blake  <ebb9@byu.net>
26384
26385         * MODULES.html.sh: Add gendocs.
26386
26387 2006-07-11  Eric Blake  <ebb9@byu.net>
26388
26389         * modules/fdl: New module, to install doc/fdl.texi.
26390         * MODULES.html.sh: Add new section for documentation modules.
26391         * gnulib-tool: Avoid space-tab.
26392         (--doc-base): New option, to manage files from doc.
26393
26394 2006-07-11  Eric Blake  <ebb9@byu.net>
26395
26396         * m4/absolute-header.m4: Fix comments to match recent change.
26397
26398 2006-07-11  Eric Blake  <ebb9@byu.net>
26399
26400         * gnulib-tool: List --doc-base before --tests-base.
26401
26402 2006-07-11  Derek R. Price  <derek@ximbiot.com>
26403
26404         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26405
26406 2006-07-11  Bruno Haible  <bruno@clisp.org>
26407
26408         * README: Mention where to put documentation.
26409
26410 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26411
26412         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26413
26414 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26415
26416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26417         to stdint.m4.
26418
26419 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26420
26421         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26422         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
26423         "no/such/file/stdint.h" when there is no such file, so that
26424         the resulting C code can be parsed by dodgy compilers.
26425         Problems reported by Bob Proulx.
26426
26427 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26428
26429         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26430         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26431         macros into the GNU _D_EXACT_NAMLEN.
26432         * lib/savedir.c:  Likewise.
26433         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26434
26435 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26436         and Paul Eggert  <eggert@cs.ucla.edu>
26437
26438         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26439         * m4/savedir.m4:
26440         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26441         macros into the GNU _D_EXACT_NAMLEN.
26442
26443 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26446         around the absolute name, to work around a problem with the HP-UX
26447         11.23 native C compiler, reported by Bob Proulx.
26448
26449 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26450
26451         * doc/maintain.texi, make-stds.texi: Sync from
26452         <http://savannah.gnu.org/projects/gnustandards>.
26453
26454 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26455
26456         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26457
26458 2006-07-09  Jim Meyering  <jim@meyering.net>
26459
26460         * m4/glob.m4: Remove a doubled word in a comment.
26461
26462 2006-07-09  Jim Meyering  <jim@meyering.net>
26463
26464         * lib/argp-pv.c: Remove a doubled word in a comment.
26465         * lib/check-version.c (check_version): Likewise.
26466         * lib/javacomp.c (compile_java_class): Likewise.
26467
26468 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26469
26470         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26471         for the benefit of people using Autoconf 2.60.  If you want to
26472         support older Autoconf versions you can copy m4/onceonly_2_57.m4
26473         (or m4/onceonly.m4, if pre-2.57) manually.
26474
26475 2006-07-08  Jim Meyering  <jim@meyering.net>
26476
26477         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26478         comment.
26479         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26480         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26481         comment.
26482
26483 2006-07-08  Jim Meyering  <jim@meyering.net>
26484
26485         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26486
26487 2006-07-07  Simon Josefsson  <jas@extundo.com>
26488
26489         * tests/test-crc.c: Change expected crc value, the test vector
26490         were probably computed using the old broken crc.c?
26491
26492 2006-07-06  Simon Josefsson  <jas@extundo.com>
26493
26494         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26495         now the canonical place for the M4 file).
26496
26497         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26498         from the sys_socket dependency now.
26499
26500         * modules/inet_pton (Files): Ditto.
26501
26502         * modules/inet_ntop (Files): Ditto.
26503
26504 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26505
26506         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26507         not gl_PREREQ_GETUSERSHELL.
26508
26509 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26510
26511         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26512         with only one argument, for Autoconf 2.60.
26513         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26514         expand to nothing, so add a shell command to avoid syntax error.
26515         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26516
26517 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26518
26519         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26520
26521 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26524         no longer needed.  Check for isblank decl.
26525         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26526         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26527         of existence.
26528
26529 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26530
26531         * lib/getloadavg.c: Use __VMS, not VMS.
26532         * lib/getopt.c: Likewise.
26533         * lib/getpagesize.h: Likewise.
26534         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26535         and probably does not work.
26536
26537 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26538
26539         * lib/.cppi-disable: Add wcwidth.
26540         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
26541         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26542         (ISGRAPH): Remove.  All uses changed to isgraph.
26543         (FOLD) [!defined _LIBC]: Remove special case.
26544         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26545         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26546         HAVE_ISBLANK.
26547         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26548         case.
26549
26550 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26551
26552         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26553         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26554         brackets.  Other minor changes to suppress some compiler
26555         warnings.
26556
26557 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26558         and Paul Eggert  <eggert@cs.ucla.edu>
26559
26560         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26561         of invoking obsolescent AC_HEADER_DIRENT macro.
26562         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26563         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26564         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26565         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26566         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26567         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26568         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26569         * m4/readdir.m4: Remove; no longer needed.
26570
26571 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26572         and Paul Eggert  <eggert@cs.ucla.edu>
26573
26574         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26575         Don't worry about this obsolete case any more.
26576         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
26577         directories.
26578         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26579         worry about this obsolete case any more.
26580         * lib/fts.c: Likewise.
26581         * lib/getcwd.c: Likewise.
26582         * lib/glob.h: Likewise.
26583         * lib/savedir.c: Likewise.
26584
26585 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26586
26587         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26588         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26589         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26590         needed.
26591         All uses removed.
26592         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26593         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26594         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26595         needed.
26596         * m4/getdate.m4 (gl_GETDATE): Likewise.
26597         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26598         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26599         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26600         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26601         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26602         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26603         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26604         needed.
26605
26606 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26607
26608         * lib/memcasecmp.c: Include <limits.h>.
26609         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26610         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26611         Don't assume isdigit succeeds only on '0' through '9'.
26612
26613 2006-07-05  Eric Blake  <ebb9@byu.net>
26614
26615         * modules/getaddrinfo (Depends-on): Add snprintf.
26616
26617 2006-07-05  Eric Blake  <ebb9@byu.net>
26618
26619         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26620         to avoid 'header present but could not be compiled' on cygwin.
26621
26622 2006-07-05  Eric Blake  <ebb9@byu.net>
26623
26624         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26625         missing from netdb.h.
26626         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26627
26628 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26629
26630         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26631         no longer needed.
26632         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26633         * m4/getdate.m4 (gl_GETDATE): Likewise.
26634         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26635         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26636         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26637         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26638         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26639
26640 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26641
26642         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26643         All uses of is_space replaced by isspace.
26644         * lib/exit.h: Don't talk about STDC_HEADERS.
26645         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
26646         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26647         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
26648         replaced by isprint etc.
26649         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26650         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26651         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26652         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26653         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26654         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26655
26656 2006-07-05  Bruno Haible  <bruno@clisp.org>
26657
26658         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26659         the function exists, before testing against AIX.
26660         Reported by Martin Lambers <marlam@marlam.de>.
26661
26662 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26663
26664         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26665         From Mark D. Baushke.
26666
26667 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26668
26669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26670         to the absolute name, not just one, to bypass Sun C 5.8's
26671         "warning: #include of /usr/include/... may be non-portable".
26672
26673 2006-07-04  Eric Blake  <ebb9@byu.net>
26674
26675         * modules/dirname-tests: New test module.
26676         * tests/test-dirname.c: New file, replacing dirname.c
26677         TEST_DIRNAME section that was recently deleted.
26678
26679 2006-07-04  Bruno Haible  <bruno@clisp.org>
26680
26681         Assume ANSI C header files and <ctype.h> functions.
26682         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26683         (mbsnwidth): Use isprint, iscntrl instead.
26684
26685 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26686
26687         Merge from coreutils.
26688         * MODULES.html.sh: Add xstrtold.
26689         * modules/xstrtold: New file.
26690         * modules/cycle-check (Files): Add lib/same-inode.h.
26691         * modules/dirname (Files): Add m4/double-slash-root.m4.
26692         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26693         * modules/mkdir-p (Files): Add lib/same-inode.h.
26694         * modules/same (Files): Add lib/same-inode.h.
26695
26696 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26697
26698         * m4/absolute-header.m4: Renamed from full-header-path.m4.
26699         This is to keep the terminology clean; POSIX talks about
26700         "absolute pathnames", not "full pathnames", but the GNU
26701         Coding Standards say to use "path" for something else;
26702         so use "absolute" to keep both sides happy.
26703         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26704         Set gl_absolute_header, not gl_full_header_path.
26705         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26706         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26707         All uses changed.
26708
26709         Merge from coreutils.
26710
26711         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26712
26713         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26714         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26715         want to require the building of c-strtod.o.
26716         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26717         needs -lm directly.
26718         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26719
26720         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26721
26722         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26723         --as-needed option if available.  Problem reported by Albert Chin in
26724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26725         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26726         cc merely issues a bunch of annoying warnings for --as-needed
26727         (this problem was reported by Bob Proulx).  Also, try linking with
26728         -lm to detect a bug in binutils 2.16 (this problem was reported
26729         by Ralf Wildenhues).
26730
26731         2006-06-18  Jim Meyering  <jim@meyering.net>
26732
26733         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26734         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26735         macro.
26736         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26737         also check for glibc-2.4's abort-inducing bug.
26738
26739         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26740         Low-probability clean-up should be to use rmdir to get rid of
26741         the just-created directory, not unlink.
26742
26743         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26744         configure fail, and request a bug report to inform us about it.
26745         Add a comment that, barring reports to the contrary, in 2007 we'll
26746         assume ftruncate is universally available.
26747
26748         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26749
26750         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26751
26752         2006-03-12  Jim Meyering  <jim@meyering.net>
26753
26754         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26755         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26756         * m4/same.m4 (gl_SAME): Likewise.
26757         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26758
26759         2006-03-11  Eric Blake  <ebb9@byu.net>
26760
26761         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26762         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26763         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26764         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26765
26766 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26767
26768         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26769         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
26770         reported by Mark D. Baushke, one in
26771         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26772
26773         Merge from coreutils.
26774
26775         * lib/.cppi-disable: Add stdint_.h.
26776         * lib/.cvsignore: Add stdint.h.
26777
26778         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26779
26780         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26781         both double and long double versions.
26782         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
26783         * lib/xstrtold.c: New file.
26784         * lib/xstrtod.h (xstrtold): New decl.
26785
26786         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26787
26788         * lib/filemode.c (setst): Remove.
26789         (strmode): Rewrite to avoid setst.  This makes the code shorter,
26790         (arguably) clearer, and the generated code is a bit smaller on my
26791         Debian GNU/Linux stable x86 host.
26792
26793         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26794
26795         * lib/filemode.c: Include "filemode.h" first, to test the interface.
26796         Assume that filemode.h includes sys/types.h and sys/stat.h.
26797         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26798         (ftypelet): Reorder to put common cases first, for efficiency.
26799         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
26800         to do 'M'.
26801         (strmode): Renamed from mode_string, and now stores 12 bytes instead
26802         of 10, for compatibility with FreeBSD.  All callers changed.
26803         (filemodestring): Now stores 12 bytes instead of 10, and sets file
26804         types that can't be deduced solely from st_mode.  First arg is now a
26805         const pointer.
26806         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26807         (strmode): Renamed from mode_string.
26808         (filemodestring): New decl.
26809         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26810         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26811         needed.
26812         (S_ISPORT, S_ISWHT): New macros, if not already defined.
26813
26814         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26815
26816         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26817         fsusage.h now does that.  Include fsusage.h first, to test interface.
26818         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
26819         at most one method (the old code could have generated decls that
26820         didn't conform to C89, not that this was ever exercised).
26821         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26822
26823         2006-03-19  Jim Meyering  <jim@meyering.net>
26824
26825         Work even in a chroot where d_ino values for entries in "/"
26826         don't match the stat.st_ino values for the same names.
26827         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26828         number, iterate through all entries again, using lstat instead.
26829         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26830         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26831
26832         * lib/getcwd.c (__getcwd): Clarify a comment.
26833         Use memcpy in place of a call to strcpy.
26834
26835         2006-03-12  Jim Meyering  <jim@meyering.net>
26836
26837         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26838         matches that of the current directory (which we're about to chdir ".."
26839         out of), then save the dev-ino of the parent, instead.
26840
26841         * lib/same-inode.h (SAME_INODE): New file/macro.
26842         * lib/chdir-safer.c (SAME_INODE): Remove definition.
26843         Include "same-inode.h", instead.
26844         * lib/same.c: Likewise.
26845         * lib/cycle-check.h: Include "same-inode.h".
26846         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26847         * lib/cycle-check.c (SAME_INODE): Remove definition.
26848         * lib/root-dev-ino.h: Include "same-inode.h".
26849
26850         2006-03-11  Eric Blake  <ebb9@byu.net>
26851
26852         * lib/same.c (same_name): s/base_name/last_component/
26853         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26854         * lib/filenamecat.c (file_name_concat): Likewise.
26855
26856         2006-03-11  Eric Blake  <ebb9@byu.net>,
26857                     Paul Eggert  <eggert@cs.ucla.edu>
26858
26859         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26860         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26861         drive prefix.
26862         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26863         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26864         (last_component): New method.
26865         * lib/dirname.c (dir_len): Determine when drive letters need a
26866         subsequent slash.  Preserve // when it is special.
26867         (dir_name): Don't append dot when drive letter is absolute.
26868         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26869         * lib/basename.c (base_name): New semantics - malloc the result.
26870         Preserve // when it is special.  Preserve relative files that look
26871         like drive letters.
26872         (base_len): Preserve // when it is special.
26873         (last_component): New method, similar to old base_name semantics.
26874         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26875         base_name.  Strip redundant slashes from ///.
26876
26877 2006-07-03  Jim Meyering  <jim@meyering.net>
26878
26879         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26880         macro is used before the first cycle_check call.
26881
26882 2006-07-03  Eric Blake  <ebb9@byu.net>
26883
26884         * modules/dirname (Depends-on): Add xstrndup.
26885
26886 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26887
26888         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26889         test cases, so that config.log is a bit easier to follow.
26890
26891 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26892
26893         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26894         both are 64 bits, since this seems to be the tradition, and this
26895         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
26896         we ever run into a host that prefers long long to long in this
26897         case, we'll need another configure-time test.  Problem reported by
26898         Jim Meyering.
26899
26900 2006-07-02  Eric Blake  <ebb9@byu.net>
26901
26902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26903
26904 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26905
26906         * modules/inttypes (Depends-on): No longer depends on stdint.
26907         * modules/stdint (Description): Say more about assumptions.
26908         Say that the fast types might differ.  Say macros are used.
26909         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
26910         (Makefile.am): Revise list of substituted symbols to match
26911         new stdint.m4.
26912         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26913         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26914         * tests/test-stdint.c (verify_same_types)
26915         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26916         the code conforms to C99/C89.
26917         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26918         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26919
26920 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26921
26922         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26923         but fix a bug, by requiring at least 64 bits.
26924         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26925         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26926         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
26927         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26928
26929         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26930         changes.  Make 2.59 a prerequisite.  Check and substitute for
26931         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
26932         inttypes.h.  Do not use special include files; just use the
26933         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
26934         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
26935         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26936         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26937         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26938         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26939         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26940         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26941         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26942         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26943         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26944         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26945         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26946         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26947         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26948         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26949         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26950         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26951         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26952         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26953         WINT_MAX.  Check for C99 conformance more strictly, by detecting
26954         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
26955         not check for things that C99 does not require, e.g., int8_t.  If
26956         a test isn't needed unless <stdint.h> isn't working, and is
26957         unlikely to be needed for any other reason, then don't do it
26958         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
26959         size_t, since we assume C89 freestanding at least.  Do not check
26960         for sig_atomic_t, wchar_t, or wint_t, since the code now does
26961         the right thing even if the types are not defined.  Instead use:
26962         (gl_STDINT_TYPE_PROPERTIES): New macro.
26963         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
26964         testing whether <sys/types.h> clashes, as Autoconf does this for
26965         us now.  All uses removed.
26966         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26967         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26968         (gl_CHECK_TYPE_SAME):
26969         Remove; no longer needed.
26970         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26971         exists, since we'll return 0 anyway in that case.
26972         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26973
26974 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26975
26976         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26977         possible collision with system files.
26978         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26979         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26980         WCHAR_MIN and WCHAR_MAX in this case.
26981         (<stddef.h>): Do not include; no longer needed.
26982         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26983         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26984         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26985         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26986         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26987         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26988         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26989         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26990         !defined(__c99))]: Include in this case too, since it's harmless
26991         now.
26992         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26993         dangerous to do so.
26994         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26995         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26996         (_STDINT_MIN, _STDINT_MAX): New macros.
26997         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26998         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26999         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
27000         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
27001         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
27002         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
27003         macros, not typedefs; this simplifies things quite a bit.
27004         Use long int for all types narrower than int64_t.
27005         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
27006         Define in terms of long long int or int64_t or long int,
27007         not int64_t or int32_t.  This saves some compile-time testing.
27008         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
27009         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
27010         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
27011         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
27012         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
27013         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
27014         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
27015         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
27016         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
27017         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
27018         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27019         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27020         undef any previous version and define our own version, for
27021         simplicity and consistency with the new macros for types.
27022         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27023         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27024         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
27025         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
27026         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
27027         @WINT_T_SUFFIX@ to keep things simple here.
27028         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
27029         Simplify by assuming typical 8/16/32/64 host, since we're
27030         already doing that elsewhere anyway.
27031         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
27032         and assume long long int is 64 bits if available.  This
27033         speeds up 'configure'.
27034
27035 2006-07-01  Eric Blake  <ebb9@byu.net>
27036
27037         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
27038         Reported by Andreas Buening.
27039
27040 2006-07-01  Eric Blake  <ebb9@byu.net>
27041
27042         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
27043
27044 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
27045
27046         * lib/getaddrinfo.c: fixed typo
27047
27048 2006-06-29  Jim Meyering  <jim@meyering.net>
27049
27050         * modules/strftime (Maintainer): Add my name, since with the
27051         FPRINTFTIME changes strftime.c has forked from glibc.
27052
27053 2006-06-29  Eric Blake  <ebb9@byu.net>
27054
27055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
27056
27057 2006-06-29  Eric Blake  <ebb9@byu.net>
27058
27059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
27060
27061 2006-06-29  Eric Blake  <ebb9@byu.net>
27062
27063         * lib/stat_.h: New file.
27064
27065 2006-06-29  Eric Blake  <ebb9@byu.net>
27066
27067         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
27068         unused static function.
27069
27070 2006-06-29  Eric Blake  <ebb9@byu.net>
27071
27072         * doc/functions.texi (Function Portability): Document missing lstat
27073         on mingw.
27074
27075 2006-06-29  Eric Blake  <ebb9@byu.net>
27076
27077         * MODULES.html.sh: Add sys_stat.
27078         * modules/sys_stat: New module.
27079         * modules/mkstemp (Depends-on): Add sys_stat.
27080
27081 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27082
27083         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
27084
27085 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27086
27087         * m4/c-bs-a.m4: Removed.
27088
27089 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27090
27091         * lib/strftime.c: Assume strftime() exists.
27092
27093 2006-06-29  Derek Price  <derek@ximbiot.com>
27094
27095         * modules/c-bs-a: Removed - \a is C89.
27096         * MODULES.html.sh: Remove c-bs-a.
27097
27098 2006-06-29  Bruno Haible  <bruno@clisp.org>
27099
27100         * modules/wcwidth (License): Change to LGPL.
27101
27102 2006-06-28  Simon Josefsson  <jas@extundo.com>
27103
27104         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
27105         on _WIN32.
27106
27107         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
27108         getnameinfo.
27109
27110 2006-06-28  Simon Josefsson  <jas@extundo.com>
27111
27112         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27113
27114 2006-06-28  Simon Josefsson  <jas@extundo.com>
27115
27116         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27117         functions there.  It will succeed on Windows XP, but on Windows
27118         2000 and (presumably) earlier, it will fail, and use the internal
27119         re-implementation.
27120         (use_win32_p): New function.
27121         (getaddrinfo): Use strtoul on servname, to support numeric ports.
27122         Support AI_NUMERICSERV to disable getservbyname.
27123         (getnameinfo): New function, only supports
27124         NI_NUMERICHOST|NI_NUMERICSERV for now.
27125
27126         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27127         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
27128         getnameinfo.
27129
27130 2006-06-28  Eric Blake  <ebb9@byu.net>
27131
27132         * modules/wcwidth: New file.
27133         * modules/mbchar (Depends-on): Add wcwidth.
27134         * modules/mbswidth (Depends-on): Add wcwidth.
27135         * MODULES.html.sh: Add wcwidth.
27136
27137 2006-06-28  Eric Blake  <ebb9@byu.net>
27138
27139         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27141
27142 2006-06-28  Eric Blake  <ebb9@byu.net>
27143
27144         * lib/xvasprintf.h: Fix comments.
27145
27146 2006-06-28  Eric Blake  <ebb9@byu.net>
27147
27148         * lib/mbchar.h (wcwidth): Include wcwidth.h.
27149         * lib/mbswidth.c (wcwidth): Move from here...
27150         * lib/wcwidth.h: ...to this new file.
27151
27152 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27153
27154         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27155
27156         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27157         it's obsolete.
27158         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27159
27160 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27161
27162         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
27163         Autoconf 2.60 says this stuff was obsolete.
27164
27165 2006-06-28  Bruno Haible  <bruno@clisp.org>
27166
27167         * modules/wcwidth (Files): Add m4/wchar_t.m4.
27168
27169 2006-06-28  Bruno Haible  <bruno@clisp.org>
27170
27171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
27172         gt_TYPE_WCHAR_T.
27173
27174 2006-06-28  Bruno Haible  <bruno@clisp.org>
27175
27176         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
27177         declaration for wcwidth.
27178         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
27179
27180 2006-06-28  Bruno Haible  <bruno@clisp.org>
27181
27182         * lib/mkdtemp.c [MINGW]: Include <io.h>.
27183         (mkdir): Define using _mkdir.
27184
27185 2006-06-28  Bruno Haible  <bruno@clisp.org>
27186
27187         * lib/getaddrinfo.h: Fix POSIX URL.
27188         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
27189         _WIN32.
27190         (use_win32_p): Make static.
27191         (getaddrinfo): Reject service name if it is empty or does not consist
27192         solely of decimal digits, or if its value is > 65535.
27193         (getnameinfo): Remove useless casts.
27194
27195 2006-06-27  Simon Josefsson  <jas@extundo.com>
27196
27197         * modules/sys_select: New file, suggested by Bruno Haible, Paul
27198         Eggert and Martin Lambers.
27199
27200 2006-06-27  Simon Josefsson  <jas@extundo.com>
27201
27202         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
27203         Eggert and Martin Lambers.
27204
27205 2006-06-27  Bruno Haible  <bruno@clisp.org>
27206
27207         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
27208         result to 0, not to empty.
27209         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
27210
27211 2006-06-27  Bruno Haible  <bruno@clisp.org>
27212
27213         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
27214
27215 2006-06-26  Simon Josefsson  <jas@extundo.com>
27216
27217         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
27218         present.
27219
27220 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
27223         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
27224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
27225
27226 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
27227
27228         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
27229
27230 2006-06-26  Bruno Haible  <bruno@clisp.org>
27231
27232         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
27233
27234 2006-06-26  Bruno Haible  <bruno@clisp.org>
27235
27236         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
27237
27238 2006-06-26  Bruno Haible  <bruno@clisp.org>
27239
27240         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
27241         SGI C compiler in pre-C99 mode.
27242         Suggested by Mark D. Baushke and Larry Jones.
27243
27244 2006-06-26  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
27247         WCHAR_MAX.
27248         Reported by Mark D. Baushke and Larry Jones.
27249
27250 2006-06-26  Bruno Haible  <bruno@clisp.org>
27251
27252         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27253         in pre-C99 mode.
27254         Suggested by Mark D. Baushke and Larry Jones.
27255
27256 2006-06-23  Simon Josefsson  <jas@extundo.com>
27257             Bruno Haible  <bruno@clisp.org>
27258
27259         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27260         Emit mostlyclean-local rule.
27261         (func_emit_tests_Makefile_am): Likewise.
27262         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27263
27264 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
27265
27266         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27267
27268 2006-06-23  Bruno Haible  <bruno@clisp.org>
27269
27270         * tests/test-stdint.c: Update to match ISO C 99 Technical
27271         Corrigendum 1.
27272
27273 2006-06-23  Bruno Haible  <bruno@clisp.org>
27274
27275         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27276
27277 2006-06-23  Bruno Haible  <bruno@clisp.org>
27278
27279         * lib/stdint_.h: Treat IRIX like OpenBSD.
27280
27281 2006-06-23  Bruno Haible  <bruno@clisp.org>
27282
27283         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27284         ISO C 99 Technical Corrigendum 1.
27285
27286 2006-06-22  Simon Josefsson  <jas@extundo.com>
27287
27288         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27289         MinGW.
27290
27291 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27292
27293         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27294         needed.  Some compiler complained about some of them.  Problem reported
27295         by Larry Jones in
27296         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27297
27298 2006-06-21  Simon Josefsson  <jas@extundo.com>
27299
27300         * tests/test-getaddrinfo.c: New file.
27301
27302         * modules/getaddrinfo-tests: New file.
27303
27304         * MODULES.html.sh: Add inet_pton.
27305
27306         * modules/inet_pton: New file.
27307
27308 2006-06-21  Simon Josefsson  <jas@extundo.com>
27309
27310         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
27311         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
27312         of using the (limited) gnulib implementation on Windows XP.
27313
27314         * m4/inet_pton.m4: New file.
27315
27316 2006-06-21  Simon Josefsson  <jas@extundo.com>
27317
27318         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27319         variable.
27320
27321         * lib/socket_.h: Don't define WINVER.
27322
27323         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27324         slightly modified to work in gnulib.
27325
27326 2006-06-21  Simon Josefsson  <jas@extundo.com>
27327
27328         * doc/gnulib.texi (Windows sockets): Add.
27329
27330 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27331
27332         * lib/read-file.c (fread_file): Start with buffer allocation of
27333         0 bytes rather than 1 byte; this simplifies the code.
27334         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
27335         code to free buffer and save/restore errno.
27336         (internal_read_file): Remove unused local.
27337
27338 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27339
27340         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27341         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27342         Problem reported by Denis Excoffier in
27343         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27344
27345 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27346
27347         * modules/sys_socket, modules/socklen: Include sys/types since
27348         FreeBSD 4.x's sys/socket.h needs it.
27349
27350 2006-06-19  Simon Josefsson  <jas@extundo.com>
27351
27352         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27353
27354 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
27355
27356         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27357
27358 2006-06-19  Bruno Haible  <bruno@clisp.org>
27359
27360         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27361         and FULL_PATH_INTTYPES_H in angle brackets.
27362         Reported by Mark D. Baushke <mdb@gnu.org>.
27363
27364 2006-06-17  Eric Blake  <ebb9@byu.net>
27365
27366         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27367         errno.
27368
27369 2006-06-17  Bruno Haible  <bruno@clisp.org>
27370
27371         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27372         <sys/inttypes.h>.
27373
27374 2006-06-17  Bruno Haible  <bruno@clisp.org>
27375
27376         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27377         whether errno is declared. Assume <errno.h> declares errno.
27378
27379 2006-06-17  Bruno Haible  <bruno@clisp.org>
27380
27381         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27382
27383 2006-06-17  Bruno Haible  <bruno@clisp.org>
27384
27385         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27386         problem on Solaris 2.5.1.
27387
27388 2006-06-16  Eric Blake  <ebb9@byu.net>
27389
27390         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27391         * lib/unicodeio.c [!defined errno]: Likewise.
27392         * lib/strtol.c [!defined errno]: Likewise.
27393         * lib/strtod.c [!defined errno]: Likewise.
27394
27395 2006-06-15  Eric Blake  <ebb9@byu.net>
27396
27397         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27398
27399 2006-06-15  Eric Blake  <ebb9@byu.net>
27400
27401         * config/srclist.txt (ssize_t.m4): Lose sync.
27402
27403 2006-06-15  Bruno Haible  <bruno@clisp.org>
27404
27405         * modules/stdint (Files): Include m4/full-header-path.m4,
27406         m4/size_max.m4, m4/wchar_t.m4.
27407         (Makefile.am): Many more substitutions.
27408         * modules/stdint-tests: New file.
27409         * tests/test-stdint.c: New file.
27410
27411 2006-06-15  Bruno Haible  <bruno@clisp.org>
27412
27413         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27414         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27415         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27416         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27417         gl_CHECK_TYPE_SAME): New macros.
27418
27419 2006-06-15  Bruno Haible  <bruno@clisp.org>
27420
27421         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27422
27423 2006-06-15  Bruno Haible  <bruno@clisp.org>
27424
27425         * lib/stdint_.h: Rewritten to be fully auto-configured.
27426         Fixes bug on HP-UX/IA64.
27427
27428 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
27429
27430         * lib/getdate.y (__attribute__): Don't define if already defined.
27431         Problem reported by Larry Jones.
27432         * lib/utimens.c (__attribute__): Likewise.
27433
27434 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
27435
27436         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27437         reported by Andreas Schwab.
27438
27439 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27440             Bruno Haible  <bruno@clisp.org>
27441
27442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27443         check for the declaration of strnlen and a run test that exposes the
27444         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
27445         rpl_strndup.
27446
27447 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27448             Bruno Haible  <bruno@clisp.org>
27449
27450         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27451
27452 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27453
27454         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27455         compile test, for Tru64 4.0D.
27456
27457 2006-05-28  Karl Berry  <karl@gnu.org>
27458
27459         * config/srclist.txt (printf-args.c): lose sync.
27460
27461 2006-05-26  Martin Lambers  <marlam@marlam.de>
27462
27463         * lib/getpass.c: Updates the test for the native W32 API, and adds
27464         missing includes, thus fixing compilation warnings.
27465
27466 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27467
27468         * lib/exclude.c (exclude_fnmatch): New function.
27469         (excluded_file_name): Call exclude_fnmatch.
27470         * lib/exclude.h (excluded_file_name): New prototype
27471
27472 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
27473
27474         * lib/tempname.c (small_open, large_open): New macros.
27475         (__open, __open64) [!_LIBC]: Remove.
27476         (__gen_tempname): Use small_open and large_open instead of __open
27477         and __open64.  This fixes a portability bug on HP-UX 11.11i
27478         reported by Simon Wing-Tang in
27479         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27480
27481 2006-05-24  Bruno Haible  <bruno@clisp.org>
27482
27483         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27484         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27485         Reported by Thorsten Maerz <torte@netztorte.de> via
27486         Aaron Stone <aaron@serendipity.cx>.
27487
27488 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27489
27490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27491         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
27492         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
27493         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27494         not really conditional on the cache.
27495         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27496
27497 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27498
27499         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27500         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27501         (my_usleep): Don't mishandle maximum value.
27502
27503 2006-05-19  Jim Meyering  <jim@meyering.net>
27504
27505         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
27506
27507 2006-05-17  Bruno Haible  <bruno@clisp.org>
27508
27509         Cygwin portability.
27510         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27511
27512 2006-05-17  Bruno Haible  <bruno@clisp.org>
27513
27514         * lib/stdint_.h: Fix recognition of Cygwin.
27515
27516 2006-05-15  Bruno Haible  <bruno@clisp.org>
27517
27518         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27519         on libtool patch by Ralf Wildenhues.
27520
27521 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27522
27523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27524         test for C99 conformance; (bool) 0.5 is an integer constant
27525         expression, but (bool) -0.5 is not.  Problem reported by Fedor
27526         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27527
27528 2006-05-11  Simon Josefsson  <jas@extundo.com>
27529
27530         * m4/xvasprintf.m4: Fix obvious typo.
27531
27532 2006-05-11  Jim Meyering  <jim@meyering.net>
27533
27534         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
27535         James Lemley.
27536
27537 2006-05-10  Simon Josefsson  <jas@extundo.com>
27538
27539         * lib/md4.c: Typo fix, update copyright years.
27540         (K1, K2): Don't use L because it turn computations into 64-bit on
27541         64-bit platforms.
27542
27543 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
27544
27545         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27546         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27547         unwanted sign propagation, e.g., on hosts with 64-bit int.
27548         There still are some problems with reeelly weird theoretical hosts
27549         (e.g., 33-bit int) but it's not worth worrying about now.
27550         * lib/sha1.c (rol): Likewise.
27551         (K1, K2, K3, K4): Remove unnecessary L suffix.
27552
27553 2006-05-10  Bruno Haible  <bruno@clisp.org>
27554
27555         * lib/des.c: Cast to avoid warnings.
27556
27557 2006-05-09  Bruno Haible  <bruno@clisp.org>
27558
27559         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27560         (Depends-on): Depend also on xsize, stdarg.
27561         (configure.ac): Add gl_XVASPRINTF.
27562
27563 2006-05-09  Bruno Haible  <bruno@clisp.org>
27564
27565         * m4/xvasprintf.m4: New file.
27566
27567 2006-05-09  Bruno Haible  <bruno@clisp.org>
27568
27569         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27570         (EOVERFLOW): Define fallback value.
27571         (xstrcat): New function.
27572         (xvasprintf): Recognize the special case of a string concatenation.
27573
27574 2006-05-08  Eric Blake  <ebb9@byu.net>
27575
27576         * gnulib-tool (func_version): Base copyright year on CVS date.
27577         (func_emit_copyright_notice): New function.
27578         (func_emit_lib_Makefile_am): Use it.
27579         (func_emit_tests_Makefile_am): Likewise.
27580         (func_import): Likewise.
27581
27582 2006-05-08  Bruno Haible  <bruno@clisp.org>
27583
27584         * modules/stdarg: New file.
27585         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27586
27587 2006-05-08  Bruno Haible  <bruno@clisp.org>
27588
27589         * m4/stdarg.m4: New file, from GNU gettext.
27590
27591 2006-05-08  Bruno Haible  <bruno@clisp.org>
27592
27593         * config/srclist.txt (build-aux/config.rpath): different from latest
27594         release.
27595
27596 2006-05-08  Bruno Haible  <bruno@clisp.org>
27597
27598         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27599
27600 2006-05-05  Jim Meyering  <jim@meyering.net>
27601
27602         * m4/warning.m4: New file, derived from bison's file by the same name.
27603
27604 2006-05-03  Bruno Haible  <bruno@clisp.org>
27605
27606         * lib/stdint_.h: Shorter URL.
27607         * lib/inttypes.h: Likewise.
27608
27609 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27610
27611         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27612
27613 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27614
27615         * lib/verify.h: Document the internals better.  Most of this change
27616         was written by Bruno Haible.
27617
27618 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27619
27620         * doc/verify.texi: New file, partly based on a proposal by
27621         Bruno Haible.
27622
27623 2006-05-02  Bruno Haible  <bruno@clisp.org>
27624
27625         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27626         test from here...
27627         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27628
27629 2006-04-29  Bruno Haible  <bruno@clisp.org>
27630
27631         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27632         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27633
27634 2006-04-29  Bruno Haible  <bruno@clisp.org>
27635
27636         * gnulib-tool: Make --update option actually work.
27637
27638 2006-04-29  Bruno Haible  <bruno@clisp.org>
27639
27640         * doc/gcd.texi: New file.
27641         * doc/gnulib.texi: Include it.
27642
27643 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27644
27645         * lib/getdate.y (get_date): When adding relative date, start with the
27646         initial time, not with the result of the first mktime call.
27647
27648 2006-04-25  Bruno Haible  <bruno@clisp.org>
27649
27650         * gnulib-tool (func_import): Output the include directives in three
27651         blocks, sorted separately.
27652         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27653
27654 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27655
27656         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27657         to define main with arguments, for C++.  Reported by Eric Blake.
27658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27659         Prefer 'int main ()' to 'int main (void)', for C++.
27660         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27662         for 'main', for C99 and C++.
27663
27664 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27665
27666         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27667         Don't assume that exit status -1 is valid.
27668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27669         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27670         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27671         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27672         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27673         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27674         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
27675         functions can be used without declaring them, or that you can
27676         exit with status -1.
27677         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27678
27679 2006-04-24  Karl Berry  <karl@gnu.org>
27680
27681         * config/srclist.txt (longdouble.m4): sync lost.
27682
27683 2006-04-24  Eric Blake  <ebb9@byu.net>
27684
27685         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27686
27687 2006-04-24  Bruno Haible  <bruno@clisp.org>
27688
27689         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27690         poll() implementation in AIX.
27691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27692
27693 2006-04-24  Bruno Haible  <bruno@clisp.org>
27694
27695         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27696         assigned exactly once.
27697
27698 2006-04-23  Claudio Fontana  <claudio@gnu.org>
27699             Bruno Haible  <bruno@clisp.org>
27700
27701         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27702         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27703         for AM_CPPFLAGS.
27704
27705 2006-04-23  Bruno Haible  <bruno@clisp.org>
27706
27707         * modules/copy-file: Depend on unistd.
27708         * modules/execute: Likewise.
27709         * modules/fatal-signal: Likewise.
27710         * modules/findprog: Likewise.
27711         * modules/mkdtemp : Likewise.
27712         * modules/pipe: Likewise.
27713         * modules/wait-process: Likewise.
27714
27715 2006-04-23  Bruno Haible  <bruno@clisp.org>
27716
27717         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27718         condition was already detected.
27719         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27720
27721 2006-04-23  Bruno Haible  <bruno@clisp.org>
27722
27723         * lib/copy-file.c: Include <unistd.h> unconditionally.
27724         * lib/execute.c: Likewise.
27725         * lib/fatal-signal.c: Likewise.
27726         * lib/findprog.c: Likewise.
27727         * lib/mkdtemp.c: Likewise.
27728         * lib/pipe.h: Likewise.
27729         * lib/pipe.c: Likewise.
27730         * lib/wait-process.h: Likewise.
27731
27732 2006-04-23  Bruno Haible  <bruno@clisp.org>
27733
27734         * gnulib-tool (func_usage): Fix --import description. Document
27735         --update.
27736         (func_import): Create temporary file in a temporary directory, if
27737         --dry-run is specified. Silence errors from 'grep' when there are no
27738         m4 files in $m4dir.
27739         (func_create_testdir): Silence errors from 'grep' when there are no
27740         m4 files in $m4dir.
27741         Reported by Karl Berry <karl@freefriends.org>.
27742
27743 2006-04-20  Bruno Haible  <bruno@clisp.org>
27744
27745         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27746         one argument, so that the code will be portable to Autoconf 2.60.
27747         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27748         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27749         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27750
27751 2006-04-19  Derek Price  <derek@ximbiot.com>
27752             Eric Blake  <ebb9@byu.net>
27753
27754         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27755         rather than "/full/path.h".  Update comment to match.  Shorten &
27756         generalize m4_translit call via AS_TR_CPP.
27757
27758 2006-04-19  Derek Price  <derek@ximbiot.com>
27759             Eric Blake  <ebb9@byu.net>
27760
27761         * lib/inttypes.h: Correct grammar in comment.
27762
27763 2006-04-18  Derek Price  <derek@ximbiot.com>
27764             Paul Eggert  <eggert@cs.ucla.edu>
27765
27766         * modules/inttypes: New file.
27767         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27768
27769 2006-04-18  Derek Price  <derek@ximbiot.com>
27770             Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27773         New files.
27774
27775 2006-04-18  Derek Price  <derek@ximbiot.com>
27776             Paul Eggert  <eggert@cs.ucla.edu>
27777
27778         * lib/inttypes.h: New file.
27779         * lib/strtoimax.c: Assume <inttypes.h>.
27780
27781 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
27782
27783         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27784         isn't mounted.  Problem reported by Kir Kolyshkin.
27785
27786 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27787
27788         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27789         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
27790         Derek R. Price.
27791         * lib/regex.h (RE_DUP_MAX): Update comment to match current
27792         implementation.
27793
27794 2006-04-12  Eric Blake  <ebb9@byu.net>
27795
27796         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27797         is now done automatically by the corresponding Autoconf macro.
27798
27799 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27800
27801         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27802         time_r.h.
27803
27804 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27805
27806         Merge regex changes from libc, removing some of our
27807         POSIX-conformance changes that were rejected and redoing them in a
27808         less-intrusive way.
27809
27810         * lib/regcomp.c (re_compile_internal, init_dfa):
27811         Length arg is now size_t, not Idx.  All uses changed.
27812         (peek_token): Forward decl now says internal_function.
27813         (__re_error_msgid, __re_error_msgid_idx):
27814         Now static rather than extern with attribute_hidden.
27815         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27816         For some reason libc prefers K&R style defns for external functions.
27817         (regerror) [!defined _LIBC]: Likewise.
27818         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27819         (seek_collating_symbol_entry, lookup_collation_sequence_value):
27820         (build_range_exp, build_collating_symbol):
27821         Use K&R-style defn.
27822         (re_compile_fastmap): Use '\0' to memset, not 0.
27823         (utf8_sb_map): Make the calculations more obvious.
27824         (init_dfa, parse_bracket_exp, build_charclass_op):
27825         Call calloc and cast result, as glibc does.
27826         (init_word_char, fetch_token, peek_token, peek_token_bracket):
27827         (build_range_exp, build_collating_symbol):
27828         Now internal functions.
27829
27830         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27831
27832         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
27833         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27834         Don't depend on VMS; depend on __VMS instead, for POSIX
27835         namespace cleanness.
27836         (regoff_t): Define to ssize_t, not long int.
27837
27838         Remove the REG_ macros named below.  Instead, make the old names
27839         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27840         __USE_GNU_REGEX.
27841         (REG_BACKSLASH_ESCAPE_IN_LISTS):
27842         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27843         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27844         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27845         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27846         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27847         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27848         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27849         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27850         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27851         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27852         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27853         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27854         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27855         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27856         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27857         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27858         (REG_NREGS):
27859         Remove.  All uses replaced by the old RE_* names.
27860         (RE_BACKSLASH_ESCAPE_IN_LISTS):
27861         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27862         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27863         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27864         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27865         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27866         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27867         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27868         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27869         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27870         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27871         Don't bother having these macros be independent of each others'
27872         values, since they no longer exist in the POSIX name space.
27873
27874         Rename the following member names back to their old names,
27875         unless !__USE_GNU_REGEX.  All uses changed back.
27876         (buffer): Renamed from re_buffer.
27877         (allocated): Renamed from re_allocated.
27878         (used): Renamed from re_used.
27879         (syntax): Renamed from re_syntax.
27880         (fastmap): Renamed from re_fastmap.
27881         (translate): Renamed from re_translate.
27882         (can_be_null): Renamed from re_can_be_null.
27883         (regs_allocated): Renamed from re_regs_allocated.
27884         (fastmap_accurate): Renamed from re_fastmap_accurate.
27885         (no_sub): Renamed from re_no_sub.
27886         (not_bol): Renamed from re_not_bol.
27887         (not_eol): Renamed from re_not_eol.
27888         (newline_anchor): Renamed from re_newline_anchor.
27889         (num_regs): Renamed from rm_num_regs.
27890         (start): Renamed from rm_start.
27891         (end): Renamed from rm_end.
27892
27893         (free_state): Move up a bit.
27894
27895         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27896         #define to be empty.
27897         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27898         when that is what is intended.
27899         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27900         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27901         (MAX): New macro.
27902         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27903         All uses changed back to re_malloc, etc.  It's now the caller's
27904         responsibility to check for overflow; all callers changed.
27905         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27906         (re_x2nrealloc): Remove.
27907         (free_state): Remove decl.
27908
27909         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27910         (re_set_registers, re_exec):
27911         Use K&R-style defn.
27912
27913         2006-01-31  Roland McGrath  <roland@redhat.com>
27914
27915         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27916         Reported by Mike Frysinger <vapier@gentoo.org>.
27917
27918         2006-01-15  Andreas Jaeger  <aj@suse.de>
27919
27920         [BZ #1950]
27921         * lib/regex_internal.c (re_string_reconstruct): Adjust for
27922         build_wcs_upper_buffer change.
27923         (build_wcs_upper_buffer): Change return type.
27924
27925         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
27926
27927         * lib/regex_internal.h: Include <stdint.h> if available.
27928
27929         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
27930
27931         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27932
27933         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27934
27935         * lib/regcomp.c: Adjust for changed secondary hash function.
27936
27937         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
27938
27939         * lib/regex.h: Pretty printing.
27940         Clean up namespace a bit.
27941
27942         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
27943
27944         * lib/regexec.c (update_cur_sifted_state, check_arrival,
27945         check_arrival_add_next_nodes): Avoid using uninitialized variable.
27946
27947         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27948                     Ulrich Drepper  <drepper@redhat.com>
27949
27950         [BZ #1302]
27951         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
27952         changed.
27953         (bitset_word_t): Renamed from bitset_word.  All uses changed.
27954
27955         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
27956
27957         [BZ #281]
27958         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27959         * lib/regcomp.c: Remove unnecessary uses of
27960         unsigned RE_TRANSLATE_TYPE.
27961         * lib/regex_internal.h: Likewise.
27962         * lib/regex_internal.c: Likewise.
27963         * lib/regexec.c: Likewise.
27964         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27965
27966         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
27967
27968         * lib/regexec.c (find_recover_state): Remove unnecessary
27969         initialization.
27970         (transit_state_bkref): Make DFA a const pointer.
27971         (get_subexp): Likewise.
27972         (check_arrival): Likewise.
27973         (update_cur_sifted_state): Likewise.
27974         (re_search_internal): Likewise.
27975         (prune_impossible_nodes): Likewise.
27976         (acquire_init_state_context): Likewise.
27977         (proceed_next_node): Likewise.
27978         (set_regs): Likewise.
27979         (free_fail_stack_return): Likewise.
27980         (check_arrival_expand_ecl): Mark DFA parameter as const.
27981         (check_arrival_expand_ecl_sub): Likewise.
27982         (check_subexp_limits): Likewise.
27983         (sub_epsilon_src_nodes):  Likewise.
27984         (add_epsilon_src_nodes):  Likewise.
27985         (merge_state_array): Likewise.
27986         (update_regs): Likewise.
27987         (build_trtable): Likewise.
27988         (sift_states_backward): Mark MCTX parameter as const.
27989         (build_sifted_states): Likewise.
27990         (update_cur_sifted_state): Likewise.
27991         (sift_states_mkref): Likewise.
27992         (check_arrival_expand_ecl): Mark eclosure as const.
27993         (check_dst_limits_calc_pos_1): Likewise.
27994         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27995         pointer.
27996
27997         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27998
27999         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
28000         (transit_state_sb): Likewise.
28001         (transit_state_mb): Likewise.
28002         (sift_states_iter_mb): Likewise.
28003         (check_arrival_add_next_nodes): Likewise.
28004         (check_node_accept_bytes): Change first parameter to pointer-to-const.
28005         [_LIBC] (re_search_2_stub): Use mempcpy.
28006
28007         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
28008         mbrtowc for very simple UTF-8 case.
28009
28010         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
28011         a pointer-to-const.
28012         (re_acquire_state_context): Likewise.
28013         * lib/regex_internal.h: Adjust prototypes.
28014
28015         * lib/regex.c: Prevent using C++ compilers.
28016
28017         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
28018         (re_acquire_state_context): Likewise.
28019
28020 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         * modules/regex (Depends-on): Add ssize_t.
28023
28024 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28025
28026         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
28027         translation table.
28028
28029 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28030
28031         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
28032
28033 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
28034             Bruno Haible  <bruno@clisp.org>
28035
28036         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
28037         <sys/types.h> and <inttypes.h>.
28038
28039 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28040
28041         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
28042         `__error_t_defined', so argp.h will not typedef the former.
28043
28044 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28045
28046         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
28047         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
28048         glibc names.  Even if glibc is changed to conform to POSIX, the
28049         traditional names will be available anyway, since regex depends on
28050         the extensions module.  Also, fix a longstanding typo in the
28051         implementation of Spencer ERE test #75 from grep 2.3.  Problems
28052         reported by Emanuele Giaquinta.  Also, change sense of cached
28053         variable, so that the message makes sense.
28054
28055 2006-03-24  Simon Josefsson  <jas@extundo.com>
28056
28057         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
28058         including some doc fixes.
28059         (base64_encode_alloc): Fix +1 bug on allocation failures.
28060
28061 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28062
28063         * lib/base64.c (base64_encode): Do not read past end of array with
28064         unsanitized input on systems with CHAR_BIT > 8.
28065
28066 2006-03-24  Eric Blake  <ebb9@byu.net>
28067
28068         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
28069
28070 2006-03-22  Karl Berry  <karl@gnu.org>
28071
28072         * config/srclist.txt (*setenv.[ch]): get from coreutils.
28073         * config/srclistvars.sh (COREUTILS): new var.
28074
28075 2006-03-17  Jim Meyering  <jim@meyering.net>
28076
28077         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
28078         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
28079
28080 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28081
28082         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
28083         no longer needs it.  Instead, check that regoff_t is as least
28084         as wide as ptrdiff_t.
28085
28086         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
28087         so that our regex.h stays compatible with the installed regex.
28088         This is helpful for installers who configure --without-included-regex.
28089         Problem reported by Emanuele Giaquinta.
28090
28091 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28092
28093         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
28094         Typedef to long int, not to off_, as POSIX will likely change
28095         in that direction.
28096
28097 2006-03-15  Eric Blake  <ebb9@byu.net>
28098
28099         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
28100
28101 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28102
28103         * lib/argp-help.c (validate_uparams): Fix typo
28104         * lib/argp-parse.c (argp_default_options): Consistently begin help
28105         messages with a lowercase letter.
28106
28107 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
28108
28109         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
28110         overrun buffers and shouldn't be used (much as gets shouldn't be
28111         used).
28112         * lib/time_r.c (asctime_r, ctime_r): Likewise.
28113
28114 2006-03-08  Simon Josefsson  <jas@extundo.com>
28115
28116         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28117         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28118
28119 2006-03-08  Simon Josefsson  <jas@extundo.com>
28120
28121         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28122         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28123
28124 2006-03-08  Simon Josefsson  <jas@extundo.com>
28125
28126         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28127         signal that configure disabled the device.
28128
28129 2006-03-08  Simon Josefsson  <jas@extundo.com>
28130
28131         * build-aux/maint.mk: Fix refresh-po, to handle no translated
28132         languages.
28133
28134 2006-03-07  Simon Josefsson  <jas@extundo.com>
28135
28136         * modules/getopt (Depends-on): Add unistd.
28137
28138         * modules/unistd: New file.
28139
28140 2006-03-07  Simon Josefsson  <jas@extundo.com>
28141
28142         * modules/gc-random: New file.
28143
28144 2006-03-07  Simon Josefsson  <jas@extundo.com>
28145
28146         * m4/unistd_h.m4: New file.
28147
28148 2006-03-07  Simon Josefsson  <jas@extundo.com>
28149
28150         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28151         test to be side-effect free by storing the result in the cache
28152         variable gl_cv_lib_readline, and moving the assignment of
28153         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28154         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28155
28156 2006-03-07  Simon Josefsson  <jas@extundo.com>
28157
28158         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
28159         error on missing devices (the functions will return an error).
28160
28161         * m4/gc.m4: Move random stuff to gc-random.m4
28162
28163 2006-03-07  Simon Josefsson  <jas@extundo.com>
28164
28165         * lib/unistd_.h: New file.
28166
28167 2006-03-07  Simon Josefsson  <jas@extundo.com>
28168
28169         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28170
28171 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28172
28173         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
28174         Problem reported by Juan Manuel Guerrero.
28175
28176 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28177
28178         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
28179         the unistd module.
28180         * lib/getlogin_r.c: Likewise.
28181         * lib/getlogin_r.h: Likewise.
28182         * lib/glob.c: Likewise.
28183         * lib/pagealign_alloc.c: Likewise.
28184         * lib/unistd_.h: Remove; no longer needed.
28185
28186 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28187
28188         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28189         Add unistd.
28190         * modules/c-stack (Depends-on): Add unistd.
28191         * modules/getlogin_r: Likewise.
28192         * modules/glob: Likewise.
28193         * modules/pagealign_alloc: Likewise.
28194         * modules/unistd (Files): Remove lib/unistd_.h.
28195         (EXTRA_DIST): Remove.
28196         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
28197         need unistd_.h.
28198         (MOSTLYCLEANFILES): Remove unistd.h-t.
28199
28200 2006-03-03  Simon Josefsson  <jas@extundo.com>
28201
28202         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
28203
28204 2006-03-03  Simon Josefsson  <jas@extundo.com>
28205
28206         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
28207         libidn and bison.
28208
28209 2006-03-03  Simon Josefsson  <jas@extundo.com>
28210
28211         * build-aux/maint.mk: Add indent target.
28212
28213 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
28214
28215         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
28216         our replacement poll.h in any case, to avoid a differing
28217         declaration from a system header.  Seen on AIX.
28218
28219 2006-03-01  Simon Josefsson  <jas@extundo.com>
28220
28221         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
28222         <kasal@ucw.cz>.
28223
28224 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28225
28226         * modules/gettime (Depends-on): Add extensions module.
28227         * modules/nanosleep (Depends-on): Likewise.
28228         * modules/settime (Depends-on): Likewise.
28229
28230 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28231
28232         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
28233         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
28234         pedantically.
28235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28236         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
28237
28238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
28239         not "==".  Reported by Ralf Wildenhues.
28240
28241 2006-03-01  Karl Berry  <karl@gnu.org>
28242
28243         * doc/Copyright/request-*: new files, synced from gnuorg.
28244
28245 2006-03-01  Karl Berry  <karl@gnu.org>
28246
28247         * config/srclist.txt (Copyright/*): new entries.
28248
28249 2006-02-28  Simon Josefsson  <jas@extundo.com>
28250
28251         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28252
28253 2006-02-27  Simon Josefsson  <jas@extundo.com>
28254
28255         * lib/base64.h: Indent #define's.  From Jim Meyering
28256         <jim@meyering.net>.
28257
28258 2006-02-27  Jim Meyering  <jim@meyering.net>
28259
28260         Revert the change of 2006-02-24, so these files can continue
28261         to be sync'd from gettext.
28262         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28263         of `config.h'.
28264
28265 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28266
28267         * modules/intprops: New file.
28268         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28269         Add intprops.
28270         * modules/getloadavg (Files): Remove lib/intprops.h.
28271         (Depends-on): Add intprops.
28272         * modules/human: Likewise.
28273         * modules/inttostr: Likewise.
28274         * modules/openat: Likewise.
28275         * modules/sig2str: Likewise.
28276         * modules/userspec: Likewise.
28277         * modules/utimecmp: Likewise.
28278         * modules/xnanosleep: Likewise.
28279         * modules/xstrtol: Likewise.
28280
28281 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
28282
28283         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28284         * modules/lock-tests (TESTS): Use $(EXEEXT).
28285         * modules/tls-tests: Likewise.
28286         * modules/argp-tests: Likewise.
28287         (check_PROGRAMS): New var, replacing...
28288         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28289
28290 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28291
28292         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28293         `config.h'.
28294
28295 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28296
28297         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28298
28299 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28300
28301         Sync from coreutils.
28302         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28303         gl_CHDIR_SAFER.
28304
28305 2006-02-22  Jim Meyering  <jim@meyering.net>
28306
28307         Sync from coreutils.
28308         * m4/chdir-safer.m4: New file.
28309
28310 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28311
28312         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28313         AT_FDCWD exceeds INT_MAX.
28314         * lib/openat.h (AT_FDCWD): Likewise.
28315
28316 2006-02-17  Eric Blake  <address@hidden>
28317
28318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28319
28320 2006-02-16  Simon Josefsson  <jas@extundo.com>
28321
28322         * modules/getaddrinfo (Depends-on): Add sys_socket.
28323
28324 2006-02-15  Simon Josefsson  <jas@extundo.com>
28325
28326         * build-aux/maint.mk: Add dsyntax-check rule.
28327
28328 2006-02-15  Eric Blake  <ebb9@byu.net>
28329
28330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28331         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28332         'present but cannot compile' warnings on cygwin.
28333         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
28334         use ws2tcpip.h if sys/socket.h works.
28335         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28336         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28337
28338 2006-02-14  Simon Josefsson  <jas@extundo.com>
28339
28340         * modules/maintainer-makefile (Files): Rename.
28341
28342         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28343         and (the local) Makefile.cfg to maint-cfg.mk.
28344
28345         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28346         to the latter.
28347
28348         * modules/maintainer-makefile: New module.
28349
28350         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28351         severaly stripped to make it possible to build it up from scratch
28352         with reliable tests.
28353
28354         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28355         fixes to permit overriding the default actions when configure and
28356         makefile are not available.
28357
28358 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
28359
28360         Sync from coreutils.
28361         * modules/lstat (Depends-on): Don't depend on xalloc.
28362         (License): Change from GPL to LGPL, since this is now simply a
28363         replacement for a libc function.
28364
28365 2006-02-14  Jim Meyering  <jim@meyering.net>
28366
28367         Sync from coreutils.
28368
28369         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28370         failure on deficient systems, and simplify gnulib lgpl dependencies.
28371         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28372         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
28373
28374         * lib/xalloc-die.c: Remove unused definition of N_.
28375
28376 2006-02-14  Jim Meyering  <jim@meyering.net>
28377
28378         Sync from coreutils.
28379         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28380         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28381         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28382         double-quote uses of that variable, to accommodate the rare case in
28383         which getmntent is available in none of the libraries checked.  This
28384         happens at least on FreeBSD 5.0.
28385
28386 2006-02-13  Simon Josefsson  <jas@extundo.com>
28387
28388         * gnulib-tool (Usage): Fix --import, from
28389         karl@freefriends.org (Karl Berry).
28390
28391 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28392
28393         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28394
28395 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
28396
28397         * lib/argp-namefrob.h: Restore changes accidentally lost during the
28398         "autoupdate" on 2005-12-12.
28399
28400 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28401
28402         * modules/closeout (Depends-on): Remove atexit.
28403
28404 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28405
28406         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28407         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28408
28409 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28410
28411         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28412         __EXTENSIONS__ if this causes compilation to fail.  Problem
28413         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28414         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28415
28416 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
28417
28418         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28419         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28420         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28421         All uses changed.
28422
28423 2006-01-26  Simon Josefsson  <jas@extundo.com>
28424
28425         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28426         prototype is visible on mingw32.
28427
28428         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28429         for mingw32.
28430
28431         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28432         mingw32).
28433
28434 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28435
28436         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
28437         attempt to open for write; this always fails, at least on POSIX
28438         hosts.  This reinstates the 2006-01-09 change, which was
28439         inadvertently removed.
28440
28441 2006-01-26  Bruno Haible  <bruno@clisp.org>
28442
28443         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28444         Reported by Paul Eggert.
28445
28446 2006-01-26  Bruno Haible  <bruno@clisp.org>
28447             Paul Eggert  <eggert@cs.ucla.edu>
28448
28449         * lib/stdbool_.h (_Bool)
28450         [(! (defined __cplusplus || defined __BEOS__)
28451           && !defined __GNUC__
28452           && !(defined __HP_cc || defined __xlc__
28453                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28454                || defined __sgi))]:
28455         #define to signed char in these cases too; this simplifies
28456         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28457         etc., separately) and makes it more conservative.
28458
28459 2006-01-25  Simon Josefsson  <jas@extundo.com>
28460
28461         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28462         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
28463         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
28464
28465 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28466
28467         * lib/argp-namefrob.h: Bugfix. Remove stray #
28468
28469 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28470
28471         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28472         so that we test the test.
28473         Check for yet another HP-UX cc bug involving *bool |= bool.
28474
28475 2006-01-25  Karl Berry  <karl@gnu.org>
28476
28477         * config/srclist.txt (vasnprintf.c): sync lost.
28478
28479 2006-01-25  Jim Meyering  <jim@meyering.net>
28480
28481         Sync from the stable (b5) branch of coreutils:
28482
28483         * lib/fts.c (fts_children): Don't let close() clobber errno from
28484         failed fchdir().
28485
28486         * lib/fts.c (fts_stat): When following a symlink-to-directory,
28487         don't necessarily interpret stat-fails+lstat-succeeds as indicating
28488         a dangling symlink.  That can also happen at least for ELOOP.
28489         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28490         FYI, this bug predates the inclusion of fts.c in coreutils.
28491
28492         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28493         in their own block, so pre-c99 compilers don't object.
28494
28495         Avoid the double-free (first in fts_read, second in fts_close) that
28496         would occur when an `active' directory is made inaccessible (e.g.,
28497         via chmod a-x) during a traversal.
28498         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28499         before returning.  Reproduce this failure by
28500         mkdir -p a/b; cd a; chmod a-x . b
28501         Reported by Stavros Passas.
28502
28503 2006-01-25  Jim Meyering  <jim@meyering.net>
28504
28505         * lib/fileblocks.c: Remove more useless parentheses.
28506         * lib/readutmp.h: Likewise.
28507
28508 2006-01-25  Bruno Haible  <bruno@clisp.org>
28509
28510         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28511         warnings.
28512         Reported by Paul Eggert.
28513
28514 2006-01-25  Bruno Haible  <bruno@clisp.org>
28515
28516         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28517         rid of a trap command. For Solaris sh.
28518         Reported by Mark D. Baushke <mdb@gnu.org>.
28519
28520 2006-01-24  Simon Josefsson  <jas@extundo.com>
28521
28522         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28523         Bruno.
28524
28525 2006-01-24  Karl Berry  <karl@gnu.org>
28526
28527         * config/srclist.txt (argp-namefrob.h): sync lost.
28528
28529 2006-01-24  Jim Meyering  <jim@meyering.net>
28530
28531         * modules/openat (Files): Add lib/intprops.h.
28532         From Mark D. Baushke.
28533
28534 2006-01-24  Jim Meyering  <jim@meyering.net>
28535
28536         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28537         Reported by Mark D. Baushke.
28538
28539 2006-01-24  Jim Meyering  <jim@meyering.net>
28540
28541         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28542
28543 2006-01-24  Bruno Haible  <bruno@clisp.org>
28544
28545         * modules/strnlen (Maintainer): Change from glibc to all.
28546
28547 2006-01-24  Bruno Haible  <bruno@clisp.org>
28548
28549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28550         Patch by Paul Eggert.
28551
28552 2006-01-24  Bruno Haible  <bruno@clisp.org>
28553
28554         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28555         already has it.
28556         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
28557         2005-11-26.
28558
28559         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28560         'signed char' to avoid problems with the built-in _Bool type.
28561         Reported by Paul Eggert on 2005-11-26.
28562
28563 2006-01-24  Bruno Haible  <bruno@clisp.org>
28564
28565         * gnulib-tool (func_import): Avoid constructing complicated sed
28566         expressions inside backquote.
28567         Report and solution by Mark D. Baushke <mdb@gnu.org>.
28568
28569 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
28570
28571         These changes imported from libc.
28572         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28573         test and two separate function calls.
28574         * lib/strndup.c (__strndup): Add libc_hidden_def.
28575
28576 2006-01-23  Simon Josefsson  <jas@extundo.com>
28577
28578         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28579         Remove the test_*_SOURCES variable: automake infers it by default.
28580         * modules/tls-tests: Likewise.
28581
28582 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28583
28584         Work around porting bugs reported by Dieter in
28585         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28586         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28587         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28588         Include "getopt.h" first, to check interface.
28589         (getenv): Declare only if defined HAVE_DECL_GETENV &&
28590         !HAVE_DECL_GETENV.
28591         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28592         (__strndup): Revert to K&R-style function dfns, the glibc style.
28593         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28594         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28595         Include strnlen.h first, to get prototype properly.
28596         (strnlen): Renamed from __strnlen.
28597         Remove weak alias.
28598
28599 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28600
28601         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28602
28603 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28604
28605         * config/srclist.txt: Adjust to reflect glibc reorganization.
28606         This affects only comments.
28607
28608 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28609
28610          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28611          Reported by Bruce Korb <bkorb@gnu.org>.
28612
28613 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28614
28615         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28616         to pacify gcc -Wswitch-default.
28617
28618 2006-01-22  Bruno Haible  <bruno@clisp.org>
28619
28620         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28621         temporary buffer for sprintf, take into account the precision also
28622         for 'd', 'i', 'u', 'o', 'x', 'X'.
28623
28624 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28625
28626         * modules/argp-tests: New module
28627         * tests/test-argp.c: New file
28628         * tests/test-argp-2.sh: New file
28629
28630 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28631
28632         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28633         (__argp_base_name): Removed
28634         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28635         typo.
28636         (__argp_base_name): Provide macro definition or extern declaration
28637         depending on the configuration
28638
28639 2006-01-20  Simon Josefsson  <jas@extundo.com>
28640
28641         * modules/inet_ntop (Depends-on): Depend on sys_socket.
28642
28643 2006-01-20  Simon Josefsson  <jas@extundo.com>
28644
28645         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28646
28647 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28648
28649         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28650         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28651         Suggested by Bruno Haible.
28652
28653 2006-01-20  Karl Berry  <karl@gnu.org>
28654
28655         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28656         until changes propagate, I guess.
28657
28658 2006-01-19  Simon Josefsson  <jas@extundo.com>
28659
28660         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28661
28662 2006-01-19  Simon Josefsson  <jas@extundo.com>
28663
28664         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28665
28666 2006-01-19  Simon Josefsson  <jas@extundo.com>
28667
28668         * gnulib-tool: Set check_PROGRAMS.
28669
28670         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28671         modules/des-tests, modules/gc-arcfour-tests,
28672         modules/gc-arctwo-tests, modules/gc-des-tests,
28673         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28674         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28675         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28676         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28677         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28678         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28679         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28680         test_*_SOURCES.
28681
28682 2006-01-18  Simon Josefsson  <jas@extundo.com>
28683
28684         * modules/socklen (Depends-on): Depend on sys_socket.
28685
28686 2006-01-18  Simon Josefsson  <jas@extundo.com>
28687
28688         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28689         modules/des-tests, modules/gc-arcfour-tests,
28690         modules/gc-arctwo-tests, modules/gc-des-tests,
28691         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28692         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28693         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28694         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28695         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28696         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28697         $(EXEEXT) to automake TESTS variable, for mingw32.
28698
28699 2006-01-17  Simon Josefsson  <jas@extundo.com>
28700
28701         * modules/socklen (Include): Need sys/socket.h.
28702
28703 2006-01-17  Bruno Haible  <bruno@clisp.org>
28704
28705         * modules/ssize_t (Include): Add <sys/types.h>.
28706
28707 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28708
28709         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28710         it's not portable and it doesn't work with cross-compiles.
28711         Problem reported by Bruno Haible.  Fix missing-$ typo in
28712         'test "gl_cv_ignore_unused_libraries" ...' that prevented
28713         -zignore from being used with Sun's C compiler.
28714
28715 2006-01-12  Simon Josefsson  <jas@extundo.com>
28716
28717         * lib/base64.c: Fix warning, reported by Bruno Haible
28718         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28719
28720 2006-01-12  Bruno Haible  <bruno@clisp.org>
28721
28722         * modules/ldd: New file.
28723         * build-aux/ldd.sh.in: New file.
28724         * MODULES.html.sh (Support for building libraries and executables): Add
28725         ldd.
28726
28727 2006-01-12  Bruno Haible  <bruno@clisp.org>
28728
28729         * m4/ldd.m4: New file.
28730
28731 2006-01-12  Bruno Haible  <bruno@clisp.org>
28732
28733         * gnulib-tool (func_import, func_create_testdir): Don't go into an
28734         endless loop while replacing $auxdir with build-aux.
28735
28736 2006-01-11  Simon Josefsson  <jas@extundo.com>
28737
28738         * lib/stdint_.h (SIZE_MAX): Add missing (.
28739
28740 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
28741
28742         Sync from coreutils.
28743         * lib/md5.c: Fix commentary typos.
28744         (alignof, UNALIGNED_P): No need for a GCC-specific version.
28745         * lib/md5.h (__attribute__): Remove; unused.
28746         * lib/sha1.c: Fix commentary to match md5 better.
28747         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28748         so that we don't need to worry about alignment.  All uses changed.
28749         This merges the 2005-10-28 md5 change into sha1.
28750
28751 2006-01-11  Jim Meyering  <jim@meyering.net>
28752
28753         Sync from coreutils.
28754         * lib/md5.c (OP): Fix spacing.
28755
28756 2006-01-11  Bruno Haible  <bruno@clisp.org>
28757
28758         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28759         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28760         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28761
28762 2006-01-11  Bruno Haible  <bruno@clisp.org>
28763
28764         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28765         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28766         the "early" section as well.
28767
28768 2006-01-11  Bruno Haible  <bruno@clisp.org>
28769
28770         Avoid "ar: no archive members specified" error on MacOS X.
28771         * gnulib-tool (func_modules_add_dummy): New function.
28772         (func_import, func_create_testdir): Invoke it.
28773
28774 2006-01-11  Bruno Haible  <bruno@clisp.org>
28775
28776         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28777         with $auxdir in AC_CONFIG_FILES statements.
28778
28779 2006-01-11  Bruno Haible  <bruno@clisp.org>
28780
28781         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28782         Initialize also noinst_HEADERS to empty.
28783
28784 2006-01-11  Bruno Haible  <bruno@clisp.org>
28785
28786         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28787         variables.
28788         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28789         autoreconf.
28790
28791 2006-01-11  Bruno Haible  <bruno@clisp.org>
28792
28793         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28794         overridable by the user.
28795         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28796
28797 2006-01-10  Simon Josefsson  <jas@extundo.com>
28798
28799         * modules/sys_socket: New file.
28800
28801 2006-01-10  Simon Josefsson  <jas@extundo.com>
28802
28803         * m4/sys_socket_h.m4: New file.
28804
28805 2006-01-10  Simon Josefsson  <jas@extundo.com>
28806
28807         * lib/socket_.h: New file.
28808
28809 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28810
28811         * modules/readutmp (Maintainer): Add myself.
28812
28813 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28814
28815         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28816         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
28817         People who are still concerned with buggy memcmp implementations
28818         can invoke gl_FUNC_MEMCMP themselves.
28819
28820 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28821
28822         * lib/regex_internal.h (BITSET_WORD_BITS):
28823         Work around a bug in 64-bit PGC (before version 6.1-2), where the
28824         preprocessor mishandles large unsigned values as if they were signed.
28825         Problem reported by Claudio Fontana in
28826         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28827
28828 2006-01-10  Jim Meyering  <jim@meyering.net>
28829
28830         Avoid the double-free (first in fts_read, second in fts_close) that
28831         would occur when an `active' directory is made inaccessible (e.g.,
28832         via chmod a-x) during a traversal.
28833         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28834         before returning.  Reproduce this failure by
28835         mkdir -p a/b; cd a; chmod a-x . b
28836         Reported by Stavros Passas.
28837
28838         Sync from coreutils.
28839         * lib/sha1.c: Tweak grammar in a comment.
28840
28841 2006-01-10  Jim Meyering  <jim@meyering.net>
28842
28843         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28844         Patch by Joerg Sonnenberger.
28845
28846 2006-01-10  Bruno Haible  <bruno@clisp.org>
28847
28848         * modules/readutmp: Depend on module free.
28849         * modules/strtok_r: Depend on module restrict.
28850
28851 2006-01-10  Bruno Haible  <bruno@clisp.org>
28852
28853         * modules/gettext (configure.ac): Add an invocation of
28854         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28855
28856 2006-01-10  Bruno Haible  <bruno@clisp.org>
28857
28858         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28859         Reported by Werner Lemberg <wl@gnu.org>.
28860
28861 2006-01-10  Bruno Haible  <bruno@clisp.org>
28862
28863         * lib/localcharset.c: Update from GNU gettext.
28864
28865 2006-01-10  Bruno Haible  <bruno@clisp.org>
28866
28867         * lib/argp.h (__const): Remove macro. Use const instead.
28868         * lib/argp-fmtstream.h (__const): Likewise.
28869         * lib/glob_.h (__const): Remove macro.
28870         * lib/glob-libc.h: Use const instead of __const.
28871
28872 2006-01-10  Bruno Haible  <bruno@clisp.org>
28873
28874         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28875         variable.
28876         Needed to avoid an automake error regarding the 'gettext' module.
28877
28878 2006-01-09  Simon Josefsson  <jas@extundo.com>
28879
28880         * modules/inet_ntop (Depends-on): Add restrict.
28881
28882 2006-01-09  Simon Josefsson  <jas@extundo.com>
28883
28884         * modules/gc-rijndael-tests (License): Put under LGPL.
28885
28886         * modules/gc-des-tests (License): Likewise.
28887
28888         * modules/gc-arcfour-tests (License): Likewise.
28889
28890         * modules/gc-arctwo-tests (License): Likewise.
28891
28892         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28893
28894         * modules/gc-hmac-sha1-tests (Files): Likewise.
28895
28896         * modules/gc-hmac-md5-tests (License): Likewise.
28897
28898         * modules/gc-sha1-tests (License): Likewise.
28899
28900         * modules/gc-md5-tests (License): Likewise.
28901
28902         * modules/gc-md4-tests (License): Likewise.
28903
28904         * modules/gc-md2-tests (License): Likewise.
28905
28906         * modules/gc-tests (License): Likewise.
28907
28908         * modules/des-tests (License): Likewise.
28909
28910         * modules/md4-tests (License): Likewise.
28911
28912         * modules/md2-tests (License): Likewise.
28913
28914 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28915
28916         Sync from coreutils:
28917
28918         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28919         * modules/lib-ignore: New file.
28920         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28921         chdir-safer.m4, lchmod.m4.
28922         * modules/openat: Add mkdirat.c, openat-priv.h.
28923
28924 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28925
28926         Sync from coreutils.
28927         * m4/lib-ignore.m4: New file.
28928         * m4/lchmod.m4: New file.
28929
28930 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28931
28932         Sync from coreutils.
28933         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28934         for write access: POSIX says that must fail.
28935         * lib/fts.c (diropen): Likewise.
28936         * lib/save-cwd.c (save_cwd): Likewise.
28937         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28938         well, for minor improvements on hosts that lack O_DIRECTORY.
28939         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28940         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28941         Fall back on chown if open failed with EACCES.
28942
28943         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28944         Report an error at compile-time if only a 1-second nominal clock
28945         resolution is found.
28946
28947         * lib/lchmod.h: New file.
28948         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28949         (make_dir_parents): Use lchown rather than chown, and
28950         lchmod rather than chmod.
28951
28952         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28953         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
28954         "proc" reported by n0dalus.
28955
28956         * lib/mountlist.c: Include <limits.h>.
28957         (dev_from_mount_options)
28958         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28959         New function.  It no longer assumes "dev=" has the System V meaning
28960         on Linux (since it doesn't).  It also parses "dev=" more carefully.
28961         (read_file_system_list)
28962         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28963         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28964         dev= in that case.
28965
28966         * lib/posixtm.h (PDS_PRE_2000): New macro.
28967         * lib/posixtm.c (year): Arg is now syntax_bits rather than
28968         allow_century.  All usages changed.  Reject dates outside the range
28969         1969-1999 if PDS_PRE_2000 is used.
28970
28971 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28972
28973         Sync from coreutils.
28974         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
28975         (Time of day items): Mention the possibility of leap seconds.
28976         Problem reported by Dr. David Alan Gilbert.
28977
28978 2006-01-09  Jim Meyering  <jim@meyering.net>
28979
28980         Sync from coreutils.
28981
28982         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
28983
28984         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
28985
28986         * lib/modechange.c (mode_compile): Reject an invalid mode string
28987         that starts with an octal digit.  From Andreas Gruenbacher.
28988
28989         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
28990         and dup to open_safer and dup_safer, respectively.
28991         (openat_permissive): Fix typo in comment.
28992
28993         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
28994         "gettext.h"; either no longer needed or are guaranteed by openat.h.
28995         (_): Remove; no longer needed.
28996         (openat): Renamed from rpl_openat; no need for rpl_openat
28997         since openat.h renames openat for us.
28998         Replace most of the body with a call to openat_permissive,
28999         to avoid duplicate code.
29000         Port to (probably hypothetical) environments were mode_t is
29001         wider than int.
29002         (openat_permissive): Require mode arg, so that we can check
29003         types better.  Put it just after flags.  Change cwd failure
29004         indicator from pointer-to-bool to pointer-to-errno-value.
29005         All callers changed.
29006         Invoke openat_save_fail and/or openat_restore_fail if
29007         cwd_errno is null, so that openat can call us.
29008         (openat_permissive, fdopendir, fstatat, unlinkat):
29009         Simplify errno handling to avoid some duplicate code,
29010         as it's OK to set errno on success.
29011         * lib/openat.h: Revamp code so that function macros depend on
29012         __OPENAT_PREFIX only, not also on AT_FDCWD.
29013         (openat_ro): Remove.  Caller changed to use openat_permissive.
29014         (openat_permissive): Now a macro, if not a function.
29015         (openat_restore_fail, openat_save_fail): Now always functions,
29016         since mkdirat needs them even if __OPENAT_PREFIX is defined.
29017
29018         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
29019         and openat.c.
29020         * lib/mkdirat.c: Include openat-priv.h.
29021         Remove definitions of macros defined therein.
29022         * lib/openat.c: Likewise.
29023
29024         * lib/mkdirat.c (mkdirat): New file and function.
29025         * lib/openat.h (mkdirat): Declare.
29026
29027         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
29028
29029         * lib/openat.h (openat_permissive): Declare.
29030         (openat_ro): Define.
29031
29032         * lib/openat.c (EXPECTED_ERRNO): New macro.
29033         (openat_permissive): New function -- used in remove.c rewrite.
29034         (all functions): Set errno just before returning, only if there
29035         was an actual failure.
29036         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
29037
29038         Emulate openat-family functions using Linux's procfs, if possible.
29039         Idea and some code based on Ulrich Drepper's glibc changes.
29040
29041         * lib/openat.c: (BUILD_PROC_NAME): New macro.
29042         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
29043         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
29044         before falling back on save_cwd and restore_cwd.
29045         (fdopendir, fstatat, unlinkat): Likewise.
29046
29047         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
29048         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
29049
29050         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
29051         as second argument to va_arg.  Otherwise, some versions of gcc
29052         warn that `if this code is reached, the program will abort'.
29053
29054 2006-01-09  Jim Meyering  <jim@meyering.net>
29055
29056         Sync from coreutils.
29057         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
29058         Require openat-priv.h.
29059
29060 2006-01-09  Bruno Haible  <bruno@clisp.org>
29061
29062         * modules/strnlen (Include): Use strnlen.h.
29063
29064 2006-01-09  Bruno Haible  <bruno@clisp.org>
29065
29066         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
29067
29068 2006-01-09  Bruno Haible  <bruno@clisp.org>
29069
29070         * lib/sysexit_.h (EX_OK): New macro.
29071         Suggested by Martin Lambers <marlam@marlam.de>.
29072
29073 2006-01-09  Bruno Haible  <bruno@clisp.org>
29074
29075         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
29076         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
29077
29078 2006-01-09  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
29081         numbers.
29082
29083 2006-01-09  Bruno Haible  <bruno@clisp.org>
29084
29085         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
29086         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
29087         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
29088         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
29089
29090 2006-01-09  Bruno Haible  <bruno@clisp.org>
29091
29092         * build-aux/javacomp.sh.in: New file, moved from lib/.
29093         * modules/javacomp-script (Files): Update.
29094         (configure.ac): Add AC_CONFIG_FILES invocation.
29095         (EXTRA_DIST): Remove variable.
29096
29097         * build-aux/javaexec.sh.in: New file, moved from lib/.
29098         * modules/javaexec (Files): Update.
29099         (configure.ac): Add AC_CONFIG_FILES invocation.
29100         (EXTRA_DIST): Remove javaexec.sh.in.
29101
29102         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
29103         * modules/csharpcomp-script (Files): Update.
29104         (configure.ac): Add AC_CONFIG_FILES invocation.
29105         (EXTRA_DIST): Remove variable.
29106
29107         * build-aux/csharpexec.sh.in: New file, moved from lib/.
29108         * modules/csharpexec (Files): Update.
29109         (configure.ac): Add AC_CONFIG_FILES invocation.
29110         (EXTRA_DIST): Remove csharpexec.sh.in.
29111
29112 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29113
29114         Sync from coreutils.
29115
29116         Add POSIX ACL support
29117         * lib/acl.h (copy_acl, set_acl): Add declarations.
29118         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29119         systems other than Linux.
29120         (chmod_or_fchmod): New function: use fchmod when possible,
29121         and chmod otherwise.
29122         (file_has_acl): Add a POSIX ACL implementation, with a
29123         Linux-specific subcase.
29124         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29125         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
29126         acls are unsupported.
29127         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29128         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
29129         are unsupported.
29130
29131 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29132
29133         Sync from coreutils.
29134         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29135
29136 2006-01-07  Bruno Haible  <bruno@clisp.org>
29137
29138         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29139         gl_EARLY.
29140
29141 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29142
29143         * lib/strftime.c (tzname): Don't declare if it is already #defined.
29144         Problem reported for Mingw by Mark Junker.
29145
29146 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29147
29148         * README: Gnulib normally doesn't generate a tarball.
29149
29150 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29151
29152         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29153         long int, not int, for nanosecond counts, so that people who are
29154         used to POSIX struct timespec won't be surprised.  Reported by Jim
29155         Meyering.
29156
29157 2005-12-28  Bruno Haible  <bruno@clisp.org>
29158
29159         * build-aux/config.rpath: Update from GNU gettext.
29160
29161 2005-12-16  Jim Meyering  <jim@meyering.net>
29162
29163         * modules/fprintftime: New module.
29164         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29165
29166 2005-12-16  Jim Meyering  <jim@meyering.net>
29167
29168         * m4/fprintftime.m4: New file.
29169
29170 2005-12-16  Jim Meyering  <jim@meyering.net>
29171
29172         * lib/fprintftime.c, lib/fprintftime.h: New files.
29173
29174 2005-12-15  Simon Josefsson  <jas@extundo.com>
29175
29176         * modules/socklen (configure.ac): Fix M4 macro name, to align with
29177         new m4/socklen.m4.
29178
29179 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29180
29181         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
29182         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
29183
29184 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29185
29186         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
29187         * lib/argp-help.c (fill_in_uparams): Check if the constructed
29188         struct uparams is valid. Fall back to the default values if it is
29189         not.
29190
29191 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29192
29193         * modules/argp (Files): Add argp-pin.c
29194         (Depends-on): dirname
29195         (lib_SOURCES): Add argp-pin.c
29196
29197 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29198
29199         * m4/argp.m4:  Check if program_invocation_name and
29200         program_invocation_short_name are declared and define appropriate
29201         macros if they are not.
29202
29203 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29204
29205         * lib/argp-help.c (__argp_base_name): New function
29206         (__argp_short_program_name): Rewrite using __argp_base_name
29207         * lib/argp-namefrob.h: Define program_invocation_name and
29208         program_invocation_short_name if requested
29209         (__argp_base_name): Add prototype
29210         * lib/argp-parse.c (argp_def): Use gettext wrappers
29211         (argp_default_parser): Use __argp_base_name
29212         * lib/argp-pin.c: New file. Defines program_invocation_name and
29213         program_invocation_short_name on systems that lack them.
29214
29215 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29216
29217         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
29218         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29219         porting problem reported by Georg Schwarz in
29220         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29221
29222 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29223
29224         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
29225         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29226         porting problem reported by Georg Schwarz in
29227         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29228
29229 2005-12-05  Bruno Haible  <bruno@clisp.org>
29230
29231         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
29232         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
29233         Reported by Mark Junker <mjscod@gmx.de>.
29234
29235 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29236
29237         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
29238         Use implementation from Albert Chin, with some
29239         comments/corrections by Stepan Kasal and myself.
29240
29241 2005-12-02  Bruno Haible  <bruno@clisp.org>
29242
29243         * gnulib-tool (func_import): Accept GPLed build tool modules when
29244         --lgpl is given.
29245         * modules/csharpcomp-script: New file.
29246         * modules/csharpcomp: Depend on it.
29247         * modules/javacomp-script: New file.
29248         * modules/javacomp: Depend on it.
29249         Suggested by Simon Josefsson.
29250
29251 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29252
29253         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29254         statement, to work around an HP-UX 10.20 compiler bug reported by
29255         Peter O'Gorman.
29256
29257 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29258
29259         * modules/savedir (Depends-on): Add openat.
29260
29261 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29262
29263         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29264         (uintmax_t) [defined uintmax_t]: Do not declare.
29265         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29266         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29267         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
29268         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29269         sake of portability to weird hosts that C allows (though we don't
29270         know of any practical examples).
29271
29272         * lib/savedir.h (fdsavedir): New decl.
29273         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29274         contains most of the former guts of savedir.
29275         (savedir): Use savedirstream.
29276         Include "openat.h".
29277
29278 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         * modules/obstack (Files): Add m4/ulonglong.m4.
29281         Problem reported by Davide Angelocola.
29282
29283 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29284
29285         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29286         coreutils no longer futzes with rounding modes.
29287
29288 2005-11-14  Jim Meyering  <jim@meyering.net>
29289
29290         * lib/mkstemp-safer.c: Include <config.h>, required for possible
29291         replacement of mkstemp.
29292
29293 2005-11-10  Simon Josefsson  <jas@extundo.com>
29294
29295         * lib/readline.c: Remove EOL.
29296
29297 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29298
29299         * modules/gethrxtime (Depends-on): Add gettime.
29300
29301 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29302
29303         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29304         or gettimeofday; no longer needed.
29305
29306 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29309         time business.
29310         (gethrxtime) [! (HAVE_NANOUPTIME
29311         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29312         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29313         our own approximation.
29314
29315 2005-11-08  Eric Blake  <ebb9@byu.net>
29316
29317         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29318
29319 2005-11-08  Eric Blake  <ebb9@byu.net>
29320
29321         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29322
29323 2005-11-04  Bruno Haible  <bruno@clisp.org>
29324
29325         * gnulib-tool: Implement --update mode.
29326
29327 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29328
29329         Fix porting problem reported by Theodoros V. Kalamatianos.
29330         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29331         Don't assume that futimes failing means we must fail.
29332
29333 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29334
29335         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29336         variables to suggest the intended function of the PATH_MAX check.
29337
29338 2005-10-30  Kean Johnston  <jkj@sco.com>
29339
29340         Trivial changes to support SCO systems.
29341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29342         as PATH_MAX.
29343         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29344         where __ptr is null when no I/O is pending.
29345
29346 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29347
29348         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29349         leave errno alone.  Problem reported by Dmitry V. Levin.
29350
29351 2005-10-28  Simon Josefsson  <jas@extundo.com>
29352
29353         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29354         Test more.
29355
29356         * tests/test-gc-md2.c, tests/test-md2.c: New files.
29357
29358         * modules/md2, modules/md2-tests: New files.
29359
29360 2005-10-28  Simon Josefsson  <jas@extundo.com>
29361
29362         * m4/inet_ntop.m4: More tests.
29363
29364         * m4/gc-md2.m4, md2.m4: New file.
29365
29366 2005-10-28  Simon Josefsson  <jas@extundo.com>
29367
29368         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29369         "restrict" keywords, as per POSIX.  Protect the function
29370         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29371         Don't use K&R prototypes.  Check the sprintf return values.
29372         Re-define EAFNOSUPPORT if not present.  Indent.
29373
29374         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29375         suggested by Bruno Haible <bruno@clisp.org>.
29376
29377         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29378
29379         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
29380
29381         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29382         libgcrypt).
29383
29384         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
29385
29386         * lib/md2.h, lib/md2.c: New files.
29387
29388 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29389
29390         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29391         errno alone.  Problem reported by Frederic Jolliton.
29392
29393 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29394
29395         * modules/verify (License): Change from GPL to LGPL.  This is a
29396         tiny module and there are apparently near-equivalents that are
29397         under the BSD license.
29398
29399 2005-10-24  Simon Josefsson  <jas@extundo.com>
29400
29401         * modules/sha1: Relicense to LGPL.
29402
29403 2005-10-24  Simon Josefsson  <jas@extundo.com>
29404
29405         * lib/md4.h: Shrink buffer size, now that we changed the type.
29406
29407 2005-10-23  Simon Josefsson  <jas@extundo.com>
29408
29409         * gnulib-tool (func_import): Fix --tests-base.
29410
29411 2005-10-22  Simon Josefsson  <jas@extundo.com>
29412
29413         * modules/arcfour (Depends-on): Need stdint.
29414
29415 2005-10-22  Simon Josefsson  <jas@extundo.com>
29416
29417         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29418         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
29419
29420 2005-10-22  Simon Josefsson  <jas@extundo.com>
29421
29422         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29423         suggested by Bruno Haible <bruno@clisp.org>.
29424
29425 2005-10-22  Simon Josefsson  <jas@extundo.com>
29426
29427         * lib/crc.h: Include stddef.h, for size_t.
29428
29429 2005-10-22  Simon Josefsson  <jas@extundo.com>
29430
29431         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29432         arcfour_context struct (simplify test vector testing in GNU
29433         Shishi).
29434
29435 2005-10-21  Simon Josefsson  <jas@extundo.com>
29436
29437         * modules/des, modules/des-tests: New files.
29438
29439         * modules/gc-des, modules/gc-des-tests: New files.
29440
29441         * tests/test-des.c, tests/test-gc-des.c: New file.
29442
29443 2005-10-21  Simon Josefsson  <jas@extundo.com>
29444
29445         * modules/arctwo, modules/arctwo-tests: New files.
29446
29447         * tests/test-arctwo.c: New file.
29448
29449         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29450
29451         * tests/test-gc-arctwo.c: New file.
29452
29453 2005-10-21  Simon Josefsson  <jas@extundo.com>
29454
29455         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29456         Bruno Haible <bruno@clisp.org>.
29457
29458         * m4/gc-des.m4: New file.
29459
29460 2005-10-21  Simon Josefsson  <jas@extundo.com>
29461
29462         * m4/arctwo.m4: New file.
29463
29464         * m4/gc-arctwo.m4: New file.
29465
29466 2005-10-21  Simon Josefsson  <jas@extundo.com>
29467
29468         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29469         block.
29470
29471 2005-10-21  Simon Josefsson  <jas@extundo.com>
29472
29473         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29474         <bruno@clisp.org>.
29475
29476         * lib/hmac-sha1.c (hmac_sha1): Likewise.
29477
29478         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29479         Bruno Haible <bruno@clisp.org>.
29480
29481         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29482         <bruno@clisp.org>.
29483
29484 2005-10-21  Simon Josefsson  <jas@extundo.com>
29485
29486         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29487
29488 2005-10-21  Simon Josefsson  <jas@extundo.com>
29489
29490         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29491
29492 2005-10-21  Simon Josefsson  <jas@extundo.com>
29493
29494         * lib/des.h, lib/des.c: New files.
29495
29496         * lib/gc-gnulib.c: Support DES.c
29497
29498 2005-10-21  Simon Josefsson  <jas@extundo.com>
29499
29500         * lib/arctwo.h, lib/arctwo.c: New files.
29501
29502         * lib/gc-gnulib.c: Support ARCTWO.
29503
29504 2005-10-21  Simon Josefsson  <jas@extundo.com>
29505
29506         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29507         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29508
29509 2005-10-21  Simon Josefsson  <jas@extundo.com>
29510
29511         * gnulib-tool (func_import, func_create_testdir): Define automake
29512         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29513         Makefile.am snippet),
29514         suggested by Bruno Haible <bruno@clisp.org>.
29515
29516         * modules/gc (Makefile.am): Use it.
29517
29518 2005-10-21  Bruno Haible  <bruno@clisp.org>
29519
29520         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29521         patch.
29522
29523 2005-10-19  Simon Josefsson  <jas@extundo.com>
29524
29525         * tests/test-gc-rijndael.c: New file.
29526
29527         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29528
29529 2005-10-19  Simon Josefsson  <jas@extundo.com>
29530
29531         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29532         interface too.
29533
29534 2005-10-19  Simon Josefsson  <jas@extundo.com>
29535
29536         * tests/test-gc-arcfour.c: New file.
29537
29538         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29539
29540 2005-10-19  Simon Josefsson  <jas@extundo.com>
29541
29542         * modules/gc-md4, modules/gc-md4-tests: New file.
29543
29544         * tests/test-gc-md4.c: New file.
29545
29546 2005-10-19  Simon Josefsson  <jas@extundo.com>
29547
29548         * m4/gc-md4.m4: New file.
29549
29550 2005-10-19  Simon Josefsson  <jas@extundo.com>
29551
29552         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29553         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29554         <kasal@ucw.cz>.
29555
29556 2005-10-19  Simon Josefsson  <jas@extundo.com>
29557
29558         * m4/gc-arcfour.m4: New file.
29559
29560         * m4/gc-rijndael.m4: New file.
29561
29562 2005-10-19  Simon Josefsson  <jas@extundo.com>
29563
29564         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29565
29566 2005-10-19  Simon Josefsson  <jas@extundo.com>
29567
29568         * lib/gc-gnulib.c: Support ARCFOUR.
29569
29570 2005-10-19  Simon Josefsson  <jas@extundo.com>
29571
29572         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29573         support.
29574
29575         * lib/gc.h: Add ECB enum type.
29576
29577         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29578
29579 2005-10-18  Simon Josefsson  <jas@extundo.com>
29580
29581         * tests/test-md5.c: New file.
29582
29583         * modules/md5-tests: New file.
29584
29585 2005-10-18  Simon Josefsson  <jas@extundo.com>
29586
29587         * tests/test-md4.c: New file.
29588
29589         * modules/md4, modules/md4-tests: New files.
29590
29591 2005-10-18  Simon Josefsson  <jas@extundo.com>
29592
29593         * m4/md4.m4: New file.
29594
29595 2005-10-18  Simon Josefsson  <jas@extundo.com>
29596
29597         * lib/md4.h, lib/md4.c: New files, based on md5.?.
29598
29599 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
29600
29601         * gnulib-tool (func_create_testdir): Omit the second check whether
29602         BUILT_SOURCES in nonempty.
29603
29604 2005-10-17  Simon Josefsson  <jas@extundo.com>
29605
29606         * tests/test-rijndael.c: New file.
29607
29608 2005-10-17  Simon Josefsson  <jas@extundo.com>
29609
29610         * modules/sha1: Depend on stdint instead of md5.
29611
29612         * modules/md5: Depend on stdint, remove uint32_t.
29613
29614 2005-10-17  Simon Josefsson  <jas@extundo.com>
29615
29616         * modules/gc-sha1-tests: New file.
29617
29618         * tests/test-gc-sha1.c: New file.
29619
29620 2005-10-17  Simon Josefsson  <jas@extundo.com>
29621
29622         * m4/md5.m4: Remove call to uint32_t.m4.
29623
29624 2005-10-17  Simon Josefsson  <jas@extundo.com>
29625
29626         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29627
29628         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29629         md5.h.
29630
29631         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
29632
29633         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
29634
29635 2005-10-17  Simon Josefsson  <jas@extundo.com>
29636
29637         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29638
29639 2005-10-17  Simon Josefsson  <jas@extundo.com>
29640
29641         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29642
29643 2005-10-17  Simon Josefsson  <jas@extundo.com>
29644
29645         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29646
29647         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29648
29649 2005-10-17  Bruno Haible  <bruno@clisp.org>
29650
29651         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29652         that it can also be used in a test.
29653
29654 2005-10-16  Bruno Haible  <bruno@clisp.org>
29655
29656         * gnulib-tool (func_emit_tests_Makefile_am): Also define
29657         TESTS_ENVIRONMENT, so that individual tests can augment it.
29658
29659         * gnulib-tool (func_create_testdir): Use an intermediate target for
29660         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29661         macros, like $(ALLOCA_H), which cannot be passed through the command
29662         line.
29663
29664 2005-10-15  Simon Josefsson  <jas@extundo.com>
29665
29666         * modules/rijndael-tests: New file.
29667
29668         * modules/rijndael: New file.
29669
29670 2005-10-15  Simon Josefsson  <jas@extundo.com>
29671
29672         * m4/rijndael.m4: New file.
29673
29674 2005-10-15  Simon Josefsson  <jas@extundo.com>
29675
29676         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29677
29678         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29679
29680 2005-10-14  Simon Josefsson  <jas@extundo.com>
29681
29682         * tests/test-arcfour.c: New file.
29683
29684         * modules/arcfour, modules/arcfour-tests: New files.
29685
29686 2005-10-14  Simon Josefsson  <jas@extundo.com>
29687
29688         * m4/arcfour.m4: New file.
29689
29690 2005-10-14  Simon Josefsson  <jas@extundo.com>
29691
29692         * lib/arcfour.h, lib/arcfour.c: New files.
29693
29694 2005-10-14  Roland McGrath  <roland@redhat.com>
29695
29696         Import from libc.  [BZ #1331]
29697         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29698         macro argument.
29699         Reported by Matej Vela <vela@debian.org>.
29700
29701 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29702
29703         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29704         include <wchar.h>; no longer needed.
29705
29706 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29707
29708         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29709
29710 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
29711         and  Ulrich Drepper  <drepper@redhat.com>
29712
29713         Import from libc.
29714         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29715         instead of inline stream orientation test and two separate
29716         function calls.  Pay no attention to USE_IN_LIBIO.
29717
29718 2005-10-13  Simon Josefsson  <jas@extundo.com>
29719
29720         * modules/gc-hmac-md5-tests: New file.
29721
29722         * tests/test-gc-hmac-sha1.c: New file.
29723
29724         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29725
29726         * modules/gc-hmac-md5-tests: New file.
29727
29728         * tests/test-gc-md5.c: New file.
29729
29730         * modules/gc-md5-tests: New file.
29731
29732 2005-10-13  Simon Josefsson  <jas@extundo.com>
29733
29734         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29735         Move memory allocation outside of loop.
29736
29737 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29738
29739         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29740         intermediate directory is in a read-only file system.  Problem
29741         reported by Eric Blake.
29742
29743 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
29744
29745         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29746
29747 2005-10-12  Simon Josefsson  <jas@extundo.com>
29748
29749         * tests/test-hmac-sha1.c: New file.
29750
29751         * modules/hmac-sha1-tests: New file.
29752
29753         * modules/hmac-sha1: New file.
29754
29755 2005-10-12  Simon Josefsson  <jas@extundo.com>
29756
29757         * modules/gc-sha1: New file.
29758
29759 2005-10-12  Simon Josefsson  <jas@extundo.com>
29760
29761         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29762
29763         * tests/test-gc-pbkdf2-sha1.c: New file.
29764
29765 2005-10-12  Simon Josefsson  <jas@extundo.com>
29766
29767         * modules/gc-md5, modules/gc-hmac-md5: New files.
29768
29769         * modules/gc (Files): Remove md5, memxor and hmac files.
29770
29771 2005-10-12  Simon Josefsson  <jas@extundo.com>
29772
29773         * m4/gc-pbkdf2-sha1.m4: New file.
29774
29775         * m4/gc-hmac-sha1.m4: New file.
29776
29777         * m4/gc-sha1: New file.
29778
29779         * m4/hmac-sha1.m4: New file.
29780
29781 2005-10-12  Simon Josefsson  <jas@extundo.com>
29782
29783         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29784
29785         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29786
29787 2005-10-12  Simon Josefsson  <jas@extundo.com>
29788
29789         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29790         suggested by Bruno Haible <bruno@clisp.org>.
29791
29792 2005-10-12  Simon Josefsson  <jas@extundo.com>
29793
29794         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29795
29796 2005-10-12  Simon Josefsson  <jas@extundo.com>
29797
29798         * lib/gc-pbkdf2-sha1.c: New file.
29799
29800         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29801
29802 2005-10-12  Simon Josefsson  <jas@extundo.com>
29803
29804         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29805
29806         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29807
29808 2005-10-12  Simon Josefsson  <jas@extundo.com>
29809
29810         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29811         GC_USE_HMAC_MD5, respectively.
29812
29813         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29814         (gc_md5): Fix typo.
29815
29816         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29817
29818         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29819
29820         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29821
29822 2005-10-12  Bruno Haible  <bruno@clisp.org>
29823
29824         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29825         Reported by Stepan Kasal <kasal@ucw.cz>.
29826
29827 2005-10-11  Simon Josefsson  <jas@extundo.com>
29828
29829         * tests/test-crc.c: New file.
29830
29831         * modules/crc, modules/crc-tests: New files.
29832
29833 2005-10-11  Simon Josefsson  <jas@extundo.com>
29834
29835         * m4/crc.m4: New file.
29836
29837 2005-10-11  Simon Josefsson  <jas@extundo.com>
29838
29839         * lib/gc.h: Add gc_hash and gc_hash_buffer.
29840
29841         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
29842
29843         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29844
29845 2005-10-11  Simon Josefsson  <jas@extundo.com>
29846
29847         * lib/crc.h, lib/crc.c: New files.
29848
29849         * lib/gc.h (gc_hash_buffer): Add doc.
29850
29851 2005-10-11  Bruno Haible  <bruno@clisp.org>
29852
29853         * modules/c-strcasestr: New file.
29854         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29855
29856 2005-10-11  Bruno Haible  <bruno@clisp.org>
29857
29858         * modules/c-strcase: New file.
29859         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29860
29861 2005-10-11  Bruno Haible  <bruno@clisp.org>
29862
29863         * lib/strcasecmp.c: Include limits.h.
29864         (strcasecmp): Avoid integer overflow on exotic platforms.
29865         * lib/strncasecmp.c: Include limits.h.
29866         (strncasecmp): Avoid integer overflow on exotic platforms.
29867         Reported by Paul Eggert.
29868
29869 2005-10-11  Bruno Haible  <bruno@clisp.org>
29870
29871         * lib/c-strcasestr.h: New file, from GNU gettext.
29872         * lib/c-strcasestr.c: New file, from GNU gettext.
29873
29874 2005-10-11  Bruno Haible  <bruno@clisp.org>
29875
29876         * lib/c-strcase.h: New file, from GNU gettext.
29877         * lib/c-strcasecmp.c: New file, from GNU gettext.
29878         * lib/c-strncasecmp.c: New file, from GNU gettext.
29879
29880 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29881
29882         * modules/mempcpy (License): GPL -> LGPL.
29883         * modules/strchrnul (License): Likewise.
29884         * modules/sysexits (License): Likewise.
29885
29886 2005-10-08  Simon Josefsson  <jas@extundo.com>
29887
29888         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29889
29890 2005-10-07  Simon Josefsson  <jas@extundo.com>
29891
29892         * m4/memxor.m4: Remove gl_C_RESTRICT call.
29893
29894 2005-10-06  Simon Josefsson  <jas@extundo.com>
29895
29896         * tests/test-hmac-md5.c: New file.
29897
29898         * modules/hmac-md5-tests: New file.
29899
29900         * modules/hmac-md5: New file.
29901
29902 2005-10-06  Simon Josefsson  <jas@extundo.com>
29903
29904         * m4/hmac-md5.m4: New file.
29905
29906         * m4/memxor.m4: Require gl_C_RESTRICT.
29907
29908 2005-10-06  Simon Josefsson  <jas@extundo.com>
29909
29910         * lib/memxor.c (memxor): Avoid casts and warnings.
29911
29912 2005-10-06  Simon Josefsson  <jas@extundo.com>
29913
29914         * lib/hmac-md5.c: New file.
29915
29916         * lib/hmac.h: New file.
29917
29918 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29921         promotes to int, not unsigned int, to catch the AIX 5.3
29922         compiler bug.
29923
29924 2005-10-05  Simon Josefsson  <jas@extundo.com>
29925
29926         * modules/memxor: New file.
29927
29928         * modules/iconv (Files): Move config.rpath to havelib, it is used
29929         there.
29930
29931         * modules/havelib (Files): Add config.rpath.
29932
29933 2005-10-05  Simon Josefsson  <jas@extundo.com>
29934
29935         * m4/memxor.m4: New file.
29936
29937 2005-10-05  Simon Josefsson  <jas@extundo.com>
29938
29939         * lib/memxor.c (memxor): Fix compiler error.
29940
29941         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29942         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29943
29944         * lib/memxor.h, lib/memxor.c: New files.
29945
29946         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29947         we assume all systems have it, suggested by Jim Meyering
29948         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
29949         any systems lack sys/socket.h; mingw32 is known to lack it, but we
29950         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
29951         same reasons.
29952
29953 2005-10-05  Simon Josefsson  <jas@extundo.com>
29954
29955         * config/srclist.txt: Add glibc bug 1423 for md5.h.
29956
29957 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29958
29959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29960         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29961         needed, since the source code now assumes these .h files.
29962
29963 2005-10-05  Derek Price  <derek@ximbiot.com>
29964
29965         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29966
29967 2005-10-05  Bruno Haible  <bruno@clisp.org>
29968
29969         * modules/stdint (License): Change to LGPL.
29970
29971 2005-10-04  Simon Josefsson  <jas@extundo.com>
29972
29973         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29974         D. Baushke" <mdb@gnu.org>.
29975
29976 2005-10-04  Bruno Haible  <bruno@clisp.org>
29977
29978         * lib/verify.h (verify_true): Provide alternative definition for C++.
29979
29980 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
29983         (SSIZE_MAX): New macro, if not already defined.
29984         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
29985         than 2 GiB.
29986
29987 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29988
29989         Sync from coreutils.
29990         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
29991         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
29992         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
29993         ULLONG_MAX doesn't work with 2.7.2.1.
29994
29995 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29996
29997         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
29998         From Ben Pfaff.
29999
30000         * modules/exclude (Depends-on): Depend on verify.
30001         * modules/strtoimax (Depends-on): Likewise.
30002         * modules/utimecmp (Depends-on): Likewise.
30003
30004 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30005
30006         * lib/exclude.c: Include verify.h.
30007         (verify): Remove.  All callers changed to use verify.h's version.
30008         * lib/strtoimax.c: Likewise.
30009         * lib/utimecmp.c: Likewis.e
30010
30011         Sync from coreutils.
30012         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
30013         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
30014         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
30015         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
30016         bother returning ENOSYS if settimeofday or stime fails; just let
30017         them return whatever errno they want to return.
30018         * lib/utimens.c: Include unistd.h, for dup2.
30019         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
30020         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
30021
30022 2005-10-02  Jim Meyering  <jim@meyering.net>
30023
30024         Sync from coreutils.
30025         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
30026         from glibc-2.2.5 that fails for read-only files.
30027
30028 2005-10-02  Jim Meyering  <jim@meyering.net>
30029
30030         Sync from coreutils.
30031         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
30032         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
30033         `#if HAVE_CONFIG_H'.
30034         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
30035         Remove AT_FDCWD test.
30036         Do not consume the fd unless successful.
30037         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
30038         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
30039         block, so that we don't even try to compile it if settimeofday is
30040         available.  This works around a compilation failure on OSF1 V5.1,
30041         due to stime requiring a `long int*' while tv_sec is `int'.
30042
30043 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
30044
30045         Sync from coreutils.
30046         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
30047         against `yes', rather than just testing for nonempty.
30048
30049 2005-10-01  Simon Josefsson  <jas@extundo.com>
30050
30051         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
30052         and Darwin.
30053
30054         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
30055         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
30056         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
30057         freeaddrinfo and gai_strerror are declared by the POSIX headers.
30058         Check if struct addrinfo is declared.
30059
30060 2005-10-01  Simon Josefsson  <jas@extundo.com>
30061
30062         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
30063         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
30064         AI_* and EAI_* definitions.  Protect function declarations.
30065
30066 2005-10-01  Jim Meyering  <jim@meyering.net>
30067
30068         Sync from coreutils.
30069
30070         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
30071         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
30072         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
30073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30074         in the inet and nsl libraries.  Required on Solaris 5.7.
30075
30076 2005-10-01  Jim Meyering  <jim@meyering.net>
30077
30078         Sync from coreutils.
30079         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30080         in the inet and nsl libraries.  Required on Solaris 5.7.
30081
30082 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
30083
30084         * lib/getdelim.c (getdelim): Remove unused variables.
30085
30086 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30087
30088         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
30089         so that the code works even with ancient cpp.  Portability problem
30090         with GCC 2.7.2.1 reported by Thomas M.Ott.
30091
30092 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30093
30094         * modules/regex (Depends-on): Add strcase.
30095
30096         * modules/gethostname (Licence): Change from GPL to LGPL, since
30097         gethostname.c is a trivial implementation of a standard library
30098         function.
30099         * modules/poll (License): Change from GPL to LGPL, since it's
30100         derived from LGPL code.
30101
30102 2005-09-27  Jim Meyering  <jim@meyering.net>
30103
30104         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
30105         HAVE_CONFIG_H.
30106
30107         * lib/intprops.h (signed_type_or_expr__): Define.
30108         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
30109         for unsigned types.
30110
30111 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30112
30113         * lib/verify.h (verify_expr): Remove, replacing with:
30114         (verify_true): New macro that returns true instead of void.
30115         (verify_type__): Remove.
30116         (verify): Use verify_true rather than verify_type__.
30117
30118 2005-09-26  Bruno Haible  <bruno@clisp.org>
30119
30120         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30121         is necessary.
30122         (lib_SOURCES): Remove mbchar.c.
30123         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30124         (Files): Add m4/mbrtowc.m4.
30125         * modules/mbiter: Likewise.
30126         * modules/mbuiter: Likewise.
30127
30128 2005-09-26  Bruno Haible  <bruno@clisp.org>
30129
30130         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30131         compile mbchar.c if they are not both present.
30132         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30133         * m4/mbiter.m4 (gl_MBITER): Likewise.
30134         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30135         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30136         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30137
30138 2005-09-25  Jim Meyering  <jim@meyering.net>
30139
30140         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30141         also uses socklen_t.
30142
30143 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
30144
30145         * lib/utimens.c (ENOSYS): Define if not already defined.
30146         (futimens): Support having a null PATH if the file descriptor
30147         is nonnegative.
30148
30149         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30150         Remove.
30151         (__attribute): Define to empty unless GCC 3.1 or later.
30152         This works around a core dump on OpenBSD 3.4, which has GCC
30153         2.95.3, which dumps core when given __attribute__(()).  It also
30154         simplifies other tests, since we really don't want to bother with
30155         worrying about which ancient version of GCC supported what.
30156         Original problem reported by Yoann Vandoorselaere, with part of
30157         the fix suggested by Derek Price.
30158
30159 2005-09-24  Jim Meyering  <jim@meyering.net>
30160
30161         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30162         so we can once again use a positive bitfield width of 1 -- now we
30163         don't have to explain why we were using a bitfield width of 2.
30164
30165 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30166
30167         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30168         and similarly for the other external symbols.  Problem reported
30169         by James Gallager.
30170
30171         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30172         bug reported by Jim Meyering.
30173
30174         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
30175         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
30176         not needed, since socklen is a prerequisite module.
30177
30178 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30179
30180         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
30181         Problem reported by Eric Blake.
30182         (getaddrinfo): Initialize se so that it's not garbage.
30183         Redo internal storage allocation so that it doesn't make unportable
30184         assumptions about alignment.
30185         Fix a memory leak.
30186
30187         * lib/utimens.c (futimens): Use futimesat if available.
30188         Prefer it to futimes since it doesn't have the futimes bug.
30189
30190         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
30191         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
30192         Instead, declare a function that returns a pointer to an array,
30193         and use verify_type__ to declare the size of the array.
30194         Problem and germ of a solution reported by Bruno Haible.
30195         (verify_type__): Use 2, not 1, for bitfield size, to avoid
30196         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
30197
30198 2005-09-23  Jim Meyering  <jim@meyering.net>
30199
30200         Sync from coreutils.
30201         Correct build failure (socklen_t not defined) on at least
30202         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
30203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
30204
30205 2005-09-23  Jim Meyering  <jim@meyering.net>
30206
30207         * modules/getaddrinfo (Depends-on): Add socklen.
30208
30209 2005-09-23  Bruno Haible  <bruno@clisp.org>
30210
30211         * tests/test-verify.c: New file.
30212
30213 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30214
30215         Sync from coreutils.
30216
30217         * modules/argmatch (Depends-on): Add verify.
30218         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
30219         unistd-safer.
30220         * modules/save-cwd (Depends-on): Likewise.
30221
30222         * modules/openat (Files): Add lib/openat-die.c.
30223         (Depends-on): Remove error, exitfail.
30224         Add dirname.
30225
30226         * modules/verify: New file.
30227         * MODULES.html.sh (Diagnostics <assert.h>): New section,
30228         with "verify" module.
30229
30230 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30231
30232         Sync from coreutils.
30233
30234         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
30235         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
30236         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
30237         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
30238         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
30239         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
30240         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
30241         Don't bother checking for string.h, stdlib.h, unistd.h.
30242         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
30243         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
30244         module's job.
30245         * m4/jm-macros.m4 (gl_MACROS): Likewise.
30246         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
30247
30248         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30249         (gl_GETDATE): Use it.
30250
30251         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30252
30253 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30254
30255         Sync from coreutils.
30256
30257         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30258         stat-time.h.
30259         * lib/argmatch.h: Include verify.h
30260         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30261         (ARGMATCH_ASSERT): Remove; unused.
30262         * lib/canonicalize.c: Assume STDC_HEADERS.
30263         * lib/exclude.c: Include "strcase.h".
30264         * lib/regex_internal.h [!defined _LIBC]: Likewise.
30265         * lib/getusershell.c: Include stdio--.h rather than stdio.h
30266         and stdio-safer.h.
30267         (getusershell): Call fopen, not fopen_safer.
30268         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30269         Do not include unistd-safer.h.
30270         (save_cwd): Don't call fd_safer; no longer needed
30271         now that we include fcntl--.h.
30272
30273         * lib/getdate.y (relative_time): New type.
30274         (RELATIVE_TIME_0): New constant.
30275         (parser_control): Use relative_time instead of doing it ourselves.
30276         (%union): Add new relative_time rel member.
30277         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30278         Now typeless.
30279         (relunit, relunit_snumber): Now of type rel.
30280         (zone, rel, relunit, get_date): Adjust to above changes.
30281
30282         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30283         Do not include unistd-safer.h.
30284         (getloadavg): Don't call fd_safer; no longer needed
30285         now that we include fcntl--.h.
30286
30287         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30288         (make_dir_parents): Treat ENOSYS like EEXIST.
30289
30290         Improve quality of diagnostics on restore_cwd failure.
30291         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
30292         (make_dir_parents): Last arg is now int * (for errno), not bool *.
30293         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30294         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30295         each time through the loop.  Do not diagnose restore_cwd failure;
30296         that is the caller's job (and perhaps the caller does not care).
30297
30298         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30299         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30300         If the file already exists but is not a directory, don't bother
30301         to try to make its parents.
30302         Close potential file descriptor leak if we can't chdir("/") (!).
30303         Don't always return true if chdir($PWD) fails; return true only
30304         if the requested action was done successfully (except for the
30305         chdir($PWD)).
30306         Don't log final directory unless we actually made it.
30307         Refactor to avoid duplicate code to fix up permissions.
30308         Don't attempt to fix up parent permissions if chdir($PWD) fails.
30309
30310         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30311         to make it a bit faster and (I hope) clearer.
30312         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30313         Fix bug in formats like %2N.
30314
30315         * lib/verify.h: New file.
30316
30317 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30318
30319         Sync from coreutils.
30320         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30321
30322 2005-09-22  Jim Meyering  <jim@meyering.net>
30323
30324         Sync from coreutils.
30325
30326         * m4/lstat.m4 (gl_FUNC_LSTAT):
30327         Use AC_LIBSOURCES to require lstat.c and lstat.h.
30328         Remove obsolete comment.
30329         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30330         * m4/xstrtod.m4: Likewise.
30331
30332         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30333
30334 2005-09-22  Jim Meyering  <jim@meyering.net>
30335
30336         Sync from coreutils.
30337
30338         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30339
30340         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30341         the .tm_year member, since otherwise gcc-4.0 would now warn about
30342         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30343
30344         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30345         order to avoid an unsuppressible warning from gcc on 64-bit systems.
30346
30347         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30348         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30349         when run in a time zone for which daylight savings time is in effect
30350         for the starting date.
30351
30352         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30353         stop us from restricting permissions of just-created absolute-named
30354         directories.
30355         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30356         to restore initial working directory.
30357         * lib/mkdir-p.c (make_dir_parents): New parameter:
30358         different_working_dir, to tell caller if/when we change the working
30359         directory and are unable to return to the initial one.
30360         * lib/mkdir-p.h (make_dir_parents): Update prototype.
30361         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30362         `return false'.  This fixes a bug introduced on 2004-07-30.
30363
30364         * lib/openat.c (fdopendir): Be sure to close the supplied
30365         file descriptor before returning.  This makes our replacement
30366         implementation a little closer to Solaris's, where fdopendir
30367         ties the file descriptor to the returned DIR* pointer.
30368         * lib/openat.c (unlinkat): New function.
30369         * lib/openat.h (unlinkat): Add prototype.
30370         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30371         (openat_restore_fail): Rename from openat_restore_die.
30372         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30373
30374         Provide an alternative to exiting immediately upon save_cwd or
30375         restore_cwd failure.  Now, an application can arrange e.g.,
30376         to perform a longjump in that case.
30377         * lib/openat.c: Include dirname.h.
30378         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30379         (rpl_openat, fdopendir, fstatat): Call openat_save_die
30380         and openat_restore_die rather than calling error directly.
30381         Don't include "error.h" or "exitfail.h"; they're no longer needed.
30382
30383         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30384         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30385         define.
30386
30387         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30388         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30389                             int utc, int nanoseconds);
30390         Background:
30391         date should not have to allocate a megabyte of virtual memory to
30392         handle a format argument like +%1048575T.  When implemented with
30393         strftime, it must allocate such a buffer, use strftime to fill it
30394         in, print it, then free it.
30395         With fprintftime, it simply prints everything and exits.
30396         With no need for memory allocation, that's one fewer way to fail.
30397         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30398         optional field width, not before, so we accept %9:z, not %:9z.
30399         (my_strftime): Be sure to use L_('x') for literals.
30400
30401         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30402         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30403         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30404         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30405         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30406         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30407         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30408         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30409         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30410         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30411         * lib/xgethostname.c, lib/xreadlink.c:
30412         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30413
30414         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30415         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30416         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30417         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30418         and don't include <sys/file.h>).
30419
30420 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
30421
30422         Sync from coreutils.
30423
30424         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30425         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30426         [!LDAV_DONE]: Avoid unused variable warning.
30427
30428 2005-09-21  Bruno Haible  <bruno@clisp.org>
30429
30430         * lib/unicodeio.h (unicode_to_mb): New declaration.
30431
30432 2005-09-20  Derek Price  <derek@ximbiot.com>
30433
30434         * lib/getaddrinfo.c: Don't include <netdb.h> included from
30435         getaddrinfo.h.
30436
30437 2005-09-20  Bruno Haible  <bruno@clisp.org>
30438
30439         * gnulib-tool: Remove trailing slashes from the values specified for
30440         --source-base, --m4-base, --tests-base, --aux-dir.
30441         Suggested by Simon Josefsson <jas@extundo.com>.
30442
30443 2005-09-20  Bruno Haible  <bruno@clisp.org>
30444
30445         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30446         func_modules_to_filelist, func_import, func_create_testdir): Make all
30447         sorting results locale-independent, so that gnulib-cache.m4 doesn't
30448         change when gnulib-tool is invoked in a different locale.
30449
30450 2005-09-19  Simon Josefsson  <jas@extundo.com>
30451
30452         * m4/socklen.m4: Fix typo.
30453
30454 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30455
30456         Use a consistent style for including <config.h>.
30457         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30458         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30459         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30460         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30461         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30462         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30463         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30464         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30465         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30466         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30467         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30468         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30469         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30470         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30471         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30472         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30473         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30474         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30475         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30476         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30477         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30478         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30479         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30480         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30481         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30482         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30483         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30484         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30485         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30486         lib/xstrtoumax.c, lib/yesno.c:
30487         Standardize inclusion of config.h.
30488         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30489         lib/inttostr.h:  Removed inclusion of config.h from header files.
30490         * lib/inttostr.c:  Adjusted in-tree users.
30491         * lib/timespec.h: Remove superfluous warning to include config.h.
30492         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30493         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30494         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30495         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30496         config.h with HAVE_CONFIG_H.
30497
30498 2005-09-19  Jim Meyering  <jim@meyering.net>
30499
30500         * modules/pathmax (License): Change to LGPL.
30501
30502 2005-09-19  Derek Price  <derek@ximbiot.com>
30503
30504         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30505
30506 2005-09-19  Bruno Haible  <bruno@clisp.org>
30507
30508         * gnulib-tool (import): Provide default for --tests-base.
30509
30510 2005-09-19  Bruno Haible  <bruno@clisp.org>
30511
30512         * doc/quote.texi: New file, extracted from gnulib.texi.
30513         * doc/ctime.texi: New file, extracted from gnulib.texi.
30514         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30515         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30516         * doc/gnulib.texi: Include them.
30517
30518 2005-09-18  Bruno Haible  <bruno@clisp.org>
30519
30520         Portability fix.
30521         * gnulib-tool (func_readlink): New function.
30522         (func_ln_if_changed): Use it.
30523
30524 2005-09-18  Bruno Haible  <bruno@clisp.org>
30525
30526         * gnulib-tool: Support --with-tests also with --import.
30527         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30528         (func_import): Use variables $testsbase and $inctests. Emit a
30529         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30530         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30531         SUBDIRS += $testsdir.
30532         (func_create_testdir): Update.
30533
30534 2005-09-18  Bruno Haible  <bruno@clisp.org>
30535
30536         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30537         instead of $dry_run.
30538         (func_cp_if_changed, func_mv_if_changed): Remove functions.
30539         (func_ln_if_changed): Don't handle dry-run here.
30540         (func_import): In dry-run mode, detect more precisely which actions
30541         would be performed, and don't use "...ing" verbs.
30542
30543 2005-09-18  Bruno Haible  <bruno@clisp.org>
30544
30545         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30546         (func_import): Use join on two temporary files instead of three nested
30547         loops, in order to determine which files are new or old.
30548
30549 2005-09-18  Bruno Haible  <bruno@clisp.org>
30550
30551         * gnulib-tool (func_import): Comment out code that spits out the
30552         new files with --dry-run.
30553
30554 2005-09-18  Bruno Haible  <bruno@clisp.org>
30555
30556         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30557
30558 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30559
30560         * lib/stat-time.h: New file.
30561         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30562         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
30563         in a different way.
30564         (timespec_cmp): New function.
30565         * lib/utimecmp.c: Include stat-time.h.
30566         (SYSCALL_RESOLUTION): Depend on whether various struct stat
30567         members exist, not on the obsolescent ST_MTIM_NSEC.
30568         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30569
30570 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30571
30572         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30573
30574 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30575
30576         * MODULES.html.sh (File system functions): Add stat-time.
30577         * modules/stat-time: New file.
30578         * modules/timespec (Files): Remove m4/st_mtim.m4; this
30579         is now done in a different way, by the stat-time module.
30580         * modules/utimecmp (Depends-on): Add stat-time.
30581
30582 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30583
30584         * m4/st_mtim.m4: Remove.  Superseded by...
30585         * m4/stat-time.m4: New file.
30586         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30587         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30588
30589 2005-09-15  Derek Price  <derek@ximbiot.com>
30590
30591         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30592
30593 2005-09-15  Derek Price  <derek@ximbiot.com>
30594
30595         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30596         * lib/regex_internal.c: Ditto, using this...
30597         (__GNUC_PREREQ): ...new macro.
30598         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30599         using...
30600         (__GNUC_PREREQ): ...this new macro.
30601
30602         * lib/strstr.h: Include string.h. Define strstr as a macro here.
30603
30604 2005-09-15  Derek Price  <derek@ximbiot.com>
30605             Paul Eggert  <eggert@cs.ucla.edu>
30606
30607         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30608         changes, consolidating in...
30609         * lib/regex_internal.h: ...this file.
30610
30611 2005-09-13  Jim Meyering  <jim@meyering.net>
30612
30613         * lib/canon-host.c: Filter through gnu indent and reword comments
30614         slightly.
30615         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30616
30617 2005-09-13  Derek Price  <derek@ximbiot.com>
30618
30619         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30620         failure.
30621         Reported by Jim Meyering  <jim@meyering.net>.
30622
30623 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30624
30625         * lib/base64.c: Typo.
30626         (base64_encode): Put b64str in initialized data section.
30627
30628 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30629
30630         Merge glibc and coreutils changes into gnulib, plus a few
30631         extra fixes.
30632         * lib/md5.c: Use #error rather than a string.
30633         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
30634         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30635         (__attribute__): Define to empty for non recent-GCC.
30636         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30637         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30638         Renamed from their non-__ counterparts, with new macros replacing
30639         them if not _LIBC.  Add __THROW attribute.
30640         (rol): Remove.
30641         (struct md5_ctx): Align buffer if using GCC.
30642         * lib/sha1.h (struct sha1_ctx): Likewise.
30643         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
30644         The old name was backwards.
30645         (NOTSWAP): Remove; not used.
30646         (rol): New macro, moved here from md5.h.
30647         (sha1_process_block): Remove a FIXME that doesn't make sense.
30648
30649 2005-09-12  Derek Price  <derek@ximbiot.com>
30650
30651         Return usable errors from canon-host.
30652         * lib/canon-host.h: New file.
30653         * lib/canon-host.c (canon_host): Wrap...
30654         (canon_host_r): ...this new function, which now relies exclusively on
30655         getaddrinfo.
30656         (ch_strerror): New function.
30657         (last_cherror): New global.
30658         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30659         interface.
30660         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
30661         void *.
30662         (freeaddrinfo): Free ai->ai_canonname when set.
30663
30664 2005-09-12  Derek Price  <derek@ximbiot.com>
30665
30666         Make canon-host require getaddrinfo.
30667         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30668         AC_LIBSOURCE canon-host.h.  Call...
30669         (gl_PREREQ_CANON_HOST): ...this new function, which requires
30670         gl_GETADDRINFO.
30671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30672
30673 2005-09-12  Derek Price  <derek@ximbiot.com>
30674
30675         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
30676         LGPL.
30677         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
30678
30679 2005-09-12  Derek Price  <derek@ximbiot.com>
30680
30681         * lib/gai_strerror.c: Include config.h when available.  Include
30682         getaddrinfo.h before other headers to test interface.
30683         Reported by Larry Jones <lawrence.jones@ugs.com>.
30684
30685 2005-09-12  Derek Price  <derek@ximbiot.com>
30686             Paul Eggert  <eggert@cs.ucla.edu>
30687
30688         * modules/glob (Files): Add glob-libc.h.
30689
30690 2005-09-12  Derek Price  <derek@ximbiot.com>
30691             Paul Eggert  <eggert@cs.ucla.edu>
30692
30693         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30694         glob_.h, glob-libc.h.
30695         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30696
30697 2005-09-12  Derek Price  <derek@ximbiot.com>
30698             Paul Eggert  <eggert@cs.ucla.edu>
30699
30700         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
30701         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30702         protecting things that should be done only in gnulib contexts.
30703         * lib/glob_.h: New file, containing only the glob things needed for
30704         gnulib.
30705         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
30706         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30707         (glob, globfree, glob_pattern_p): Now defined simply in terms of
30708         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30709         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30710         and to respect the namespace rules better.
30711
30712 2005-09-08  Simon Josefsson  <jas@extundo.com>
30713
30714         * modules/socklen: New file.
30715
30716 2005-09-08  Simon Josefsson  <jas@extundo.com>
30717
30718         * m4/socklen.m4: New file.
30719
30720 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30721
30722         * modules/utimens (Files): Add m4/utimbuf.m4, since
30723         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30724         Reported by Sergey Poznyakoff.
30725
30726 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30727
30728         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30729         definitions, since that's the preferred style in glibc.
30730         Fix a minor spacing issue, and update copyright notice to match
30731         glibc's.
30732
30733 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30734
30735         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30736
30737 2005-09-06  Simon Josefsson  <jas@extundo.com>
30738
30739         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30740         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
30741
30742 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30745         warning.
30746
30747 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30748
30749         * config/srclist.txt: Add glibc bug 1302.
30750
30751 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30752
30753         Change bitset word type from unsigned int to unsigned long int,
30754         as this has better performance on typical 64-bit hosts.
30755         Port bitset code to hosts with unusual word sizes.
30756         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30757         (build_collating_symbol):
30758         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30759         argument is a bitset.  This is merely a style issue, but it makes
30760         it clearer that an entire array is expected.
30761         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30762         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30763         Port to the case where bitset_word is not the same as unsigned int.
30764         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30765         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30766         Likewise.
30767         * lib/regexec.c (check_dst_limits_calc_pos_1,
30768         check_subexp_matching_top):
30769         (build_trtable, group_nodes_into_DFAstates):
30770         Likewise.
30771         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30772         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30773         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30774         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30775         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30776         * lib/regcomp.c (optimize_subexps, lower_subexp):
30777         Work even if bitset_word has holes in its bitwise representation.
30778         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30779         * lib/regexec.c (check_dst_limits_calc_pos_1,
30780         check_subexp_matching_top):
30781         Likewise.
30782         * lib/regex_internal.c (re_string_reconstruct):
30783         Don't assume UCHAR_MAX == 255.
30784         * lib/regex_internal.h (bitset_set_all): Likewise.
30785         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30786         All uses changed.
30787         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
30788         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30789         All uses changed.
30790         (BITSET_WORD_MAX): New macro.
30791         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30792         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
30793         (bitset_empty, bitset_copy):
30794         Prefer sizeof (bitset) to multiplying it out ourselves.
30795         (bitset_not_merge): Remove; unused.
30796         (bitset_contain): Return bool, not unsigned int with one bit on.
30797         All callers changed.
30798         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30799         alignment than re_node_set; do this by defining a new internal
30800         type struct dests_alloc and using it to allocate memory.
30801
30802 2005-09-05  Bruno Haible  <bruno@clisp.org>
30803
30804         * gnulib-tool (func_import): Fix comparison in handling of symbolic
30805         links.
30806
30807 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
30808
30809         * modules/size_max (Makefile.am): Add size_max.h
30810
30811 2005-09-04  Derek Price  <derek@ximbiot.com>
30812
30813         * gnulib-tool (func_import): Fix reversed $symbolic logic.
30814
30815 2005-09-03  Simon Josefsson  <jas@extundo.com>
30816
30817         * gnulib-tool: Fix typo.
30818
30819 2005-09-03  Simon Josefsson  <jas@extundo.com>
30820
30821         * config/srclist.txt: Add glibc bug 1293.
30822
30823 2005-09-03  Derek Price  <derek@ximbiot.com>
30824
30825         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30826         From Larry Jones <lawrence.jones@ugs.com>.
30827
30828 2005-09-02  Simon Josefsson  <jas@extundo.com>
30829
30830         * modules/socklen: New file.
30831
30832 2005-09-02  Simon Josefsson  <jas@extundo.com>
30833
30834         * modules/havelib: New module.
30835
30836         * modules/gettext, modules/iconv, modules/lock, modules/readline:
30837         Use havelib.
30838
30839 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30840
30841         Check for arithmetic overflow when calculating sizes, to prevent
30842         some buffer-overflow issues.  These patches are conservative, in the
30843         sense that when I couldn't determine whether an overflow was possible,
30844         I inserted a run-time check.
30845         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30846         macros.
30847         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30848         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30849         (re_xnrealloc, re_x2nrealloc): New inline functions.
30850         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30851         parse_bracket_exp):
30852         (build_equiv_class, build_charclass): Check for arithmetic overflow
30853         in size expression calculations.
30854         * lib/regex_internal.c (re_string_realloc_buffers):
30855         (build_wcs_upper_buffer, re_node_set_add_intersect):
30856         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30857         (re_dfa_add_node, register_state): Likewise.
30858         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30859         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30860         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30861         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30862
30863 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30864
30865         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30866         m4/ulonglong.m4.  Problem reported by Martin Lambers.
30867
30868 2005-09-02  Bruno Haible  <bruno@clisp.org>
30869
30870         Support for lib vs. lib64 distinction on biarch platforms.
30871         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30872         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30874
30875 2005-09-02  Bruno Haible  <bruno@clisp.org>
30876
30877         * gnulib-tool (import): In the other first-use case, provide defaults
30878         as well.
30879
30880 2005-09-02  Bruno Haible  <bruno@clisp.org>
30881
30882         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30883         patches not yet found in the latest gettext release.
30884
30885 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30886
30887         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30888         to avoid a collision with bits/local_lim.h in glibc.
30889         All uses changed.  Problem reported by Dmitry V. Levin in
30890         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30891
30892         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30893         bugs in int versus size_t comparisons.
30894         (re_string_context_at): Fix bug where the code assumed that
30895         Idx is signed.
30896
30897         Use bool where appropriate.
30898         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30899         All callers changed.
30900         (calc_eclosure_iter): Likewise, for ROOT arg.
30901         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30902         (build_charclass_op): Likewise, for NON_MATCH arg.
30903         * lib/regex_internal.c (re_string_allocate, re_string_construct):
30904         (re_string_construct_common): Likewise, for ICASE arg.
30905         * lib/regexec.c (re_search_2_stub, re_search_stub):
30906         Likewise, for RET_LEN arg.
30907         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30908         (set_regs): Likewise, for FL_BACKTRACK arg.
30909         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30910         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30911         (calc_eclosure_iter, parse_bracket_exp):
30912         Use bool for internal variables that are booleans.
30913         * lib/regexec.c (re_search_internal, check_matching,
30914         proceed_next_node):
30915         (set_regs, build_sifted_states, sift_states_bkref):
30916         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30917         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30918         (find_collation_sequence_value):
30919         Likewise.
30920         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30921         (re_node_set_compare):
30922         Return bool, not int. All callers changed.
30923         * lib/regexec.c (check_halt_node_context, check_dst_limits):
30924         (build_trtable, check_node_accept): Likewise.
30925         * lib/regex_internal.h: Include stdbool.h.
30926
30927         Fix bugs uncovered when converting to bool.
30928         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30929         failure instead of charging ahead blindly.
30930         * lib/regex_internal.c (register_state): Likewise.
30931         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30932         for freeing internal storage.
30933         (group_nodes_into_DFA_states): Use unsigned int, not int, for
30934         bitset pieces used as boolean, to avoid undefined behavior
30935         on hosts that do int overflow checking.
30936
30937 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30938
30939         * config/srclist.txt: Add glibc bugs 1285-1287.
30940
30941 2005-09-01  Jim Meyering  <jim@meyering.net>
30942
30943         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30944         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30945         Require gl_STAT_MACROS, too.
30946
30947 2005-09-01  Bruno Haible  <bruno@clisp.org>
30948
30949         * gnulib-tool (import): In the first-use case, provide defaults.
30950
30951 2005-09-01  Bruno Haible  <bruno@clisp.org>
30952
30953         * gnulib-tool (func_import): Remove the .tmp files.
30954
30955 2005-09-01  Bruno Haible  <bruno@clisp.org>
30956
30957         * gnulib-tool (func_import): Fix handling of symbolic links.
30958
30959 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30960
30961         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30962         old glibc regex code mishandles strings longer than 2**31 bytes.
30963         This patch fixes this when the regex code is used in gnulib
30964         (i.e., outside glibc).
30965
30966         This patch should not affect the use of the regex code inside
30967         glibc.  No doubt this problem also needs to be handled for glibc
30968         as well, but the result will be an incompatible change to the
30969         glibc ABI, and the old ABI will have to be supported too.  That
30970         can be the the subject for another patch.
30971
30972         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30973         governing whether the rest of this patch is active.  By default,
30974         the macro is disabled and the patch has no effect.
30975         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
30976         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
30977         (struct re_pattern_buffer, re_search, re_search_2, re_match):
30978         (re_match_2, re_set_registers): Use the new types.
30979         * lib/regex_internal.h (Idx, re_hashval_t): New types.
30980         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
30981         New macros.
30982         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
30983         (re_string_context_at, bin_tree_t, re_dfastate_t):
30984         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
30985         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
30986         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
30987         (re_string_char_size_at, re_string_wchar_at):
30988         (re_string_elem_size_at):
30989         Use the new types and macros to port to 64-bit hosts.
30990         Use unsigned types for internal values, so that the code
30991         mostly works even for arrays larger than SSIZE_MAX.
30992         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
30993         (search_duplicated_node, calc_eclosure_iter, fetch_number):
30994         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
30995         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
30996         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
30997         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
30998         (calc_inveclosure, parse_dup_op, build_range_exp):
30999         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
31000         (fetch_number, create_token_tree, mark_opt_subexp):
31001         Likewise.
31002         * lib/regex_internal.c (re_string_construct_common,
31003         create_ci_newstate):
31004         (create_cd_newstate, re_string_allocate, re_string_construct):
31005         (re_string_realloc_buffers, build_wcs_upper_buffer):
31006         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31007         (re_string_reconstruct, re_string_peek_byte_case):
31008         (re_string_fetch_byte_case, re_string_context_at):
31009         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31010         (re_node_set_init_copy, re_node_set_add_intersect):
31011         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31012         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31013         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31014         (re_acquire_state, re_acquire_state_context, register_state):
31015         Likewise.
31016         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
31017         search_cur_bkref_entry):
31018         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
31019         (re_search_internal, re_search_2_stub, re_search_stub)
31020         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
31021         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
31022         (update_cur_sifted_state, check_dst_limits):
31023         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31024         (check_subexp_limits, sift_states_bkref, merge_state_array):
31025         (check_subexp_matching_top, get_subexp, get_subexp_sub):
31026         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
31027         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31028         (expand_bkref_cache, check_node_accept_bytes):
31029         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
31030         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
31031         (acquire_init_state_context, check_halt_node_context):
31032         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
31033         (sift_states_backward, clean_state_log_if_needed):
31034         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
31035         (find_recover_state, transit_state_sb, transit_state_mb):
31036         (transit_state_bkref, build_trtable, match_ctx_clean):
31037         Likewise.
31038         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
31039         to work around an assumption that REG_MISSING is negative.
31040
31041         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
31042         (seek_collating_symbol_entry) [defined _LIBC]:
31043         (lookup_collation_sequence_value) [defined _LIBC]:
31044         (build_range_exp, build_collating_symbol) [defined _LIBC]:
31045         Use prototypes rather than old-style function definitions.
31046         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
31047         (transit_state_sb) [0]:
31048         (find_collation_sequence_value) [defined _LIBC]: Likewise.
31049
31050         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
31051         rm_eo.
31052
31053         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
31054         (optimize_subexps, lower_subexp):
31055         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
31056         since the signed shift might overflow.  Use 1u<<31 instead.
31057         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31058         Likewise.
31059         * lib/regexec.c (check_dst_limits_calc_pos_1,
31060         check_subexp_matching_top): Likewise.
31061
31062         * lib/regcomp.c (optimize_subexps, lower_subexp):
31063         Use CHAR_BIT rather than 8, for clarity.
31064         * lib/regexec.c (check_dst_limits_calc_pos_1):
31065         (check_subexp_matching_top): Likewise.
31066         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
31067         have to worry about portability issues when shifting it left.
31068         Remove no-longer-needed test for table_size > 0.
31069         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
31070         in a word, as the resulting behavior is undefined.
31071         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
31072         in one case, a <= should have been an <, and in another case the
31073         whole test was missing.
31074         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
31075         the standard name CHAR_BIT.
31076         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
31077         this is not true on one's complement and signed-magnitude hosts.
31078
31079         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
31080         next_last_offset.
31081         (struct re_dfa_t): Remove unused member states_alloc.
31082         * lib/regcomp.c (init_dfa): Don't initialize unused members.
31083
31084 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31085
31086         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
31087         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
31088         and large-file glibc and in 32-bit large-file Solaris.
31089
31090 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31091
31092         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
31093         lengths fit in regoff_t; this isn't true if regoff_t is the same
31094         width as size_t.
31095         * lib/regex.c (re_search_internal): 5th arg is LAST_START
31096         (= START + RANGE) instead of RANGE.  This avoids overflow
31097         problems when regoff_t is the same width as size_t.
31098         All callers changed.
31099         (re_search_2_stub): Check for overflow when adding the
31100         sizes of the two strings.
31101         (re_search_stub): Check for overflow when adding START
31102         to RANGE; if it occurs, substitute the extreme value.
31103
31104 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31105
31106         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
31107
31108 2005-08-31  Jim Meyering  <jim@meyering.net>
31109
31110         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
31111         a pointer-to-const.
31112         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31113         (register_state): Likewise.
31114         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31115         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31116         (group_nodes_into_DFAstates): Likewise.
31117
31118 2005-08-31  Jim Meyering  <jim@meyering.net>
31119
31120         * check-module: Add a FIXME comment.
31121
31122 2005-08-31  Eric Blake  <ebb9@byu.net>
31123
31124         * modules/unistd-safer (Files): Add unistd--.h.
31125         * modules/stdio-safer (Files): Add stdio--.h.
31126
31127 2005-08-31  Derek Price  <derek@ximbiot.com>
31128
31129         * lib/getdelim.c (getdelim): Return EOF on EOF.
31130         Reported by Larry Jones <lawrence.jones@ugs.com>.
31131
31132 2005-08-31  Bruno Haible  <bruno@clisp.org>
31133
31134         Avoid unnecessary diffs in the generated lib/Makefile.am.
31135         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31136         the generated files.
31137         (func_import): Don't set cmd.
31138
31139 2005-08-31  Bruno Haible  <bruno@clisp.org>
31140
31141         * lib/strstr.c: Include <stddef.h>, for NULL.
31142         * lib/strcasestr.c: Likewise.
31143         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31144
31145 2005-08-31  Bruno Haible  <bruno@clisp.org>
31146
31147         * gnulib-tool: New option --macro-prefix.
31148         (func_import): Use macro_prefix.
31149         (import): Handle option --macro-prefix.
31150
31151 2005-08-31  Bruno Haible  <bruno@clisp.org>
31152
31153         * gnulib-tool (import): Rename most ac_* variables to cached_*.
31154         Also use new variables cached_lgpl, cached_libtool.
31155
31156 2005-08-31  Bruno Haible  <bruno@clisp.org>
31157
31158         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31159         always instantiating them.
31160
31161 2005-08-31  Bruno Haible  <bruno@clisp.org>
31162
31163         * gnulib-tool (func_import): Read the previous cached settings
31164         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31165         earlier added by gnulib but are now dropped. Warn when a gnulib file
31166         overwrites a non-gnulib file.
31167
31168 2005-08-31  Bruno Haible  <bruno@clisp.org>
31169
31170         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31171         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31172         projects that don't keep autogenerated files in CVS. Put into
31173         actioncmd only the specified modules, not the transitive closure.
31174
31175 2005-08-31  Bruno Haible  <bruno@clisp.org>
31176
31177         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
31178         Create directories that shall be filled.
31179         (import): Don't look for gl_* macros in configure.ac. Recurse across
31180         all directories containing a gnulib-cache.m4 files, if meaningful.
31181
31182 2005-08-31  Bruno Haible  <bruno@clisp.org>
31183
31184         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
31185         (import): Set seen_libtool when we see gl_LIBTOOL.
31186
31187 2005-08-31  Bruno Haible  <bruno@clisp.org>
31188
31189         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
31190         declaration macro definitions from generated gnulib.m4.
31191
31192 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
31193
31194         * lib/iconvme.h: Add prototype for iconv_alloc.
31195
31196 2005-08-29  Simon Josefsson  <jas@extundo.com>
31197
31198         * lib/iconvme.c: Fix errno.
31199
31200 2005-08-29  Bruno Haible  <bruno@clisp.org>
31201
31202         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
31203         that it works when the directory contains spaces.
31204
31205 2005-08-29  Bruno Haible  <bruno@clisp.org>
31206
31207         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
31208
31209 2005-08-29  Bruno Haible  <bruno@clisp.org>
31210
31211         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
31212         Emit more advice.
31213
31214 2005-08-29  Bruno Haible  <bruno@clisp.org>
31215         and Stepan Kasal  <kasal@ucw.cz>
31216
31217         * check-module: If more parameters are given, check each of them
31218         separately; add more exceptions, as noted by Jim Meyering.
31219         (check_module): New procedure.
31220         (%exempt_header): Now contains all exceptions.
31221
31222 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
31223
31224         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
31225
31226 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31227
31228         * lib/iconvme.c: Split iconv_string into iconv_alloc.
31229
31230 2005-08-28  Bruno Haible  <bruno@clisp.org>
31231
31232         * m4/gnulib-tool.m4: New file.
31233
31234 2005-08-27  Jim Meyering  <jim@meyering.net>
31235
31236         * modules/unistd-safer (Files): Add pipe-safer.c.
31237         * modules/fcntl-safer (Files): Add creat-safer.c.
31238
31239 2005-08-27  Jim Meyering  <jim@meyering.net>
31240
31241         * m4/stdlib-safer.m4: New file.  From coreutils.
31242         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
31243         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
31244         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
31245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
31246         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
31247
31248 2005-08-27  Jim Meyering  <jim@meyering.net>
31249
31250         * lib/fopen-safer.c: Merge minor changes from coreutils.
31251         * lib/dup-safer.c: Likewise.
31252         * lib/fd-safer.c: Likewise.
31253
31254         Merge from coreutils.
31255         * lib/stdio--.h: New file.
31256         * lib/stdlib--.h: New file.
31257         * lib/mkstemp-safer.c: New file.
31258
31259         GNU tar needs these.
31260         * lib/pipe-safer.c: New file.
31261         * lib/creat-safer.c: New file.
31262         * lib/fcntl--.h (creat): Define to creat_safer.
31263         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31264         * lib/unistd--.h (pipe): Define to pipe_safer.
31265         * lib/unistd-safer.h: Declare pipe_safer.
31266
31267 2005-08-26  Simon Josefsson  <jas@extundo.com>
31268
31269         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31270         Haible <bruno@clisp.org>.
31271
31272 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
31273
31274         * lib/regex_internal.h: Remove all references to
31275         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31276         or better.
31277         (bitset_not, bitset_merge, bitset_not_merge):
31278         (bitset_mask, re_string_allocate, re_string_construct):
31279         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31280         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31281         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31282         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31283         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31284         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31285         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31286         (re_acquire_state_context):
31287         Remove unnecessary forward decls.
31288         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31289         Put __attribute at function definition,
31290         now that the function decl has been removed.
31291         * lib/regex_internal.c (re_string_peek_byte_case):
31292         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31293         Likewise.
31294
31295 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
31296
31297         * m4/regex.m4: Add AC_PREREQ(2.50).
31298         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31299
31300 2005-08-25  Simon Josefsson  <jas@extundo.com>
31301
31302         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31303         __fsetlocking.
31304
31305 2005-08-25  Simon Josefsson  <jas@extundo.com>
31306
31307         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
31308         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
31309         GLIBC specific code.
31310
31311 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31312
31313         Make regex safe for g++.  This fixes one real bug (an "err"
31314         that should have been "*err").  g++ problem reported by
31315         Sam Steingold.
31316         * lib/regex_internal.h (re_calloc): New macro, consistent with
31317         re_malloc etc.  All callers of calloc changed to use re_calloc.
31318         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31319         not int.  All callers changed.
31320         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31321         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31322         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31323         (find_recover_state): Change "err" to "*err"; this fixes what
31324         appears to be a real bug.
31325         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31326         versus int.
31327
31328 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31329
31330         * modules/regex (Depends-on): Add malloc, since the code
31331         assumes that !malloc(0) means failure.
31332
31333 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31334
31335         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31336
31337         alloca modernization/simplification for regex.
31338         * lib/regex.c: Remove portability cruft for alloca.  This no longer
31339         needs to be at the start of the file, and can be moved into
31340         regex_internal.h and simplified.
31341         * lib/regex_internal.h: Include <alloca.h>.
31342         (__libc_use_alloca) [!defined _LIBC]: New macro.
31343         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31344         now works outside glibc.
31345
31346 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31347
31348         * config/srclist.txt: Add glibc bugs 1241, 1245.
31349
31350 2005-08-25  Jim Meyering  <jim@meyering.net>
31351
31352         * lib/open-safer.c: Include <config.h>.
31353         Otherwise, we'd lose LARGEFILE support in any file using
31354         e.g. "fcntl--.h"
31355
31356 2005-08-25  Bruno Haible  <bruno@clisp.org>
31357
31358         * m4/minmax.m4: Require autoconf 2.52.
31359         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31360         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31361         alternatives of translit over the alphabet.
31362         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31363
31364 2005-08-24  Simon Josefsson  <jas@extundo.com>
31365
31366         * tests/test-getpass.c: New file.
31367
31368 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31369
31370         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31371         for GNU regex features.
31372
31373 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31374
31375         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31376         * lib/regex.h (regerror): Likewise.
31377
31378         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31379         requires this.  (The code never needed it.)
31380
31381         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31382         All uses of recently-renamed identifiers changed to use the new,
31383         POSIX-compliant names.  The code will build and run just fine
31384         without these changes, but it's better to eat our own dog food
31385         and use the standard-conforming names.
31386
31387         * lib/regex.h: Fix a multitude of POSIX name space violations.
31388         These changes have an effect only for programs that define
31389         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31390         do not change anything for programs compiled in the normal way.
31391         Also, there is no effect on the ABI.
31392
31393         (_REGEX_SOURCE): New macro.
31394         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31395         defined and _GNU_SOURCE is not; this fixes a name space violation.
31396
31397         Rename the following macros to obey POSIX requirements.
31398         The old names are still visible as macros if _REGEX_SOURCE is defined.
31399         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31400         RE_BACKSLASH_ESCAPE_IN_LISTS.
31401         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31402         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31403         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31404         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31405         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31406         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31407         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31408         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31409         (REG_INTERVALS): renamed from RE_INTERVALS.
31410         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31411         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31412         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31413         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31414         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31415         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31416         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31417         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31418         RE_UNMATCHED_RIGHT_PAREN_ORD.
31419         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31420         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31421         (REG_DEBUG): renamed from RE_DEBUG.
31422         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31423         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
31424         unusual, since we can't clash with the POSIX REG_ICASE.
31425         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31426         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31427         (REG_NO_SUB): renamed from RE_NO_SUB.
31428         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31429         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31430         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31431         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31432         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31433         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31434         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31435         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31436         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31437         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31438         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31439         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31440         RE_SYNTAX_POSIX_MINIMAL_BASIC.
31441         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31442         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31443         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31444         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
31445         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31446         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31447         (REG_FIXED): Renamed from REGS_FIXED.
31448         (REG_NREGS): Renamed from RE_NREGS.
31449
31450         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31451         of other REG_* macros, since POSIX says the user is allowed to
31452         #undef these macros selectively.
31453
31454         (reg_errcode_t): Update comment stating what other tables need
31455         to be consistent.
31456
31457         Rename the following enum values to obey POSIX requirements.
31458         The old names are still visible as macros.
31459         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
31460         is not defined, since GNU is supposed to be a superset of POSIX as
31461         much as possible, and since we want reg_errcode_t to be a signed
31462         type for implementation consistency.
31463         (_REG_NOERROR): Renamed from REG_NOERROR.
31464         (_REG_NOMATCH): Renamed from REG_NOMATCH.
31465         (_REG_BADPAT): Renamed from REG_BADPAT.
31466         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31467         (_REG_ECTYPE): Renamed from REG_ECTYPE.
31468         (_REG_EESCAPE): Renamed from REG_EESCAPE.
31469         (_REG_ESUBREG): Renamed from REG_ESUBREG.
31470         (_REG_EBRACK): Renamed from REG_EBRACK.
31471         (_REG_EPAREN): Renamed from REG_EPAREN.
31472         (_REG_EBRACE): Renamed from REG_EBRACE.
31473         (_REG_BADBR): Renamed from REG_BADBR.
31474         (_REG_ERANGE): Renamed from REG_ERANGE.
31475         (_REG_ESPACE): Renamed from REG_ESPACE.
31476         (_REG_BADRPT): Renamed from REG_BADRPT.
31477         (_REG_EEND): Renamed from REG_EEND.
31478         (_REG_ESIZE): Renamed from REG_ESIZE.
31479         (_REG_ERPAREN): Renamed from REG_ERPAREN.
31480         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31481         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31482         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31483         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31484
31485         (_REG_RE_NAME, _REG_RM_NAME): New macros.
31486         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
31487         changed.  But support the old name if the new one is not defined
31488         and if _REGEX_SOURCE.
31489
31490         Change the following member names in struct re_pattern_buffer.
31491         The old names are still supported if !_REGEX_SOURCE.
31492         The new names are always supported, regardless of _REGEX_SOURCE.
31493         (re_buffer): Renamed from buffer.
31494         (re_allocated): Renamed from allocated.
31495         (re_used): Renamed from used.
31496         (re_syntax): Renamed from syntax.
31497         (re_fastmap): Renamed from fastmap.
31498         (re_translate): Renamed from translate.
31499         (re_can_be_null): Renamed from can_be_null.
31500         (re_regs_allocated): Renamed from regs_allocated.
31501         (re_fastmap_accurate): Renamed from fastmap_accurate.
31502         (re_no_sub): Renamed from no_sub.
31503         (re_not_bol): Renamed from not_bol.
31504         (re_not_eol): Renamed from not_eol.
31505         (re_newline_anchor): Renamed from newline_anchor.
31506
31507         Change the following member names in struct re_registers.
31508         The old names are still supported if !_REGEX_SOURCE.
31509         The new names are always supported, regardless of _REGEX_SOURCE.
31510         (rm_num_regs): Renamed from num_regs.
31511         (rm_start): Renamed from start.
31512         (rm_end): Renamed from end.
31513
31514         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31515         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31516         Prepend __ to parameter names.
31517
31518         Undo yesterday's changes.
31519
31520 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31521
31522         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31523         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
31524         lib/regex.c.
31525
31526 2005-08-24  Jim Meyering  <jim@meyering.net>
31527
31528         Sync from coreutils.
31529         * m4/fcntl-safer.m4: New file.
31530
31531         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31532         and object files for this module.
31533
31534 2005-08-24  Jim Meyering  <jim@meyering.net>
31535
31536         Sync from coreutils.
31537         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31538
31539 2005-08-24  Jim Meyering  <jim@meyering.net>
31540
31541         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31542         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31543
31544 2005-08-24  Jim Meyering  <jim@meyering.net>
31545
31546         * modules/fcntl-safer: New module.
31547         * modules/fts (Depends-on): Add fcntl-safer.
31548         * MODULES.html.sh (File descriptor based Input/Output):
31549         Add fcntl-safer.
31550
31551 2005-08-24  Bruno Haible  <bruno@clisp.org>
31552
31553         Support for unit test modules.
31554         * modules/README: Mention tests modules.
31555         * modules/TEMPLATE-TESTS: New file.
31556         * gnulib-tool: New options --extract-tests-module, --with-tests and
31557         --tests-base (unused for the moment).
31558         (testsbase, inctests): New variables.
31559         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31560         (func_verify_module): Exclude TEMPLATE-TESTS.
31561         (func_verify_nontests_module, func_verify_tests_module): New functions.
31562         (func_get_dependencies): Add implicit dependency for tests modules.
31563         (func_get_tests_module): New function.
31564         (func_modules_transitive_closure): When --with-tests was specified,
31565         include the unit tests as well, unless explicitly avoided.
31566         (func_emit_lib_Makefile_am): Ignore the tests modules here.
31567         (func_emit_tests_Makefile_am): New function.
31568         (func_create_testdir): When --with-tests was specified, emit a
31569         tests/ directory.
31570         * MODULES.html.sh (Future developments): Update.
31571
31572 2005-08-24  Bruno Haible  <bruno@clisp.org>
31573
31574         * modules/tls-tests: New file.
31575         * tests/test-tls.c: New file, from GNU gettext.
31576
31577 2005-08-24  Bruno Haible  <bruno@clisp.org>
31578
31579         * modules/lock-tests: New file.
31580         * tests/test-lock.c: New file, from GNU gettext.
31581
31582 2005-08-24  Bruno Haible  <bruno@clisp.org>
31583
31584         * lib/lock.h: Add multiple inclusion guard.
31585         * lib/tls.h: Add multiple inclusion guard.
31586
31587 2005-08-24  Bruno Haible  <bruno@clisp.org>
31588
31589         * gnulib-tool: Add support for the --aux-dir option to
31590         --create-testdir, --create-megatestdir, --test, --megatest.
31591         (func_create_testdir, func_create_megatestdir): Optionally emit a
31592         AC_CONFIG_AUX_DIR directive.
31593         (create-testdir, create-megatestdir, test, megatest): Provide a
31594         default value for $auxdir.
31595
31596 2005-08-24  Bruno Haible  <bruno@clisp.org>
31597
31598         * gnulib-tool (import): Use compound statement instead of subshell
31599         where possible.
31600
31601 2005-08-24  Bruno Haible  <bruno@clisp.org>
31602
31603         * gnulib-tool (import): Change --aux-dir default to "build-aux".
31604
31605 2005-08-24  Bruno Haible  <bruno@clisp.org>
31606
31607         * gnulib-tool (func_version): Update.
31608
31609 2005-08-24  Bruno Haible  <bruno@clisp.org>
31610
31611         * gnulib-tool (func_import, func_create_testdir,
31612         func_create_megatestdir): Quote all autoconf macro arguments.
31613
31614 2005-08-24  Bruno Haible  <bruno@clisp.org>
31615
31616         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31617         option --force, because --force causes the aclocal.m4 of each
31618         subdirectory to be newer than the corresponding config.h.in.
31619
31620 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31621
31622         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31623         All contents moved to gl_REGEX.
31624         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31625         assume that it does.
31626
31627 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31628
31629         * lib/regex.h (REG_NOSYS)
31630         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31631         Define, since POSIX requires it as of 2001.
31632         (_REG_ENOSYS)
31633         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31634         New private symbol, used to keep the enum signed in all cases.
31635         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31636         Youngman in
31637         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31638
31639         * lib/regex_internal.c (re_string_skip_chars, register_state):
31640         (calc_state_hash):
31641         Remove forward decls; no longer needed now that we use prototypes.
31642         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31643         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31644         (clean_state_log_if_needed): Likewise.
31645
31646 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31647
31648         * config/srclist.txt: Add glibc bugs 1231-1233.
31649
31650 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31651
31652         Fix problems reported by Sam Steingold in
31653         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31654         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31655         assumed that reg_errcode_t is a signed type, which is not
31656         necessarily true if _XOPEN_SOURCE is not defined.
31657         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31658         since some compilers warn about it otherwise.
31659
31660 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31661
31662         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31663         (init_word_char, create_initial_state, duplicate_node_closure):
31664         (fetch_token, peek_token_bracket, build_range_exp):
31665         (build_collating_symbol): Remove forward decls; no longer needed
31666         now that we use prototypes.
31667
31668         * lib/regcomp.c:
31669         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31670         (re_compile_fastmap_iter, regcomp, regerror, regfree):
31671         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31672         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31673         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31674         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31675         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31676         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31677         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31678         (build_range_exp, build_collating_symbol, parse_bracket_exp):
31679         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31680         (build_charclass, build_charclass_op, fetch_number, create_tree):
31681         (create_token_tree, mark_opt_subexp, duplicate_tree):
31682         Use prototypes rather than old-style definitions.
31683
31684         * lib/regex_internal.c:
31685         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31686         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31687         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31688         (re_string_reconstruct, re_string_peek_byte_case):
31689         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31690         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31691         (re_node_set_init_copy, re_node_set_add_intersect):
31692         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31693         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31694         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31695         (re_acquire_state, re_acquire_state_context, register_state):
31696         (create_ci_newstate, create_cd_newstate, free_state):
31697         Likewise.
31698         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31699         re_search_2):
31700         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31701         (re_search_internal, prune_impossible_nodes):
31702         (acquire_init_state_context, check_matching, static):
31703         (check_halt_node_context, check_halt_state_context, proceed_next_node):
31704         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31705         (update_regs, sift_states_backward, build_sifted_states):
31706         (clean_state_log_if_needed, merge_state_array):
31707         (update_cur_sifted_state, add_epsilon_src_nodes):
31708         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31709         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31710         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31711         (find_recover_state, check_subexp_matching_top, transit_state_mb):
31712         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31713         (check_arrival, check_arrival_add_next_nodes):
31714         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31715         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31716         (check_node_accept_bytes, check_node_accept, extend_buffers):
31717         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31718         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31719         (sift_ctx_init):
31720         Likewise.
31721
31722         * lib/regex_internal.h:
31723         (re_string_allocate, re_string_construct, re_string_reconstruct):
31724         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31725         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31726         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31727         (re_string_context_at, re_string_peek_byte_case):
31728         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31729         is defined, since we now use prototypes always.
31730
31731         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
31732         C89 or better.  All uses removed.
31733
31734 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31735
31736         * config/srclist.txt: Add glibc bugs 1220-1227.
31737
31738 2005-08-20  Jim Meyering  <jim@meyering.net>
31739
31740         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31741         of unused local, dfa.
31742
31743 2005-08-20  Bruno Haible  <bruno@clisp.org>
31744
31745         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31746
31747 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31748
31749         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31750         (re_node_set_insert_last, re_dfa_add_node):
31751         Rename local variables to avoid GCC shadowing warnings.
31752
31753 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31754
31755         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31756         [defined lint]: Suppress bogus uninitialized-variable warnings.
31757
31758         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31759         and let the caller return REG_ESPACE if out of space.  This
31760         removes an uninitialied-variable warning with GCC 4.0.1, and also
31761         avoids taking the address of a local variable.  All callers
31762         changed.
31763
31764 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31765
31766         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31767         $LIBCSRC/posix/regexec.c.
31768         Add glibc bug 1217 for regcomp.c.
31769
31770 2005-08-19  Jim Meyering  <jim@meyering.net>
31771
31772         * lib/regexec.c (proceed_next_node): Redo local variables to
31773         avoid GCC shadowing warnings.
31774
31775 2005-08-18  Bruno Haible  <bruno@clisp.org>
31776
31777         * lib/strstr.c (strstr): Fix return value in multibyte case.
31778         * lib/strcasestr.c (strcasestr): Likewise.
31779
31780 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31781
31782         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
31783
31784 2005-08-17  Jim Meyering  <jim@meyering.net>
31785
31786         Make the %s format (seconds since the epoch) work for a negative
31787         number and when used with a zero-padded field width, e.g. %015s.
31788
31789         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31790         label so that it precedes the code to set `digits'.  Otherwise,
31791         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
31792         print `00-22'.  Now, it prints `-0022', as it should.
31793
31794 2005-08-17  Bruno Haible  <bruno@clisp.org>
31795
31796         * modules/strstr (Files): Add m4/mbrtowc.m4.
31797         (Depends-on): Add mbuiter.
31798
31799 2005-08-17  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/strcasestr: New file.
31802         * MODULES.html.sh (String handling, based on ANSI C 89): Add
31803         strcasestr.
31804
31805 2005-08-17  Bruno Haible  <bruno@clisp.org>
31806
31807         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31808
31809 2005-08-17  Bruno Haible  <bruno@clisp.org>
31810
31811         * modules/mbuiter: New file.
31812         * MODULES.html.sh (Extended multibyte and wide character utilities):
31813         Add mbuiter.
31814
31815 2005-08-17  Bruno Haible  <bruno@clisp.org>
31816
31817         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31818         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31819
31820 2005-08-17  Bruno Haible  <bruno@clisp.org>
31821
31822         * m4/strcasestr.m4: New file.
31823
31824 2005-08-17  Bruno Haible  <bruno@clisp.org>
31825
31826         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31827         * lib/strstr.c: Completely rewritten, with multibyte locale support.
31828
31829 2005-08-17  Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/strcasestr.h: New file.
31832         * lib/strcasestr.c: New file.
31833
31834 2005-08-17  Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/strcasecmp.c: Use mbuiter.h.
31837
31838 2005-08-17  Bruno Haible  <bruno@clisp.org>
31839
31840         * lib/mbuiter.h: New file.
31841
31842 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31843
31844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31845         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
31846         and gl_GETOPT are both invoked via different paths (as happens
31847         with GNU tar CVS because it uses both argp and getopt), the former
31848         wins.
31849
31850 2005-08-16  Bruno Haible  <bruno@clisp.org>
31851
31852         * modules/tls: New file.
31853         * MODULES.html.sh (Multithreading): Add tls.
31854
31855 2005-08-16  Bruno Haible  <bruno@clisp.org>
31856
31857         * modules/strnlen1: New file.
31858         * MODULES.html.sh (String handling): Add strnlen1.
31859
31860 2005-08-16  Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/strcase (Files): Add m4/mbrtowc.m4.
31863         (Depends-on): Add strnlen1, mbchar.
31864
31865 2005-08-16  Bruno Haible  <bruno@clisp.org>
31866
31867         * modules/mbiter: New file.
31868         * MODULES.html.sh (Extended multibyte and wide character utilities):
31869         Add mbiter.
31870
31871 2005-08-16  Bruno Haible  <bruno@clisp.org>
31872
31873         * modules/mbfile: New file.
31874         * MODULES.html.sh (Extended multibyte and wide character utilities):
31875         Add mbfile.
31876
31877 2005-08-16  Bruno Haible  <bruno@clisp.org>
31878
31879         * modules/mbchar: New file.
31880         * MODULES.html.sh (Extended multibyte and wide character utilities):
31881         New section.
31882
31883 2005-08-16  Bruno Haible  <bruno@clisp.org>
31884
31885         * m4/tls.m4: New file, from GNU gettext.
31886
31887 2005-08-16  Bruno Haible  <bruno@clisp.org>
31888
31889         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31890         always.
31891         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31892
31893 2005-08-16  Bruno Haible  <bruno@clisp.org>
31894
31895         * m4/mbiter.m4: New file.
31896
31897 2005-08-16  Bruno Haible  <bruno@clisp.org>
31898
31899         * m4/mbfile.m4: New file.
31900
31901 2005-08-16  Bruno Haible  <bruno@clisp.org>
31902
31903         * m4/mbchar.m4: New file.
31904
31905 2005-08-16  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/tls.h: New file, from GNU gettext.
31908         * lib/tls.c: New file, from GNU gettext.
31909
31910 2005-08-16  Bruno Haible  <bruno@clisp.org>
31911
31912         * lib/strnlen1.h: New file.
31913         * lib/strnlen1.c: New file.
31914
31915 2005-08-16  Bruno Haible  <bruno@clisp.org>
31916
31917         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31918         (mbi_init): Update.
31919         (mbi_avail, mbi_advance): Let the iteration end before the terminating
31920         NUL byte, not after it.
31921
31922 2005-08-16  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/strcase.h (strcasecmp): Add note in comments.
31925         * lib/strncasecmp.c: Use code from strcasecmp.c.
31926         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31927         (strcasecmp): Work correctly in multibyte locales.
31928
31929 2005-08-16  Bruno Haible  <bruno@clisp.org>
31930
31931         * lib/mbiter.h: New file.
31932
31933 2005-08-16  Bruno Haible  <bruno@clisp.org>
31934
31935         * lib/mbfile.h: New file.
31936
31937 2005-08-16  Bruno Haible  <bruno@clisp.org>
31938
31939         * lib/mbchar.h: New file.
31940         * lib/mbchar.c: New file.
31941
31942 2005-08-16  Bruno Haible  <bruno@clisp.org>
31943
31944         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31945         the valid ones. Makes the comparison operations transitive:
31946         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31947         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31948
31949 2005-08-15  Simon Josefsson  <jas@extundo.com>
31950
31951         * modules/ssize_t (License): Change to 'unlimited'.
31952
31953         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31954
31955 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31956
31957         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31958         Add comments for each pending glibc patch.
31959
31960 2005-08-15  Bruno Haible  <bruno@clisp.org>
31961
31962         * lib/regex.h (__restrict_arr): Don't define to __restrict if
31963         __cplusplus is defined.
31964
31965 2005-08-14  Jim Meyering  <jim@meyering.net>
31966
31967         Sync from coreutils.
31968
31969         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31970         Use the hash-table-based cycle-detection code not just when
31971         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31972         Reported by James Youngman in
31973         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31974         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
31975         FTS_TIGHT_CYCLE_CHECK.
31976         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
31977         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
31978         once again.
31979         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
31980         * lib/fts.c (fd_safer): Remove decl.
31981         Include fcntl--.h rather than unistd-safer.h
31982         (fts_safe_changedir): Don't call fd_safer; no longer needed
31983         now that we include fcntl--.h.
31984
31985 2005-08-12  Simon Josefsson  <jas@extundo.com>
31986
31987         * modules/getndelim2: Use ssize_t module.
31988         * modules/getnline: Likewise.
31989         * modules/safe-read: Likewise.
31990         * modules/xreadlink: Likewise.
31991
31992         * modules/ssize_t: New file.
31993
31994 2005-08-12  Simon Josefsson  <jas@extundo.com>
31995
31996         * m4/readline.m4: Look for termcap, curses or ncurses if required.
31997
31998 2005-08-12  Simon Josefsson  <jas@extundo.com>
31999
32000         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32001         ssize_t.
32002
32003 2005-08-12  Simon Josefsson  <jas@extundo.com>
32004
32005         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
32006         readline, getdelim and check_version.
32007         (Support for systems lacking ISO C 99: Sizes of integer types):
32008         Add size_max.
32009
32010 2005-08-12  Bruno Haible  <bruno@clisp.org>
32011
32012         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
32013
32014 2005-08-11  Simon Josefsson  <jas@extundo.com>
32015
32016         * modules/readline: New file.
32017
32018         * modules/strnlen (Files): Add strnlen.h.
32019
32020 2005-08-11  Simon Josefsson  <jas@extundo.com>
32021
32022         * m4/readline.m4: New file.
32023
32024 2005-08-11  Simon Josefsson  <jas@extundo.com>
32025
32026         * lib/readline.h, readline.c: New file.
32027
32028 2005-08-11  Simon Josefsson  <jas@extundo.com>
32029
32030         * doc/gnulib.texi (Initial import, Finishing touches): Mention
32031         gl_AVOID.
32032
32033 2005-08-11  Bruno Haible  <bruno@clisp.org>
32034
32035         * lib/strnlen.h (strnlen): Change parameter name to match comment.
32036
32037 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
32038
32039         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
32040
32041 2005-08-10  Simon Josefsson  <jas@extundo.com>
32042
32043         * tests/test-iconvme.c: New file.
32044
32045 2005-08-10  Simon Josefsson  <jas@extundo.com>
32046
32047         * m4/strnlen.m4: New file.
32048
32049         * m4/strndup.m4: Don't check for strnlen declaration, done in
32050         strnlen.m4.
32051
32052 2005-08-10  Simon Josefsson  <jas@extundo.com>
32053
32054         * lib/strndup.c: Use strnlen.h.
32055
32056         * lib/strnlen.h: New file.
32057
32058 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32059
32060         * README: Typos.
32061
32062 2005-08-02  Simon Josefsson  <jas@extundo.com>
32063
32064         * modules/readline: New file.
32065
32066 2005-08-02  Simon Josefsson  <jas@extundo.com>
32067
32068         * modules/getdelim: New file.
32069
32070         * modules/getline: Rewrite, don't use getndelim2.
32071
32072 2005-08-02  Simon Josefsson  <jas@extundo.com>
32073
32074         * m4/getline.m4: Separate out getdelim stuff into separate module.
32075
32076         * m4/getdelim.m4: New file.
32077
32078 2005-08-02  Simon Josefsson  <jas@extundo.com>
32079
32080         * lib/getline.h, getline.c: Rewrite.
32081
32082         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
32083
32084 2005-07-31  Bruno Haible  <bruno@clisp.org>
32085
32086         * lib/lock.h (gl_lock_initializer): New macro.
32087         (gl_lock_define_initialized): Use it.
32088         (gl_rwlock_initializer): New macro.
32089         (gl_rwlock_define_initialized): Use it.
32090         (gl_recursive_lock_initializer): New macro.
32091         (gl_recursive_lock_define_initialized): Use it.
32092
32093 2005-07-30  Karl Berry  <karl@gnu.org>
32094
32095         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
32096         Report from Ben Pfaff, regarding getopt.
32097
32098 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
32099
32100         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
32101         normal way.
32102         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
32103         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
32104         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
32105         (gl_GETOPT): Use the new macros.  Most of the implementation
32106         is moved to the new macros.  This is for programs like Emacs
32107         that don't want all the functionality of gl_GETOPT.
32108
32109 2005-07-26  Bruno Haible  <bruno@clisp.org>
32110
32111         * m4/lock.m4: Update from GNU gettext.
32112
32113 2005-07-26  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/lock.h: Update from GNU gettext.
32116         * lib/lock.c: Update from GNU gettext.
32117
32118 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32119
32120         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32121         obsolescent AC_TRY_RUN.  Include the default includes files, for
32122         'exit'.
32123
32124 2005-07-24  Bruno Haible  <bruno@clisp.org>
32125
32126         * modules/visibility: New file.
32127         * MODULES.html.sh (Misc): Add visibility.
32128
32129 2005-07-24  Bruno Haible  <bruno@clisp.org>
32130
32131         * m4/visibility.m4: New file.
32132
32133 2005-07-24  Bruno Haible  <bruno@clisp.org>
32134
32135         * doc/visibility.texi: New file.
32136
32137 2005-07-22  Bruno Haible  <bruno@clisp.org>
32138
32139         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32140         $(ALLOCA_H), redundant through BUILT_SOURCES.
32141         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32142         redundant through BUILT_SOURCES.
32143         * modules/byteswap (Makefile.am): Remove explicit dependency on
32144         $(BYTESWAP_H), redundant through BUILT_SOURCES.
32145         * modules/fnmatch (Makefile.am): Remove explicit dependency on
32146         $(FNMATCH_H), redundant through BUILT_SOURCES.
32147         * modules/getopt (Makefile.am): Remove explicit dependency on
32148         $(GETOPT_H), redundant through BUILT_SOURCES.
32149         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32150         redundant through BUILT_SOURCES.
32151         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32152         redundant through BUILT_SOURCES.
32153         * modules/stdbool (Makefile.am): Remove explicit dependency on
32154         $(STDBOOL_H), redundant through BUILT_SOURCES.
32155         * modules/stdint (Makefile.am): Remove explicit dependency on
32156         $(STDINT_H), redundant through BUILT_SOURCES.
32157         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32158         Remove explicit dependency on $(SYSEXITS_H).
32159         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32160
32161 2005-07-18  Simon Josefsson  <jas@extundo.com>
32162
32163         * lib/check-version.c (check_version): Accept identical versions too.
32164
32165 2005-07-18  Bruno Haible  <bruno@clisp.org>
32166
32167         * modules/lock: New file.
32168         * MODULES.html.sh (Multithreading): New section.
32169
32170 2005-07-18  Bruno Haible  <bruno@clisp.org>
32171
32172         * m4/lock.m4: New file, from GNU gettext.
32173
32174 2005-07-18  Bruno Haible  <bruno@clisp.org>
32175
32176         * lib/lock.h: New file, from GNU gettext.
32177         * lib/lock.c: New file, from GNU gettext.
32178
32179 2005-07-18  Bruno Haible  <bruno@clisp.org>
32180
32181         * lib/lock.h (gl_once_t): New type.
32182         (gl_once_define, gl_once): New macros.
32183         * lib/lock.c (fresh_once): New variable.
32184         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
32185         functions.
32186
32187 2005-07-16  Simon Josefsson  <jas@extundo.com>
32188
32189         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
32190         workaround, suggested by Bruno.
32191
32192 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32193
32194         * modules/xalloc (Depends-on): Add xalloc-die.
32195         * modules/xvasprintf (Depends-on): Add xalloc-die.
32196
32197 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32198
32199         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
32200         with a minor change.
32201
32202 2005-07-15  Bruno Haible  <bruno@clisp.org>
32203
32204         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
32205         When using lib/poll.c, define poll as rpl_poll.
32206
32207 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
32208
32209         * modules/argp (Depends-on): Remove unlocked-io.
32210
32211 2005-07-14  Derek Price  <derek@ximbiot.com>
32212
32213         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
32214         for glob symlink bug.
32215
32216 2005-07-14  Bruno Haible  <bruno@clisp.org>
32217
32218         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
32219         Instead, test for *_unlocked function declarations directly.
32220
32221 2005-07-11  Simon Josefsson  <jas@extundo.com>
32222
32223         * modules/size_max: New file.
32224
32225         * modules/xsize: Depend on size_max module for size_max.m4.
32226
32227 2005-07-11  Simon Josefsson  <jas@extundo.com>
32228
32229         * lib/size_max.h: New file.
32230
32231 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32232
32233         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
32234         copyright symbol and the year.
32235         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
32236         (version_etc_va): Use parameterized copyright notice.
32237         Reword to conform to the current GNU coding standards.
32238
32239 2005-07-11  Karl Berry  <karl@gnu.org>
32240
32241         * doc/gnulib.texi (Quoting): new node.
32242         (Initial import): more info, from Patrice.
32243
32244 2005-07-11  Bruno Haible  <bruno@clisp.org>
32245
32246         * gnulib-tool (func_usage): Document option --avoid.
32247         (Command line options): Handle --avoid.
32248         (func_acceptable): New function.
32249         (func_modules_transitive_closure): Use it.
32250
32251 2005-07-11  Bruno Haible  <bruno@clisp.org>
32252
32253         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32254         Reported by Jim Meyering.
32255
32256 2005-07-10  Bruno Haible  <bruno@clisp.org>
32257
32258         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32259         Needed when size_t is smaller than 'unsigned int'.
32260         Reported by Paul Eggert.
32261
32262 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32263
32264         * modules/argp (Depends-on): Add unlocked-io
32265
32266 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32267
32268         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32269         block of defines.
32270
32271 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32272
32273         * config/srclist.txt: Comment out regcomp.c, since we have a porting
32274         fix now.
32275
32276 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
32277         and Paul Eggert  <eggert@cs.ucla.edu>
32278
32279         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32280         in wint_t, not wchar_t.  Remove now-unnecessary cast.
32281
32282 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32283
32284         * modules/regex (Files): Add lib/regex_internal.c,
32285         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32286         (Depends-on): Add extensions.
32287         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32288
32289 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32290
32291         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32292         pathconf.
32293         * m4/same.m4 (gl_SAME): Likewise.
32294         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32295
32296         * m4/regex.m4: Adjust to new libc regex implementation.
32297         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32298         all the .c and .h parts of (the new) regex.
32299         Quote the m4 stuff better.
32300         Check for RE_ICASE bug of old gnulib.
32301         Check for REG_STARTEND of recent libc.
32302         Rename local variables from jm_* to gl_*.
32303         Quote operand of "test -f".
32304         Say "recent enough" version of libc, not "version 2".
32305         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32306         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
32307         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32308         Remove check for btowc, isascii.
32309         Require AM_LANGINFO_CODESET.
32310
32311 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32312
32313         * lib/regex.c, regex.h: Sync from libc.
32314         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32315         * lib/regexec.c:
32316         New files, synced from libc, except that regex_internal.h
32317         currently has a small porting fix.
32318
32319 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32320
32321         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32322         regex_internal.c, regexec.c.
32323         Add regex_internal.h too, but as a comment, since the libc version
32324         is currently broken in gnulib mode.
32325
32326 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32327
32328         Support programs like Emacs that use gnulib but not gettext.
32329         * MODULES.html.sh (Internationalization functions): Add gettext-h.
32330         * modules/gettext-h: New file.
32331         * modules/gettext (Files): Remove lib/gettext.h.
32332         (Depends-on): Add gettext-h.
32333         (Makefile.am): Remove lib_SOURCES.
32334         * modules/argmatch, modules/c-stack, modules/closeout:
32335         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32336         * modules/execute, modules/file-type, modules/getaddrinfo:
32337         * modules/getopt, modules/human, modules/javacomp:
32338         * modules/javaexec, modules/mkdir-p, modules/obstack:
32339         * modules/openat, modules/pagealign_alloc, modules/pipe:
32340         * modules/quotearg, modules/regex, modules/rpmatch:
32341         * modules/unicodeio, modules/userspec, modules/version-etc:
32342         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32343         * modules/xsetenv:
32344         Depend on gettext-h, not gettext.
32345
32346 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32347
32348         * gnulib-tool (func_import): Add support for 'public domain' license.
32349         * modules/alloca, modules/atexit, modules/memmove:
32350         Now public domain, not GPL.
32351         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32352         * modules/realloc, modules/strerror, modules/strtod:
32353         Now LGPL, not GPL.
32354
32355 2005-07-05  Bruno Haible  <bruno@clisp.org>
32356
32357         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32358         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
32364
32365 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32366
32367         Remove the dependency of the strftime module on the tzset module.
32368         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32369         gl_FUNC_TZSET_CLOBBER.
32370
32371 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32372
32373         Remove the dependency of the strftime module on the tzset module.
32374         * lib/strftime.c (my_strftime)
32375         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32376         Copy the input structure, to work around some of the bug with
32377         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
32378         Solaris releases, you should also use the tzset module, but we won't
32379         require it as a dependency any more since we don't want LGPLed code
32380         to depend on GPLed code.
32381
32382 2005-07-02  Jim Meyering  <jim@meyering.net>
32383
32384         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32385         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32386         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32387         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32388
32389 2005-07-02  Jim Meyering  <jim@meyering.net>
32390
32391         * lib/backupfile.c (backup_args): Change a `0' to NULL.
32392
32393 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32394
32395         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32396         declares only 'struct timespec;' (!).
32397
32398 2005-07-01  Jim Meyering  <jim@meyering.net>
32399
32400         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32401         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32402         * lib/save-cwd.c, tempname.c:
32403         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32404         and don't include <sys/file.h>).
32405
32406 2005-06-29  Jim Meyering  <jim@meyering.net>
32407
32408         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32409         type name.  Use the variable name instead.
32410         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32411         Likewise.
32412
32413 2005-06-28  Simon Josefsson  <jas@extundo.com>
32414
32415         * modules/check-version (Files): Add check-version.m4.
32416
32417 2005-06-28  Simon Josefsson  <jas@extundo.com>
32418
32419         * m4/check-version.m4: New file, suggested by Jim Meyering
32420         <jim@meyering.net>.
32421
32422 2005-06-28  Simon Josefsson  <jas@extundo.com>
32423
32424         * lib/check-version.h, lib/check-version.c: New files.
32425
32426 2005-06-28  Simon Josefsson  <jas@extundo.com>
32427
32428         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
32429         collision with global variable.  Better indentation.  Don't
32430         increment buffer pointer beyond buffer end.  Based on comments
32431         from Paul Eggert <eggert@cs.ucla.edu>.
32432
32433         * lib/base64.h: Indent.
32434
32435 2005-06-28  Simon Josefsson  <jas@extundo.com>
32436
32437         * doc/gnulib.texi (Library version handling): New section.
32438
32439 2005-06-28  Jim Meyering  <jim@meyering.net>
32440
32441         * check-module (find_included_lib_files): Hard-code another
32442         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32443         but modules/fts-lgpl (correctly) does not list those files.
32444
32445         * modules/canonicalize (Files): Add lib/pathmax.h.
32446
32447 2005-06-25  Simon Josefsson  <jas@extundo.com>
32448
32449         * modules/check-version: New file.
32450
32451 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
32452
32453         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32454         initializer of struct addrinfo, as an indication that we don't
32455         care how many members the structure has.
32456
32457 2005-06-24  Derek Price  <derek@ximbiot.com>
32458         and Bruno Haible  <bruno@clisp.org>
32459
32460         Remove stat module & update lstat.
32461         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32462         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32463         * m4/stat.m4: Remove this file.
32464
32465 2005-06-24  Derek Price  <derek@ximbiot.com>
32466         and Bruno Haible  <bruno@clisp.org>
32467
32468         Remove stat module & update lstat.
32469         * lib/stat.c: Remove this file...
32470         (slash_aware_lstat): ...moving this content and its support...
32471         * lib/lstat.c (rpl_lstat): ...into here.
32472         * lib/lstat.h: New file.
32473
32474 2005-06-24  Derek Price  <derek@ximbiot.com>
32475         and Bruno Haible  <bruno@clisp.org>
32476
32477         Remove stat module & update lstat.
32478         * config/srclist.txt (libc sources): Remove stat.
32479
32480 2005-06-24  Derek Price  <derek@ximbiot.com>
32481         and Bruno Haible  <bruno@clisp.org>
32482
32483         Remove stat module & update lstat.
32484         * MODULES.html.sh (stat): Remove.
32485         * MODULES.html: Regenerated.
32486         * modules/lstat (Description): Correct function name.
32487         (Files): Add "lstat.h".
32488         (Depends-on): Remove stat, add xalloc, stat-macros.
32489         * modules/stat: Remove this file.
32490         (Include): Add "lstat.h", remove <sys/stat.h>.
32491
32492 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32493
32494         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
32495         (ranged_convert): Don't save conversion in a temporary struct.
32496         This causes a warning with GCC 4.0.0, and anyway in the typical
32497         case it's not worth the extra 100 bytes or so of code.
32498         (ranged_convert, __mktime_internal): When calling a function via a
32499         pointer P, use P () rather than (*P) (), as we now assume C89 or
32500         better.
32501
32502 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32503
32504         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32505         "who -r" failed to give output.  Problem reported by Tim Waugh.
32506
32507         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32508         (xcalloc): Use it to avoid needless tests.
32509         Problem reported by Jim Meyering.
32510
32511 2005-06-20  Derek Price  <derek@ximbiot.com>
32512
32513         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32514         unnecessary for Autoconfs > 2.59c.
32515
32516 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32517
32518         * lib/argp.h (__option_is_short): Check upper limit of
32519         __key. Isprint() requires its argument to have the value
32520         of an unsigned char or EOF.
32521
32522 2005-06-16  Jim Meyering  <jim@meyering.net>
32523
32524         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32525         when either N or S is zero.
32526
32527 2005-06-16  Derek Price  <derek@ximbiot.com>
32528
32529         * m4/bison.m4: Declare YACC & YFLAGS precious.
32530
32531 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
32532
32533         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32534         multibyte string or pattern, fall back on unibyte matching.
32535         Problem reported by James Youngman.
32536
32537 2005-06-08  Bruno Haible  <bruno@clisp.org>
32538
32539         * modules/csharpcomp: New file.
32540         * MODULES.html.sh (C#): Add csharpcomp.
32541
32542 2005-06-08  Bruno Haible  <bruno@clisp.org>
32543
32544         * m4/csharpcomp.m4: New file, from GNU gettext.
32545
32546 2005-06-08  Bruno Haible  <bruno@clisp.org>
32547
32548         * lib/csharpcomp.h: New file, from GNU gettext.
32549         * lib/csharpcomp.c: New file, from GNU gettext.
32550         * lib/csharpcomp.sh.in: New file, from GNU gettext.
32551
32552 2005-06-08  Bruno Haible  <bruno@clisp.org>
32553
32554         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32555         warning on mingw.
32556
32557 2005-06-07  Derek Price  <derek@ximbiot.com>
32558
32559         Sync from CVS.
32560         * lib/glob_.h: Indent nested #ifdef.
32561
32562 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32563
32564         Sync from coreutils.
32565         Use "file name" when talking about file names, instead of "filename"
32566         or "path", as per the GNU coding standards.
32567         * lib/mkdir-p.c: Renamed from makepath.c.
32568         (make_dir_parents): Renamed from make_path.  All callers changed.
32569         * lib/mkdir-p.h: Likewise.  All includers changed.
32570         * lib/filenamecat.c: Renamed from path-concat.c.
32571         (file_name_concat): Renamed from path_concat.  All callers changed.
32572         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32573         * lib/filenamecat.h: Likewise.  All includers changed.
32574         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32575         in comments or local variable names.
32576         * lib/basename.c: Likewise.
32577         * lib/canonicalize.c, canonicalize.h: Likewise.
32578         * lib/dirname.c, dirname.h: Likewise.
32579         * lib/euidaccess.c: Likewise.
32580         * lib/exclude.c: Likewise
32581         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32582         * lib/fsusage.c, fsuage.h: Likewise.
32583         * lib/fts.c, fts_.h: Likewise.
32584         * lib/getcwd.c: Likewise.
32585         * lib/getloadavg.c: Likewise.
32586         * lib/mkstemp.c: Likewise.
32587         * lib/mountlist.c, mountlist.h: Likewise.
32588         * lib/openat.c, openat.h: Likewise.
32589         * lib/readlink-stub.c: Likewise.
32590         * lib/readutmp.c, readutmp.h: Likewise.
32591         * lib/rename.c: Likewise.
32592         * lib/rmdir.c: Likewise.
32593         * lib/same.c: Likewise.
32594         * lib/savedir.c: Likewise.
32595         * lib/stripslash.c: Likewise.
32596         * lib/tempname.c: Likewise.
32597         * lib/xreadlink.c: Likewise.
32598         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32599         All uses changed.
32600         * lib/exclude.h: Likewise.
32601
32602         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32603         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32604         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32605         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32606         * lib/pathmax.h: Include <limits.h> unconditionally, since other
32607         files have been getting away with it for years (MORE/BSD 4.3
32608         is extinct now).
32609         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32610         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32611
32612         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32613         Define to 256, not 255, as per modern POSIX.
32614
32615 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32616
32617         Sync from coreutils.
32618         Use "file name" when talking about file names, instead of "filename"
32619         or "path", as per the GNU coding standards.
32620         * MODULES.html.sh: mkdir-p renamed from makepath.
32621         filenamecat renamed from path-concat.
32622         * modules/filenamecat: Renamed from modules/path-concat.
32623         (Files): filenamecat.h and filenamecat.c renamed from
32624         path-concat.h and path-concat.c.
32625         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32626         (Include): filenamecat.h, not path-concat.h.
32627         * modules/mkdir-p: Renamed from modules/makepath.
32628         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32629         makepath.c.
32630         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32631         (Include): mkdir-p.h, not makepath.h.
32632
32633 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32634
32635         Sync from coreutils.
32636         * m4/mkdir-p.m4: Renamed from makepath.m4.
32637         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
32638         Rename files from makepath.c to mkdir-p.c, and from
32639         makepath.h to mkdir-p.h.
32640         * m4/filenamecat.m4: Renamed from path-concat.m4.
32641         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
32642         Rename files from path-concat.c to filenamecat.c,
32643         and from path-concat.h to filenamecat.h.
32644         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32645         "file name" in local variables or comments.
32646         * m4/rename.m4: Likewise.
32647
32648 2005-06-01  Bruno Haible  <bruno@clisp.org>
32649
32650         * modules/csharpexec: New file.
32651         * MODULES.html.sh (C#): New section.
32652
32653 2005-06-01  Bruno Haible  <bruno@clisp.org>
32654
32655         * m4/csharp.m4: New file, from GNU gettext.
32656         * m4/csharpexec.m4: New file, from GNU gettext.
32657
32658 2005-06-01  Bruno Haible  <bruno@clisp.org>
32659
32660         * lib/csharpexec.h: New file, from GNU gettext.
32661         * lib/csharpexec.c: New file, from GNU gettext.
32662         * lib/csharpexec.sh.in: New file, from GNU gettext.
32663
32664 2005-05-31  Derek Price  <derek@ximbiot.com>
32665             Paul Eggert  <eggert@cs.ucla.edu>
32666
32667         Sync from cvs.
32668         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32669
32670 2005-05-31  Derek Price  <derek@ximbiot.com>
32671             Paul Eggert  <eggert@cs.ucla.edu>
32672
32673         Sync from cvs.
32674         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32675
32676 2005-05-29  Derek Price  <derek@ximbiot.com>
32677
32678         * config/srclist.txt (glob_.h, glob.c): Add these files.
32679
32680 2005-05-29  Derek Price  <derek@ximbiot.com>
32681
32682         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32683         * modules/glob: New file.
32684         * modules/getlogin_r: Add link to POSIX spec in description.
32685
32686 2005-05-29  Derek Price  <derek@ximbiot.com>
32687             Paul Eggert  <eggert@cs.ucla.edu>
32688
32689         * m4/glob.m4: New file.
32690
32691 2005-05-29  Derek Price  <derek@ximbiot.com>
32692             Paul Eggert  <eggert@cs.ucla.edu>
32693
32694         * lib/glob_.h, lib/glob.c: New files.
32695
32696 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32697
32698         * modules/fts (Files): Remove m4/inttypes-pri.m4.
32699         * modules/fts-lgpl (Depends-on): Remove gettext.
32700
32701 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32702
32703         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32704         and don't require gt_INTTYPES_PRI.
32705
32706 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32707
32708         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32709
32710         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32711         the configuration hassle isn't worth it.
32712         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32713         (LONGEST_MODIFIER, PRIuMAX): Remove.
32714
32715 2005-05-27  Bruno Haible  <bruno@clisp.org>
32716
32717         * lib/getlogin_r.h: Remove second include of <stddef.h>.
32718
32719 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32720
32721         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32722         _POSIX_PTHREAD_SEMANTICS for Solaris.
32723
32724 2005-05-25  Derek Price  <derek@ximbiot.com>
32725
32726         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32727
32728 2005-05-25  Derek Price  <derek@ximbiot.com>
32729             Paul Eggert  <eggert@cs.ucla.edu>
32730
32731         * modules/getlogin_r, m4/getlogin_r.m4: New files.
32732         * lib/getlogin_r.c, getlogin_r.h: New files.
32733
32734 2005-05-25  Bruno Haible  <bruno@clisp.org>
32735             Derek Price  <derek@ximbiot.com>
32736
32737         * lib/getlogin_r.h: Simplify API documentation.
32738
32739 2005-05-23  Derek Price  <derek@ximbiot.com>
32740
32741         * modules/minmax (Files): Add m4/minmax.m4.
32742         (configure.ac): Add gl_MINMAX.
32743
32744 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32745
32746         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32747         so that unistd-safer.h (GPL'ed code) need not be included.
32748
32749 2005-05-22  Bruno Haible  <bruno@clisp.org>
32750
32751         * m4/minmax.m4: New file.
32752         Based on a patch by Derek Price <derek@ximbiot.com>.
32753
32754 2005-05-22  Bruno Haible  <bruno@clisp.org>
32755
32756         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32757         (INT64_MIN): Fix definition.
32758         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32759
32760         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32761         NEED_SIGNED_INT_TYPES.
32762
32763         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32764         HAVE_SYSTEM_INTTYPES.
32765
32766 2005-05-22  Bruno Haible  <bruno@clisp.org>
32767
32768         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32769         Also include <sys/param.h> if it defines MIN, MAX.
32770         Based on a patch by Derek Price <derek@ximbiot.com>.
32771
32772 2005-05-21  Jim Meyering  <jim@meyering.net>
32773
32774         * modules/fts (Files): Add m4/inttypes-pri.m4.
32775         (Depends-on): Add lstat and remove gettext.  Alphabetize.
32776
32777 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32778
32779         New fts module.
32780         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32781         (setup_dir, free_dir): New functions.
32782         (enter_dir, leave_dir): Define trivial
32783         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
32784         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
32785         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32786         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32787         Move to fts-cycle.c.
32788         (fts_open): Use setup_dir.
32789         (fts_close): Use free_dir.
32790         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32791         This adds a label and some gotos, but the alternatives were messier.
32792         Check for memory allocation failure when entering a dir.
32793         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32794         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32795         (FTS): New member fts_cycle, that is a union that contains the
32796         old active_dir_ht and cycle_state.  All uses changed to mention
32797         fts_cycle.ht and fts_cycle.state.
32798         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32799         fts.c, with the following changes:
32800         (setup_dir, free_dir): New functions.
32801         (enter_dir): Now returns bool.  Return true if successful, false
32802         if memory exhausted.  All callers changed.
32803         Do not bother partly cleaning up on
32804         memory allocation failure; that is free_dir's job.
32805         However, free ad if hash_insert fails, to avoid memory leak.
32806         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32807         fts->fts_options to see which union member to use.
32808
32809 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32810
32811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32812         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32813
32814 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32815
32816         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32817
32818 2005-05-20  Jim Meyering  <jim@meyering.net>
32819
32820         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32821         Now a macro, to pacify GCC.
32822
32823 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32824
32825         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32826         of -1.
32827
32828 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32829
32830         * lib/chown.c (rpl_chown): Return -1 on failure.
32831
32832 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32833
32834         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32835         Don't check for stddef.h.
32836         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32837         don't use its results.
32838         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32839         since we include them unconditionally.  Don't require
32840         AM_STDBOOL_H, since stdbool is a prerequisite.
32841         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32842         since we assume C89 or better.
32843         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32844         as we don't use their results.
32845         Don't check for fchdir, memmove, memset, strrchr, as we use
32846         them unconditionally.
32847         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32848         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32849
32850 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32851
32852         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32853         Include <stddef.h> unconditionally, since we assume C89 now.
32854         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32855         * lib/fts.c: Include fts_.h first, to check interface.
32856         Do not include intprops.h; no longer needed.
32857         Include cycle-check.h and hash.h, since fts_.h no longer does.
32858         Remove unnecessary casts of closedir to void.
32859         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32860         decide whether to decrement nlinks.
32861         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32862         (FTS): Use struct hash_table * instead of Hash_table, so that
32863         we no longer need to include hash.h here.
32864
32865 2005-05-18  Jim Meyering  <jim@meyering.net>
32866
32867         * modules/dirfd (License): Change to LGPL.  Most of the code
32868         is already in the public domain.
32869
32870 2005-05-18  Jim Meyering  <jim@meyering.net>
32871
32872         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32873         Reported by Yoann Vandoorselaere.
32874
32875 2005-05-17  Jim Meyering  <jim@meyering.net>
32876
32877         * m4/fts.m4: New file, from coreutils.
32878
32879 2005-05-17  Jim Meyering  <jim@meyering.net>
32880
32881         * lib/fts.c, lib/fts_.h: New files, from coreutils.
32882
32883 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32884
32885         Sync from coreutils.
32886         * m4/unlinkdir.m4: New file.
32887
32888 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32889
32890         Sync from coreutils.
32891         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32892         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32893         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32894         White space changes only.
32895         * lib/makepath.c (make_path): Port to hosts where leading "//" is
32896         special.
32897         * lib/yesno.c: Include getline.h, not ctype.h.
32898         (yesno): Don't remove leading white space; POSIX doesn't allow it.
32899         Use getline to remove arbitrary restriction on response length.
32900
32901 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32902
32903         * config/srclist-update: Spell out "Street" in FSF postal
32904         mail address; this is the style the FSF seems to prefer.
32905
32906         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32907         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32908         this updates FSF postal mail address.
32909
32910         Sync from coreutils.
32911         * modules/unlinkdir: New file.
32912         * modules/yesno (Depends-on): Add getline.
32913         * MODULES.html.sh (File system functions): Add unlinkdir.
32914
32915 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32916
32917         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32918         lib/strsep.h:
32919         Change the initial comment to refer to GPL, not LGPL.
32920         gnulib-tool will change it to LGPL as needed.
32921
32922         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32923         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32924         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32925         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32926         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32927         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32928         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32929         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32930         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32931         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32932         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32933         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32934         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32935         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32936         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32937         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32938         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32939         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32940         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32941         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32942         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32943         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32944         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32945         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32946         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32947         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32948         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32949         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32950         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32951         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32952         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32953         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32954         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32955         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32956         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32957         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32958         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32959         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32960         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32961         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32962         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32963         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32964         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32965         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32966         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32967         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32968         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32969         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32970         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32971         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32972         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32973         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32974         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
32975         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
32976         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
32977         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
32978         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
32979         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
32980         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
32981         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
32982         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
32983         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
32984         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
32985         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
32986         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
32987         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
32988         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
32989         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
32990         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
32991         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
32992         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
32993         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
32994         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
32995         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
32996         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
32997         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
32998         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
32999         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
33000         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
33001         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
33002         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
33003         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
33004         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
33005         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
33006         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
33007         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
33008         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
33009         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
33010         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
33011         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
33012         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
33013         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
33014         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
33015         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
33016         lib/yesno.c, lib/yesno.h:
33017         Update FSF postal mail address.
33018
33019 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33020
33021         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
33022         tests/test-memmem.c, tests/test-stpncpy.c:
33023         Update FSF postal mail address.
33024
33025 2005-05-13  Bruno Haible  <bruno@clisp.org>
33026
33027         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
33028         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
33029         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
33030         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
33031         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
33032         Add support for 64-bit integers in the MSVC compiler.
33033
33034 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33035
33036         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
33037
33038 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
33039
33040         * gnulib-tool (func_import): Sort and uniquify recommended includes.
33041
33042 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33043
33044         * doc/getdate.texi (General date syntax): Don't say that date
33045         date --iso-8601=ns generates acceptable dates; it doesn't yet.
33046         Problem reported by Nic Ferrier.
33047
33048 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33049
33050         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
33051         specified in ai_socktype. Fix invalid ai_protocol
33052         check. ai_protocol is usually set to 0 or depending on
33053         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
33054         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
33055         ai_socktype / ai_protocol in the returned addrinfo structure.
33056
33057 2005-05-10  Simon Josefsson  <jas@extundo.com>
33058
33059         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
33060         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33061
33062 2005-05-10  Karl Berry  <karl@gnu.org>
33063
33064         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
33065         (from http://www.gnu.org/licenses).
33066         * doc/COPYING.LIB: also rename to COPYING.LESSER.
33067         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
33068         fdl.texi suffices.
33069
33070 2005-05-10  Karl Berry  <karl@gnu.org>
33071
33072         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
33073         (COPYING.DOC): remove.
33074
33075         * config/srclist-update: new FSF address.
33076
33077 2005-05-10  Derek Price  <derek@ximbiot.com>
33078
33079         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
33080         possible.
33081
33082 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33083             Bruno Haible  <bruno@clisp.org>
33084
33085         * modules/inet_ntop: New file.
33086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33087         inet_ntop.
33088
33089 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33090             Bruno Haible  <bruno@clisp.org>
33091
33092         * m4/inet_ntop.m4: New file.
33093
33094 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33095             Bruno Haible  <bruno@clisp.org>
33096
33097         * lib/inet_ntop.h: New file.
33098         * lib/inet_ntop.c: New file, from glibc with modifications.
33099
33100 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
33101
33102         * modules/time_r (License): Change to LGPL.
33103         * modules/extensions (License): Change to LGPL.  Actually,
33104         the license is more permissive than that, but currently gnulib-tool
33105         doesn't know how to handle more-permissive licenses.
33106
33107         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
33108         Problem reported by Dave Love.
33109
33110 2005-05-08  Jim Meyering  <jim@meyering.net>
33111
33112         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33113         blank.
33114
33115 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33116
33117         * modules/argmatch (Depends-on): Add stdbool.
33118         * modules/backupfile (Depends-on): Likewise.
33119         * modules/chdir-long (Depends-on): Likewise.
33120         * modules/closeout (Depends-on): Likewise.
33121         * modules/cycle-check (Depends-on): Likewise.
33122         * modules/dirname (Depends-on): Likewise.
33123         * modules/fnmatch (Depends-on): Likewise.
33124         * modules/fsusage (Depends-on): Likewise.
33125         * modules/fwriteerror (Depends-on): Likewise.
33126         * modules/getcwd (Depends-on): Likewise.
33127         * modules/getloadavg (Depends-on): Likewise.
33128         * modules/hard-locale (Depends-on): Likewise.
33129         * modules/makepath (Depends-on): Likewise.
33130         * modules/mountlist (Depends-on): Likewise.
33131         * modules/nanosleep (Depends-on): Likewise.
33132         * modules/posixtm (Depends-on): Likewise.
33133         * modules/quotearg (Depends-on): Likewise.
33134         * modules/readtokens (Depends-on): Likewise.
33135         * modules/readtokens0 (Depends-on): Likewise.
33136         * modules/readutmp (Depends-on): Likewise.
33137         * modules/save-cwd (Depends-on): Likewise.
33138         * modules/strftime (Depends-on): Likewise.
33139         * modules/userspec (Depends-on): Likewise.
33140         * modules/utimecmp (Depends-on): Likewise.
33141         * modules/xgetcwd (Depends-on): Likewise.
33142         * modules/xnanosleep (Depends-on): Likewise.
33143         * modules/xstrtod (Depends-on): Likewise.
33144         * modules/yesno (Depends-on): Likewise.
33145
33146 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33147
33148         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33149         needless checks.
33150
33151 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33152
33153         Merge from coreutils.  Among other things,
33154         add bulletproofing for cases where stdin, stdout, or stderr are closed.
33155         * lib/fd-safer.c: New file.
33156         * lib/fcntl-safer.h, open-safer.c: Remove.
33157         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33158         * lib/dup-safer.c: Include unistd-safer.h first.
33159         Don't include errno.h.
33160         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33161         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33162         * lib/file-type.c: Rely on file-type.h change.
33163         * lib/getloadavg.c: Include unistd-safer.h.
33164         (getloadavg): Use safer open.
33165         * lib/getusershell.c: Include "stdio-safer.h".
33166         (getusershell): Use safer fopen.
33167         * lib/long-options.c (long_options): Use NULL rather than 0.
33168         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33169         'free'.
33170         * lib/modechange.c: Likewise.
33171         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33172         (MODE_DONE): New constant.
33173         (struct mode_change): Remove 'next' member.
33174         (make_node_op_equals): New function; like the old one of the
33175         same name, except it allocates an array.
33176         (mode_compile, mode_create_from_ref): Use it.
33177         (mode_compile): Allocate result as an array, not a linked list.
33178         Parse octal string ourself, so that we catch mistakes like "+0".
33179         (mode_adjust): Arg is an array, not a linked list.
33180         * lib/modechange.c: Include stat-macros.h, xalloc.h.
33181         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
33182         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
33183         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
33184         Remove.  This is now stat-macros.h's job.
33185         (talloc): Remove.  All callers replaced by xalloc, so that
33186         our invokers don't have to worry about reporting memory failures.
33187         (make_node_op_equals): Remove.
33188         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33189         New constants.
33190         (struct mode_change): Moved here from modechange.h.
33191         (mode_append_entry): Remove.
33192         (mode_compile): Remove MASKED_OPS arg, since it encouraged
33193         apps to have incorrect behavior.  Use simpler algorithm for head
33194         and tail.  Don't futz with umask; that's now the job of mode_adjust.
33195         Detect more invalid usages rather than having somewhat-random behavior.
33196         Don't insert an "a=" action, as that leads to incorrect behavior.
33197         (mode_compile, mode_create_from_ref): Return NULL on error instead
33198         of an enum, since now there's only one way to have an error.  All
33199         callers changed.
33200         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
33201         at the correct time.  Simplify calculation of "+u" and its ilk.
33202         Don't mishandle "+X".
33203         (mode_free): Remove "register" and localize decls.
33204         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33205         (struct mode_change): Move to modechange.c; callers don't
33206         need to see this stuff.
33207         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
33208         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
33209         (mode_change, mode_adjust): Reflect the new signatures noted above.
33210         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
33211         that might redefine system include files.
33212         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
33213         (my_usleep): Use NULL rather than (void *) 0.
33214         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
33215         Use siginterrupt to specify that system calls should be interrupted.
33216         (rpl_nanosleep): Move initialization of suspended closer to call of
33217         my_usleep.
33218         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
33219         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
33220         (desirable_utmp_entry): New function.
33221         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
33222         using x2nrealloc, to simplify logic.
33223         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
33224         size calculation.  Do not assume utmp file is a regular file.
33225         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
33226         (READ_UTMP_CHECK_PIDS): New constant.
33227         * lib/save-cwd.c: Include unistd-safer.h.
33228         (save_cwd): Use fd_safer.
33229         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
33230         [!_LIBC] Include "stat-macros.h" instead.
33231         * lib/unistd-safer.h (fd_safer): New decl.
33232
33233 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33234
33235         * modules/getloadavg (Depends-on): Add unistd-safer.
33236         * modules/getusershell (Depends-on): Add stdio-safer.
33237         * modules/lstat (Depends-on): Remove xalloc.
33238         * modules/mkstemp (Depends-on): Add stat-macros.
33239         * modules/modechange (Depends-on): Remove xstrtol.
33240         Add stat-macros, xalloc.
33241         * modules/save-cwd (Depends-on): Add unistd-safer.
33242         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
33243         * modules/unistd-safer (Files): Add lib/fd-safer.c
33244         (Makefile.am): Remove lib_SOURCES.
33245
33246         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
33247         Remove fcntl-safer; unistd-safer supersedes it.
33248
33249 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33250
33251         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33252         AC_HEADER_STAT.
33253         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33254         (gl_PREREQ_CHOWN): Remove.
33255         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33256         it.  Don't require AC_HEADER_STAT.
33257         (gl_PREREQ_LSTAT): Remove.
33258         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33259         Don't require AC_HEADER_STAT.
33260         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33261         (gl_PREREQ_RMDIR): Remove.
33262         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33263         mention stat-macros.h or AC_HEADER_STAT, since we'll make
33264         the stat-macros module a prerequisite.
33265         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33266         * m4/filemode.m4 (gl_FILEMODE): Likewise.
33267         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33268         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33269         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33270         variable names.
33271         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33272         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
33273         variable prefixes.
33274         * m4/fcntl-safer.m4: Remove.
33275         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33276         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33277         Invoke gl_PREREQ_FD_SAFER.
33278         (gl_PREREQ_FD_SAFER): New macro.
33279         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33280         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33281         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33282         Remove duplicate call to AC_LIBOBJ(readutmp).
33283         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
33284
33285         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33286         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
33287
33288 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * MODULES.html.sh (Misc): Add byteswap.
33291
33292 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33293
33294         * modules/getcwd (Depends-on): Add extensions.
33295         * modules/openat (Depends-on): Likewise.
33296
33297 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33298
33299         * modules/byteswap: New file.
33300
33301 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33302
33303         * m4/byteswap.m4: New file.
33304
33305 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33306
33307         * lib/byteswap_.h: New file.
33308
33309 2005-04-25  Karl Berry  <karl@gnu.org>
33310
33311         * m4/gettext.m4: Update from GNU gettext 0.14.4.
33312
33313 2005-04-25  Albert Chin  <china@thewrittenword.com>
33314
33315         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33316         Toolkit C bug.
33317
33318 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
33319
33320         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33321         (func_ln_if_changed) Remove forcibly for no error message
33322         in case file does not exist.
33323
33324 2005-04-19  Simon Josefsson  <jas@extundo.com>
33325
33326         * gnulib-tool (Options): Make --symlink mean --symbolic.
33327
33328 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
33329
33330         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
33331
33332 2005-04-16  Simon Josefsson  <jas@extundo.com>
33333
33334         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33335
33336 2005-04-15  Simon Josefsson  <jas@extundo.com>
33337
33338         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33339
33340 2005-04-15  Simon Josefsson  <jas@extundo.com>
33341
33342         * gnulib-tool: Rename --symlink to --symbolic.
33343
33344 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
33345
33346         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33347         symbolic links to files instead of copying/moving.  Add --aux-dir,
33348         specifying directory relative --dir where auxiliary build tools
33349         are placed.
33350
33351 2005-04-14  Bruno Haible  <bruno@clisp.org>
33352
33353         * modules/allocsa (License): Change to LGPL.
33354         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33355
33356 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33357
33358         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33359         that "UTC +1 second" continues to work.  Problem reported
33360         by Dmitry V. Levin.
33361         (relunit_snumber): New rule.
33362         (relunit): Use it.
33363
33364 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33365
33366         * lib/getdate.y (universal_time_zone_table): New constant.
33367         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33368         universal_time_zone_table.
33369         (lookup_zone): Prefer universal_time_zone_table to
33370         local_time_zone_table, so that "GMT" time stamps are allowed in
33371         London during the summer.  Problem reported by Ian Abbott.
33372
33373 2005-04-12  Jim Meyering  <jim@meyering.net>
33374
33375         * lib/human.c (humblock): Set *options even when returning due to
33376         xstrtoumax conversion failure.  Thanks to a used-uninitialized
33377         warning from gcc-4.
33378
33379 2005-04-09  Jim Meyering  <jim@meyering.net>
33380
33381         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33382         -Wuninitialized: initialize tm0.tm_year.
33383
33384 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33385
33386         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33387         count, since there's no maximum.  All uses changed.
33388         Add member dsts_seen.
33389         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33390         not being INT_MAX.
33391         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33392         Use pc_rels_seen to decide whther a date is absolute.
33393
33394         * lib/getdate.y (number): Don't overwrite year.
33395         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33396         check.
33397
33398 2005-04-02  Simon Josefsson  <jas@extundo.com>
33399
33400         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33401         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33402
33403 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
33404
33405         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33406         where no absolute path name can be longer than PATH_MAX.
33407
33408 2005-03-27  Jim Meyering  <jim@meyering.net>
33409
33410         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33411
33412 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
33413
33414         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33415         "one's complement" -> "ones' complement" in comment, as per Knuth.
33416         "value of type" -> "type or expression" in comment.
33417         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33418
33419 2005-03-26  Jim Meyering  <jim@meyering.net>
33420
33421         Comment nits.
33422         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33423         Correct typos: s/or/of/.
33424
33425 2005-03-26  Jim Meyering  <jim@meyering.net>
33426
33427         * modules/check-include-files: Move to ../ and rename to...
33428         * check-module: ...this.
33429
33430 2005-03-25  Jim Meyering  <jim@meyering.net>
33431
33432         * modules/xvasprintf (Files): Add xalloc.h.
33433
33434 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33435
33436         * modules/gettext (Files): config/config.rpath ->
33437         build-aux/config.rpath
33438         * modules/iconv (Files): Likewise.
33439         Problem reported by Oskar Liljeblad.
33440
33441 2005-03-23  Jim Meyering  <jim@meyering.net>
33442
33443         * modules/check-include-files: New script to check for
33444         missing dependencies, multiple includes, etc.
33445
33446         * modules/c-strtold (Depends-on): Add xalloc.
33447         * modules/c-strtod (Depends-on): Add xalloc.
33448         * modules/hash (Depends-on): Add xalloc.
33449         (Files): Remove lib/xalloc.h.
33450
33451         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33452         * modules/userspec (Files): Add lib/inttostr.h.
33453
33454 2005-03-23  Jim Meyering  <jim@meyering.net>
33455
33456         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33457
33458 2005-03-22  Jim Meyering  <jim@meyering.net>
33459
33460         * modules/stat-macros: New module.
33461         * modules/canonicalize, modules/euidaccess, modules/file-type,
33462         * modules/filemode, modules/lchown, modules/makepath,
33463         * modules/rmdir, modules/stat: Depend on new stat-macros module
33464         rather than listing lib/stat-macros.h manually.
33465         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33466
33467 2005-03-22  Jim Meyering  <jim@meyering.net>
33468
33469         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33470
33471 2005-03-22  Bruno Haible  <bruno@clisp.org>
33472
33473         * config/srclist.txt: Replace target directory 'config' with
33474         'build-aux'.
33475         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33476         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33477         ../build-aux/.
33478
33479 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33480
33481         * modules/chdir-long (Depends-on): Add mempcpy.
33482
33483         * modules/acl, modules/backupfile, modules/c-strtod,
33484         modules/c-strtold, modules/canon-host, modules/canonicalize,
33485         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33486         modules/exclude, modules/exitfail, modules/file-type,
33487         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33488         modules/getdate, modules/getline, modules/getpagesize,
33489         modules/getpass, modules/getugroups, modules/group-member,
33490         modules/hard-locale, modules/hash, modules/human, modules/idcache,
33491         modules/inttostr, modules/long-options, modules/makepath,
33492         modules/md5, modules/memcasecmp, modules/memcoll,
33493         modules/modechange, modules/mountlist, modules/path-concat,
33494         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33495         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33496         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33497         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33498         modules/strftime, modules/strndup, modules/strverscmp,
33499         modules/timespec, modules/unlocked-io, modules/userspec,
33500         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33501         modules/yesno:
33502         Remove lib_SOURCES line from Makefile.am section, as this is now
33503         done automatically by the corresponding Autoconf macro.
33504
33505 2005-03-21  Jim Meyering  <jim@meyering.net>
33506
33507         Changes imported from coreutils.
33508
33509         * lib/cycle-check.c: Don't include xalloc.h.
33510
33511         * lib/path-concat.c: Don't include assert.h.
33512         (path_concat): Remove assertion that would have triggered
33513         for ABASE starting with more than one slash.
33514         Reported by Andreas Schwab.
33515
33516         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33517         properly when ABASE is an absolute file name.
33518         Correct the description of this function.
33519         Include <assert.h>.
33520         Add an assertion and a test driver.
33521         This fixes a bug introduced on 2004-07-02.
33522         Andreas Schwab reported the resulting failure of cp --parents:
33523         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33524
33525 2005-03-21  Jim Meyering  <jim@meyering.net>
33526
33527         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33528         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33529
33530 2005-03-21  Jim Meyering  <jim@meyering.net>
33531         and  Paul Eggert  <eggert@cs.ucla.edu>
33532
33533         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33534         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33535         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33536         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33537         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33538         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33539         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33540         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33541         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33542         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33543         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33544         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33545         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33546         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33547         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33548         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33549         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33550         for these modules.
33551
33552 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
33553
33554         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33555         (which shouldn't happen), generate nothing instead of returning 0
33556         immediately, so that nstrftime (NULL, ...) doesn't return 0.
33557
33558 2005-03-16  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33561         HAVE_LONGLONG_64BIT.
33562
33563 2005-03-16  Bruno Haible  <bruno@clisp.org>
33564
33565         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33566         HAVE_LONGLONG_64BIT.
33567
33568 2005-03-16  Bruno Haible  <bruno@clisp.org>
33569
33570         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33571         HAVE_LONGLONG_64BIT.
33572
33573 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33574
33575         * lib/strftime.c (my_strftime): Prepend space to format so that we can
33576         reliably distinguish strftime failure from empty output on POSIX
33577         hosts.
33578
33579 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33580
33581         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33582         (iconv_string): Don't guess a size-zero buffer, as that might cause
33583         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
33584         result would be 'too large', where 'too large' is (heuristically)
33585         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33586         overflow concerns.  This will prevent some unwanted malloc failures
33587         when the inputs are very large.
33588
33589 2005-03-15  Karl Berry  <karl@gnu.org>
33590
33591         * config/srclist.txt (config.rpath): from gettext.
33592         * config/config.rpath: update.
33593
33594 2005-03-15  Bruno Haible  <bruno@clisp.org>
33595
33596         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33597         to 'negate'.
33598
33599         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33600         variable.
33601
33602         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33603         results.
33604
33605 2005-03-14  Simon Josefsson  <jas@extundo.com>
33606
33607         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33608         <fx@gnu.org>.
33609
33610 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
33611
33612         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33613         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33614         intprops.h.
33615         * lib/strtol.c: Likewise.
33616
33617 2005-03-14  Jim Meyering  <jim@meyering.net>
33618
33619         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33620         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33621         to be nonzero so that we (and caller) can detect the difference
33622         between a valid zero-length expansion and an error return, even
33623         when the underlying strftime fails before writing anything into
33624         that location.
33625
33626 2005-03-14  Bruno Haible  <bruno@clisp.org>
33627
33628         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33629         Update from GNU gettext 0.14.3.
33630
33631 2005-03-10  Jim Meyering  <jim@meyering.net>
33632
33633         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33634
33635 2005-03-10  Jim Meyering  <jim@meyering.net>
33636
33637         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33638         so that this module works on systems without fchdir.
33639
33640 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
33641
33642         Factor int-properties macros into a single file, except for
33643         glibc-related files.
33644         * lib/intprops.h: New file.
33645         * lib/getloadavg.c: Include it instead of limits.h.
33646         (INT_STRLEN_BOUND): Remove.
33647         * lib/human.c: Include intprops.h.
33648         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33649         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33650         302/1000.
33651         * lib/inttostr.h: Include intprops.h instead of limits.h.
33652         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33653         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33654         for consistency with intprops.h.
33655         (time_t_is_integer, twos_complement_arithmetic): Use them.
33656         * lib/sig2str.h: Include <signal.h>, intprops.h.
33657         (INT_STRLEN_BOUND): Remove.
33658         * lib/strftime.c (TYPE_SIGNED): Remove.
33659         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33660         * lib/strtol.c: Adjust comments to match intprops.h.
33661         * lib/userspec.c: Include intprops.h.
33662         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33663         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33664         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33665         instead of rolling our own expressions.
33666         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33667
33668         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
33669         instead of int.
33670         (my_strftime): Do not mishandle years close to INT_MAX, by doing
33671         the right thing even if adding 1900 would overflow.  Similarly
33672         for tm_mon + 1 and tm_yday + 1.
33673         Make %Y always equivalent to %C%y, and similarly for %G and %g.
33674         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33675         (DO_SIGNED_NUMBER): New macro.
33676         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33677
33678 2005-03-07  Bruno Haible  <bruno@clisp.org>
33679
33680         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33681
33682 2005-03-07  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33685
33686 2005-03-04  Derek R. Price  <derek@ximbiot.com>
33687
33688         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33689         (func_import): Only replace files via --import when they have actually
33690         changed.
33691
33692 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33693
33694         * m4/mmap-anon.m4: New file.
33695         * m4/pagealign_alloc.m4: New file.
33696
33697 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33698             Bruno Haible  <bruno@clisp.org>
33699
33700         * modules/pagealign_alloc: New file.
33701         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33702
33703 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33704             Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/pagealign_alloc.h: New file.
33707         * lib/pagealign_alloc.c: New file.
33708
33709 2005-03-03  Bruno Haible  <bruno@clisp.org>
33710
33711         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33712         Use an all-permissive copyright notice, recommended by RMS.
33713
33714 2005-03-02  Bruno Haible  <bruno@clisp.org>
33715
33716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33717         of AIX, the replacement has to be done only after <string.h> is
33718         included, therefore not in config.h. stpncpy.h does the replacement,
33719         and stpncpy.c uses it.
33720
33721 2005-03-02  Bruno Haible  <bruno@clisp.org>
33722
33723         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33724         stpncpy.c uses it.
33725
33726 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33727
33728         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33729         The workaround isn't strictly needed for POSIX conformance, and
33730         it's too much of a pain to configure and maintain.  We'll ask
33731         people to fix their kernels instead.
33732         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33733         (NANOSLEEP_BUG_WORKAROUND): Remove.
33734         (xnanosleep): Remove the workaround.
33735
33736 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33737
33738         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33739         Reported by Derek Price.
33740         (Include): Add "timespec.h".
33741
33742         * modules/xnanosleep (Depends-on): Remove gethrxtime.
33743
33744 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33745
33746         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33747         to detect nanosleep bug.
33748
33749 2005-03-01  Bruno Haible  <bruno@clisp.org>
33750
33751         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33752
33753 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33754
33755         * modules/gethrxtime: New file.
33756         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33757         (Depends-on): Add gethrxtime.
33758         (configure.ac): Add gl_XNANOSLEEP.
33759         (Makefile.am): Remove lib_SOURCES line.
33760
33761 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33762
33763         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33764         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33765
33766 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33767
33768         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33769         * lib/timespec.h (gettime): Return void, since it always
33770         succeeds now.  All uses changed.
33771         * lib/gettime.c (gettime) Likewise.
33772         [HAVE_NANOTIME]: Prefer nanotime.
33773         Assume gettimeofday succeeds, as POSIX requires.
33774         Assime time () succeeds, since other code already does.
33775         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33776         (timespec_subtract): Remove.
33777         (NANOSLEEP_BUG_WORKAROUND): New constant.
33778         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33779         things considerably.  Use it only on GNU/Linux hosts, since the
33780         workaround shouldn't be needed elsewhere.
33781
33782 2005-02-24  Bruno Haible  <bruno@clisp.org>
33783
33784         * modules/gettext (Files): Add m4/glibc2.m4.
33785
33786 2005-02-24  Bruno Haible  <bruno@clisp.org>
33787
33788         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33789         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33790         * m4/progtest.m4:
33791         Update from GNU gettext 0.14.2.
33792         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33793
33794 2005-02-24  Bruno Haible  <bruno@clisp.org>
33795
33796         * lib/localcharset.c: Update from GNU gettext 0.14.2.
33797         * lib/config.charset: Update from GNU gettext 0.14.2.
33798
33799 2005-02-24  Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/gettext.h: Update from GNU gettext 0.14.2.
33802
33803 2005-02-23  Simon Josefsson  <jas@extundo.com>
33804
33805         * m4/iconvme.m4: New file.
33806
33807 2005-02-23  Jim Meyering  <jim@meyering.net>
33808
33809         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33810         change.
33811         Thanks to Bruno Haible for catching it.
33812
33813 2005-02-22  Simon Josefsson  <jas@extundo.com>
33814
33815         * modules/iconvme: New file.
33816
33817         * MODULES.html.sh: Add iconvme.
33818
33819 2005-02-22  Simon Josefsson  <jas@extundo.com>
33820
33821         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33822
33823 2005-02-22  Simon Josefsson  <jas@extundo.com>
33824
33825         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33826
33827 2005-02-22  Jim Meyering  <jim@meyering.net>
33828
33829         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33830         s/ifndef/ifdef/.
33831
33832 2005-02-20  Neil Conway  <neilc@samurai.com>
33833
33834         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33835         returned by OSX/Darwin if the specified buffer is not large
33836         enough for the hostname.
33837
33838 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33839
33840         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33841         pass it to _help, otherwise the latter coredumps trying to
33842         dereference state.root_argp.
33843
33844 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33845
33846         * modules/chdir-long (Depends-on): Add memrchr.
33847         * modules/memrchr (Files): Add lib/memrchr.h.
33848         (Include): "memrchr.h".
33849
33850 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33851
33852         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33853
33854 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33855
33856         * lib/memrchr.h: New file.
33857         * lib/chdir-long.c: Include it.
33858         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33859         Don't bother including stddef.h.
33860
33861 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
33862
33863         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33864         inclusion.
33865         Include <sys/types.h>, for dev_t.
33866         (ME_DUMMY, ME_REMOTE): Move from here....
33867         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33868         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
33869         Dmitry V. Levin.
33870         Include mountlist.h first, to test the interface.
33871
33872 2005-01-29  Bruno Haible  <bruno@clisp.org>
33873
33874         * lib/progname.c (program_name): Initialize.
33875         Needed when linking statically on MacOS X.
33876
33877 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33878
33879         Sync from coreutils.
33880         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33881         (Depends-on): Add c-strtod.
33882         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33883
33884 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33885
33886         Sync from coreutils.
33887         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33888
33889         Remove files that are specific to coreutils.
33890         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33891
33892 2005-01-28  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/javacomp: New file.
33895         * MODULES.html.sh (Java): Add javacomp.
33896
33897 2005-01-28  Bruno Haible  <bruno@clisp.org>
33898
33899         * m4/javacomp.m4: New file, from GNU gettext.
33900
33901 2005-01-28  Bruno Haible  <bruno@clisp.org>
33902
33903         * lib/javacomp.sh.in: New file, from GNU gettext.
33904         * lib/javacomp.h: New file, from GNU gettext.
33905         * lib/javacomp.c: New file, from GNU gettext.
33906
33907 2005-01-26  Simon Josefsson  <jas@extundo.com>
33908
33909         * lib/gai_strerror.c: Use GPL in header.
33910
33911 2005-01-26  Bruno Haible  <bruno@clisp.org>
33912
33913         * modules/javaexec: New file.
33914         * MODULES.html.sh (Java): Add javaexec.
33915
33916 2005-01-26  Bruno Haible  <bruno@clisp.org>
33917
33918         * m4/javaexec.m4: New file, from GNU gettext.
33919
33920 2005-01-26  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/javaexec.sh.in: New file, from GNU gettext.
33923         * lib/javaexec.h: New file, from GNU gettext.
33924         * lib/javaexec.c: New file, from GNU gettext.
33925
33926 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33927
33928         * modules/lchown (Depends-on): Remove lchown.h
33929
33930 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33931
33932         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33933         must be defined if the header file was not found, in order
33934         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33935
33936 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33937
33938         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33939         initializers for struct pentry_state.
33940         (__argp_error): Check return value of __asprintf
33941         (__argp_failure): Translate error message
33942
33943         * lib/argp-parse.c: Removed braces around the expansion of N_()
33944
33945 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33946
33947         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33948         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33949         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33950         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33951         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33952         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33953         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33954         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33955         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33956         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33957         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33958         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33959         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33960         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33961         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33962         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33963         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33964         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33965         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33966         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33967         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33968         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33969         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33970         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33971         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33972         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33973         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33974         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
33975         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
33976         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
33977         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
33978         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
33979         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
33980         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
33981         xstrtol.m4, xstrtoumax.m4, yesno.m4:
33982         Use an all-permissive copyright notice, recommended by RMS.
33983
33984 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
33985
33986         * modules/chdir-long (Depends-on): Remove mempcpy.
33987
33988 2005-01-21  Jim Meyering  <jim@meyering.net>
33989
33990         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
33991         same value as for Solaris 9.
33992
33993         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
33994         component length.  This included changing the parameter to be
33995         of type `char *' rather than `char const *'.
33996         * lib/chdir-long.h (chdir_long): Update prototype.
33997
33998         * lib/openat.c (fdopendir, fstatat): New functions.
33999         * lib/openat.h: Include headers required for use of DIR and struct
34000         stat.
34001         [AT_SYMLINK_NOFOLLOW]: Define.
34002         (fdopendir, fstatat): Add prototypes.
34003
34004 2005-01-21  Bruno Haible  <bruno@clisp.org>
34005
34006         * modules/classpath: New file.
34007         * MODULES.html.sh (Java): Add classpath.
34008
34009 2005-01-21  Bruno Haible  <bruno@clisp.org>
34010
34011         * lib/classpath.h: New file, from GNU gettext.
34012         * lib/classpath.c: New file, from GNU gettext.
34013
34014 2005-01-20  Simon Josefsson  <jas@extundo.com>
34015
34016         * modules/version-etc-fsf: New file.
34017
34018 2005-01-20  Simon Josefsson  <jas@extundo.com>
34019
34020         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
34021         * lib/version-etc.c: Remove version_etc_copyright.
34022         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
34023         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
34024
34025 2005-01-20  Simon Josefsson  <jas@extundo.com>
34026
34027         * lib/base64.h (isbase64): Add.
34028
34029         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
34030         using a unsigned prototype, don't inline.
34031         (base64_decode): Use it.
34032
34033 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34034
34035         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
34036         it.
34037
34038 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34039
34040         * lib/save-cwd.c (save_cwd): Remove code to support the case
34041         where fchdir is missing or flaky.
34042
34043 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34044
34045         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
34046
34047 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
34048
34049         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
34050         AC_LIBSOURCES now does this.
34051         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
34052         with new ullong_max module.
34053
34054 2005-01-19  Bruno Haible  <bruno@clisp.org>
34055
34056         * modules/sh-quote: New file.
34057         * MODULES.html.sh (Executing programs): Add sh-quote.
34058
34059 2005-01-19  Bruno Haible  <bruno@clisp.org>
34060
34061         * lib/sh-quote.h: New file, from GNU gettext.
34062         * lib/sh-quote.c: New file, from GNU gettext.
34063
34064 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34065
34066         Merge from coreutils.
34067         * m4/ullong_max.m4: New file.
34068         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
34069         (gl_MACROS): Assume localeconv exists.
34070
34071 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34072
34073         Merge changes from coreutils, as described below in several
34074         changelogs dated today.
34075
34076         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
34077         (O_DIRECTORY): Remove; not needed here, since "." must be
34078         a directory.  All uses removed.
34079         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
34080         universal on Suns, and we also need to test for IRIX.
34081         Revamp code to use 'if' rather than '#if'.
34082         Avoid unnecessary comparison of cwd->desc to 0.
34083
34084         * lib/utimens.c (futimens): Robustify the previous patch, by checking
34085         for known valid error numbers rather than observed invalid ones.
34086
34087 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34088
34089         * modules/ullong_max: New file.
34090
34091         * modules/chdir-long, modules/openat: New files.
34092         * modules/save-cwd (Depends-on): Depend on chdir-long.
34093         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
34094
34095 2005-01-18  Jim Meyering  <jim@meyering.net>
34096
34097         Merge from coreutils.
34098         * m4/chdir-long.m4, m4/openat.m4: New files.
34099         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
34100         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
34101         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
34102         is sane and DOES follow symlinks.  Besides, testing 20 different
34103         systems found no broken chown implementations.
34104         Prompted by a change in rsync's copy of this macro.
34105         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
34106
34107         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
34108
34109         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
34110         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
34111         NULL-means-set-to-current-time semantics.
34112         Remove temporary file immediately, rather than waiting
34113         for configure's at-exit trap code to do it.
34114
34115 2005-01-18  Jim Meyering  <jim@meyering.net>
34116
34117         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34118
34119         * lib/utimens.c (futimens): Account for the fact that futimes
34120         can also fail with errno == ENOSYS or errno == ENOENT.
34121         Patch from Dmitry V. Levin.
34122
34123         Change the name of the robust chdir function from chdir to chdir_long.
34124         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34125         (restore_cwd): Use chdir_long, not chdir.
34126         * lib/chdir-long.c: Renamed from chdir.c.
34127         * lib/chdir-long.h: Renamed from chdir.h.
34128         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34129         Hurd.
34130
34131 2005-01-18  Bruno Haible  <bruno@clisp.org>
34132
34133         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34134         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34135         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34136         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34137         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34138         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34139         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34140         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34141         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34142         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34143         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34144         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34145         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34146         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34147         Use an all-permissive copyright notice, recommended by RMS.
34148
34149 2005-01-18  Bob Proulx  <bob@proulx.com>
34150
34151         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34152         simplify offsetof() macro construct to avoid compile failure with
34153         native HP-UX 11.0 ANSI C compiler.
34154
34155 2005-01-17  Bruno Haible  <bruno@clisp.org>
34156
34157         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34158         redundant because stpncpy.m4 takes care of it.
34159
34160 2005-01-17  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34163
34164 2005-01-17  Bruno Haible  <bruno@clisp.org>
34165
34166         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34167         used.
34168
34169 2005-01-17  Bruno Haible  <bruno@clisp.org>
34170
34171         * lib/fwriteerror.h (fwriteerror): Change specification to include
34172         fclose.
34173         * lib/fwriteerror.c: Include <stdbool.h>.
34174         (fwriteerror): At the end, close the file stream. Record whether
34175         stdout was already closed.
34176
34177 2005-01-17  Bruno Haible  <bruno@clisp.org>
34178
34179         * lib/execute.c (environ): Declare if needed.
34180         * lib/pipe.c (environ): Likewise.
34181         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
34182
34183 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34184
34185         * modules/argp: Depend on vsnprintf
34186
34187 2005-01-10  Jim Meyering  <jim@meyering.net>
34188
34189         * modules/closeout (Depends-on): Add atexit.
34190
34191 2005-01-06  Bruno Haible  <bruno@clisp.org>
34192
34193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
34194
34195 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34196
34197         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
34198         definitions to be after all include files, to avoid collisions.
34199         Problem reported by Bob Proulx.
34200
34201 2005-01-04  Jim Meyering  <jim@meyering.net>
34202
34203         Changes imported from coreutils.
34204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
34205         as the mkstemp template, use a temporary directory and an
34206         8.3-friendly template to avoid trouble on systems like DJGPP.
34207         Reported by Juan M. Guerrero via Stepan Kasal.
34208         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
34209         close. Remove the temporary directory right away, rather than waiting
34210         for configure's at-exit trap code to do it.
34211         Suggestion from Stepan Kasal.
34212
34213 2005-01-01  Simon Josefsson  <jas@extundo.com>
34214
34215         * gnulib-tool: Print #include directives when --import'ing.
34216
34217 2004-12-28  Simon Josefsson  <jas@extundo.com>
34218
34219         * tests/test-base64.c: Include required header files.  Remove
34220         unused variables.
34221
34222 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34223
34224         * modules/error (Depends-on): Remove gettext.
34225
34226 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34227
34228         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
34229         not needed.  This removes a dependency on the gettext module.
34230         [defined _LIBC]: Do not include <libintl.h>; not needed.
34231
34232 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34233
34234         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
34235         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
34236
34237 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34238
34239         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
34240         HAVE_DECL_STRTOLD.
34241
34242 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34243
34244         * modules/getdate (Depends-on): Remove alloca-opt.
34245
34246 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34247
34248         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34249
34250 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34251
34252         * lib/argp-parse.c: Include <stddef.h>.
34253         (alignof, alignto): New macros.
34254         (parser_init): Don't assume that void * is aligned sufficiently
34255         for struct option.
34256
34257         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34258         need to extend the stack.
34259         (YYINITDEPTH): New macro, so that the initial stack isn't overly
34260         large.
34261
34262 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34263
34264         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34265
34266 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34267
34268         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34269         (2004-10-24) change.  Apparently this was a false alarm.
34270
34271         * modules/getdate: Depend on alloca-opt, not alloca.
34272
34273 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34274
34275         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34276         Remove now-obsolete comment about AIX.
34277         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34278         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34279         (YYMAXDEPTH): New macro.
34280
34281 2004-12-18  Simon Josefsson  <jas@extundo.com>
34282
34283         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34284
34285 2004-12-18  Bruno Haible  <bruno@clisp.org>
34286
34287         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34288
34289 2004-12-18  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/fatal-signal.c (fatal_signals): Make non-const.
34292         (init_fatal_signals): New function.
34293         (uninstall_handlers, install_handlers): Ignore signals that were set to
34294         SIG_IGN.
34295         (at_fatal_signal): Call init_fatal_signals.
34296         (init_fatal_signal_set): Likewise. Ignore signals that were set to
34297         SIG_IGN.
34298         Reported by Paul Eggert.
34299
34300 2004-12-18  Bruno Haible  <bruno@clisp.org>
34301
34302         * doc/alloca.texi: New file.
34303         * doc/alloca-opt.texi: New file.
34304
34305 2004-12-17  Jim Meyering  <jim@meyering.net>
34306
34307         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34308         Otherwise, install-sh could exit with improper exit status when
34309         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
34310
34311 2004-12-16  Simon Josefsson  <jas@extundo.com>
34312
34313         * tests/test-base64.c: Add license.
34314
34315 2004-12-15  Stepan Kasal  <address@hidden>
34316
34317         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34318
34319 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34320
34321         * modules/getcwd (Files): Add m4/d-ino.m4.
34322         Suggested by Mark D. Baushke.
34323
34324 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34325
34326         * lib/getdate.y (textint): New member "negative".
34327         (time_zone_hhmm): New function.
34328         Expect 14 shift-reduce conflicts, not 13.
34329         (o_colon_minutes): New rule.
34330         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34331         (yylex): Set the "negative" member of signed numbers.
34332
34333 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34334
34335         * doc/getdate.texi (Time of day items, Time zone items):
34336         Describe new formats +00:00, UTC+00:00.
34337
34338 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34339
34340         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34341         spurious "-l"s.  Problem reported by Stepan Kasal.
34342
34343 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
34344
34345         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34346         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
34347
34348 2004-12-04  Simon Josefsson  <jas@extundo.com>
34349
34350         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34351         Vandoorselaere <yoann@prelude-ids.org>.
34352
34353 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34354
34355         Changes imported from coreutils.
34356         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34357         exist.
34358         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34359
34360 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34361
34362         Changes imported from coreutils.
34363         * lib/hard-locale.c: Assume <locale.h> exists.
34364         Include "strdup.h".
34365         (GLIBC_VERSION): New macro.
34366         (hard_locale): Assume setlocale exists.
34367         Rewrite to avoid #ifdef.
34368         Use strdup rather than malloc + strcpy.
34369         * lib/human.c: Assume <locale.h> exists.
34370         (human_readable): Assume localeconv exists.
34371
34372 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34373
34374         * modules/hard-locale (Depends-on): Add strdup.
34375
34376 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
34377
34378         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34379         convert T2, not T.  (Imported from libc.)
34380
34381 2004-11-30  Simon Josefsson  <jas@extundo.com>
34382
34383         * modules/restrict (License): Change to LGPL.
34384
34385 2004-11-30  Simon Josefsson  <jas@extundo.com>
34386
34387         * m4/restrict.m4: Add copyright and copying conditions.
34388
34389 2004-11-30  Simon Josefsson  <jas@extundo.com>
34390
34391         * m4/base64.m4: New file.
34392
34393 2004-11-30  Simon Josefsson  <jas@extundo.com>
34394
34395         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34396         base64.
34397
34398         * tests/test-base64.c: New file.
34399
34400         * modules/base64: New file.
34401
34402 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34403
34404         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34405         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34406
34407         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34408
34409 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34410
34411         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34412         (__getcwd.c): Don't restore errno; glibc doesn't.
34413         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34414         first, falling back to our code only if its results look suspicious.
34415         Ensure that the resulting buffer is only as large as necessary.
34416
34417         * lib/readutmp.c: Include readutmp.h first.
34418         Include <errno.h>, since readutmp.h no longer does that.
34419         * lib/readutmp.h: Don't include <errno.h>,
34420         <sys/param.h>, <time.h>; not needed to establish interface.
34421         (errno): Remove decl.
34422         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34423         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34424         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34425
34426 2004-11-28  Simon Josefsson  <jas@extundo.com>
34427
34428         * lib/base64.h, base64.c: New file.
34429
34430 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34431
34432         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34433
34434 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34435
34436         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34437         (Depends-on): Remove pathmax, same.  Add mempcpy.
34438         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34439         (Makefile.am): Append getcwd.h to lib_SOURCES.
34440         (Include): Add getcwd.h.
34441         (Maintainer): Change from Jim Meyering to "all, glibc",
34442         since getdate now uses intended-for-glibc code.
34443         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34444         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
34445
34446 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34447
34448         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34449         HP's ANSI C compiler.
34450         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34451         Declaring int functions causes warnings on some modern systems and
34452         shouldn't be needed to compile on ancient ones.
34453         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34454         defined.
34455
34456         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34457         with the following changes.
34458         (__set_errno): Parenthesize properly.
34459         Include <stdbool.h>.
34460         (MIN, MAX, MATCHING_INO): New macros.
34461         (__getcwd): Define with prototype, not K&R form.
34462         Use heuristics to allocate default buffer on stack if possible.
34463         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34464         behavior, and to avoid the PATH_MAX limit when computing
34465         ../../../../...
34466         Use MATCHING_INO to compare inode number to file.
34467         Check for arithmetic overflow in size calculations.
34468         Fix bug in reallocation of dot array that caused getcwd to fail
34469         on directories nested deeper than 75.
34470         Be more careful about saving errno on error.
34471         Do not use realloc; use only free+malloc, as this is a bit
34472         more flexible and avoids a needless copy operation.
34473         Do not inspect st_dev and st_ino for symbolic links; POSIX
34474         doesn't specify the latter.
34475         Check for closedir errors.
34476         Avoid needless casts.
34477         Use "#ifdef weak_alias" around weak_alias, to be like other
34478         glibc code.
34479         The following changes to getcwd.c have effect only when used in
34480         gnulib; they have no effect inside glibc proper.
34481         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34482         as alloca isn't used.
34483         (alloca, __alloca): Likewise.
34484         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34485         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34486         unconditionally, as gnulib assumes C89 or better.
34487         Do not include <sys/param.h>.
34488         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34489         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34490         better.
34491         (NULL) [!defined NULL]: Remove; we assume C89 or better.
34492         Include <dirent.h> in a way that is compatible with modern Autoconf.
34493         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34494         New macros, if not already defined.
34495         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34496         Use "_LIBC", not "defined _LIBC", for consistency.
34497         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34498         a mempcpy module.
34499         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34500         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
34501         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34502         credit only to Jim Meyering and adjust the copyright dates.
34503         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34504         <stdlib.h>, <unistd.h>, "pathmax.h".
34505         Instead, include "xgetcwd.h" (first) and "getcwd.h".
34506         (INITIAL_BUFFER_SIZE): Remove.
34507         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34508
34509 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34510
34511         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34512         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
34513         Use the _ONCE methods, for efficiency.
34514         Check for fcntl.h.  In test program, include <errno.h>
34515         and <fcntl.h> if available.  Remove old K&R cruft from
34516         test program.  Check for common errors in GNU/Linux,
34517         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
34518         don't do AC_LIBOBJ, as that's getcwd.m4's job.
34519         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34520         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
34521         name accordingly.
34522         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
34523         accommodate new getcwd.c.
34524         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34525         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34526         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34527         that's all we need now.
34528
34529 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34530
34531         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34532         argp-parse.c depends on getopt internals, that means we should
34533         always use our getopt, to be on the safe side.
34534         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34535         order not to spoil the result of an eventual previous invocation
34536         of gl_GETOPT_SUBSTITUTE.
34537
34538 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34539
34540         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34541         redefinition warnings. To avoid them, include the defines
34542         in `#if !defined __need_getopt ... #endif'. The only place
34543         where __getopt_argv_const is used is in definitions
34544         of getopt_long and getopt_long_only below, which are as well
34545         protected by `#ifndef __need_getopt'.
34546         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34547         __need_getopt after including <stdio.h> and <unistd.h> These
34548         headers might have defined it.
34549
34550 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34551
34552         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34553
34554 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34555
34556         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34557         (futimens): New function, which uses futimes if available.
34558         (futimens, utimens): Support timespec==NULL, with same semantics
34559         as utime and utimens.
34560         * lib/utimens.h (futimens): New decl.
34561
34562 2004-11-23  Jim Meyering  <jim@meyering.net>
34563
34564         * lib/getopt_.h: Remove trailing blanks.
34565
34566 2004-11-23  Jim Meyering  <jim@meyering.net>
34567
34568         * lib/__fpending.c: Add comment.
34569
34570 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
34571
34572         * modules/canonicalize (Depends-on): Add xreadlink.
34573         Problem reported by James Youngman.
34574
34575 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34576
34577         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34578         New macros.
34579         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34580         optopt): Use them instead of invoking ## directly; otherwise, the
34581         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34582
34583 2004-11-19  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/strtok_r.c: Move comments from here...
34586         * lib/strtok_r.h: ... to here.
34587
34588 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34589
34590         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34591         implementations that mishandle size_t overflow.
34592
34593 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34594
34595         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34596         might fail.  Problem reported by Yoann Vandoorselaere.
34597         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34598         implementations that mishandle size_t overflow.
34599
34600 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34601
34602         * modules/canon-host (Depends-on): Add strdup.
34603
34604 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34605
34606         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34607
34608 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34609
34610         * lib/canon-host.c: Include "strdup.h".
34611         (canon_host): Use getaddrinfo if available, so that IPv6 works.
34612         Use strdup instead of malloc/strcpy to duplicate strings.
34613
34614         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34615         (human_space_before_unit): New constant.
34616         * lib/human.c (human_readable): Support it.
34617
34618         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34619         (xgetcwd): Set errno correctly when failing.
34620         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34621         the failure is actually due to a PATH_MAX problem.
34622
34623         Further getopt changes to make it more likely that glibc will
34624         buy the changes back.
34625         * lib/getopt.c (POSIXLY_CORRECT): New constant.
34626         (getopt): Use it, so to preserve glibc semantic
34627         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34628         when compiling for libc.
34629         * lib/getopt_.h (__getopt_argv_const): Bring it back.
34630         (getopt_long, getopt_long_only): Use it.
34631
34632         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34633         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
34634         (getopt): Argv is now char * const *, as per standard.
34635         (_getopt_internal_r, _getopt_internal): Argv is now char **,
34636         not char *__getopt_argv_const *.
34637         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34638         _getopt_long_only_r): Likewise.
34639         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34640         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34641         _getopt_long_r, _getopt_long_only_r): Likewise.
34642         * lib/getopt_.h (__getopt_argv_const): Remove.
34643         (getopt): Argv is now char * const *, as per standard.
34644
34645         * lib/getdate.y (tORDINAL): New token.
34646         (day, relunit): Allow it for relative times.
34647         (relative_time_table): Use tORDINAL for ordinals.
34648
34649 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34650
34651         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34652         Document that "second" isn't allowed as an ordinal number.
34653
34654 2004-11-16  Jim Meyering  <jim@meyering.net>
34655
34656         * modules/closeout (Depends-on): Add fpending.
34657
34658 2004-11-15  Jim Meyering  <jim@meyering.net>
34659
34660         * lib/closeout.c: Include "__fpending.h" once again.
34661         Include <stdbool.h>.
34662         (close_stdout): Don't fail just because stdout was closed initially,
34663         since some programs don't write to stdout in the normal course of
34664         operation (other than --version and --help), and we don't want this
34665         function to make e.g. `touch file >&-' fail.
34666         But do fail if it was closed and someone has tried to write to it.
34667         E.g., `printf foo >&-' must fail.
34668
34669 2004-11-13  Jim Meyering  <jim@meyering.net>
34670
34671         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34672
34673 2004-11-12  Simon Josefsson  <jas@extundo.com>
34674
34675         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34676         small doc fix is still pending.
34677
34678 2004-11-11  Simon Josefsson  <jas@extundo.com>
34679
34680         * modules/strtok_r: New file.
34681
34682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34683         strtok_r.
34684
34685 2004-11-11  Simon Josefsson  <jas@extundo.com>
34686
34687         * m4/strtok_r.m4: New file.
34688
34689         * m4/getopt.m4: Replace opterr.
34690
34691 2004-11-11  Simon Josefsson  <jas@extundo.com>
34692
34693         * lib/strtok_r.h, strtok_r.c: New file.
34694
34695 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34696
34697         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34698         of replacing opterr, getopt, etc.  This should handle the
34699         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34700
34701 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34702
34703         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34704         we can stop lying to compilers about the constness of argv when we
34705         are compiled outside glibc.
34706         (getopt, getopt_long, getopt_long_only): Use it.
34707         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34708         _getopt_internal, getopt): Likewise.
34709         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34710         _getopt_long_only_r): Likewise.
34711         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34712         _getopt_long_r, _getopt_long_only_r): Likewise.
34713
34714         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34715         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34716         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34717         the other external symbols.
34718         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34719         declaration, since the above renaming now works around collisions.
34720
34721 2004-11-11  Jim Meyering  <jim@meyering.net>
34722
34723         * lib/linebreak.c: Remove trailing blanks.
34724         * lib/alloca_.h: Likewise.
34725         * lib/acosl.c: Likewise.
34726         * lib/euidaccess.c: Likewise.
34727         * lib/allocsa.h: Likewise.
34728
34729 2004-11-10  Simon Josefsson  <jas@extundo.com>
34730
34731         * m4/getaddrinfo.m4: New file.
34732
34733 2004-11-10  Simon Josefsson  <jas@extundo.com>
34734
34735         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34736
34737 2004-11-10  Simon Josefsson  <jas@extundo.com>
34738
34739         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34740         getaddrinfo.
34741
34742         * modules/getaddrinfo: New file.
34743
34744 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34745
34746         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34747
34748 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34749
34750         * lib/mktime.c (SHR): New macro, which is a portable
34751         substitute for >> that should work even on Crays.
34752         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34753         Problem reported by Mark D. Baushke in
34754         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34755         * lib/getdate.y (SHR): Likewise.
34756         (tm_diff): Use it.
34757         * lib/strftime.c (SHR): Likewise.
34758         (tm_diff): Use it.
34759         * lib/quotearg.c (struct quoting_options): Use unsigned int for
34760         quote_these_too, so that right shifts are well defined.  All uses
34761         changed.
34762
34763 2004-11-10  Jim Meyering  <jim@meyering.net>
34764
34765         Ensure that no close failure goes unreported.
34766         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
34767         return early when it seems there's nothing to flush.
34768         Don't include __fpending.h.
34769
34770 2004-11-10  Jim Meyering  <jim@meyering.net>
34771
34772         * modules/closeout (Depends-on): Remove fpending.
34773
34774 2004-11-10  Jim Meyering  <jim@meyering.net>
34775
34776         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34777
34778 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34779
34780         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
34781         gl_FUNC_STRFTIME.
34782         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34783         and AC_REQUIRE when possible, to avoid duplicate checks.
34784         Check for <wchar.h>.
34785
34786 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34787
34788         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34789
34790 2004-11-09  Bruno Haible  <bruno@clisp.org>
34791
34792         * m4/sockpfaf.m4: New file.
34793
34794 2004-11-05  Bruno Haible  <bruno@clisp.org>
34795
34796         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34797         Reported by Mark D. Baushke <mdb@cvshome.org>.
34798
34799 2004-11-04  Bruno Haible  <bruno@clisp.org>
34800
34801         2004-09-11  Bruno Haible  <bruno@clisp.org>
34802                 * allocsa.valgrind: New file.
34803         2004-02-06  Bruno Haible  <bruno@clisp.org>
34804                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34805                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34806                 Reported by Christopher Seip <chris.seip@hp.com>.
34807
34808 2004-11-04  Bruno Haible  <bruno@clisp.org>
34809
34810         * modules/allocsa (Files): Add lib/allocsa.valgrind.
34811         (Makefile.am): Distribute it.
34812
34813 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34814
34815         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34816         with errno == ERANGE if the buffer is too small.
34817         Problem reported by Mark D. Baushke.
34818
34819 2004-11-03  Albert Chin  <china@thewrittenword.com>
34820             Paul Eggert  <eggert@cs.ucla.edu>
34821
34822         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34823         equivalent, substitute $ac_type for equivalent type rather than
34824         blindly using uint32_t *always* which won't work if uint32_t is not
34825         available.  Define _UINT32_T to work around typedef of uint32_t if
34826         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34827         2.5.1.
34828
34829 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34830
34831         * m4/jm-macros.m4: Sync from coreutils.
34832         (gl_MACROS): Check for mbrlen, for pathchk.
34833         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34834
34835 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34836
34837         * lib/xreadlink.c (MAXSIZE): New macro.
34838         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
34839         size does not exceed MAXSIZE.  Avoid cast.
34840         As suggested by Mark D. Baushke in
34841         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34842         if readlink fails with buffer size just under MAXSIZE, try again
34843         with MAXSIZE.
34844
34845 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34846
34847         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34848
34849 2004-11-02  Derek R. Price  <derek@ximbiot.com>
34850         and  Paul Eggert  <eggert@cs.ucla.edu>
34851
34852         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34853         (get_date): Overparenthesize to avoid GCC warning.
34854
34855 2004-11-02  Bruno Haible  <bruno@clisp.org>
34856
34857         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34858         returns void.
34859
34860 2004-11-02  Bruno Haible  <bruno@clisp.org>
34861
34862         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34863         function returns void.
34864
34865 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34866
34867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34868         fflush_unlocked, flockfile, funlockfile, funlockfile,
34869         fputs_unlocked, putc_unlocked.
34870
34871 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34872
34873         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34874         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34875         already declared.
34876
34877 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34878
34879         * modules/getdate (Files): Add doc/getdate.texi.
34880         (Depends-on): Add setenv, xalloc.
34881
34882 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34883
34884         * lib/getdate.y: Add support for TZ="foo" within a date string.
34885         Fix some bugs near time_t boundaries.  Reject dates with
34886         out-of-range components, e.g., "Sept 31".
34887         Include <stdlib.h>, "setenv.h", "xalloc.h".
34888         (ISDIGIT_LOCALE): Remove; unused.
34889         Note that the TZ and time functions used here are not reentrant.
34890         (mktime_ok, get_tz): New functions.
34891         (TZBUFSIZE): New constant.
34892         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
34893         This requires that we sometimes generate our own TZ="XXX..." setting.
34894
34895 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34896
34897         * doc/getdate.texi: New file, from coreutils with modifications for
34898         the new TZ parsing.
34899
34900 2004-10-27  Derek R. Price  <derek@ximbiot.com>
34901
34902         * lib/mktime.c (not_equal_tm): Remove redundant check.
34903
34904 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34905
34906         * modules/regex (lib_SOURCES): Add regex.c.
34907         Reported by James Youngman in
34908         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34909
34910 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34911
34912         * lib/getdate.y: Use Bison 1.875 features, and some minor
34913         code cleanups.  This change does not affect semantics.
34914         Don't include <stdlib.h>; no longer needed.
34915         Don't include unlocked-io.h; only the "#if TEST" code uses
34916         stdio, and performance isn't crucial there.
34917         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34918         Bison 1.875 features as described below.
34919         All uses of "PC." replaced by "pc->".
34920         (YYSTYPE): Add a forward declaration.
34921         (yylex, yyerror): Use full prototypes in forward decls.
34922         Use "%pure-parser" rather than obsolescent "%pure_parser".
34923         Use %parse-param and %lex-param instead of obsolescent
34924         YYPARSE_PARAM and YYLEX_PARAM.
34925         (meridian_table, month_and_day_table, time_units_table,
34926         relative_time_table, time_zone_table, military_table,
34927         lookup_zone, lookup_word, get_date):
34928         Use NULL instead of 0 where appropriate.
34929         (to_hour): Avoid abort (), to avoid a dependency on
34930         stdlib.h.
34931         (yyerror, yylex): Now accepts parser_control * arg.
34932         (main) [TEST]: Use '\0' rather than 0 for char.
34933
34934 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34935
34936         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34937
34938 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34939
34940         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34941         It's now the caller's responsibility to handle the case where
34942         !HAVE_GETPAGESIZE && !defined getpagesize.
34943
34944         * lib/mktime.c (leapyear): Arg is long int, not int.
34945
34946 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
34947
34948         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34949
34950 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34951
34952         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34953         missing.  Problem reported by James Youngman.
34954
34955 2004-10-16  Simon Josefsson  <jas@extundo.com>
34956
34957         * gnulib-tool: Fix comments.  Fix parse problem.
34958         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34959
34960 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34961
34962         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34963         implementation of getopt_long.  Problem reported by Alexander Taler in:
34964         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34965
34966 2004-10-15  Bruno Haible  <bruno@clisp.org>
34967
34968         * gnulib-tool: Untabify. Initialize supplied_libname.
34969         (func_usage): More homogenous output.
34970         (func_modules_transitive_closure, func_modules_to_filelist,
34971         func_emit_lib_Makefile_am): New functions.
34972         (func_import): New function, extracted from big case statement. Use
34973         func_get_license, func_modules_transitive_closure,
34974         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
34975         opt_lgpl. Don't use test -a, as it's not portable.
34976         (func_create_testdir): Use func_modules_transitive_closure,
34977         func_modules_to_filelist, func_emit_lib_Makefile_am.
34978
34979 2004-10-15  Bruno Haible  <bruno@clisp.org>
34980
34981         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
34982
34983 2004-10-15  Bruno Haible  <bruno@clisp.org>
34984
34985         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
34986         the portions belonging to each module.
34987         Suggested by Derek Robert Price <derek@ximbiot.com>.
34988
34989 2004-10-12  Simon Josefsson  <jas@extundo.com>
34990
34991         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34992         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
34993         to real functions.
34994
34995 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34996
34997         * modules/vsnprintf: New file.
34998
34999 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35000
35001         * m4/vsnprintf.m4: New file.
35002
35003 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35004
35005         * lib/vsnprintf.h: New file.
35006         * lib/vsnprintf.c: New file.
35007
35008 2004-10-11  Bruno Haible  <bruno@clisp.org>
35009
35010         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
35011         vsnprintf.
35012
35013 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35014
35015         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
35016
35017 2004-10-07  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
35020         fits into the provided buffer.
35021
35022 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35023
35024         * lib/diacrit.c, diacrit.h: Add GPL notice.
35025
35026         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
35027         notice.
35028         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
35029         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
35030         This avoids a potential constant-folding bug.
35031
35032 2004-10-05  Bruno Haible  <bruno@clisp.org>
35033
35034         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
35035         for the declaration of strsep.
35036
35037 2004-10-05  Bruno Haible  <bruno@clisp.org>
35038
35039         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
35040
35041 2004-10-04  Simon Josefsson  <jas@extundo.com>
35042
35043         * modules/memmem: New file.
35044         * tests/test-memmem.c: New file.
35045         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
35046
35047 2004-10-04  Simon Josefsson  <jas@extundo.com>
35048
35049         * m4/memmem.m4: New file.
35050
35051 2004-10-04  Simon Josefsson  <jas@extundo.com>
35052
35053         * lib/memmem.h: New file.
35054         * lib/memmem.c: New file, taken from glibc.
35055
35056 2004-10-04  Simon Josefsson  <jas@extundo.com>
35057
35058         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
35059         '#ifdef USE_UNLOCKED_IO'.
35060
35061 2004-10-04  Simon Josefsson  <jas@extundo.com>
35062
35063         * config/srclist.txt: Add memmem from glibc.
35064
35065 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35066
35067         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
35068
35069         * modules/argmatch, modules/argp, modules/closeout, modules/error,
35070         modules/exclude, modules/getdate, modules/getline,
35071         modules/getndelim2, modules/getpass, modules/getpass-gnu,
35072         modules/getusershell, modules/linebuffer, modules/md5,
35073         modules/mountlist, modules/posixtm, modules/readtokens,
35074         modules/readutmp, modules/regex, modules/sha1,
35075         modules/version-etc, modules/yesno:
35076         Remove dependency on unlocked-io.
35077
35078 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35079
35080         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
35081
35082         * m4/unlocked-io.m4: Add copyright notice.
35083         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
35084
35085 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35086
35087         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
35088         * lib/xmalloc.c (xmemdup): Likewise.
35089         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
35090         XFREE): Remove these long-obsolescent macros.
35091         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
35092         * lib/xstrdup.c: Remove.
35093
35094         * lib/regex.c (re_comp): Cast gettext return value to char *,
35095         Problem reported by Martin Neitzel via Mark D. Baushke.
35096
35097 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35098
35099         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
35100         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
35101         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
35102         regex.c, sha1.c, version-etc.c, yesno.c:
35103         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
35104         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
35105         the includer's responsibility.
35106
35107         Sync from coreutils.
35108
35109         * lib/modechange.c (mode_compile): Don't decrement a pointer that
35110         points to the start of a string, as the C Standard says the
35111         resulting behavior is undefined.
35112
35113         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35114         simple -> simple_backups, numbered_existing ->
35115         numbered_existing_backups, numbered -> numbered_backups
35116         to avoid shadowing problems.  All uses changed.
35117         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35118         * lib/backupfile.c (check_extension, numbered_backup):
35119         Rename locals to avoid shadowing 'basename'.
35120         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35121         once.
35122
35123         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35124         * lib/.cvsignore: Add getopt.h.
35125
35126 2004-10-04  Bruno Haible  <bruno@clisp.org>
35127
35128         * modules/README: New file.
35129         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35130         not a module.
35131
35132 2004-10-02  Jim Meyering  <jim@meyering.net>
35133
35134         * lib/dirfd.h, getpagesize.h: Add copyright notice.
35135
35136 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35137
35138         * modules/strsep: New file.
35139
35140 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35141
35142         * m4/strsep.m4: New file.
35143
35144 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35145
35146         * lib/strsep.h: New file.
35147         * lib/strsep.c: New file.
35148
35149 2004-10-01  Simon Josefsson  <jas@extundo.com>
35150
35151         * lib/snprintf.c (snprintf): Handle size==0.
35152
35153 2004-10-01  Simon Josefsson  <jas@extundo.com>
35154             Bruno Haible  <bruno@clisp.org>
35155
35156         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35157         (snprintf): Declare 'args'.
35158
35159 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
35160
35161         * lib/snprintf.c: Remove comments as to why each header is needed.
35162
35163 2004-10-01  Bruno Haible  <bruno@clisp.org>
35164
35165         * MODULES.html.sh: Add strsep.
35166
35167 2004-09-30  Simon Josefsson  <jas@extundo.com>
35168
35169         * modules/snprintf: New file.
35170
35171 2004-09-30  Simon Josefsson  <jas@extundo.com>
35172
35173         * m4/snprintf.m4: New file.
35174
35175 2004-09-30  Simon Josefsson  <jas@extundo.com>
35176
35177         * lib/snprintf.h, lib/snprintf.c: New files.
35178
35179 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35180
35181         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
35182         (hol_entry_help): Never translate an empty string.
35183         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
35184         * lib/argp.h (OPTION_NO_TRANS): New option.
35185
35186 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35187
35188         * modules/argp (Maintainer): Replace Simon Josefsson
35189         by Sergey Poznyakoff.
35190
35191 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35192
35193         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
35194         changes merged back into glibc.
35195
35196 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35197
35198         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
35199
35200 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35201
35202         * lib/xvasprintf.c: Include xalloc.h.
35203         (xvasprintf): Use xalloc_die, not xmalloc_die.
35204
35205 2004-09-29  Bruno Haible  <bruno@clisp.org>
35206
35207         * modules/alloca-opt: New file, derived from modules/alloca.
35208         * modules/allocsa: Depend on alloca-opt instead of alloca.
35209         * modules/setenv: Likewise.
35210         * modules/vasnprintf: Likewise.
35211         * MODULES.html.sh: Add alloca-opt.
35212
35213 2004-09-28  Simon Josefsson  <jas@extundo.com>
35214
35215         * gnulib-tool: New parameter --lgpl, to asseert that modules are
35216         LGPL, and to replace license template from GPL to LGPL.
35217
35218 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35219
35220         * modules/dummy: Change license to LGPL.
35221
35222 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35223
35224         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
35225
35226 2004-09-24  Simon Josefsson  <jas@extundo.com>
35227
35228         * modules/minmax (License): Change from GPL to LGPL.
35229
35230 2004-09-23  Simon Josefsson  <jas@extundo.com>
35231
35232         * gnulib-tool (--import): Typo.
35233
35234 2004-09-23  Simon Josefsson  <jas@extundo.com>
35235
35236         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
35237
35238 2004-09-22  Bruno Haible  <bruno@clisp.org>
35239
35240         * modules/*: Add 'License' field.
35241         * gnulib-tool: Accept --extract-license option.
35242         (func_get_license): New function.
35243
35244 2004-09-21  Bruno Haible  <bruno@clisp.org>
35245
35246         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35247         Reported by Simon Josefsson.
35248
35249 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35250
35251         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35252         gl_AC_TYPE_LONG_LONG.
35253
35254 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35255
35256         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35257
35258 2004-09-18  Simon Josefsson  <jas@extundo.com>
35259         and  Paul Eggert  <eggert@cs.ucla.edu>
35260
35261         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35262         calls with autoreconf.  Define GL_LIB.
35263
35264 2004-09-14  Karl Berry  <karl@gnu.org>
35265
35266         * config/srclist.txt: unsync setenv.c, sigh.
35267
35268 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35269
35270         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35271         Problem reported by Bruno Haible in:
35272         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35273
35274 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35275
35276         * config/srclist.txt: Comment out argp-pvh.c.
35277
35278 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
35279
35280         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35281         in case some system header has #define'd it.  Problem reported by
35282         Soeren D. Schulze in
35283         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35284
35285 2004-09-09  Karl Berry  <karl@gnu.org>
35286
35287         * regex.[ch]: delete from the root.  These were supposed to be
35288                 synced with emacs cvs, but this has not happened for about
35289                 a year, and anyway nothing else uses emacs regex.[ch].
35290                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35291                 lib/regex[.ch] is untouched.
35292
35293 2004-09-09  Bruno Haible  <bruno@clisp.org>
35294
35295         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35296
35297 2004-09-09  Bruno Haible  <bruno@clisp.org>
35298
35299         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35300         modifications.
35301         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35302
35303 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35304
35305         * modules/xvasprintf: New file.
35306         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35307
35308 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35309
35310         * lib/xvasprintf.h: New file.
35311         * lib/xvasprintf.c: New file.
35312         * lib/xasprintf.c: New file.
35313
35314 2004-09-08  Bruno Haible  <bruno@clisp.org>
35315
35316         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35317
35318 2004-09-08  Bruno Haible  <bruno@clisp.org>
35319
35320         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35321         length is > INT_MAX.
35322         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35323         more.
35324
35325 2004-09-08  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/stdint_.h: New file, taken from GNU clisp.
35328
35329 2004-09-08  Bruno Haible  <bruno@clisp.org>
35330             Oskar Liljeblad  <oskar@osk.mine.nu>
35331
35332         * modules/stdint: New file.
35333         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35334
35335 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35336
35337         Import from coreutils.
35338         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35339         strings on unbounded length.  alloca's performance benefits aren't
35340         that important here.
35341         (V_STRDUP): Remove.
35342         (parse_with_separator): New function, with most of the internals
35343         of the old parse_user_spec.  Allow user to omit both user and group,
35344         for compatibility with FreeBSD.
35345         Clone only the user name, not the entire spec.
35346         Do not set *uid, *gid unless entirely successful.
35347         Avoid memory leak in some failing cases.
35348         Fix regression for USER.GROUP reported by Dmitry V. Levin in
35349         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35350         (parse_user_spec): Rewrite to use parse_with_separator.
35351
35352 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35353
35354         * modules/userspec: Don't depend on alloca.
35355
35356 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35357
35358         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35359
35360 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35361
35362         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35363         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35364         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
35365
35366 2004-08-16  Simon Josefsson  <jas@extundo.com>
35367
35368         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35369         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35370         Add --dry-run for --import.
35371         Let user provided command line parameters override configure.ac
35372         settings.
35373
35374 2004-08-12  Simon Josefsson  <jas@extundo.com>
35375
35376         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35377         as discussed with Paul Eggert in threads rooted at
35378         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35379         and
35380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35381         Before, the test was empty, and relied on ELIDE_CODE in source
35382         code.)
35383         (gl_PREREQ_GETOPT): New macro.
35384         (gl_GETOPT): Use them.
35385
35386 2004-08-12  Simon Josefsson  <jas@extundo.com>
35387
35388         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35389         * lib/getopt_.h: Renamed from getopt.h.
35390
35391 2004-08-12  Simon Josefsson  <jas@extundo.com>
35392
35393         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35394         Change default library name from libfoo to libgnu.
35395         Now, if you have a configure.ac that says:
35396                 gl_SOURCE_BASE(gl)
35397                 gl_M4_BASE(gl/m4)
35398                 gl_MODULES(error getopt etcetera)
35399                 gl_INIT
35400         you can import all you need by running:
35401                 ../gnulib/gnulib-tool --import
35402
35403         * modules/getopt (Files): Rename getopt.h to getopt_.h.
35404         (Makefile.am): Rewrite, use logic from argz.
35405         (Include): Use <getopt.h> instead of "getopt.h".
35406
35407 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35408
35409         * modules/argp (Files): Add m4/unlocked-io.m4.
35410         (Depends-on): Add extensions.
35411
35412 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35413
35414         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35415         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35416         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35417         Check for program_invocation_name, program_invocation_short_name,
35418         flockfile, funlockfile, features.h, _getopt_long_only_r.
35419
35420 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35421
35422         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35423         its complicated substitute.
35424         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35425         and program_invocation_name.
35426         (__argp_basename) [!_LIBC]: Remove; the only use was
35427         replaced by its body.
35428         (__argp_short_program_name): Change condition from
35429         !defined __argp_short_program_name to
35430         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35431         to match argp-namefrob.h.
35432         (__argp_failure): Don't assume strerror_r returns char *.
35433         * lib/argp-parse.c (N_): Define unconditionally.
35434         (argp_default_options): Fill out initializers with 0 to avoid
35435         gcc warnings.
35436
35437 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35438
35439         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35440         getopt1.c.
35441
35442 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35443
35444         Merge from coreutils.
35445
35446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35447
35448         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35449         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35450
35451 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35452
35453         Merge from coreutils.
35454
35455         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35456         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
35457         for Reliant Unix 5.43.
35458
35459         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35460         (union fooround): Use uintmax_t, not long int.
35461         The rest is a merge from libc:
35462         [defined _LIBC]: Include <shlib-compat.h>.
35463         (_obstack) [defined _LIBC]: Remove after 2.3.4.
35464
35465         * lib/settime.c (settime): Recode to avoid warning with
35466         Sun Forte C 6U2.
35467
35468         * lib/strverscmp.c: Convert to UTF-8.
35469
35470 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35471
35472         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35473         m4/uintmax_t.m4.
35474
35475 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35476
35477         * modules/xalloc-die: New file.
35478         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35479
35480         * modules/md5 (Files): Add m4/uint32_t.m4.
35481         * modules/sha1: Renamed from modules/sha.
35482         (Files):
35483         Rename lib/sha.h to lib/sha1.h.
35484         Rename lib/sha.c to lib/sha1.c.
35485         Rename m4/sha.m4 to m4/sha1.m4.
35486         (lib_SOURCES): Likewise.
35487         (configure.ac): Rename gl_SHA to gl_SHA1.
35488         (Include): sha.h -> sha1.h.
35489
35490 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35491
35492         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35493         * m4/sha1.m4: Renamed from sha.m4.
35494         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
35495
35496 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35497
35498         * lib/obstack.h (obstack_empty_p):
35499         Don't assume that chunk->contents is suitably aligned.
35500         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35501         Likewise. Problem reported by Benno in
35502         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35503
35504         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35505         readable.  This could be improved further but it'd take some work.
35506
35507 2004-08-08  Simon Josefsson  <jas@extundo.com>
35508
35509         * modules/xgethostname (Depends-on): Remove exit and error (not
35510         used).
35511
35512         * modules/getpass-gnu: Add getpass.h.
35513         (Depends-on): Add stdbool.
35514         * modules/getpass: Add getpass.h.
35515
35516 2004-08-08  Simon Josefsson  <jas@extundo.com>
35517
35518         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35519         Check getpass declaration.
35520
35521 2004-08-08  Simon Josefsson  <jas@extundo.com>
35522
35523         * lib/xgethostname.c: Don't include error.h (not used).
35524
35525         * lib/getpass.h: Add.
35526         * lib/getpass.c: Include getpass.h first.
35527
35528 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
35529
35530         * lib/xalloc-die.c: New file.
35531         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35532         All uses removed.
35533         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35534         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35535         xalloc-die.c.
35536         (_, N_, xalloc_die): Move to xalloc-die.c.
35537         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35538         so that we needn't mess with xalloc_msg_memory_exhausted.
35539
35540         * lib/sha1.h: Renamed from sha.h.
35541         (SHA1_H): Renamed from _SHA_H.
35542         (sha1_ctx): Renamed from sha_ctx.
35543         (sha1_init_ctx): Renamed from sha_init_ctx.
35544         (sha1_process_block): Renamed from sha_process_block.
35545         (sha1_process_bytes): Renamed from sha_process_bytes.
35546         (sha1_finish_ctx): Renamed from sha_finish_ctx.
35547         (sha1_read_ctx): Renamed from sha_read_ctx.
35548         (sha1_stream): Renamed from sha_stream.
35549         (sha1_buffer): Renamed from sha_buffer.
35550         * lib/sha1.c: Likewise; renamed from sha.c.
35551         Do not include <sys/types.h>.
35552         Include <stddef.h> rather than <stdlib.h>.
35553
35554 2004-08-08  Bruno Haible  <bruno@clisp.org>
35555
35556         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35557         FILESYSTEM_PREFIX_LEN.
35558         * lib/progreloc.c: Likewise.
35559         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35560
35561 2004-08-06  Simon Josefsson  <jas@extundo.com>
35562
35563         * modules/progname (Depends-on): Don't depend on stdbool.
35564
35565 2004-08-06  Simon Josefsson  <jas@extundo.com>
35566
35567         * modules/getsubopt: New file.
35568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35569         getsubopt.
35570
35571 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35572
35573         More merge from coreutils.
35574
35575         * m4/utimens.m4, m4/utimecmp.m4: New files.
35576         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35577         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35578         prereq.m4, sha.m4: Import changes from coreutils.
35579
35580 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35581
35582         More merge from coreutils.
35583         * modules/raise, modules/readtokens0, modules/utimens:
35584         * modules/utimecmp, module/xnanosleep: New files.
35585         * modules/strftime: Add lib/strftime.h.
35586         Change include from <time.h> to "strftime.h".
35587         * modules/yesno: Add lib/yesno.h.
35588         * modules/backupfile: Remove lib/addext.c.
35589         * modules/euidaccess: Add stat-macros.h.
35590         * modules/canonicalize, modules/euidaccess,
35591         modules/filemode, modules/lchown, modules/makepath,
35592         modules/rmdir, modules/stat: Likewise.
35593
35594 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35595
35596         Merge from tar.
35597         * lib/argp-help.c (make_hol, hol_append): Don't assume that
35598         SIZE_MAX is a valid preprocessor constant.
35599         (__argp_basename): Change from "#ifndef _LIBC"
35600         to "#ifndef __argp_short_program_name", so that
35601         we don't compile these functions for tar.
35602
35603         More merges from coreutils.
35604         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35605         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35606         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35607         * lib/addext.c: Remove; no longer needed.
35608         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35609         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35610         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35611         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35612         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35613         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35614         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35615         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35616         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35617         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35618         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35619         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35620         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35621         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35622         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35623         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35624         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35625         Import changes from coreutils.
35626
35627 2004-08-05  Simon Josefsson  <jas@extundo.com>
35628
35629         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35630
35631 2004-08-05  Simon Josefsson  <jas@extundo.com>
35632
35633         * m4/getsubopt.m4: New file.
35634
35635 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35636
35637         Merge from coreutils.
35638
35639         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35640         * m4/getcwd-path-max.m4: New files.
35641
35642         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35643         FILESYSTEM_PREFIX_LEN ->
35644         FILE_SYSTEM_PREFIX_LEN.
35645         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35646         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35647         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35648         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35649
35650         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35651         prerequisite modules now handle the DOS stuff.
35652         Don't check for unistd.h.
35653
35654 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35655
35656         Merge from coreutils.
35657
35658         * lib/.gdb-history: Remove; this doesn't belong here.
35659
35660         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35661         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35662         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35663         * lib/getcwd.c: New files.
35664
35665         * lib/dirname.h: Include <stdbool.h>.
35666         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35667         for consistency with POSIX terminology.  All uses changed.
35668         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35669         (strip_trailing_slashes): Use bool for booleans.
35670         * lib/stripslash.c (strip_trailing_slashes): Likewise.
35671
35672         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35673         sometimes returns a positive errno value even when it succeeds.
35674         (print_errno_message) [!LIBC]: Fall back on strerror if
35675         __strerror_r fails.
35676
35677         * lib/path-concat.c (mempcpy): Don't define if a system header defines
35678         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35679         (longest_relative_suffix): New function.
35680         (path_concat): Use it.  Assume first argument is not NULL.
35681         Port to DOS.  Omit redundant separators.
35682         Report an error instead of returning NULL.
35683         Use mempcpy instead of memcpy.
35684         (xpath_concat): Remove: not declared or used.
35685
35686         * lib/same.h: Include <stdbool.h>
35687         (same_name): Return bool, not int.
35688         * lib/same.c (same_name): Likewise.
35689         (errno): Don't declare; we assume C89 or better now.
35690
35691         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35692         if not already defined.
35693
35694         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35695         * lib/dup-safer.c (errno): Likewise.
35696
35697 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         Merge from coreutils.
35700         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35701         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35702         * modules/path-concat: Don't depend on strdup.
35703
35704 2004-08-03  Simon Josefsson  <jas@extundo.com>
35705
35706         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35707         * lib/progname.h: Don't include stdbool.h.
35708
35709 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35710
35711         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35712         * MODULES.html.sh (func_all_modules): Remove fatal.
35713
35714 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35715
35716         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35717
35718 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35719
35720         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35721         working.
35722
35723 2004-08-02  Simon Josefsson  <jas@extundo.com>
35724
35725         * lib/getsubopt.h: New file, with comments from Bruno Haible.
35726         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35727         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35728
35729 2004-08-01  Simon Josefsson  <jas@extundo.com>
35730
35731         * lib/xgetdomainname.c: Include stdlib.h, for free().
35732
35733 2004-07-19  Bruno Haible  <bruno@clisp.org>
35734
35735         * MODULES.html.sh (func_all_modules): Add dummy.
35736
35737 2004-07-16  Simon Josefsson  <jas@extundo.com>
35738
35739         * modules/dummy: New file.
35740
35741 2004-07-16  Simon Josefsson  <jas@extundo.com>
35742
35743         * lib/dummy.c: New file.
35744
35745 2004-07-16  Bruno Haible  <bruno@clisp.org>
35746
35747         * lib/backupfile.h: Add extern "C" for C++.
35748         * lib/closeout.h: Likewise.
35749         * lib/copy-file.h: Likewise.
35750         * lib/findprog.h: Likewise.
35751         * lib/full-write.h: Likewise.
35752         * lib/pathname.h: Likewise.
35753         * lib/progname.h: Likewise.
35754         * lib/stpcpy.h: Likewise.
35755         * lib/stpncpy.h: Likewise.
35756         * lib/strcase.h: Likewise.
35757         * lib/strstr.h: Likewise.
35758         * lib/xalloc.h: Likewise.
35759
35760         * lib/mbswidth.h: Add extern "C" for C++.
35761         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35762
35763 2004-07-13  Robert Millan  <robertmh@gnu.org>
35764
35765         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35766
35767 2004-07-09  Simon Josefsson  <jas@extundo.com>
35768
35769         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
35770         failed without this.)
35771
35772 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35773
35774         * modules/chown (Files): Add lib/fchown-stub.c, since
35775         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35776
35777 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35778
35779         * lib/fchown-stub.c: New file.
35780
35781 2004-06-24  Jim Meyering  <jim@meyering.net>
35782
35783         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35784
35785 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35786
35787         * modules/argz: Omit "#include".
35788
35789         * MODULES.html.sh (func_all_modules): Add calloc, to match
35790         2004-06-01 addition of calloc module.
35791
35792 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35793
35794         * m4/argz.m4: New file, which is autoupdated from libtool.
35795
35796 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35797
35798         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35799         libtool.
35800
35801 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35802
35803         * config/srclist-update: Don't insist on "USA." before the
35804         close-comment, as libtool omits the period and puts the */ on a
35805         separate line.
35806         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35807         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35808
35809 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
35810
35811         * modules/argz: New file.
35812         * MODULES.html.sh (func_all_modules): Add argz.
35813
35814 2004-06-12  Jim Meyering  <jim@meyering.net>
35815         and  Paul Eggert  <eggert@cs.ucla.edu>
35816
35817         * modules/hash (Files): Add lib/xalloc.h.
35818         * modules/pipe (Depends-on): Add wait-process.
35819         * modules/stat (Depends-on): Add xalloc.
35820         * modules/userspec (Files): Add lib/userspec.h.
35821         * modules/xstrto
35822
35823         Upgrade from gettext-0.13.
35824         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35825         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35826         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35827
35828 2004-06-10  Jim Meyering  <jim@meyering.net>
35829
35830         * lib/calloc.c: New file.
35831
35832 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35833
35834         * lib/getdate.y (yylex): Allow space between sign and number.
35835         Problem reported by Dan Jacobson.
35836
35837 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35838
35839         Merge from coreutils CVS.
35840
35841         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35842         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35843         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35844         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35845         xstrtol.m4: Fix copyright date and/or serial number.
35846
35847         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35848         See if we need an fchown replacement.
35849         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35850         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35851         and use the replacement function if we detect either defect.
35852
35853         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35854         gl_UTIMECMP.
35855
35856 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35857         and  Jim Meyering  <jim@meyering.net>
35858
35859         Merge from coreutils CVS.
35860
35861         * lib/stat-macros.h: New file, with contents from file-type.h
35862         and coreutils' system.h.
35863         * lib/file-type.c: Include "stat-macros.h".
35864         * lib/file-type.h (file_type): Move all macro definitions to new file,
35865         stat-macros.h.
35866
35867         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35868         Wrap old code with this conditional.
35869         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35870         function that does not dereference symlinks.
35871         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35872
35873         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35874         dependency problems.
35875         (xreadlink): Accept new arg SIZE, for efficiency.
35876         All decls and uses changed.
35877         * lib/xreadlink.h: Include <stddef.h>, for size_t.
35878
35879         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35880         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35881
35882         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35883         sysexits.h.
35884
35885 2004-06-01  Jim Meyering  <jim@meyering.net>
35886
35887         * m4/calloc.m4: New file.
35888
35889 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
35890
35891         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35892         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
35893         Also, fix a typo in a diagnostic.
35894
35895 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35896
35897         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35898         or AC_FUNC_REALLOC.
35899
35900 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35901
35902         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35903         macros to be defined.
35904         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35905         the allocator returns NULL because the requested size is zero.
35906
35907 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35908
35909         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35910         var.  Add comment explaining why libc still defines it.  This
35911         merges the following patch from glibc:
35912         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35913
35914 2004-05-20  Andreas Schwab  <schwab@suse.de>
35915
35916         * m4/free.m4: Replace free if it not known to work, not the other
35917         way round.
35918
35919 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35920
35921         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
35922         present in glibc since revision 1.1 of this file.
35923         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35924         obstack_alignment_mask, obstack_alloc, obstack_base,
35925         obstack_blank, obstack_blank_fast, obstack_chunk_size,
35926         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35927         obstack_grow0, obstack_init, obstack_int_grow,
35928         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35929         obstack_next_free, obstack_object_size, obstack_ptr_grow,
35930         obstack_ptr_grow_fast, obstack_room): Remove declarations of
35931         nonexistent functions.
35932
35933 2004-05-18  Karl Berry  <karl@gnu.org>
35934
35935         * config/srclist.txt: break link for vasnprintf.c.
35936
35937 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35938
35939         Port obstack to the AS/400, where pointers are 16 bytes wide and
35940         you cannot cast an integer to a valid pointer.  This patch is
35941         currently waiting to be integrated into glibc; see
35942         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35943
35944         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35945         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35946         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35947         (struct obstack): temp member is now a union of a pointer and
35948         an integer, instead of an integer.  All integer uses changed.
35949         This does not affect the physical layout of struct obstack,
35950         except on hosts (like the AS/400) where the size or alignment of
35951         void * is greater than that of ptrdiff_t.
35952         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35953         __STDC__)]: Store temporary in pointer member of union, not
35954         integer member.
35955         * lib/obstack.c: Include <stddef.h>, for offsetof.
35956         (struct fooalign): Remove; it doesn't need a name.
35957         (union fooround): Change double to long double, and add void *.
35958         (DEFAULT_ALIGNMENT): Use offsetof to compute.
35959         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35960         not a macro.  Hence the values are always int; so remove all
35961         casts-to-int in uses.
35962
35963 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35964
35965         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35966         we can get this patch merged into glibc.
35967
35968 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35969             Paul Eggert  <eggert@cs.ucla.edu>
35970
35971         * m4/argp: Depend on alloca.
35972
35973 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35974             Paul Eggert  <eggert@cs.ucla.edu>
35975
35976         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
35977         freecoding.
35978
35979 2004-05-17  Bruno Haible  <bruno@clisp.org>
35980
35981         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
35982         precision that consists of a '.' followed by an empty digit string.
35983         Patch by Tor Lillqvist <tml@iki.fi>.
35984
35985 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35986
35987         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
35988         for backward compatibility with older code.  We need our own
35989         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
35990         it under some other name, and our alloca.h will define it.
35991
35992 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35993             Derek Price  <derek@ximbiot.com>
35994
35995         * lib/alloca.c: Include <alloca.h>, to get our interface.
35996         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
35997         include <alloca.h> first.  Use C89 prototype for alloca; this
35998         requires including <stddef.h> for size_t.  Use extern "C" if C++.
35999         Use #elif for simplicity, since we can assume C89 now.
36000         Don't try to source the system alloca.h since it will not be found
36001         and to prevent recursively including its replacement.
36002         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
36003         * lib/regex.c: Likewise.
36004
36005 2004-05-16  Derek Price  <derek@ximbiot.com>
36006             Paul Eggert  <eggert@cs.ucla.edu>
36007
36008         getline cleanup.  This changes the getndelim2 API: both order of
36009         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
36010         no delimiter).
36011
36012         * lib/getline.c: Don't include stddef.h or stdio.h, since our
36013         interface does that.
36014         (getline): Always use getdelim, so that we don't have two
36015         copies of this code.
36016         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
36017         if available.
36018         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
36019         (GETNDELIM2_MAXIMUM): New macro.
36020         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
36021         instead of the old practice of delim2==0.  All callers changed.
36022         Return -1 on overflow, instead of returning junk.
36023         Do not set *linesize unless allocation succeeds.
36024         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
36025         that we include sys/types.h.
36026         * lib/getnline.h: Likewise.
36027         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
36028         (getndelim2): Reorder arguments.
36029         * lib/getnline.c (getnline, getndelim):
36030         Don't discard the NMAX argument.
36031         (getnline): Invoke getndelim, to avoid code duplication.
36032         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
36033         of (size_t) -1 by callers of the getnline family.
36034
36035 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36036
36037         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
36038         Check for gettimeofday.
36039         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
36040         Check for settimeofday, stime.
36041
36042 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36043
36044         * lib/nanosleep.c (suspended): Change its type from int to
36045         sig_atomic_t volatile.
36046         (first_call): Make it private to rpl_nanosleep, and have it
36047         be zero initially as that's a bit faster.
36048         (my_usleep): Round up fractional times instead of truncating them,
36049         as this is the usual meaning for 'sleep'.
36050
36051         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
36052         doesn't work.
36053         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
36054         (ENOSYS): Define if not defined.
36055         (settime): Fall back on stime if it exists and settimeofday fails.
36056         But don't bother with fallbacks if a method fails with errno == EPERM.
36057
36058 2004-05-11  Jim Meyering  <jim@meyering.net>
36059
36060         Prior to this change, the save_cwd caller required read access to the
36061         current directory on most systems (ones with the fchdir function).
36062
36063         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
36064         fails, try write-only, and finally, resort to using xgetcwd.
36065
36066 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36067
36068         * lib/obstack.c, obstack.h: Import changes from libc.
36069
36070 2004-04-28  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
36073         also implicitly appends .exe to executables.
36074         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
36075         accepts Windows pathnames.
36076         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36077         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36078         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36079         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36080         Reported by Derek Robert Price <derek@ximbiot.com>.
36081
36082 2004-04-21  Karl Berry  <karl@gnu.org>
36083
36084         * config/srclist.txt (localcharset.c): break sync.
36085
36086 2004-04-20  Paul Eggert  <eggert@twinsun.com>
36087
36088         * m4/host-os.m4: Add a copyright notice.
36089
36090 2004-04-20  Jim Meyering  <jim@meyering.net>
36091
36092         Change UTILS_ to gl_ in AC_DEFINE'd names.
36093         Change utils_- and jm_-prefixed variables, too.
36094         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
36095         UTILS_FUNC_MKDIR_TRAILING_SLASH.
36096         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
36097
36098         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
36099         Don't emit trailing blanks.
36100         Also rename jm_-prefixed variables to have gl_ prefix.
36101
36102         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
36103         Also rename jm_-prefixed variables to have gl_ prefix.
36104
36105         * m4/jm-macros.m4: Reflect the renamings.
36106         * m4/prereq.m4: Likewise.
36107
36108 2004-04-20  Jim Meyering  <jim@meyering.net>
36109
36110         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
36111         memory.
36112
36113 2004-04-20  Jim Meyering  <jim@meyering.net>
36114             Bruno Haible  <bruno@clisp.org>
36115
36116         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36117         memory when realloc fails.
36118
36119 2004-04-19  Jim Meyering  <jim@meyering.net>
36120
36121         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36122         now that readutmp.c may call `free (0)'.
36123
36124 2004-04-19  Bruno Haible  <bruno@clisp.org>
36125
36126         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36127         * m4/inttypes_h.m4: Likewise.
36128         * m4/stdint_h.m4: Likewise.
36129         * m4/intmax_t.m4: Likewise.
36130         * m4/uintmax_t.m4: Likewise.
36131
36132 2004-04-18  Jim Meyering  <jim@meyering.net>
36133
36134         * m4/prereq.m4: Don't forbid jm_ prefix.
36135
36136         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36137         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36138         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36139         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36140         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36141         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36142         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36143         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36144         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36145         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36146         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36147         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36148         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36149         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36150         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36151         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36152         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36153         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36154         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36155
36156 2004-04-18  Jim Meyering  <jim@meyering.net>
36157
36158         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36159         failure, don't leak memory and do call END_UTMP_ENT.
36160
36161 2004-04-16  Jim Meyering  <jim@meyering.net>
36162
36163         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
36164         coreutils' stat program.
36165         (gl_PREREQ): Don't require jm_PREREQ_STAT.
36166
36167 2004-04-11  Paul Eggert  <eggert@twinsun.com>
36168
36169         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36170         C89.
36171         (CHAR_BIT): Remove, since we assume C89.
36172         Include <stdint.h> if available, as per current Autoconf CVS advice.
36173
36174 2004-03-31  Jim Meyering  <jim@meyering.net>
36175
36176         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
36177         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
36178         * m4/xalloc.m4: Likewise.
36179
36180 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36181
36182         Merge from coreutils.
36183
36184         * m4/inttostr.m4: New file.
36185         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
36186         Require AM_STDBOOL_H and gl_TIMESPEC instead.
36187         Require gl_CLOCK_TIME.
36188         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
36189
36190 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36191
36192         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
36193         not bool, to be more consistent with Unix conventions.
36194         Suggested by Bruno Haible.
36195
36196         Merge from coreutils.
36197
36198         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
36199         * lib/umaxtostr.c: New files.
36200
36201         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
36202         the usual <time.h> dance.
36203         (get_date): Change signature to support fractional time stamps.
36204         All callers changed.
36205         * lib/getdate.y: Include "getdate.h" first, as we can now
36206         assume C89 and don't need to worry about 'const'.
36207         Similarly, include "unlocked-io.h" near start, not in middle.
36208         Include <limits.h>.
36209         (textint.value): Use long int rather than int.
36210         (textint.digits): Use size_t rather than int.
36211         (BILLION, LOG10_BILLION): New constants.
36212         (parser_control): New member rel_ns.  Members day_ordinal,
36213         time_zone, month, day, hour, minutes, rel_year, rel_month,
36214         rel_day, rel_hour, rel_minutes, rel_seconds
36215         are now long int, not int.  Member seconds is now struct timespec,
36216         not int.  New member timespec_seen.  Members dates_seen, days_seen,
36217         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
36218         not int.
36219         (%union.intval): Now long int, not int.
36220         New member timespec.
36221         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
36222         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
36223         (spec): Now is a timespec or an item list.
36224         (timespec, items): New nonterminals.
36225         (time, rel, relunit, number, get_date):
36226         Add support for fractional seconds.
36227         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
36228         (gmtime, localtime, mktime): Remove decls; not needed with C89.
36229         (to_hour): First arg is now long int, not int.
36230         (to_year): Returns long int, not int.
36231         Don't treat year -70 like 70.
36232         (tm_diff): Returns long int, not int.
36233         (lookup_word): Use bool instead of int when appropriate.
36234         (yylex): Use size_t for count, not int.
36235         Detect overflow when parsing large integer constants.
36236         Add support for fractions.
36237         (get_date): Make pointers 'const' if possible.
36238         Use more-portable code to detect integer overflow.
36239         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
36240         Don't use ctime; it's not reliable if the year has >4 digits.
36241
36242         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
36243         This is for compatibility with BSD.
36244
36245         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
36246         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
36247         From coreutils' system.h.
36248
36249         * lib/userspec.c: Don't include "posixver.h".
36250         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36251         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36252         compatible extension.  Simplify code by removing a boolean int
36253         that was always nonzero if a string was nonnull.
36254
36255 2004-03-30  Jim Meyering  <jim@meyering.net>
36256
36257         Merge from coreutils.
36258
36259         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36260         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36261         on some systems one must include <grp.h> before it.
36262         Reported by Christian Krackowizer.
36263
36264 2004-03-30  Jim Meyering  <jim@meyering.net>
36265
36266         Merge from coreutils.
36267
36268         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36269
36270         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36271         an empty input stream.
36272
36273         * lib/readtokens.c: Include <stdbool.h>.
36274         (readtoken): Use `size_t' rather than int/long.
36275         All callers adjusted.
36276         Use `bool' rather than `int' where appropriate.
36277         Use memset rather than an explicit loop.
36278         Use x2nrealloc rather than xrealloc.
36279         Allow the use of `\0' as a delimiter.
36280         (readtokens): Likewise.
36281         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36282
36283 2004-03-30  Jim Meyering  <jim@meyering.net>
36284
36285         * m4/realloc.m4: Remove file, since now it does no more than
36286         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36287         the `configure.ac' section of module/realloc.
36288         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36289
36290 2004-03-30  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36293         nonnull.
36294
36295 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36296
36297         Merge changes to getloadavg.c from coreutils and Emacs.
36298
36299         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36300         Define to an expression, not to the empty string.
36301         Include cloexec.h and xalloc.h.
36302         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36303         Use set_cloexec_flag rather than rolling our own.
36304         * lib/cloexec.c, lib/cloexec.h: New files.
36305
36306 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36307
36308         * m4/cloexec.m4: New file.
36309
36310 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36311
36312         * lib/getopt.h: Sync with libc CVS.
36313
36314 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36315             Bruno Haible  <bruno@clisp.org>
36316
36317         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36318         mbswidth.
36319
36320 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36321             Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/mbswidth.h: Include <wchar.h> only if
36324         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36325         <wchar.h>.
36326         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36327
36328 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36329
36330         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36331         Sync with libc CVS.
36332         * lib/getopt_int.h: New file, also synced from libc.
36333
36334 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36335
36336         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36337         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
36338         Bring back getopt.c, getopt.h, getopt1.c.
36339
36340 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36341
36342         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36343         All uses changed.  Check for sa_sigaction member; this fixes
36344         a bug first reported by Jason Andrade in
36345         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36346
36347 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36348
36349         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
36350         '#if' expressions.  Unlike the code it replaces, it does not
36351         depend on (defined _SC_PAGESIZE).  However, it does depend on
36352         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36353         first reported by Jason Andrade in
36354         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36355
36356 2004-02-25  Simon Josefsson  <jas@extundo.com>
36357
36358         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36359
36360 2004-02-25  Simon Josefsson  <jas@extundo.com>
36361
36362         * lib/strdup.h: New file.
36363         * lib/strdup.c: Include it.
36364         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36365         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36366
36367 2004-02-23  Karl Berry  <karl@gnu.org>
36368
36369         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36370         (from fencepost.gnu.org:/gd/gnuorg).
36371
36372 2004-02-23  Karl Berry  <karl@gnu.org>
36373
36374         * config/srclistvars.sh (GNUORG) [karl]: redefine.
36375         * config/srclist.txt: add maintain/standards documents.
36376
36377 2004-02-18  Bruno Haible  <bruno@clisp.org>
36378
36379         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36380         Reported by Derek Robert Price <derek@ximbiot.com>.
36381
36382 2004-02-16  Karl Berry  <karl@gnu.org>
36383
36384         * config/mkinstalldirs, install-sh: update from automake.
36385
36386 2004-02-06  Karl Berry  <karl@gnu.org>
36387
36388         * m4/po.m4: update from gettext 0.14.1.
36389
36390 2004-02-06  Karl Berry  <karl@gnu.org>
36391
36392         * lib/config.charset: update from gettext 0.14.1.
36393
36394 2004-02-05  Paul Eggert  <eggert@twinsun.com>
36395
36396         Add comments and code, prompted by suggestions from Bruno Haible
36397         for sh-quote.
36398         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
36399         describing the enum quoting_style values.
36400         * lib/quotearg.c (quotearg_alloc): New function.
36401         (quotearg_buffer_restyled): Treat lone { and } as special.
36402         Treat = as special.  Work around bug with older shells
36403         that "see" a '\' that is really the 2nd byte of a multibyte char.
36404         Quote empty string with shell_quoting_style.
36405
36406 2004-02-03  Bruno Haible  <bruno@clisp.org>
36407
36408         * m4/pipe.m4: New file, from GNU gettext.
36409
36410 2004-02-03  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/pipe.h: New file, from GNU gettext.
36413         * lib/pipe.c: New file, from GNU gettext.
36414
36415 2004-01-27  Bruno Haible  <bruno@clisp.org>
36416
36417         * m4/execute.m4: New file, from GNU gettext.
36418
36419 2004-01-27  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/execute.h: New file, from GNU gettext.
36422         * lib/execute.c: New file, from GNU gettext.
36423         * lib/w32spawn.h: New file, from GNU gettext.
36424
36425 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36426
36427         Merge from diffutils.
36428
36429         * lib/file-type.c (file_type): Add typed memory objects.
36430         * lib/file-type.h (S_TYPEISTMO): New macro.
36431
36432         * lib/c-stack.h (c_stack_action): Remove argv argument.
36433         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
36434         (die): Don't calculate message unless segv_action returns.
36435         (get_stack_location, min_address_from_argv, max_address_from_argv,
36436         volatile stack_base, volatile_stack_size): Remove.
36437         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36438         that every segmentation violation is a stack overflow.  (Ouch!)
36439         See Debian bug 136249 (still outstanding) for more info about why
36440         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36441
36442 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36443
36444         Exit-status fix from coreutils.
36445
36446         Use exit_failure consistently in place of EXIT_FAILURE,
36447         so that program exit statuses are consistent on failure.
36448
36449         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36450         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36451         * lib/argmatch.h: Comment fix to match the above.
36452         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36453         Now a macro referring to exit_failure, instead of a separate
36454         variable.  Include "exitfail.h" to get it.
36455         * lib/xstrtol.h: Include "exitfail.h".
36456         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36457
36458         * lib/long-options.c (parse_long_options): Use prototype
36459         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
36460         for clarity.
36461
36462 2004-01-21  Jim Meyering  <jim@meyering.net>
36463
36464         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36465         so as not to conflict with a different-sized __mktime_internal
36466         function in GNU libc.
36467         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36468         Problem building statically-linked `ls' reported by Michael Brunnbauer.
36469
36470 2004-01-20  Karl Berry  <karl@gnu.org>
36471
36472         * config/config.guess: update from config.
36473
36474         * config/srclistvars.sh: GNUWWWLICENSES for karl.
36475
36476 2004-01-20  Bruno Haible  <bruno@clisp.org>
36477
36478         Safer stack allocation.
36479         * lib/setenv.c: Include allocsa.h.
36480         (alloca): Remove fallback definition.
36481         (freea): Remove macro.
36482         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36483         instead of freea.
36484
36485 2004-01-20  Bruno Haible  <bruno@clisp.org>
36486
36487         * m4/eealloc.m4: New file, from GNU gettext.
36488
36489 2004-01-20  Bruno Haible  <bruno@clisp.org>
36490
36491         * m4/allocsa.m4: New file, from GNU gettext.
36492
36493 2004-01-20  Bruno Haible  <bruno@clisp.org>
36494
36495         * lib/xallocsa.h: New file, from GNU gettext.
36496         * lib/xallocsa.c: New file, from GNU gettext.
36497
36498 2004-01-20  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36501
36502 2004-01-20  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36505         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36506         specially.
36507
36508 2004-01-20  Bruno Haible  <bruno@clisp.org>
36509
36510         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36511         patch.
36512
36513 2004-01-20  Bruno Haible  <bruno@clisp.org>
36514
36515         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36516
36517 2004-01-20  Bruno Haible  <bruno@clisp.org>
36518
36519         * lib/eealloc.h: New file.
36520
36521 2004-01-20  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/binary-io.h: Avoid warnings on Cygwin.
36524
36525 2004-01-20  Bruno Haible  <bruno@clisp.org>
36526
36527         * lib/allocsa.h: New file, from GNU gettext.
36528         * lib/allocsa.c: New file, from GNU gettext.
36529
36530 2004-01-18  Karl Berry  <karl@gnu.org>
36531
36532         * doc/gpl.texi, doc/lgpl.texi: new files.
36533
36534 2004-01-18  Karl Berry  <karl@gnu.org>
36535
36536         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36537         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36538
36539 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36540
36541         Merge from coreutils.
36542
36543         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36544         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36545         (gl_DEFAULT_POSIX2_VERSION): Move
36546         the documentation from 'configure' into 'config.hin',
36547         so that 'configure --help' isn't burdened by it and
36548         we don't have to worry about its formatting there.
36549         Reword the documentation so that it's more succinct
36550         and can be run together into a single paragraph.
36551         * m4/same.m4 (gl_SAME): Check for pathconf.
36552
36553 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36554
36555         Merge from coreutils.
36556
36557         * lib/posixver.c: Include posixver.h.
36558
36559         * lib/same.c: Include <stdbool.h>, <limits.h>.
36560         (_POSIX_NAME_MAX): Define if not defined.
36561         (MIN): New macro.
36562         (same_name): If file names are silently truncated, report
36563         that the file names are the same if they are the same after
36564         the silent truncation.
36565
36566         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36567         conversion function.
36568         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
36569         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
36570         longer needed.
36571
36572 2004-01-15  Jim Meyering  <jim@meyering.net>
36573
36574         Merge from coreutils.
36575
36576         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36577         if no library is required.
36578         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36579         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36580         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36581         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36582         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36583         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36584         value, $ac_cv_search_crypt, if it's "none required".
36585         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36586         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36587         not gl_FUNC_GETLOADAVG.
36588         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36589         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36590
36591 2004-01-15  Jim Meyering  <jim@meyering.net>
36592
36593         Merge from coreutils.
36594
36595         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
36596         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
36597         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36598
36599         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36600         optional configure-time default.
36601
36602         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36603
36604         * lib/xreadlink.c (xreadlink): Correct outdated comment.
36605
36606 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
36607
36608         Merge from coreutils.
36609
36610         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36611         value, $ac_cv_search_nanosleep, if it's "none required".
36612
36613 2004-01-14  Paul Eggert  <eggert@twinsun.com>
36614
36615         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36616         with like-named macro in fnmatch.c.
36617         (EXT): Use an internal constant instead.
36618
36619         Merge fnmatch patches from glibc.
36620         * lib/fnmatch.c (mbsinit): Remove define.
36621         Add libc_hidden_ver (__fnmatch, fnmatch).
36622         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36623         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36624
36625 2004-01-14  Karl Berry  <karl@gnu.org>
36626
36627         * config/install-sh: update from automake.
36628
36629 2004-01-13  Karl Berry  <karl@gnu.org>
36630
36631         * config/install-sh: update from automake.
36632
36633 2004-01-09  Karl Berry  <karl@gnu.org>
36634
36635         * config/install-sh: update from automake.
36636
36637 2004-01-05  Karl Berry  <karl@gnu.org>
36638
36639         * config/config.{sub,guess}: update from config.
36640
36641 2003-12-31  Karl Berry  <karl@gnu.org>
36642
36643         * config/depcomp: update from automake.
36644
36645 2003-12-14  Karl Berry  <karl@gnu.org>
36646
36647         * lib/config.charset: update from gettext-runtime.
36648
36649 2003-12-03  Paul Eggert  <eggert@twinsun.com>
36650
36651         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36652         Bug reported by Alfred M. Szmidt.
36653
36654 2003-12-03  Bruno Haible  <bruno@clisp.org>
36655
36656         * m4/gettext.m4: Upgrade from gettext-0.13.
36657         * m4/po.m4: Upgrade from gettext-0.13.
36658         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36659         * m4/intmax.m4: New file, from gettext-0.13.
36660         * m4/printf-posix.m4: New file, from gettext-0.13.
36661
36662 2003-11-29  Karl Berry  <karl@gnu.org>
36663
36664         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36665
36666 2003-11-25  Paul Eggert  <eggert@twinsun.com>
36667             Bruno Haible  <bruno@clisp.org>
36668
36669         * lib/printf-parse.h: Don't include sys/types.h.
36670         (ARG_NONE): New macro.
36671         (char_directive): Change type of *arg_index fields to size_t.
36672         * lib/printf-parse.c: Don't include sys/types.h.
36673         (SSIZE_MAX): Remove macro.
36674         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36675         Remove unnecessary overflow check.
36676         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36677         fields.
36678
36679 2003-11-25  Bruno Haible  <bruno@clisp.org>
36680
36681         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36682
36683 2003-11-25  Bruno Haible  <bruno@clisp.org>
36684
36685         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36686         gt_TYPE_SSIZE_T.
36687
36688 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36689
36690         * modules/alloca: Remove dependency on xalloc.
36691
36692 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36693
36694         * lib/alloca.c: Remove dependency on xalloc module.
36695         (xalloc_die): Remove.
36696         (memory_full) [!defined emacs]: New macro.
36697         [!defined emacs]: Don't include xalloc.h.
36698         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36699         address arithmetic overflows.  Change datatypes a bit to avoid
36700         unnecessary casts.
36701
36702 2003-11-22  Jim Meyering  <jim@meyering.net>
36703
36704         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36705         s/size/size_t/.
36706
36707 2003-11-21  Karl Berry  <karl@gnu.org>
36708
36709         * config/config.{sub,guess}: update from config.
36710
36711 2003-11-18  Karl Berry  <karl@gnu.org>
36712
36713         * config/config.{sub,guess}: update from config.
36714
36715         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36716
36717 2003-11-17  Paul Eggert  <eggert@twinsun.com>
36718
36719         * README: Mention that S+T cannot overflow if S is the size of
36720         an existing object and T is sufficiently small.
36721
36722 2003-11-17  Jim Meyering  <jim@meyering.net>
36723
36724         On systems without utime and without a utimes function capable of
36725         dealing with a NULL struct utimbuf* argument, this utime replacement
36726         could -- in unusual circumstances -- leak a file descriptor.
36727         * lib/utime.c: Include <unistd.h> and <errno.h>.
36728         (utime_null): Be sure to close `fd' and to preserve errno.
36729         Reported by Geoff Collyer via Arnold Robbins.
36730
36731 2003-11-17  Bruno Haible  <bruno@clisp.org>
36732
36733         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36734         (Depends-on): Add xsize.
36735
36736 2003-11-17  Bruno Haible  <bruno@clisp.org>
36737
36738         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36739
36740 2003-11-17  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/vasnprintf.c (alloca): Remove fallback definition.
36743         (freea): Remove definition.
36744         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36745         Reported by Paul Eggert.
36746
36747 2003-11-16  Paul Eggert  <eggert@twinsun.com>
36748             Bruno Haible  <bruno@clisp.org>
36749
36750         Protect against address arithmetic overflow.
36751         * lib/printf-args.h: Include stddef.h.
36752         (arguments): Change type of field 'count' to size_t.
36753         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36754         'unsigned int' where appropriate.
36755         * lib/printf-parse.h: Include sys/types.h.
36756         (char_directive): Change type of *arg_index fields to ssize_t.
36757         (char_directives): Change type of fields 'count', max_*_length to
36758         size_t.
36759         * lib/printf-parse.c: Include sys/types.h and xsize.h.
36760         (SSIZE_MAX): Define fallback value.
36761         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36762         instead of 'int' where appropriate. Check a_allocated, d_allocated
36763         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36764         * lib/vasnprintf.c: Include xsize.h.
36765         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36766         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36767         overflow. Avoid wraparound when converting a width or precision from
36768         decimal to binary.
36769
36770 2003-11-16  Bruno Haible  <bruno@clisp.org>
36771
36772         Update from GNU gettext.
36773         * lib/printf-parse.c: Generalize to it can be compiled for wide
36774         strings.
36775         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36776         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36777         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36778         SNPRINTF): New macros.
36779         Don't include <alloca.h> if the file is used inside libintl.
36780         (local_wcslen): New function, for Solaris 2.5.1.
36781         (VASNPRINTF): Use it instead of wcslen.
36782
36783 2003-11-16  Bruno Haible  <bruno@clisp.org>
36784
36785         * lib/xsize.h (xmax): New function.
36786         (xsum, xsum3, xsum4): Declare as "pure" functions.
36787
36788 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36789
36790         * modules/xalloc (Files): Undo latest change, since xalloc.h
36791         no longer needs SIZE_MAX or PTRDIFF_MAX.
36792
36793 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36794
36795         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36796         gl_PTRDIFF_MAX.
36797
36798 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36799
36800         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36801         "return", to pacify some unknown compiler.  Problem reported
36802         by Joerg Schilling.
36803
36804 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36805
36806         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36807         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36808         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
36809         heuristic is just as accurate as far as we know, and it removes a
36810         dependency on size_max.m4 and ptrdiff_max.m4.
36811
36812 2003-11-11  Bruno Haible  <bruno@clisp.org>
36813
36814         * modules/xsize (Files): Add m4/size_max.m4.
36815         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36816
36817 2003-11-11  Bruno Haible  <bruno@clisp.org>
36818
36819         * m4/size_max.m4: New file.
36820         * m4/ptrdiff_max.m4: New file.
36821         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36822         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36823         (gl_XALLOC): Invoke it.
36824
36825 2003-11-11  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36828         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36829         defined.
36830
36831 2003-11-10  Paul Eggert  <eggert@twinsun.com>
36832
36833         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36834         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36835         rejected some allocations of exactly SIZE_MAX - 2 bytes.
36836         From Bruno Haible.
36837         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36838         not (size_t) -1, since it's defined here.
36839
36840 2003-11-09  Karl Berry  <karl@gnu.org>
36841
36842         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36843
36844 2003-11-06  Paul Eggert  <eggert@twinsun.com>
36845
36846         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36847         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36848         Reject sizes of exactly SIZE_MAX bytes.
36849         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36850         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36851
36852 2003-11-05  Bruno Haible  <bruno@clisp.org>
36853
36854         * lib/xsize.h: Include limits.h, to avoid a possible collision with
36855         SIZE_MAX defined in <limits.h> on Solaris.
36856
36857 2003-11-04  Jim Meyering  <jim@meyering.net>
36858
36859         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36860         variable names, rather than @VAR@.
36861         * modules/poll: Likewise.
36862
36863 2003-11-04  Bruno Haible  <bruno@clisp.org>
36864
36865         * modules/xsize: New file.
36866         * modules/linebreak: Depend on xsize.
36867         * MODULES.html.sh (func_all_modules): Add xsize.
36868
36869 2003-11-04  Bruno Haible  <bruno@clisp.org>
36870
36871         * m4/xsize.m4: New file.
36872
36873 2003-11-04  Bruno Haible  <bruno@clisp.org>
36874
36875         * lib/xsize.h: New file.
36876         * lib/linebreak.c: Include xsize.h.
36877         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36878         argument for overflow.
36879         Suggested by Paul Eggert.
36880
36881 2003-11-03  Karl Berry  <karl@gnu.org>
36882
36883         * config/config.{guess,sub}: update from config.
36884
36885 2003-11-03  Jim Meyering  <jim@meyering.net>
36886
36887         * modules/userspec (lib_SOURCES): Add userspec.h.
36888         (Include): Add "userspec.h".
36889         Improve description.
36890
36891 2003-11-03  Jim Meyering  <jim@meyering.net>
36892
36893         * lib/userspec.c: Include "userspec.h".
36894         * lib/userspec.h: New file.
36895
36896 2003-11-03  Bruno Haible  <bruno@clisp.org>
36897
36898         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36899
36900 2003-11-03  Bruno Haible  <bruno@clisp.org>
36901
36902         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36903         available, to avoid (extremely rare) race condition.
36904         Suggested by Paul Eggert.
36905
36906 2003-11-02  Karl Berry  <karl@gnu.org>
36907
36908         * config/srclist.txt (vasprintf.c): sync broken, sigh.
36909
36910 2003-10-31  Paul Eggert  <eggert@twinsun.com>
36911
36912         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36913         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36914         (read_filesystem_list): Set and use me_type_malloced.
36915         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36916         whatever the type happens to be), for brevity and consistency.
36917         Check for size calculation overflow on Alphas running OSF/1.
36918
36919 2003-10-31  Jim Meyering  <jim@meyering.net>
36920
36921         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36922
36923         * lib/linebuffer.c: Include <string.h> for declaration of memset.
36924
36925 2003-10-30  Paul Eggert  <eggert@twinsun.com>
36926             Bruno Haible  <bruno@clisp.org>
36927
36928         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36929         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36930
36931 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36932
36933         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36934         netbsd*-gnu*.  Suggested by Robert Millan.
36935
36936 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36937
36938         * modules/group-member: Depend on stdbool.
36939
36940 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36941
36942         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36943
36944 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36945
36946         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
36947         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
36948         after the 'gnu' in these cases.  This fixes some bugs in the
36949         previous change, and is based on suggestions by Robert Millan.
36950
36951 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36952
36953         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36954         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
36955         no longer needed.
36956         * lib/quotearg.c (quotearg_n_options): Use it.
36957         * lib/group-member.c: Include <stdbool.h>.
36958         (free_group_info): Arg is now const *; don't free arg.
36959         (get_group_info): Now returns bool and accepts struct group_info *,
36960         rather than returning a malloc'ed struct group_info *.
36961         All uses changed.  Check for overflow in internal size calculation.
36962
36963         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36964         rather than xmalloc/xrealloc.
36965         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36966         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
36967         conformance bug: the old code used a pointer after freeing the
36968         storage that it addressed.
36969         * lib/hash.c (hash_initialize): Simplify the code by using
36970         xalloc_oversized rather than doing it by hand.
36971         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36972         the buffer preserved.  Use free and xmalloc instead.
36973         * lib/quotearg.c (quotearg_n_options): Likewise.
36974         Use a simpler test for size overflow.  Don't use xalloc_oversized
36975         because unsigned int might be wider than size_t (!); this suggests
36976         that we should switch from unsigned int to size_t for slot numbers.
36977
36978 2003-10-28  Paul Eggert  <eggert@twinsun.com>
36979
36980         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
36981         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
36982         NetBSD kernels.  Requested by Richard Stallman.
36983
36984 2003-10-27  Paul Eggert  <eggert@twinsun.com>
36985
36986         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
36987         to allocate the returned structure.  Do not allocate a subarray,
36988         as x2nrealloc will do that.
36989         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
36990         instead of xnrealloc.
36991         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
36992
36993 2003-10-27  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/stdbool_.h: Better support for BeOS.
36996
36997 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36998
36999         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
37000         now uses inline.
37001
37002 2003-10-26  Paul Eggert  <eggert@twinsun.com>
37003
37004         * lib/xalloc.h (xalloc_oversized): New static inline function, for
37005         callers that want to do their own size-overflow checking.  Include
37006         <stdbool.h>, since xalloc_oversized returns bool.
37007         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
37008         to use xalloc_oversized.
37009
37010         Add two functions x2realloc, x2nrealloc, for programs that grow
37011         arrays dynamically by doubling their sizes.
37012         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
37013         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
37014         New functions.
37015
37016         Port to C99 semantics for 'inline' of external functions.
37017         Bug reported by Bruno Haible.
37018         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
37019         with the old contents of xnmalloc.
37020         (xnmalloc, xmalloc): Use it.
37021         (xnrealloc_inline): New static inline function,
37022         with the old contents of xnrealloc.
37023         (xnrealloc, xrealloc): Use it.
37024
37025         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
37026         that.
37027
37028 2003-10-26  Karl Berry  <karl@gnu.org>
37029
37030         * config/srclist.txt (COPYING.DOC): no longer available from
37031         /gd/gnuorg; don't know where the ultimate source is.
37032
37033 2003-10-25  Paul Eggert  <eggert@twinsun.com>
37034
37035         Fix several address-calculation bugs in the hash modules,
37036         plus some minor code cleanup.
37037
37038         * lib/hash.h: Include <stdbool.h>, for bool.
37039         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
37040         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
37041         hash_get_n_entries, hash_get_max_bucket_length,
37042         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
37043         hash_rehash): Use size_t rather than unsigned.
37044         * lib/hash.c (struct hash_table, hash_get_n_buckets,
37045         hash_get_n_buckets_used, hash_get_n_entries,
37046         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
37047         hash_get_entries, hash_do_for_each, hash_string, is_prime,
37048         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
37049         Likewise.
37050         (SIZE_MAX): Define if not defined.
37051         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
37052         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
37053         hash_print):
37054         Use const * when possible.
37055         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
37056         (check_tuning): Fix bug: if tuning parameters were very close to
37057         0 or 1, rounding errors could have caused subscript violations.
37058         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
37059         (hash_initialize): Add 'fail:' label
37060         to free table and return NULL, and use it to simplify code.
37061         Use calloc rather than clearing the storage ourself.
37062         (hash_initialize, hash_rehash): Check for arithmetic overflow in
37063         buffer size calculations.
37064         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
37065         Include <stddef.h>, for size_t.
37066         * lib/hash-pjw.c (hash_pjw): Likewise.
37067         Switch to method described by Bruno Haible.
37068         Include <limits.h>, for CHAR_BIT.
37069         (SIZE_BITS): New macro.
37070
37071 2003-10-23  Paul Eggert  <eggert@twinsun.com>
37072
37073         * m4/getline.m4 (AM_FUNC_GETLINE):
37074         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
37075         hosts.  Problem reported by Derek Robert Price in
37076         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
37077         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
37078         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
37079
37080 2003-10-21  Paul Eggert  <eggert@twinsun.com>
37081
37082         * lib/getndelim2.c (getndelim2): When size calculation overflows,
37083         ceiling the allocation at NMAX bytes rather than silently
37084         discarding input bytes before NMAX is reached.  This makes
37085         a difference only if NMAX exceeds SIZE_MAX / 2.
37086
37087         * lib/obstack.c: Merge from glibc.
37088         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
37089         Add libc_hidden_def (_obstack_newchunk).
37090         (_obstack_free) [! defined _LIBC]: Remove.
37091         [defined _LIBC]: Make a strong alias from obstack_free, rather than
37092         a clone of the function body.
37093         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
37094         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
37095
37096         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
37097         glibc.
37098         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
37099         arg to memcpy.
37100
37101         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
37102         (obstack_ptr_grow_fast, obstack_int_grow_fast):
37103         Don't use lvalue casts, as GCC plans to remove support for them
37104         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
37105         was also present in the non-GCC version, indicating that this
37106         code had always been buggy and had never been widely used.
37107         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
37108         Use the fast variant of each macro, rather than copying the
37109         definiens of the fast variant; that way, we'll be more likely to
37110         catch future bugs in the fast variants.
37111
37112 2003-10-20  Bruno Haible  <bruno@clisp.org>
37113
37114         * modules/wait-process: New file.
37115         * MODULES.html.sh (func_all_modules): Add wait-process.
37116
37117 2003-10-20  Bruno Haible  <bruno@clisp.org>
37118
37119         * m4/wait-process.m4: New file.
37120
37121 2003-10-20  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/wait-process.h: New file, from GNU gettext.
37124         * lib/wait-process.c: New file, from GNU gettext.
37125
37126 2003-10-19  Jim Meyering  <jim@meyering.net>
37127
37128         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37129         HPUX 10.20.
37130
37131 2003-10-18  Karl Berry  <karl@gnu.org>
37132
37133         * config/config.guess: update from config.
37134
37135 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37136
37137         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37138         (getgroups): First arg is int, not size_t.
37139         Don't let 'free' mangle errno.
37140
37141 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37142
37143         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37144
37145 2003-10-16  Karl Berry  <karl@gnu.org>
37146
37147         * config/config.{guess,sub}: update from config.
37148
37149 2003-10-16  Jim Meyering  <jim@meyering.net>
37150
37151         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37152         memcpy.
37153
37154 2003-10-15  Paul Eggert  <eggert@twinsun.com>
37155
37156         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37157         (SIZE_MAX): Remove.
37158         (new_exclude, add_exclude_file): Initial size no longer needs to
37159         be a power of 2.
37160         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37161         our own address arithmetic overflow checking.
37162
37163         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37164         (fnmatch): Do not alloca more than 2000 wide characters;
37165         instead, use malloc for large buffers.
37166         Check for address arithmetic overflow, and return -1
37167         with errno set to ENOMEM in that case.
37168         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37169         (NEW_PATTERN): Do not alloca more than 8000 bytes;
37170         instead, return -1.  Check for address arithmetic overflow.
37171
37172 2003-10-14  Paul Eggert  <eggert@twinsun.com>
37173
37174         Handle invalid suffixes and overflow independently, so that
37175         callers can treat them independently as needed.  Fix some bugs in
37176         suffix handling, e.g., "100k@" was not diagnosed as an invalid
37177         suffix for a human-readable blocksize.  The major caller-visible
37178         change is the addition of a new
37179         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
37180         that both overflow and suffix chars were found.
37181
37182         * lib/human.c (humblock): Don't check separately for invalid suffix
37183         char; that is xstrtoumax's job (now that its bug is fixed).
37184         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
37185         INTMAX_MAX]: New macros.
37186         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
37187         TYPE_MAXIMUM): New macros.
37188         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
37189         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
37190         if overflow occurs, as it's what __strtol does and it's more useful
37191         in practice.
37192         (__xstrtol): If __strtol reports some error other than ERANGE,
37193         reflect it to the caller as LONGINT_INVALID.  If it reports
37194         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
37195         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
37196         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
37197         value.
37198         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
37199         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
37200         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
37201         [defined UINTMAX_MAX]: New macros.
37202
37203 2003-10-14  Bruno Haible  <bruno@clisp.org>
37204
37205         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
37206
37207 2003-10-14  Bruno Haible  <bruno@clisp.org>
37208
37209         * m4/sig_atomic_t: New file, from GNU gettext.
37210         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
37211
37212 2003-10-14  Bruno Haible  <bruno@clisp.org>
37213
37214         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
37215         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
37216         Also use volatile where needed.
37217
37218 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37219
37220         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
37221         Change maintainer from Bruno Haible to 'all'.
37222
37223 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37224
37225         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
37226
37227 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37228
37229         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
37230         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
37231         and define in terms of the other primitives.
37232         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
37233         (SIZE_MAX): Define if not already defined.
37234         (array_size_overflow): New function.
37235         (xalloc_die): Abort instead of exiting if 'error' returns.
37236         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
37237         (xmalloc, xrealloc): Use them.
37238         (xcalloc): Check for address arithmetic overflow.
37239         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
37240         a bit faster than strcpy.
37241
37242 2003-10-10  Simon Josefsson  <jas@extundo.com>
37243
37244         * modules/argp (Depends-on): Add restrict and strcase.
37245
37246 2003-10-10  Simon Josefsson  <jas@extundo.com>
37247
37248         * m4/argp.m4: Add AC_C_INLINE.
37249
37250 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37251
37252         Merge getpass from libc, plus a few fixes.
37253
37254         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37255         Include <stdbool.h>.
37256         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37257         __fsetlocking to empty.
37258         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37259         do include <bits/libc-lock.h>.
37260         Do not include <fcntl.h>; not needed.
37261         [_LIBC]: Include <wchar.h>.
37262         (NOTCANCEL_MODE): New macro.
37263         (flockfile, funlockfile) [_LIBC]: New macros.
37264         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37265         [!_LIBC]: New macros.
37266         (call_fclose): New function.
37267         (getpass): Use it.  Save tty stream separately; this simplifies the
37268         code and makes it more reliable if stdin happens to equal stdout.
37269         Invoke __fsetlocking on tty.
37270         Handle thread cancellation if needed.
37271         Namespace cleanup (use __tcgetattr, __getline).
37272         Use bool for Booleans.
37273         [USE_IN_LIBIO]: Handle wide streams.
37274         [!_LIBC]: Unconditionally do the fseek, since we don't know what
37275         stream might go where.
37276
37277         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37278         doesn't have to include <stdio.h> before us.
37279         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37280         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37281         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37282         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37283         if not declared, so that we can use getpass.c code from libc without
37284         rewriting it.
37285         (flockfile, ftrylockfile, funlockfile): New macros.
37286
37287 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37288
37289         * modules/getpass: Depend on stdbool.
37290
37291 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37292
37293         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37294
37295 2003-10-07  Karl Berry  <karl@gnu.org>
37296
37297         * config/config.{guess,sub}: update from config.
37298
37299 2003-10-06  Jim Meyering  <jim@meyering.net>
37300             Bruno Haible  <bruno@clisp.org>
37301
37302         This lets translators provide better translations for the
37303         "Written by ..." part of --version output.
37304         * lib/version-etc.h: Include stdarg.h.
37305         (version_etc_copyright): Declare as readonly.
37306         (version_etc): Make this function variadic with a NULL-terminated list
37307         of author name strings.
37308         (version_etc_va): New declaration.
37309         * lib/version-etc.c: Include stdarg.h, stdlib.h.
37310         (version_etc_copyright): Declare as readonly.
37311         (version_etc_va): New function. Provide a different translatable string
37312         for each possible number of authors < 10. Abbreviate when there are 10
37313         authors or more.
37314         (version_etc): Make this function variadic. Call version_etc_va.
37315         Suggestion from Gary V. Vaughan.
37316
37317         * lib/long-options.h (parse_long_options): Change prototype: the
37318         authors string is moved to the end and becomes variadic.
37319         * lib/long-options.c: Include stdarg.h.
37320         (parse_long_options): Make this function variadic, too.
37321         Call version_etc_va, not version_etc.
37322
37323 2003-10-06  Bruno Haible  <bruno@clisp.org>
37324
37325         * modules/version-etc-2: Remove file.
37326         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37327
37328 2003-10-06  Bruno Haible  <bruno@clisp.org>
37329
37330         * modules/fatal-signal: New file.
37331         * MODULES.html.sh (func_all_modules): Add fatal-signal.
37332
37333 2003-10-06  Bruno Haible  <bruno@clisp.org>
37334
37335         * m4/fatal-signal.m4: New file.
37336         * m4/signalblocking.m4: New file, from GNU gettext.
37337
37338 2003-10-06  Bruno Haible  <bruno@clisp.org>
37339
37340         * lib/version-etc-2.h: Remove file.
37341         * lib/version-etc-2.c: Remove file.
37342
37343 2003-10-06  Bruno Haible  <bruno@clisp.org>
37344
37345         * lib/fatal-signal.h: New file, from GNU gettext.
37346         * lib/fatal-signal.c: New file, from GNU gettext.
37347
37348 2003-10-05  Paul Eggert  <eggert@twinsun.com>
37349
37350         * README: Rework advice for preventing empty .o files.
37351         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
37352         not <sys/types.h>.
37353
37354 2003-10-04  Karl Berry  <karl@gnu.org>
37355
37356         * lib/argp*: update from libc.
37357
37358 2003-10-04  Karl Berry  <karl@gnu.org>
37359
37360         * config/config.{guess,sub}: update from config.
37361
37362 2003-10-02  Bruno Haible  <bruno@clisp.org>
37363
37364         * modules/lchown (Include): Add lchown.h.
37365         * modules/time_r (Include): Use "..." syntax.
37366         * modules/xgetdomainname (Include): Add xgetdomainname.h.
37367
37368 2003-10-01  Simon Josefsson  <jas@extundo.com>
37369
37370         * MODULES.html.sh (func_all_modules): Move gethostname from section
37371         'based on' to section 'lacking' POSIX:2001.
37372
37373 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
37374
37375         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37376         to output mode on the same stream.
37377
37378 2003-09-29  Paul Eggert  <eggert@twinsun.com>
37379
37380         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37381         Fix arg typo in previous patch.
37382
37383 2003-09-28  Jim Meyering  <jim@meyering.net>
37384
37385         * lib/error.c: Correct cpp indentation.
37386
37387 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37388
37389         * modules/free: New file.
37390
37391 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37392
37393         * m4/free.m4: New file.
37394
37395 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37396
37397         * lib/minmax.h (MIN, MAX)
37398         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37399         Omit the special code that used __typeof__, since we worry that
37400         it could be more trouble than it's worth.  See:
37401         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37402         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37403
37404         * lib/free.c: New file.
37405
37406 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
37407
37408         Trivial fixes to Makefile.am parts of module listings.
37409         * modules/strstr: Append strstr.h to lib_SOURCES.
37410         * modules/strcase: Likewise, for strcase.h.
37411
37412 2003-09-27  Karl Berry  <karl@gnu.org>
37413
37414         * config/mkinstalldirs: update from automake.
37415
37416 2003-09-26  Paul Eggert  <eggert@twinsun.com>
37417
37418         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37419         (error_tail): Do not loop, reallocating temporary buffer, since
37420         the output cannot contain more wide characters than the input
37421         contains bytes, the size must be big enough already.  This avoids
37422         one potential size overflow calculation.  Check for size overflow
37423         when calculating temporary buffer size.  Free temporary buffer
37424         when done, if it was allocated with malloc; this plugs a memory
37425         leak.  Remove casts from void * to pointers, that are no longer
37426         needed now that we're assuming C89 or better.
37427
37428         Merge error changes from glibc.
37429
37430         * lib/error.c, error.h: Update copyright notice header to match glibc.
37431         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37432         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37433         Disable cancellation while printing error.
37434         * lib/error.h: Prepend __ to parameter names.
37435
37436 2003-09-26  Jim Meyering  <jim@meyering.net>
37437
37438         * lib/error.c (error_tail): Move some declarations
37439         into inner scope where the local variables are used.
37440
37441 2003-09-26  Bruno Haible  <bruno@clisp.org>
37442
37443         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37444         stpncpy().
37445         Don't define stpncpy through config.h; it's now done through stpncpy.h.
37446
37447 2003-09-26  Bruno Haible  <bruno@clisp.org>
37448
37449         * lib/stpncpy.h (gnu_stpncpy): New declaration.
37450         (stpncpy): Define as alias for gnu_stpncpy.
37451         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37452
37453 2003-09-25  Simon Josefsson  <jas@extundo.com>
37454
37455         * lib/xgetdomainname.h: New file.
37456         * lib/xgetdomainname.c: New file.
37457
37458 2003-09-25  Simon Josefsson  <jas@extundo.com>
37459             Bruno Haible  <bruno@clisp.org>
37460
37461         * modules/getdomainname: New file.
37462         * modules/xgetdomainname: New file.
37463         * MODULES.html.sh (func_all_modules): Add getdomainname,
37464         xgetdomainname.
37465
37466 2003-09-25  Simon Josefsson  <jas@extundo.com>
37467             Bruno Haible  <bruno@clisp.org>
37468
37469         * m4/getdomainname.m4: New file.
37470
37471 2003-09-25  Simon Josefsson  <jas@extundo.com>
37472             Bruno Haible  <bruno@clisp.org>
37473
37474         * lib/getdomainname.h: New file.
37475         * lib/getdomainname.c: New file.
37476
37477 2003-09-25  Karl Berry  <karl@gnu.org>
37478
37479         * lib/argp-fmtstream.c, argp-help.c: update from libc.
37480
37481 2003-09-25  Karl Berry  <karl@gnu.org>
37482
37483         * config/install-sh: update from automake.
37484
37485 2003-09-25  Bruno Haible  <bruno@clisp.org>
37486
37487         * modules/version-etc-2: New file, from modules/version-etc with
37488         modifications.
37489         * MODULES.html.sh (func_all_modules): Add version-etc-2.
37490
37491 2003-09-25  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37494         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37495
37496 2003-09-24  Simon Josefsson  <jas@extundo.com>
37497
37498         * modules/xgethostname: Add xgethostname.h.
37499
37500 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37501
37502         * lib/linebuffer.c (freebuffer): Don't free the argument, just
37503         the buffer associated with the argument.  Bug reported by
37504         Simon Josefsson.
37505
37506 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37507
37508         * README: Document assumptions that 'int' is at least 32 bits
37509         wide, that integer arithmetic is 2's complement without overflow,
37510         that there are no holes in integer values, that adding sizes of
37511         two nonoverlapping objects can't overflow, and that all-bits-zero
37512         yields scalar zero.  Fix spelling and capitalization typos.
37513
37514 2003-09-19  Karl Berry  <karl@gnu.org>
37515
37516         * lib/argp.h: update from libc.
37517
37518 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37519
37520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37521         to avoid spurious warnings like "AC_RUN_IFELSE was called before
37522         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37523
37524 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37525
37526         * gnulib-tool: Use "test -h", not "test -L", for portability
37527         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
37528         (tags_regexp): Remove, since \| doesn't conform to POSIX.
37529         (sed_extract_prog): Issue s commands one-by-one, rather than
37530         using \| in one s command.
37531
37532 2003-09-16  Paul Eggert  <eggert@twinsun.com>
37533
37534         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37535         input error, instead of returning NULL the next time we are called
37536         (and therefore losing track of errno).
37537
37538 2003-09-16  Bruno Haible  <bruno@clisp.org>
37539
37540         * gnulib-tool (func_create_testdir): Warn about duplicated
37541         dependencies.
37542
37543 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37544
37545         * modules/argmatch, modules/fatal, modules/obstack,
37546         modules/xalloc, modules/xgethostname: Sort dependencies by
37547         importance, not alphabetically.
37548
37549 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37550
37551         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37552         fails, so that the caller gets the proper errno.
37553
37554         * lib/readutmp.c (read_utmp): Likewise.
37555         Check for fstat error.  Close stream and free storage
37556         when failing.
37557
37558 2003-09-14  Karl Berry  <karl@gnu.org>
37559
37560         * config/srclist.txt (strdup.c): disable for c89 changes.
37561
37562 2003-09-14  Jim Meyering  <jim@meyering.net>
37563
37564         * lib/getloadavg.c: Correct cpp indentation.
37565         * lib/strdup.c: Likewise.
37566         * lib/vasnprintf.c: Likewise.
37567
37568 2003-09-14  Bruno Haible  <bruno@clisp.org>
37569
37570         * modules/fwriteerror: New file.
37571         * MODULES.html.sh (func_all_modules): Add fwriteerror.
37572
37573 2003-09-14  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/fwriteerror.h: New file.
37576         * lib/fwriteerror.c: New file.
37577
37578 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37579
37580         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37581         modules/xgethostname, modules/xalloc: Depend on exit.
37582
37583 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37584
37585         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37586
37587         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37588         and AC_MINIX, too, so that their extensions are available.
37589
37590         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
37591         This macro has been superseded by gl_BACKUPFILE.
37592
37593         More patches to assume C89 or better.
37594
37595         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37596
37597         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37598         unconditionally.
37599         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37600         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37601         Include <string.h>, <stdlib.h> unconditionally.
37602         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37603         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37604         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37605         headers or for string.h.
37606         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37607         or strtoul.
37608
37609         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37610         headers.
37611         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37612         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37613         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37614         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37615         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37616         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37617         memcpy, memset.
37618         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37619         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37620         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37621         strtol.
37622         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37623         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37624         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37625         strtoul.
37626
37627 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37628
37629         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37630         * lib/obstack.c [!defined _LIBC]: Likewise.
37631         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37632         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37633         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37634
37635         More changes to assume C89 or better.
37636
37637         * lib/error.c (error_tail): Assume vprintf.
37638
37639         * lib/argmatch.c (getenv): Remove decl.
37640         * lib/progreloc.c (get_full_program_name): Define via prototype.
37641         * lib/setenv.c (clearenv): Likewise.
37642         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37643         needed.
37644         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37645         (malloc, memcpy): Remove decls.
37646         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37647         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37648         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37649         (memcpy): Remove macro.
37650         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37651         (__P): Remove.  All uses removed.
37652         (PTR): Remove.  All uses changed to void *.
37653         (CHAR_BIT, NULL): Remove.
37654         (spaces, zeros, memset_space, memset_zero)
37655         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37656         Remove.
37657         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37658         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37659         Define with prototype.
37660         Remove now-unnecessary prototype decl.
37661         (extra_args_spec): Assume ANSI C.  All uses changed.
37662         (extra_args_spec_iso): Remove.
37663         (my_strftime, emacs_strftimeu): Define via prototype.
37664         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37665         unconditionally.
37666         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37667         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37668         (strtoul, strtol): Remove decls.
37669         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37670         LONG_MAX): Remove.
37671         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37672         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
37673         (LOCALE_PARAM_PROTO): New macro.
37674         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37675         (INTERNAL (strtol), strtol): Define with a prototype.
37676         (PARAMS): Remove.  All uses removed.
37677         * lib/tempname.c: Include <string.h> unconditionally.
37678         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37679         * lib/xgethostname.c (main): Define with a prototype.
37680         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37681         Include <stdlib.h> unconditionally.
37682         (calloc, malloc, realloc, free): Remove decls.
37683         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37684         Include <stdlib.h> unconditionally.  Sort include file names.
37685         (strtod): Remove.
37686         (xstrtod): Define with a prototype.
37687         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37688         (strtol, strtoul): Remove decls.
37689
37690 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37691
37692         More patches to assume C89 or better.
37693         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37694         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37695         string.h, memchr, STDC_HEADERS.
37696
37697 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37698
37699         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37700         Include <stdlib.h>, <string.h> unconditionally.
37701         Remove now-unnecessary cast to char *.
37702         * lib/strnlen.c: Include <string.h> unconditionally.
37703         * lib/yesno.c (yesno): Define with a prototype.
37704
37705 2003-09-11  Bruno Haible  <bruno@clisp.org>
37706
37707         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37708
37709 2003-09-10  Jim Meyering  <jim@meyering.net>
37710
37711         * lib/error.c: Correct indentation of cpp directives.
37712
37713 2003-09-10  Bruno Haible  <bruno@clisp.org>
37714
37715         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37716         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37717         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37718         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37719         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37720         <stdlib.h> and <string.h> checks.
37721         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37722         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37723
37724 2003-09-10  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/strcspn.c: Include <string.h> unconditionally.
37727         * lib/strpbrk.c: Include <string.h> unconditionally.
37728         * lib/strstr.c: Include <string.h> unconditionally.
37729         * lib/unicodeio.c: Include <string.h> unconditionally.
37730         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37731         * lib/unsetenv.c: Likewise.
37732         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37733         * lib/yesno.c: Include <stdlib.h> unconditionally.
37734         (rpmatch): Add prototype.
37735
37736 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37737
37738         More patches to assume C89 or better.
37739         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37740         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37741         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37742         or for string.h.
37743         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37744         stdlib.h.
37745         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37746         C headers.
37747         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37748         string.h.
37749         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37750         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37751         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37752         or for string.h.
37753         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37754         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37755         C headers.
37756         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37757         memcpy.
37758         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37759         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37760         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37761         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37762         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37763         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37764         string.h, free.
37765         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37766         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37767         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37768         C headers, or for string.h.
37769         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37770         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37771         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37772         headers, memory.h, stdlib.h, string.h, strings.h.
37773         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37774         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37775         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37776         strchr.
37777         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37778         headers, memory.h, string.h.
37779         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37780         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37781         free.
37782         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37783         headers.
37784         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37785         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37786         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37787         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37788         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37789
37790 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37791
37792         More K&R removal.
37793
37794         * lib/acosl.c (main): Use a prototype.
37795         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37796         tanl.c: Likewise.
37797
37798         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37799
37800         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37801         (getopt, etopt_long, getopt_long_only, _getopt_internal)
37802         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37803         with a prototype.
37804         * lib/getopt.c (const): Remove macro.
37805         Include <string.h> unconditionally.
37806         (my_index): Remove; all uses changed to strchr.
37807         (strlen): Remove decl.
37808         (exchange): Remove forward decl; no longer needed.
37809         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37810         Define with prototype.
37811         * lib/getopt1.c (const): Remove macro.
37812         (getopt_long, getopt_long_only, main): Define with prototype.
37813
37814         * lib/getugroups.c: Include <string.h> unconditionally.
37815
37816         * lib/getusershell.c: Include <stdlib.h> unconditionally.
37817         (getusershell, setusershell, endusershell, readname, main):
37818         Define with prototypes.
37819
37820         * lib/group-member.c: Include group-member.h first.
37821         Include <stdlib.h> unconditionally.
37822
37823         * lib/hard-locale.c: Include hard-locale.h first.
37824         Include <stdlib.h>, <string.h> unconditionally.
37825
37826         * lib/hash.c (free, malloc): Remove decls.
37827         Include <stdlib.h> unconditionally.
37828
37829         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37830         (getenv): Do not declare.
37831
37832         * lib/idcache.c: Include <string.h> unconditionally.
37833
37834         * lib/long-options.c: Include long-options.h first, to test interface.
37835         Include <stdlib.h> unconditionally.
37836
37837         * lib/makepath.c: Include makepath.h first, to test interface.
37838         Include <stdlib.h> and <string.h> unconditionally.
37839
37840         * lib/linebuffer.c: Include <stdlib.h>.
37841         (free): Remove decl.
37842
37843         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37844         stddef.h. rpl_malloc returns void *, not char *.
37845         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
37846         prototype.
37847
37848         * lib/md5.h: Include <limits.h> unconditionally.
37849         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37850         (__P): Remove; all uses removed.
37851         * lib/md5.c: Include "md5.h" first.
37852         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37853         md5_buffer, md5_process_bytes, md5_process_block):
37854         Define with prototypes.
37855         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
37856         * lib/sha.c: Include "sha.h" first.
37857         Include <stdlib.h>, <string.h> unconditionally.
37858
37859         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37860         * lib/memcmp.c (__ptr_t): Likewise.
37861         * lib/memrchr.c (__ptr_t): Likewise.
37862         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37863         Include <string.h> unconditionally.
37864         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37865         * lib/memchr.c: Include <stdlib.h> unconditionally.
37866         * lib/memchr.c (LONG_MAX): Remove.
37867         * lib/memrchr.c (LONG_MAX): Likewise.
37868         * lib/memchr.c (__memchr): Define via a prototype.
37869         * lib/memrchr.c (__memrchr): Likewise.
37870         * lib/memcmp.c (__P): Remove, and remove all uses.
37871         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37872         Remove forward decls; no longer needed.
37873         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37874         Use types required by C89 in prototype.
37875
37876         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37877         * lib/savedir.c: Likewise.
37878         * lib/mkdir.c (free): Remove decl.
37879         * lib/rmdir.c (rmdir): Define with a prototype.
37880         * lib/savedir.c: Include savedir.h first, to test interface.
37881
37882         * lib/mktime.c (STDC_HEADERS): Remove.
37883         Include <stdlib.h>, <string.h> unconditionally.
37884
37885         * lib/modechange.c: Include <stdlib.h> unconditionally.
37886         (malloc): Remove decl.
37887
37888         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37889         (free): Remove decl.
37890
37891         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37892         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37893         (This type really should be intptr_t, but that's a C99ism.)
37894         (_obstack_memcpy): Remove: all uses changed to memcpy.
37895         Include <string.h> unconditionally.
37896         (struct obstack): Assume __STDC__ for types of members
37897         chunkfun, freefun, extra_arg.
37898         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37899         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37900         obstack_begin, obstack_specify_allocation,
37901         obstack_specify_allocation_with_arg, obstack_chunkfun,
37902         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37903         Remove unprototyped decls and the macros that use them.
37904         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
37905         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37906         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37907         (defined __STDC__ && __STDC__)]:
37908         Remove nonprototyped code.
37909         Include <stdlib.h> unconditionally.
37910         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37911         _obstack_allocated_p, _obstack_free, obstack_free,
37912         _obstack_memory_used, print_and_abort):
37913         Define using prototypes.
37914         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37915         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37916         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37917         obstack_next_free, obstack_object_size, obstack_room) [0]:
37918         Remove unused, unprototyped code.
37919
37920         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37921
37922         * lib/physmem.c (physmem_total, physmem_available, main): Define
37923         with prototypes.
37924
37925         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37926         (main): Define with a prototype.
37927
37928         * lib/posixver.c (getenv): Remove decl.
37929
37930         * lib/putenv.c (malloc): Returns void *, not char *.
37931         Include <string.h> unconditionally.
37932         (strchr, memcpy, NULL): Do not define.
37933
37934         * lib/readtokens.c: Include readtokens.h first, to test interface.
37935         Include <stdlib.h>, <string.h> unconditionally.
37936         (init_tokenbuffer): Define with a prototype.
37937
37938         * lib/regex.c (PARAMS): Remove.  All uses removed.
37939         All uses of _RE_ARGS removed, too.
37940         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37941         unconditionally.
37942         (bzero): Assume memset exists.
37943         (memcmp, memcpy, NULL): Remove.
37944         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37945         char, or assignments to local vars of type signed char.
37946         (init_syntax_once, PREFIX(extract_number_and_incr),
37947         PREFIX(print_partial_compiled_pattern),
37948         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37949         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37950         PREFIX(regex_grow_registers), PREFIX(regex_compile),
37951         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37952         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37953         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37954         wcs_compile_range, byte_compile_range, truncate_wchar,
37955         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37956         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37957         count_mbs_length, wcs_re_match_2_internal,
37958         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37959         PREFIX(alt_match_null_string_p),
37960         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37961         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37962         regfree, PREFIX(extract_number)): Define with prototype.  Remove
37963         now-unnecessary declaration, if any.
37964         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37965         regcomp, regexec):
37966         Remove now-unnecessary casts among pointer types.
37967         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
37968
37969         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37970         (free): Remove decl.
37971
37972         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37973
37974         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
37975         (free): Remove decl.
37976
37977         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
37978         * lib/xgetcwd.c: Likewise.
37979
37980         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
37981         (free): Remove decl.
37982
37983         * lib/strchrnul.c (strchrnul): Define with a prototype.
37984         Fix bug: c_in was not converted to char before searching.
37985
37986         The following changes are not K&R related:
37987
37988         * lib/group-member.h: Include <sys/types.h>, so that this file is
37989         self-contained.
37990         * lib/makepath.h: Likewise.
37991
37992         * lib/getusershell.c (readname, default_index, line_size, readname):
37993         Use size_t, not int, for sizes.
37994         (readname): If the size overflows, report an error instead of
37995         looping forever.
37996
37997 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37998
37999         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
38000         libc.
38001
38002 2003-09-09  Paul Eggert  <eggert@twinsun.com>
38003
38004         * README: New section: portability guidelines.
38005
38006 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38007
38008         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
38009         C89 spec.
38010
38011 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38012
38013         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
38014
38015 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38016
38017         Assume C89 or better; remove K&R cruft.
38018         A few of these changes were first proposed by Derek Robert Price
38019         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
38020
38021         * lib/addext.c: Include <string.h> unconditionally.
38022         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
38023         Don't declare getenv or malloc.
38024
38025         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
38026         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
38027         (NULL): Remove.
38028         (find_stack_direction, alloca): Use prototypes.
38029
38030         * lib/atexit.c (atexit): Define using a prototype.
38031
38032         * lib/basename.c, dirname.c, stripslash.c:
38033         Include <string.h> unconditionally.
38034
38035         * lib/bcopy.c: Include <stddef.h>.
38036         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
38037
38038         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
38039
38040         * lib/error.h (error, error_at_line, error_print_progname)
38041         [! (defined (__STDC__) && __STDC__)]: Remove decls.
38042         * lib/error.c: Include error.h first, to check interface.
38043         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38044         (VA_START): Remove; all uses changeed to va_start.
38045         (exit, strerror): Remove decls.
38046         (error_print_progname): Prototype uncondionally.
38047         Don't include <errno.h>; no longer needed.
38048         (private_strerror): Remove.
38049         (error_tail): Always define.
38050         (error, error_at_line): Assume C89 or better; always use prototypes.
38051         * lib/fatal.c: Include "fatal.h" first, to test interface.
38052         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38053         (VA_START): Remove; all uses changed to va_start.
38054         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
38055         this case.
38056         (exit): Remove decl.
38057         (fatal): Prototype unconditionally.  Assume va_start works.
38058         Abort at end, to pacify gcc.
38059
38060         * lib/euidaccess.c (main): Define with a prototype.
38061
38062         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
38063
38064         * lib/exitfail.c: Include <stdlib.h> unconditionally.
38065
38066         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
38067         prototypes.
38068         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
38069         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
38070         (getenv): Remove decl.
38071         (fnmatch): Define using a prototype.
38072         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
38073         (FCT): Define using a prototype.
38074
38075         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
38076
38077         * lib/gethostname.c: Include <stddef.h>.
38078         (gethostname): Define with prototype.  Length is size_t, not int.
38079
38080 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38081
38082         Assume C89 or better; remove K&R cruft.
38083         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
38084         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
38085         string.h, getenv, malloc.
38086         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
38087         headers.
38088         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
38089         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
38090         do not check for strerror.
38091         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
38092         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
38093         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
38094         do not check for doprnt or vprintf.
38095         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
38096         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
38097
38098 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38099
38100         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
38101         getversion.c should have been removed then, but was accidentally
38102         preserved.
38103
38104         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
38105         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
38106
38107 2003-09-08  Karl Berry  <karl@gnu.org>
38108
38109         * config/config.sub, config.guess, srclistvars.sh: update from savannah
38110                 config, forget about prep.
38111
38112         * config/depcomp, missing: update from automake.
38113
38114 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38115
38116         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
38117         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38118
38119 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38120
38121         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38122         copy_tm_result.  Bug reported by Simon Josefsson in
38123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38124
38125 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38126
38127         * m4/time_r.m4: New file.
38128         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38129         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38130         is. Check for timegm declaration.
38131         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38132         Do not check for gmtime_r.
38133         Replace mktime if __mktime_internal does not exist and if mktime
38134         hasn't been replaced already.
38135
38136 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38137
38138         * lib/time_r.c, lib/time_r.h: New files.
38139
38140         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38141         __localtime_r.
38142         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
38143         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38144
38145         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38146         __gmtime_r.
38147         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38148         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38149         Include <time_r.h>.
38150
38151         * lib/timegm.c: Switch to glibc implementation, with the following
38152         changes:
38153         [defined HAVE_CONFIG_H]: Include <config.h>.
38154         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38155         (__mktime_internal) [!defined _LIBC]: New decl.
38156         (__gmtime_r) [!defined _LIBC]: New macro and function.
38157         (timegm): Use a prototype, since gnulib assumes C89.
38158         Do not bother declaring tmp to be const, as it's not really usefu.
38159         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38160         (timegm): Declare only if HAVE_DECL_TIMEGM.
38161
38162 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38163
38164         * MODULES.html.sh (func_all_modules): Add time_r.
38165         * modules/time_r: New file.
38166         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38167         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
38168
38169 2003-09-03  Paul Eggert  <eggert@twinsun.com>
38170
38171         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38172         Bug reported by Lute Kamstra in
38173         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
38174
38175         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
38176         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
38177         course with correspondingly smaller numbers for tomorrow and
38178         yesterday.  From Tadayoshi Funaba.  Originally installed into
38179         sh-utils on 1999-08-07, but the patch got lost (I guess during the
38180         coreutils merge?).
38181
38182 2003-08-31  Simon Josefsson  <jas@extundo.com>
38183
38184         * modules/timegm: New file.
38185         * MODULES.html.sh (func_all_modules): Add timegm.
38186
38187 2003-08-31  Simon Josefsson  <jas@extundo.com>
38188
38189         * m4/timegm.m4: New file.
38190
38191 2003-08-31  Simon Josefsson  <jas@extundo.com>
38192
38193         * lib/timegm.h: New file.
38194         * lib/timegm.c: New file.  Based on
38195         wget-1.8.2/src/http.c:mktime_from_utc.
38196
38197 2003-08-31  Karl Berry  <karl@gnu.org>
38198
38199         * lib/argp.h: update from libc.
38200
38201 2003-08-28  Bruno Haible  <bruno@clisp.org>
38202
38203         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
38204         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
38205         followed by '#define fnmatch fnmatch_posix' gives an error.
38206
38207 2003-08-28  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
38210         warning on QNX, which defines O_BINARY to 000000.
38211
38212 2003-08-27  Jim Meyering  <jim@meyering.net>
38213
38214         * m4/mkstemp.m4: Require that the system mkstemp be able to create
38215         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
38216         would fail after 32.  Reported by Danny Levinson.  Details here:
38217         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
38218
38219 2003-08-24  Bruno Haible  <bruno@clisp.org>
38220
38221         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
38222         MSVC7 <stdio.h> is included later.
38223
38224 2003-08-22  Simon Josefsson  <jas@extundo.com>
38225
38226         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
38227
38228 2003-08-20  Karl Berry  <karl@gnu.org>
38229
38230         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
38231
38232 2003-08-20  Bruno Haible  <bruno@clisp.org>
38233
38234         * modules/progname: New file.
38235         * MODULES.html.sh (func_all_modules): Add progname.
38236
38237 2003-08-20  Bruno Haible  <bruno@clisp.org>
38238
38239         * lib/progname.h: New file, from GNU gettext.
38240         * lib/progname.c: New file, from GNU gettext.
38241         * lib/progreloc.c: New file, from GNU gettext.
38242
38243 2003-08-19  Jim Meyering  <jim@meyering.net>
38244
38245         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
38246         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
38247
38248 2003-08-19  Bruno Haible  <bruno@clisp.org>
38249
38250         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38251         more.
38252
38253 2003-08-19  Bruno Haible  <bruno@clisp.org>
38254
38255         * lib/xstrdup.c: Assume <string.h> exists.
38256
38257 2003-08-18  Paul Eggert  <eggert@twinsun.com>
38258
38259         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
38260         in makefile rules.
38261
38262 2003-08-18  Jim Meyering  <jim@meyering.net>
38263
38264         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38265         * m4/lib-ld.m4: Likewise.
38266
38267 2003-08-18  Jim Meyering  <jim@meyering.net>
38268
38269         * lib/setenv.h: Indent nested cpp directive.
38270         * lib/vasnprintf.c: Remove trailing blanks.
38271
38272 2003-08-17  Simon Josefsson  <jas@extundo.com>
38273
38274         * modules/xstrndup: New file.
38275         * MODULES.html.sh (func_all_modules): Add xstrndup.
38276
38277 2003-08-17  Simon Josefsson  <jas@extundo.com>
38278
38279         * modules/argp: Fix autoconf macro name. Add more dependencies.
38280
38281 2003-08-17  Simon Josefsson  <jas@extundo.com>
38282
38283         * m4/xstrndup.m4: New file.
38284
38285 2003-08-17  Simon Josefsson  <jas@extundo.com>
38286
38287         * m4/argp.m4: New file.
38288
38289 2003-08-17  Simon Josefsson  <jas@extundo.com>
38290             Bruno Haible  <bruno@clisp.org>
38291
38292         * lib/xstrndup.h: New file.
38293         * lib/xstrndup.c: New file.
38294
38295 2003-08-17  Bruno Haible  <bruno@clisp.org>
38296
38297         * modules/strndup (Files, Include): Add lib/strndup.h.
38298
38299 2003-08-17  Bruno Haible  <bruno@clisp.org>
38300
38301         * modules/euidaccess (Files): Add lib/euidaccess.h.
38302
38303 2003-08-17  Bruno Haible  <bruno@clisp.org>
38304
38305         * lib/strndup.h: New file.
38306
38307 2003-08-17  Bruno Haible  <bruno@clisp.org>
38308
38309         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38310         like AC_GNU_SOURCE.
38311         * modules/extensions (configure.ac): Comment out the invocation of
38312         gl_USE_SYSTEM_EXTENSIONS.
38313
38314 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38315
38316         Merges from coreutils, etc.
38317         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38318         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
38319         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38320         fixing a typo.
38321         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38322         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38323
38324 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38325
38326         Document merge from coreutils.
38327         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38328         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38329         * modules/utime: Add m4/utimes-null.m4.
38330
38331 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38332
38333         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38334         space, undoing this 2003-08-12 change:
38335         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38336
38337 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38338
38339         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38340         strtoul.c from libc, undoing this 2003-08-12 change:
38341         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38342
38343 2003-08-16  Jim Meyering  <jim@meyering.net>
38344
38345         Merges from coreutils.
38346         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38347         prefix.  Adjust cache variables similarly.  Create 500 rather than
38348         just 300 files, to exercise bug on Darwin6.5, too.
38349         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38350         $missing_dir.
38351         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38352         AM_SYS_POSIX_TERMIOS.
38353         Reported by mkc@mathdogs.com.
38354         Also change use of $am_cv_sys_posix_termios
38355         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
38356         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38357         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38358         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38359         in /proc/mounts until it finds one with matching device number.  This
38360         is unnecessary when the FILE argument *is* a mount point.  No stat call
38361         is necessary in that case.  So, disable the statvfs-testing code on
38362         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
38363         as RedHat bug# 84846.
38364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38365         to 1MB, so as not to render systems with no stack size limit (e.g.,
38366         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38367         Include <unistd.h>.  On some systems,
38368         it is required for the definition of _SC_PAGESIZE.
38369
38370 2003-08-16  Jim Meyering  <jim@meyering.net>
38371
38372         Merge from coreutils.
38373         * lib/xstrtoimax.c: #else #if -> #elif.
38374         * lib/xstrtoumax.c: Likewise.
38375
38376 2003-08-16  Jim Meyering  <jim@meyering.net>
38377
38378         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38379         * m4/utimes.m4: Removed.
38380         * m4/utimes-null.m4: Renamed from utimes.m4.
38381
38382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38383         to 1MB, so as not to render systems with no stack size limit (e.g.,
38384         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38385         Include <unistd.h>.  On some systems,
38386         it is required for the definition of _SC_PAGESIZE.
38387
38388 2003-08-16  Jim Meyering  <jim@meyering.net>
38389         and Paul Eggert  <eggert@cs.ucla.edu>
38390
38391         Merges from coreutils, etc.
38392
38393         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38394         using the latest version from cvs.  This avoids problems with #line
38395         directives using a vendor (Sun) compiler.
38396         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38397         Don't set GETGROUPS_LIB here; now it's
38398         done via getgroups.m4's wrapper function.
38399         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38400         rather than just in sh-util/configure.in, so that the
38401         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38402         same.
38403         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38404         AC_FUNC_GETLOADAVG where to find getloadavg.c.
38405         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38406         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38407         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38408         Remove code that is now done by the newly-required macros.
38409         Append $(EXEEXT) to DF_PROG.
38410         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38411         Do not invoke or require the following here,
38412         since prereq.m4 or some gnulib .m4 now does this for us:
38413         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38414         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38415         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38416         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38417         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38418         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38419         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38420         AC_FUNC_OBSTACK.
38421         Do not replace the following functions, as this is now the job
38422         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38423         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38424         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38425         atexit getpass, strdup, getpagesize.
38426         Replace 'raise'.
38427         Do not check for the following functions, as this is now the job
38428         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38429         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
38430         setregid.
38431         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38432         Check for sys/sysctl.h.
38433         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38434         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
38435         of checking for ssize_t ourselves.
38436
38437         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38438         Require every macro that gnulib/modules/* suggests for us.
38439         (jm_PREREQ_ADDEXT): New macro.
38440         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38441         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38442
38443         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38444         (gl_PHYSMEM): Use it.
38445         Also check for `table' function.
38446         Check for new headers and functions.
38447         Add check for sys/sysmp.h.
38448         With suggestions from Kaveh Ghazi.
38449         Ignore headers that are present but cannot be compiled.  This
38450         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38451         C 5.4.
38452
38453 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38454
38455         Document merge from coreutils.
38456         * modules/userspec: Depend on posixver.
38457         * modules/strftime: Depend on tzset.
38458
38459 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38460
38461         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38462         rather than tab, after '#' in shell-script copyright notices.
38463         Suggested by Bruno Haible.
38464
38465 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38466
38467         * config/srclist-update: Use three spaces, rather than tab, after '#'
38468         in shell-script copyright notices.  Suggested by Bruno Haible.
38469         Remove unnecessary parenthesization in regular expression.
38470
38471 2003-08-15  Jim Meyering  <jim@meyering.net>
38472
38473         Merge from coreutils.
38474         * lib/xgethostname.c: Include <stdlib.h>.
38475         (xghostname): Don't exit for anything other than memory-related
38476         failure; just return NULL.
38477         * lib/userspec.c: Include "posixver.h".
38478         (parse_user_spec): Accept `.' as a separator only
38479         in pre-POSIX-200112 mode.
38480         * lib/strtoimax.c: Use #elif rather than #else #if.
38481         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38482         Remove function, now that we can rely on a working tzset function.
38483         [!_LIBC]: Ensure that the required autoconf test has been run.
38484         [!defined _NL_CURRENT && HAVE_STRFTIME]:
38485         Use underlying_strftime for %r.
38486         * lib/sha.c: Merge in some clean-up and optimization changes from
38487         glibc.
38488         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38489         Ensure that it is a multiple of 64.
38490         Rearrange loop exit tests so as to avoid performing an
38491         additional fread after encountering an error or EOF.
38492         * lib/realloc.c: Update copyright date.
38493
38494 2003-08-15  Jim Meyering  <jim@meyering.net>
38495         and Paul Eggert  <eggert@twinsun.com>
38496
38497         Merge from coreutils.
38498         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38499         member but strut utmpx does not.  Needed for AIX 4.3.3.
38500         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38501
38502 2003-08-15  Jim Meyering  <jim@meyering.net>
38503         and Paul Eggert  <eggert@cs.ucla.edu>
38504
38505         Merges from coreutils, etc.
38506         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38507         Require gl_FUNC_TZSET_CLOBBER.
38508         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38509         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38510         members.
38511
38512 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38513
38514         Help the merge from coreutils.
38515         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38516         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38517         * m4/tzset.m4: Use it too.
38518
38519 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38520
38521         * modules/tzset: New file.
38522
38523 2003-08-14  Jim Meyering  <jim@meyering.net>
38524
38525         Merges from coreutils.
38526         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38527         variable names, rather than @FNMATCH_H@.
38528         * modules/alloca: Likewise for $(ALLOCA_H).
38529
38530         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38531         the three copies of the literal target, `fnmatch.h'.
38532         * modules/alloca (alloca.h): Likewise.
38533
38534 2003-08-14  Jim Meyering  <jim@meyering.net>
38535
38536         Merge from coreutils.
38537         * m4/tzset.m4: New file.
38538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38539         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38540         otherwise, AIX 5.1 systems would end up using the latter.
38541         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38542         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
38543         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38544         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
38545
38546 2003-08-14  Jim Meyering  <jim@meyering.net>
38547
38548         Merge from coreutils.
38549         * lib/obstack.h: Whitespace changes.
38550         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38551         and xcalloc return values.
38552         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38553         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
38554         hang on OSF/1 5.1 for DIR on both local and remote file systems.
38555         Reported by (and fix confirmed by) Nelson H. F. Beebe.
38556         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38557         error from mntctl.
38558         Use mntctl's return value to drive the entry-processing loop, since
38559         we can't rely on the value of the vmt_length member in the last
38560         entry.  On some systems doing so could result in exhausting
38561         virtual memory.  Based in part on a patch from Mike Jetzer.
38562
38563 2003-08-14  Jim Meyering  <jim@meyering.net>
38564         and Paul Eggert  <eggert@twinsun.com>
38565
38566         Merges from coreutils, plus other fixes.
38567         * lib/physmem.c: Merge in portability changes from gcc/libiberty
38568         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
38569         for credits and details.  Thanks to Kaveh Ghazi for helping
38570         to keep these files in sync.
38571         (ARRAY_SIZE): Define it.
38572         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38573         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38574         (memcasecmp): Don't assume size_t fits in unsigned int.
38575         Remove casts and duplicate code.
38576         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38577         (memcpy): Remove definition.
38578         Merge in some clean-up and optimization changes from glibc.
38579         [BLOCKSIZE]: Move definition to top of file.
38580         Ensure that it is a multiple of 64.
38581         Rearrange loop exit tests so as to avoid performing an
38582         additional fread after encountering an error or EOF.
38583         * lib/md5.h (md5_uintptr): Define.
38584         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38585         return to the initial working directory.  Preserve errno
38586         for caller.
38587         * lib/idcache.c: Include "xalloc.h".
38588         (xmalloc, xrealloc): Remove decls.
38589         (getuser): Remove casts no longer required in C89.
38590         * lib/human.c: Include stdio.h, for sprintf.
38591         * lib/group-member.c: Include "xalloc.h".
38592         (xmalloc, xrealloc): Remove decls.
38593         (get_group_info): Remove casts no longer required in C89.
38594         * lib/getusershell.c (readname): Remove casts no longer required in
38595         C89.
38596         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38597         * lib/getline.c: Whitespace fix, from coreutils.
38598
38599 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38600
38601         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38602         Check for isascii.
38603
38604         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38605         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38606         Undo previous (whitespace-only) change.
38607
38608 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38609
38610         * lib/exclude.c: Include <ctype.h>
38611         (IN_CTYPE_DOMAIN): New macro.
38612         (is_space): New fn.
38613         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38614         and empty lines.
38615
38616         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38617         Undo previous (whitespace-only) change.
38618
38619 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38620
38621         * config/srclist-update: Change update back to the old behavior,
38622         leaving whitespace alone.  Use one 'sed' command rather than a
38623         pipeline.
38624         (fixlicense): Now a variable, not a function.
38625         (remove_trailing_blanks): Remove.
38626         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38627         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38628         Undo previous (whitespace-only) change.
38629
38630 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38631
38632         Merge from coreutils.
38633         * modules/euidaccess: Add lib_SOURCES, include for new
38634         file euidaccess.h
38635
38636 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38637
38638         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38639         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38640         Normalize leading white space and remove trailing white space.
38641
38642         Merge from coreutils
38643         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38644
38645         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38646         0.12.1.  These files are now being upgraded automatically by
38647         ../config/srclist-update.
38648
38649 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38650
38651         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38652         Normalize leading white space and remove trailing white space.
38653         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38654         notice, as per ../config/srclist-update.
38655
38656         Merge from coreutils.
38657         * lib/euidaccess.h: New file.
38658         * lib/euidaccess.c: Include it.
38659         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38660         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
38661         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38662
38663 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38664
38665         * config/srclist-update: Add copyright notice.
38666         (remove_id_lines, remove_trailing_blanks): New constants.
38667         (fixfile): Use them to normalize spacing a bit in copied files.
38668         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38669         Normalize leading white space and remove trailing white space.
38670
38671         * config/texinfo.tex: Sync with texinfo.
38672
38673         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38674         strtoul.c from libc, to merge coreutils whitespace changes.
38675
38676         * config/srclist.txt: Get the following m4 files from gettext:
38677         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38678         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38679         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38680         wint_t.m4.
38681
38682 2003-08-12  Karl Berry  <karl@gnu.org>
38683
38684         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38685         been made.
38686
38687 2003-08-11  Paul Eggert  <eggert@twinsun.com>
38688
38689         * modules/gnu-source, m4/gnu-source.m4:
38690         Remove; we're assuming Autoconf 2.54 or later now.
38691         Suggested by Bruno Haible.
38692         * MODULES.html.sh (func_all_modules): Remove gnu-source.
38693
38694 2003-08-11  Bruno Haible  <bruno@clisp.org>
38695
38696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38697
38698 2003-08-11  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38701         (vasnprintf): Use it instead of wcslen.
38702
38703 2003-08-11  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38706         value to ensure that _Bool promotes to int. Use #define for _Bool when
38707         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38708
38709 2003-08-10  Karl Berry  <karl@gnu.org>
38710
38711         * lib/regex.h: update from libc (whitespace fix).
38712
38713 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38714
38715         Merge some files from coreutils.  These changes were
38716         originally made by Jim Meyering.
38717         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38718         many older Unixes require this.
38719         * lib/alloca.c (alloca): Remove cast to argument of free;
38720         no longer needed in C89.
38721         * lib/alloca_.h, regex.h: Fix white space to match
38722         what GNU indent does.
38723
38724 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38725
38726         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38727         apparently Emacs's Unicode mode got confused before my 2003-08-05
38728         checkin.
38729
38730 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38731
38732         * m4/extensions.m4: New file.
38733         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38734         Require gl_USE_SYSTEM_EXTENSIONS.
38735         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38736         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38737
38738 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38739
38740         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38741         * modules/extensions, modules/gnu-source: New files.
38742         * modules/timespec, modules/unlocked-io: Depend on extensions.
38743
38744 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38745
38746         * modules/restrict: New file.
38747         * MODULES.html.sh (func_all_modules): Add restrict.
38748         * modules/regex: Depend on restrict.
38749
38750 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38751
38752         * m4/restrict.m4: New file.
38753         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38754
38755 2003-08-07  Bruno Haible  <bruno@clisp.org>
38756
38757         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38758         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38759
38760 2003-08-07  Bruno Haible  <bruno@clisp.org>
38761
38762         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38763         makes the module 'getndelim2' compatible with the module 'getline'.
38764
38765 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38766
38767         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38768         byte with "\201" to avoid glitches when editing that source file
38769         with multi-gnome-terminal.
38770
38771 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38772
38773         * lib/bumpalloc.h: Remove.
38774
38775 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38776
38777         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38778         * modules/bumpalloc: Remove.
38779
38780 2003-08-04  Paul Eggert  <eggert@twinsun.com>
38781
38782         * lib/getloadavg.c: Change copyright notice and spacing to conform to
38783         GNU coding style.
38784
38785         Merge from coreutils.
38786         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38787         1. From glibc.
38788         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38789         from Karl Berry, implemented by Jim Meyering.
38790         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38791         from Dmitry V. Levin.
38792         Remove anachronistic cast of xrealloc.
38793         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
38794         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38795         type. Otherwise, it wouldn't compile with at least /bin/cc on
38796         ymp-cray-unicos9.0.2.X.
38797         Combine two mostly-identical uses of alloca into one.
38798         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38799
38800 2003-08-04  Dave Love  <d.love@dl.ac.uk>
38801
38802         [From Emacs.]
38803
38804         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
38805         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
38806         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38807         obsolete NLIST_NAME_UNION.
38808         [__GNU__]: Undef BSD and FSCALE.
38809         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38810
38811 2003-08-03  Paul Eggert  <eggert@twinsun.com>
38812
38813         * lib/stdbool_.h (_Bool): Make it signed char, instead of
38814         an enum type, so that it's guaranteed to promote to int.  See:
38815         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38816
38817 2003-08-03  Karl Berry  <karl@gnu.org>
38818
38819         * config/depcomp: update from automake.
38820
38821 2003-07-31  Paul Eggert  <eggert@twinsun.com>
38822
38823         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
38824         (strerror): Don't assume that a printable int fits in 14 bytes.
38825
38826 2003-07-31  Bruno Haible  <bruno@clisp.org>
38827
38828         * modules/getpass-gnu: New file.
38829         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38830
38831 2003-07-31  Bruno Haible  <bruno@clisp.org>
38832
38833         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38834
38835 2003-07-24  Karl Berry  <karl@gnu.org>
38836
38837         * config/missing: update from automake.
38838
38839 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
38840             Bruno Haible  <bruno@clisp.org>
38841
38842         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38843         * lib/getline.c (getline, getdelim): Likewise.
38844         Remove _GNU_SOURCE define; now it's defined in config.h through
38845         m4/getline.m4.
38846
38847 2003-07-23  Karl Berry  <karl@gnu.org>
38848
38849         * config/config.sub: update from prep.
38850
38851 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38852
38853         * modules/xalloc (Depends-on): Add exitfail.
38854         * modules/xmemcoll: Likewise.
38855
38856 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38857
38858         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38859         over-parenthesization in macros.
38860
38861         Sync with coreutils.
38862
38863         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38864         required by C99.
38865
38866         Use `exit_failure' for xalloc and xmemcoll instead of their own
38867         private exit-failure variables.
38868         * lib/xalloc.h (xalloc_exit_failure): Remove.
38869         * lib/xmalloc.c: Likewise.  Include exitfail.h.
38870         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38871         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38872         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
38873         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38874
38875 2003-07-20  Jim Meyering  <jim@meyering.net>
38876
38877         * modules/closeout (Depends-on): Add exitfail.
38878         Suggestion from Bruno Haible.
38879
38880 2003-07-19  Karl Berry  <karl@gnu.org>
38881
38882         * config/config.sub: update from prep.
38883
38884 2003-07-18  Paul Eggert  <eggert@twinsun.com>
38885
38886         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38887         Remove.
38888         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
38889         to test that it can stand by itself.  Include "exitfail.h".
38890         Clients should set exit_failure instead.
38891         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
38892
38893 2003-07-18  Bruno Haible  <bruno@clisp.org>
38894
38895         * modules/getndelim2: New file.
38896         * modules/getline: Share files with module getndelim2.
38897         * modules/getnline: Depend on getndelim2 instead of sharing files with
38898         it. Add getnline.c to lib_SOURCES.
38899         * MODULES.html.sh (func_all_modules): Add getndelim2.
38900
38901 2003-07-18  Bruno Haible  <bruno@clisp.org>
38902
38903         * m4/getndelim2.m4: New file.
38904         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38905         invoke gl_PREREQ_GETNDELIM2.
38906         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38907         gl_PREREQ_GETNDELIM2.
38908         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38909         gl_GETNDELIM2.
38910
38911 2003-07-18  Bruno Haible  <bruno@clisp.org>
38912
38913         * lib/getndelim2.h: New file.
38914         * lib/getndelim2.c: Make into a module of its own. Include config.h,
38915         getndelim2.h.
38916         (getndelim2): Make non-static. Change return type to ssize_t.
38917         * lib/getline.h: Change argument names.
38918         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38919         * lib/getnline.c: Include getndelim2.h.
38920
38921 2003-07-18  Andreas Schwab  <schwab@suse.de>
38922
38923         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38924
38925 2003-07-17  Karl Berry  <karl@gnu.org>
38926
38927         * config/config.sub: update from prep.
38928
38929 2003-07-17  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/getnline: New file.
38932         * modules/getline: Add lib/getndelim2.c to source file list.
38933         * MODULES.html.sh (func_all_modules): Add getnline.
38934
38935 2003-07-17  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/getnline.m4: New file.
38938
38939 2003-07-17  Bruno Haible  <bruno@clisp.org>
38940
38941         * m4/Makefile.am.in: Remove file.
38942         * m4/Makefile.am: Remove file.
38943         * m4/Makefile.in: Remove file.
38944
38945 2003-07-17  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/getnline.h: New file.
38948         * lib/getnline.c: New file.
38949         * lib/getndelim2.c: New file, extracted from getline.c.
38950         (getndelim2): Renamed from getdelim2, with added nmax argument.
38951         * lib/getline.c: Include getndelim2.c.
38952         (getdelim2): Moved out to getndelim2.c.
38953         (getline, getdelim): Update.
38954
38955 2003-07-17  Bruno Haible  <bruno@clisp.org>
38956
38957         * lib/Makefile.am: Remove file.
38958         * lib/Makefile.in: Remove file.
38959
38960 2003-07-17  Bruno Haible  <bruno@clisp.org>
38961
38962         * configure.in: Remove file.
38963         * Makefile.in: Remove file.
38964
38965 2003-07-17  Bruno Haible  <bruno@clisp.org>
38966
38967         * MODULES.html.sh: Put the </BODY> right before </HTML>.
38968
38969 2003-07-16  Karl Berry  <karl@gnu.org>
38970
38971         * config/srclist-update: was running fixlicense twice, which caused
38972                 texinfo.tex to be nullified for some reason.  Simplify,
38973                 $gplsrc is no longer needed as far as I can see?
38974
38975 2003-07-16  Jim Meyering  <jim@meyering.net>
38976
38977         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
38978
38979 2003-07-15  Paul Eggert  <eggert@twinsun.com>
38980
38981         * config/srclist.txt: Get the following files from gettext-runtime/intl
38982         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
38983         ref-del.sin.  From Bruno Haible.
38984         * config/srclist-update (fixfile): Change grep pattern again, since the
38985         previous fix didn't work (there was another trailing $).  Use
38986         '[$]' to escape the $s.
38987
38988 2003-07-15  Karl Berry  <karl@gnu.org>
38989
38990         * lib/vasnprintf.c: update from gettext.
38991
38992 2003-07-15  Karl Berry  <karl@gnu.org>
38993
38994         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
38995         gets expanded when surrounded by '$'.
38996
38997 2003-07-15  Jim Meyering  <jim@meyering.net>
38998
38999         * modules/save-cwd: Don't depend on error.  From Derek Price.
39000
39001 2003-07-15  Jim Meyering  <jim@meyering.net>
39002
39003         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
39004
39005 2003-07-14  Simon Josefsson  <jas@extundo.com>
39006
39007         * modules/mempcpy: New file.
39008         * MODULES.html.sh (func_all_modules): Add mempcpy.
39009
39010 2003-07-14  Simon Josefsson  <jas@extundo.com>
39011
39012         * m4/mempcpy.m4: New file.
39013
39014 2003-07-14  Simon Josefsson  <jas@extundo.com>
39015
39016         * lib/mempcpy.h: New file.
39017         * lib/mempcpy.c: New file.
39018
39019 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39020
39021         * modules/getdate, modules/posixtm: Depend on mktime.
39022
39023 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39024
39025         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
39026         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
39027         unicodeio.c, unicodeio.h, unlocked-io.h:
39028         Switch from LGPL to GPL.
39029
39030 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39031
39032         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
39033         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
39034         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
39035         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
39036         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
39037         updated automatically by ../config/srclist-update.  This changes
39038         their license from LPGL to GPL.
39039
39040 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39041
39042         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
39043         assumed to refer to the root of the most recent stable gettext version.
39044         * config/srclistvars.sh: Add defaults for eggert.
39045         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
39046         Match "This program" as well as "The program".  This is needed
39047         for gettext.
39048
39049 2003-07-14  Jim Meyering  <jim@meyering.net>
39050
39051         Don't emit diagnostics.  Let callers do that.
39052         * lib/save-cwd.c: Don't include "error.h".
39053         (save_cwd): Don't call error.  Ensure that errno is valid
39054         when returning nonzero.
39055
39056         * lib/save-cwd.h (restore_cwd): Update prototype.
39057         * lib/save-cwd.c (restore_cwd): Remove two parameters.
39058         Simplify.  Don't call error upon failure.  Let callers do that.
39059         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
39060         when auditing is enabled.  But don't bother updating the #if.
39061
39062 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
39063
39064         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
39065         it breaks C++ compilation.
39066         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
39067
39068 2003-07-10  Simon Josefsson  <jas@extundo.com>
39069
39070         * modules/strchrnul (Makefile.am): Add strchrnul.h.
39071
39072 2003-07-10  Jim Meyering  <jim@meyering.net>
39073
39074         * m4/clock_time.m4: Remove trailing blank.
39075         * m4/intmax_t.m4: Likewise.
39076
39077 2003-07-10  Jim Meyering  <jim@meyering.net>
39078
39079         * lib/vasnprintf.c: Remove trailing blanks.
39080         Make cpp indentation consistent.
39081
39082 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39083
39084         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
39085         posixver.c, strftime.c, strnlen.c, strverscmp.c:
39086         Switch from LGPL to GPL.
39087
39088 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39089
39090         * config/srclist.txt: Sort sublists.  Add
39091         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
39092         that differ from gnulib for one reason or another; we'd like this list
39093         to be smaller but for now let's document what we have.
39094
39095 2003-07-08  Paul Eggert  <eggert@twinsun.com>
39096
39097         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
39098         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
39099         and sweeter "eval x=$x".
39100         * config/srclist.txt: Get lib/argp* from glibc.
39101
39102 2003-07-07  Paul Eggert  <eggert@twinsun.com>
39103
39104         * lib/mktime.c: Fix some boundary cases and remove need for floating
39105         point.
39106
39107         Issue a compile-time diagnostic if time_t is floating point, or if
39108         two's complement arithmetic is not in effect, or if arithmetic
39109         right shift does not propagate the sign.  These assumptions were
39110         all in the original code but they weren't checked.
39111
39112         (TIME_T_MIDPOINT, verify): New macros.
39113         (__isleap): Remove; it has integer overflow problems.
39114         (leapyear): New function, without those problems.
39115         (ydhms_tm_diff): Remove; splitting into two parts.
39116         (ydhms_diff): New function, containing the arithmetic part of
39117         the old ydhms_tm_diff function.  Issue a compile-time
39118         diagnostic if we are not using C99 integer division.
39119         Avoid casts when possible.
39120         (guess_time_tm): New function, containing the checking part of
39121         the old ydhms_tm_diff function.  Return the new value, rather than
39122         the difference between it and the old.  Accept a new argument T
39123         so that *T specifies the old value.  Check for overflow in the result.
39124
39125         (__mktime_internal): Use a time_t offset, not a long int offset.
39126         This undoes the 2003-06-04 change, which is no longer needed now
39127         that we have better overflow checking.
39128         (localtime_offset): Likewise.
39129
39130         (__mktime_internal): Avoid harmful overflow on hosts where time_t
39131         and long are 64-bit but int is only 32-bit.
39132         (ydhms_diff): Use long int to store year1 and yday1.
39133         Issue a compile-time diagnostic if long int is not wide enough.
39134
39135         (__mktime_internal): Use long int to store adjusted year and yday.
39136         Use plain C rather than preprocessor commands, if that doesn't
39137         affect efficiency.
39138         Check for overflow (and try to repair) after each probe
39139         rather than checking only at the very end.  This avoids some bugs
39140         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39141         does not equal GMT offset at maximum time).
39142         Use integer to check for overflow rather than floating point; this
39143         is more portable to non-IEEE hosts, and is a tad faster.
39144         When we detect that we are oscillating between two values,
39145         don't check whether tm_isdst has the requested value, since
39146         we already know the answer.  When tm_isdst has the wrong value,
39147         use a different heuristic to find the right one, based on the
39148         extreme values actually observed in practice in tz2003a,
39149         rather than the (overly optimistic) "previous 3 calendar quarters".
39150
39151         (not_equal_tm, print_tm, check_result): Use "const T" rather than
39152         "T const" to accommodate glibc style.
39153         (check_result): Use less-confusing report format.  "long" -> "long int.
39154         (main): Likewise.
39155         Don't loop if the iteration overflows time_t.
39156         Allow a negative step in the iteration.
39157
39158 2003-07-06  Karl Berry  <karl@gnu.org>
39159
39160         * config/depcomp: update from automake.
39161         * config/config.sub: update from prep.
39162
39163 2003-07-03  Karl Berry  <karl@gnu.org>
39164
39165         * config/config.guess: update from prep.
39166
39167 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39168
39169         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39170         xreadlink.c now includes it unconditionally.
39171
39172 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39173
39174         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
39175         having it depend on HAVE_SYS_TYPES_H.
39176
39177 2003-07-01  Bruno Haible  <bruno@clisp.org>
39178
39179         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
39180         <sys/types.h> should be sufficient.
39181         Reported by Paul Eggert.
39182
39183 2003-06-26  Karl Berry  <karl@gnu.org>
39184
39185         * config/depcomp: update from automake.
39186
39187 2003-06-26  Bruno Haible  <bruno@clisp.org>
39188
39189         * modules/human: Depend on module stdbool.
39190
39191 2003-06-25  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/readlink: New file.
39194         * modules/xreadlink: Depend on it.
39195         * MODULES.html.sh (func_all_modules): Add readlink.
39196
39197 2003-06-25  Bruno Haible  <bruno@clisp.org>
39198
39199         * m4/readlink.m4: New file.
39200
39201 2003-06-25  Bruno Haible  <bruno@clisp.org>
39202
39203         * lib/readlink.c: New file.
39204
39205 2003-06-22  Karl Berry  <karl@gnu.org>
39206
39207         * config/srclist.txt: update mkinstalldirs from automake.
39208         * config/mkinstalldirs: update.
39209
39210 2003-06-22  Bruno Haible  <bruno@clisp.org>
39211
39212         Portability to mingw32.
39213         * m4/ssize_t.m4: New file, from GNU gettext.
39214         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
39215         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
39216
39217 2003-06-22  Bruno Haible  <bruno@clisp.org>
39218
39219         * modules/safe-read: Add m4/ssize_t.m4.
39220         * modules/xreadlink: Add m4/ssize_t.m4.
39221
39222 2003-06-20  Bruno Haible  <bruno@clisp.org>
39223
39224         Assume C89, so PARAMS isn't needed.
39225         * lib/unicodeio.h (PARAMS): Remove.
39226         * lib/unicodeio.c: Don't use PARAMS.
39227
39228 2003-06-18  Karl Berry  <karl@gnu.org>
39229
39230         * config/config.{guess,sub}: update from prep.
39231
39232 2003-06-18  Jim Meyering  <jim@meyering.net>
39233
39234         Merge changes from coreutils.
39235         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
39236         Remove explicit declarations of xmalloc and realloc.
39237         Include xalloc.h.
39238         (read_utmp): Remove anachronistic cast of xmalloc.
39239
39240 2003-06-17  Paul Eggert  <eggert@twinsun.com>
39241
39242         Assume C89, so PARAMS isn't needed.
39243         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
39244         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
39245         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
39246         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
39247         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
39248         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39249         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39250         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39251         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39252         lib/xstrtod.h, lib/xstrtol.h: Likewise.
39253         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39254         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39255         no longer needed. Anyway, config.h should always be included before any
39256         other file.
39257
39258 2003-06-11  Simon Josefsson  <jas@extundo.com>
39259
39260         * modules/sysexits: New file.
39261         * MODULES.html.sh (func_all_modules): Add sysexits.
39262
39263 2003-06-11  Simon Josefsson  <jas@extundo.com>
39264
39265         * lib/sysexit_.h: New file.
39266
39267 2003-06-11  Derek Price  <derek@ximbiot.com>
39268
39269         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39270         necessary.
39271
39272 2003-06-11  Bruno Haible  <bruno@clisp.org>
39273
39274         * m4/sysexits.m4: New file.
39275
39276 2003-06-10  Simon Josefsson  <jas@extundo.com>
39277
39278         * lib/argp.h: New file, from glibc.
39279         * lib/argp-ba.c: New file, from glibc.
39280         * lib/argp-eexst.c: New file, from glibc.
39281         * lib/argp-fmtstream.c: New file, from glibc.
39282         * lib/argp-fmtstream.h: New file, from glibc.
39283         * lib/argp-fs-xinl.c: New file, from glibc.
39284         * lib/argp-help.c: New file, from glibc.
39285         * lib/argp-namefrob.h: New file, from glibc.
39286         * lib/argp-parse.c: New file, from glibc.
39287         * lib/argp-pv.c: New file, from glibc.
39288         * lib/argp-pvh.c: New file, from glibc.
39289         * lib/argp-xinl.c: New file, from glibc.
39290
39291 2003-06-10  Simon Josefsson  <jas@extundo.com>
39292
39293         * modules/strchrnul: New file.
39294
39295 2003-06-10  Simon Josefsson  <jas@extundo.com>
39296
39297         * modules/argp: New file.
39298
39299 2003-06-10  Simon Josefsson  <jas@extundo.com>
39300
39301         * m4/strchrnul.m4: New file.
39302
39303 2003-06-10  Simon Josefsson  <jas@extundo.com>
39304
39305         * lib/strchrnul.h: New file.
39306         * lib/strchrnul.c: New file.
39307
39308 2003-06-10  Bruno Haible  <bruno@clisp.org>
39309
39310         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39311
39312 2003-06-07  Karl Berry  <karl@gnu.org>
39313
39314         * config/config.{guess,sub}: update from prep.
39315
39316 2003-06-07  Jim Meyering  <jim@meyering.net>
39317
39318         * modules/strtod: Use $(...) notation, not @...@ for
39319         AC_REPLACE'd variables.
39320         * modules/localcharset: Likewise.
39321
39322 2003-06-07  Jim Meyering  <jim@meyering.net>
39323
39324         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39325         in place of my name in the copyright comment.
39326         Remove definition and uses of __P.
39327
39328         From coreutils.
39329         * lib/stat.c: Don't declare xmalloc explicitly.
39330         Instead, include "xalloc.h".
39331         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39332         xrealloc, and xcalloc return values.
39333         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39334         Improve comment.
39335         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39336
39337 2003-06-07  Bruno Haible  <bruno@clisp.org>
39338
39339         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39340         avoid AC_CONFIG_LINKS.
39341         * modules/fnmatch (Makefile.am): Use explicit creation rule for
39342         fnmatch.h, to avoid AC_CONFIG_LINKS.
39343         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39344
39345 2003-06-07  Bruno Haible  <bruno@clisp.org>
39346
39347         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39348         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39349         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39350         directory.
39351         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39352         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39353         directory.
39354
39355 2003-06-06  Jim Meyering  <jim@meyering.net>
39356
39357         Merge from coreutils.
39358         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39359         Consolidate declarations and initializations of *_base* locals.
39360
39361         Merge from coreutils.
39362         This avoids a core dump on systems without GNU putenv,
39363         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39364         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39365         (unsetenv): New static function, from GNU libc.
39366         (rpl_putenv): Use it.
39367
39368         * lib/modechange.c: Remove trailing blanks.
39369
39370         Merge from coreutils.
39371         * lib/fsusage.c: Remove declaration of statfs.
39372         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39373
39374         * lib/posixtm.c: Include <stdbool.h> unconditionally.
39375
39376 2003-06-06  Jim Meyering  <jim@meyering.net>
39377
39378         * lib/stdbool_.h: Renamed from stdbool.h.in.
39379
39380 2003-06-06  Jim Meyering  <jim@meyering.net>
39381             Bruno Haible  <bruno@clisp.org>
39382
39383         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39384         Adjust Makefile.am snippet not to redirect directly to target.
39385         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39386
39387 2003-06-05  Paul Eggert  <eggert@twinsun.com>
39388
39389         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39390         mismatch, look in future quarters as well as past.  This fixes a
39391         bug when processing fall-backwards gaps immediately after a long
39392         period of daylight-saving time.
39393
39394         * lib/mktime.c: Assume freestanding C89 or better.
39395         (HAVE_LIMITS_H): Remove.  Assume it's 1.
39396         (__P): Remove; not used.
39397         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39398         (mktime, not_equal_tm, print_tm, check_result,
39399         main): Use prototypes.  Use const * where appropriate.
39400         (main): Fix typo in testing code that uncovered by above changes.
39401         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39402
39403 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39404
39405         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
39406         locale.h, localeconv.  This merges changes from coreutils.
39407
39408         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39409         It can be removed after the next Autoconf is released.
39410         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39411         needed.
39412
39413 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39414
39415         * lib/mktime.c: Fix Debian bug 177940
39416         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39417         (localtime_offset): Now long int, not time_t, because we want it
39418         to be guaranteed to be signed.  All uses changed.
39419         (__mktime_internal): If overflow would occur when adding offset,
39420         don't add it.
39421
39422         Merge 'human' changes from coreutils.  Rewrite to support
39423         locale-specific notations like thousands separators.
39424         * lib/human.c: Simplify authorship notice.
39425         Include human.h immediately after config.h.
39426         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39427         <limits.h>: Do not include, since human.h does.
39428         (SIZE_MAX, UINTMAX_MAX): New macros.
39429         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39430         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39431         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39432         (power_letter): Renamed from suffixes.
39433         (generate_suffix_backwards): Remove.
39434         (adjust_value): Now takes int style (because of human.h changes)
39435         and long double value (for greater precision on some platforms).
39436         (group_number): New function.
39437         (human_readable): Use it.  Use integer options, not enum.
39438         Put the options before the sizes in the arg list.
39439         Support all the new options.
39440         The old human_readable function has been removed;
39441         use inttostr.h instead.
39442         (human_readable, default_block_size, humblock):
39443         Use uintmax_t, not int, for block sizes.
39444         (human_readable_inexact, block_size_types): Remove.
39445         (block_size_opts): New constant.
39446         (human_options): Renamed from human_block_size, with new signature
39447         that allows block sizes up to UINTMAX_MAX.  All callers changed.
39448         * lib/human.h: Add copyright and authorship notice.
39449         Include <limits.h> and <stdbool.h> unconditionally.
39450         (PARAMS): Remove.  All uses removed.
39451         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39452         (enum human_inexact_style): Remove tag; now a nameless enum.
39453         (human_floor, human_ceiling, human_round_to_even): Now have
39454         values 2, 0, 1 rather than -1, 1, 0.
39455         (human_group_digits, human_suppress_point_zero, human_autoscale,
39456         human_base_1024, human_SI, human_B): New constants.
39457         (human_readable_inexact, human_block_size): Remove.
39458         (human_readable): Size args are now uintmax_t, not int.
39459         (human_options): New decl.
39460
39461         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39462         unnecessary now that we assume C89 or better.  This change
39463         imported from coreutils.
39464
39465         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39466         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
39467         in the 2003-05-30 sync from glibc.
39468
39469         .h files should stand alone, but we shouldn't include <sys/types.h>
39470         if we can get away with just <stddef.h>.
39471
39472         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39473         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39474         rather than <sys/types.h>, as we merely need size_t.
39475         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39476         to get size_t.
39477         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39478         Include <stdio.h>, to get FILE.
39479         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39480         memcasecmp.h has included <stddef.h> and all we need is size_t.
39481         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39482         our interface, instead of including <sys/types.h>
39483
39484 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39485
39486         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39487         now, as glibc mktime is buggy on non-glibc systems.
39488
39489 2003-06-03  Karl Berry  <karl@gnu.org>
39490
39491         * config/config.sub: update from prep.
39492
39493 2003-06-02  Paul Eggert  <eggert@twinsun.com>
39494
39495         [from coreutils]
39496         Fix some minor time-related bugs with POSIX time arguments.
39497         Some valid time stamps were being rejected (notably -1, and
39498         time stamps before 1900 on 64-bit hosts).  And some invalid
39499         time stamps were being accepted, e.g. September 31.
39500
39501         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39502         that we can return (time_t) -1 successfully.
39503         * lib/posixtm.c: Likewise.
39504         [HAVE_STDBOOL_H]: Include <stdbool.h>.
39505         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39506         (t): Remove static var.
39507         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39508         of static var.  All uses changed.
39509         (year): Do not reject years before 1900; they can occur with
39510         64-bit time_t.
39511         (posix_time_parse): Do not check for out-of-range components;
39512         that is now the caller's responsibility, since our checks were
39513         only approximations.
39514         (posixtime): Use mktime to check for out-of-range components,
39515         since it knows them exactly.
39516         If mktime returns (time_t) -1, check whether an error actually occurred
39517         by invoking localtime on -1.
39518         (main) [TEST_POSIXTIME]: Check for input data errors, and report
39519         posixtime failures better.
39520         Improve the test data (in comments only).
39521
39522 2003-06-02  Karl Berry  <karl@gnu.org>
39523
39524         * config/mkinstalldirs (version): new variable.
39525         (--version): new option.
39526         (usage): improve message.
39527
39528 2003-05-30  Karl Berry  <karl@gnu.org>
39529
39530         * lib/mktime.c: update from libc.
39531
39532 2003-05-30  Bruno Haible  <bruno@clisp.org>
39533
39534         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39535         * config/config.rpath: Upgrade to gettext-0.12.1.
39536
39537 2003-05-30  Bruno Haible  <bruno@clisp.org>
39538
39539         * m4/gettext.m4: Upgrade to gettext-0.12.1.
39540         * m4/nls.m4: New file, from gettext-0.12.1.
39541         * m4/po.m4: New file, from gettext-0.12.1.
39542         * m4/progtest.m4: Upgrade to gettext-0.12.1.
39543
39544 2003-05-30  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39547         * lib/localcharset.h: Likewise.
39548         * lib/localcharset.c: Likewise.
39549
39550 2003-05-29  Karl Berry  <karl@gnu.org>
39551
39552         * config/config.rpath: update from gettext.
39553
39554 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39555
39556         Assume the headers required for C89 freestanding compilers.
39557         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39558         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39559         * m4/human.m4 (gl_HUMAN): Likewise.
39560         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39561         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39562         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39563         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39564         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39565         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39566
39567 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39568
39569         Assume the headers required for C89 freestanding compilers.
39570         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39571         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39572         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39573         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39574         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39575         define, since <limits.h> is guaranteed to do that.
39576         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39577         * lib/exclude.c: Include <stdbool.h> unconditionally.
39578         * lib/tempname.c: Include <stddef.h> unconditionally.
39579         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39580         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39581         <stddef.h> does that.
39582         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39583         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39584         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39585         needed.
39586         * lib/xstrtol.c: Likewise.
39587         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39588         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39589
39590         * lib/addext.c (addext): Use assignment rather than cast, to avoid
39591         warnings on some platforms.
39592
39593         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39594         arbitrarily.
39595
39596 2003-05-26  Jim Meyering  <jim@meyering.net>
39597
39598         Merge in a change from coreutils:
39599         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39600         that is guaranteed to be `no'.  Use `no_such_member' to indicate
39601         that condition, rather than `-1' which is slightly misleading.
39602         Change the name of the cache variable to have the gl_ prefix.
39603         Prompted by a patch from Richard Dawe for DJGPP.
39604
39605 2003-05-24  Karl Berry  <karl@gnu.org>
39606
39607         * config/config.guess: update from prep.
39608
39609 2003-05-22  Karl Berry  <karl@gnu.org>
39610
39611         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39612
39613 2003-05-20  Karl Berry  <karl@gnu.org>
39614
39615         * config/config.guess: update from prep.
39616
39617 2003-05-18  Karl Berry  <karl@gnu.org>
39618
39619         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39620         might actually be set by the user.
39621
39622         * config/depcomp, install-sh, mdate-sh: update from automake.
39623
39624 2003-05-17  Bruno Haible  <bruno@clisp.org>
39625
39626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39627         invalid expansion for AC_EGREP_CPP.
39628         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39629         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39630         Suggested by Akim Demaille <akim@epita.fr> in
39631         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39632
39633 2003-05-12  Jim Meyering  <jim@meyering.net>
39634
39635         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39636         the space-padded-by-default conversion specifiers, %e, %k, %l.
39637
39638 2003-05-12  Bruno Haible  <bruno@clisp.org>
39639
39640         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39641         the string is longer than 4 KB.
39642
39643 2003-05-11  Karl Berry  <karl@gnu.org>
39644
39645         * config/config.{guess,sub}: update from prep.
39646
39647 2003-05-09  Bruno Haible  <bruno@clisp.org>
39648
39649         * modules/error: Add m4/strerror_r.m4 to file list.
39650
39651 2003-05-03  Bruno Haible  <bruno@clisp.org>
39652
39653         Upgrade to Unicode-4.0.
39654         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39655         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39656         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39657         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39658         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39659         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39660         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39661         Change width of U+E0100..U+E01EF from 1 to 0.
39662
39663 2003-04-25  Jim Meyering  <jim@meyering.net>
39664
39665         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39666         of type size_t, not int.
39667
39668 2003-04-25  Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/copy-file.c: Include <stddef.h>, for size_t.
39671
39672 2003-04-21  Paul Eggert  <eggert@twinsun.com>
39673
39674         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39675         code which expansion is under static control.  Patch imported from
39676         Akim Demaille's patch to Bison; see
39677         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39678
39679 2003-04-14  Bruno Haible  <bruno@clisp.org>
39680
39681         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39682
39683 2003-04-11  Jim Meyering  <jim@meyering.net>
39684
39685         Merge changes from Coreutils.
39686
39687         2003-03-22  Jim Meyering  <jim@meyering.net>
39688
39689         * lib/strftime.c (widen): Cast alloca return value to proper type.
39690
39691         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
39692
39693         From GNU libc.
39694         * lib/strftime.c (my_strftime): Handle very large width
39695         specifications for numeric values correctly.  Improve checks for
39696         overflow.
39697
39698         2003-01-19  Jim Meyering  <jim@meyering.net>
39699
39700         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39701         definitions.
39702         (nl_get_alt_digit) [! defined my_strftime]: Define.
39703         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39704         _nl_get_alt_digit and _nl_get_walt_digit.
39705
39706         * lib/strftime.c (my_strftime): Merge in locale-related changes from
39707         libc. These changes have no effect outside of _LIBC.
39708
39709 2003-04-10  Bruno Haible  <bruno@clisp.org>
39710
39711         * modules/findprog: New file.
39712         * MODULES.html.sh (func_all_modules): Add it.
39713
39714 2003-04-10  Bruno Haible  <bruno@clisp.org>
39715
39716         * m4/findprog.m4: New file.
39717         * m4/eaccess.m4: New file.
39718
39719 2003-04-10  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/findprog.h: New file, from GNU gettext.
39722         * lib/findprog.c: New file, from GNU gettext.
39723
39724 2003-04-05  Jim Meyering  <jim@meyering.net>
39725
39726         Merge changes from Coreutils.
39727
39728         * lib/exclude.h (PARAMS): Remove definition and uses.
39729         * lib/exclude.c: Remove uses of `PARAMS'.
39730
39731         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39732         Add test-cases for DOS filenames. Declare program_name.
39733         (main): Set up program_name.  Patch by Rich Dawe.
39734
39735         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39736         error from mntctl.
39737         Use mntctl's return value to drive the entry-processing loop, since
39738         we can't rely on the value of the vmt_length member in the last
39739         entry.  On some systems doing so could result in exhausting
39740         virtual memory.  Based in part on a patch from Mike Jetzer.
39741
39742 2003-04-04  Bruno Haible  <bruno@clisp.org>
39743
39744         * modules/linebreak: New file.
39745         * MODULES.html.sh (func_all_modules): Add it.
39746
39747 2003-04-04  Bruno Haible  <bruno@clisp.org>
39748
39749         * m4/linebreak.m4: New file.
39750
39751 2003-04-04  Bruno Haible  <bruno@clisp.org>
39752
39753         * lib/linebreak.h: New file, from GNU gettext.
39754         * lib/linebreak.c: New file, from GNU gettext with slight
39755         modifications.
39756         * lib/lbrkprop.h: New file, from GNU gettext.
39757
39758 2003-04-03  Bruno Haible  <bruno@clisp.org>
39759
39760         * modules/utf8-ucs4: New file.
39761         * modules/utf16-ucs4: New file.
39762         * modules/ucs4-utf8: New file.
39763         * modules/ucs4-utf16: New file.
39764         * MODULES.html.sh (func_all_modules): Add them.
39765
39766 2003-04-03  Bruno Haible  <bruno@clisp.org>
39767
39768         * m4/utf-ucs4.m4: New file.
39769         * m4/ucs4-utf.m4: New file.
39770
39771 2003-04-03  Bruno Haible  <bruno@clisp.org>
39772
39773         * lib/utf8-ucs4.h: New file, from GNU gettext.
39774         * lib/utf16-ucs4.h: New file, from GNU gettext.
39775         * lib/ucs4-utf8.h: New file, from GNU gettext.
39776         * lib/ucs4-utf16.h: New file, from GNU gettext.
39777
39778 2003-04-02  Bruno Haible  <bruno@clisp.org>
39779
39780         * modules/binary-io: New file.
39781         * MODULES.html.sh (func_all_modules): Add it.
39782
39783 2003-04-02  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/binary-io.h: New file, from GNU gettext.
39786
39787 2003-04-01  Bruno Haible  <bruno@clisp.org>
39788
39789         * modules/pathname: New file.
39790         * MODULES.html.sh (func_all_modules): Add it.
39791
39792 2003-04-01  Bruno Haible  <bruno@clisp.org>
39793
39794         * lib/pathname.h: New file, from GNU gettext.
39795         * lib/concatpath.c: New file, from GNU gettext.
39796
39797 2003-03-30  Bruno Haible  <bruno@clisp.org>
39798
39799         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39800
39801 2003-03-30  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39804         function chown() doesn't exist.
39805
39806 2003-03-28  Bruno Haible  <bruno@clisp.org>
39807
39808         * modules/copy-file: New file.
39809         * MODULES.html.sh (func_all_modules): Add it.
39810
39811 2003-03-28  Bruno Haible  <bruno@clisp.org>
39812
39813         * m4/copy-file.m4: New file.
39814
39815 2003-03-28  Bruno Haible  <bruno@clisp.org>
39816
39817         * lib/copy-file.h: New file, from GNU gettext.
39818         * lib/copy-file.c: New file, from GNU gettext.
39819
39820 2003-03-18  Jim Meyering  <jim@meyering.net>
39821
39822         * lib/quote.c (quote_n): Fix typo in comment.
39823
39824 2003-03-18  Bruno Haible  <bruno@clisp.org>
39825
39826         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39827         checking.
39828         * m4/onceonly_2_57.m4: Likewise.
39829
39830 2003-03-17  Bruno Haible  <bruno@clisp.org>
39831
39832         * m4/onceonly.m4: Require autoconf 2.54 or newer.
39833         (m4_quote): Remove macro.
39834         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39835
39836 2003-03-14  Jim Meyering  <jim@meyering.net>
39837
39838         Merge changes from Coreutils.
39839         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39840         to be const, in order to avoid warnings.
39841         (obstack_room): Likewise.
39842         (obstack_empty_p): Likewise.
39843
39844 2003-03-14  Bruno Haible  <bruno@clisp.org>
39845
39846         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39847         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39848
39849 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39850
39851         Merge changes from Bison.
39852         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39853         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39854         when compiling Bison 1.875's `bitset bset = obstack_alloc
39855         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
39856         * lib/hash.c: Include <stdbool.h> unconditionally.
39857
39858 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39859
39860         * m4/onceonly.m4 (m4_quote): New macro.
39861         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39862         Quote AC_FOREACH variable-expansions properly.
39863
39864 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39865
39866         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39867
39868 2003-03-09  Paul Eggert  <eggert@twinsun.com>
39869
39870         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39871         Reported by Bruce Becker; see:
39872         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39873
39874 2003-03-03  Paul Eggert  <eggert@twinsun.com>
39875             Bruno Haible  <bruno@clisp.org>
39876
39877         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39878         Reported by John Hughes, see
39879         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39880
39881 2003-02-20  Bruno Haible  <bruno@clisp.org>
39882
39883         * MODULES.html.sh (func_all_modules): Add poll.
39884
39885 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39886
39887         * modules/poll: New file.
39888
39889 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39890
39891         * lib/poll_.h: New file.
39892         * lib/poll.c: New file.
39893
39894 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39895
39896         * m4/poll.m4: New file.
39897
39898 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39899
39900         * modules/mathl: New file.
39901
39902 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39903
39904         * lib/mathl.h: New file.
39905         * lib/acosl.c: New file.
39906         * lib/asinl.c: New file.
39907         * lib/atanl.c: New file.
39908         * lib/ceill.c: New file.
39909         * lib/cosl.c: New file.
39910         * lib/expl.c: New file.
39911         * lib/floorl.c: New file.
39912         * lib/frexpl.c: New file.
39913         * lib/ldexpl.c: New file.
39914         * lib/logl.c: New file.
39915         * lib/sincosl.c: New file.
39916         * lib/sinl.c: New file.
39917         * lib/sqrtl.c: New file.
39918         * lib/tanl.c: New file.
39919         * lib/trigl.c: New file.
39920         * lib/trigl.h: New file.
39921
39922 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39923
39924         * m4/mathl.m4: New file.
39925
39926 2003-02-18  Bruno Haible  <bruno@clisp.org>
39927
39928         * MODULES.html.sh (func_all_modules): Add mathl.
39929
39930 2003-02-17  Bruno Haible  <bruno@clisp.org>
39931
39932         * modules/mkdtemp: New module.
39933         * MODULES.html.sh (func_all_modules): Add it.
39934
39935 2003-02-17  Bruno Haible  <bruno@clisp.org>
39936
39937         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39938
39939 2003-02-17  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/mkdtemp.h: New file, from GNU gettext.
39942         * lib/mkdtemp.c: New file, from GNU gettext.
39943
39944 2003-02-02  Jim Meyering  <jim@meyering.net>
39945
39946         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39947         e.g. glibc-2.2.93.
39948
39949 2003-01-31  Bruno Haible  <bruno@clisp.org>
39950
39951         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39952         'rpl_rename'.
39953         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39954         'rpl_strnlen'.
39955         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39956         'rpl_strtod'.
39957         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39958         'rpl_utime'.
39959
39960 2003-01-31  Bruno Haible  <bruno@clisp.org>
39961
39962         * lib/rename.c: #undef rename before defining rpl_rename.
39963         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39964
39965 2003-01-30  Bruno Haible  <bruno@clisp.org>
39966
39967         * modules/vasnprintf, modules/vasprintf: New modules.
39968         * MODULES.html.sh (func_all_modules): Add them.
39969
39970 2003-01-30  Bruno Haible  <bruno@clisp.org>
39971
39972         * m4/signed.m4: New file, from GNU gettext.
39973         * m4/longdouble.m4: New file, from GNU gettext.
39974         * m4/wchar_t.m4: New file, from GNU gettext.
39975         * m4/wint_t.m4: New file, from GNU gettext.
39976         * m4/vasnprintf.m4: New file.
39977         * m4/vasprintf.m4: New file.
39978
39979 2003-01-30  Bruno Haible  <bruno@clisp.org>
39980
39981         * lib/printf-args.h: New file, from GNU gettext.
39982         * lib/printf-args.c: New file, from GNU gettext.
39983         * lib/printf-parse.h: New file, from GNU gettext.
39984         * lib/printf-parse.c: New file, from GNU gettext.
39985         * lib/vasnprintf.h: New file, from GNU gettext.
39986         * lib/vasnprintf.c: New file, from GNU gettext.
39987         * lib/asnprintf.c: New file, from GNU gettext.
39988         * lib/vasprintf.h: New file, from GNU gettext with modifications.
39989         * lib/vasprintf.c: New file, from GNU gettext.
39990         * lib/asprintf.c: New file, from GNU gettext.
39991
39992 2003-01-29  Bruno Haible  <bruno@clisp.org>
39993
39994         * modules/stpncpy: New module.
39995         * MODULES.html.sh (func_all_modules): Add it.
39996
39997 2003-01-29  Bruno Haible  <bruno@clisp.org>
39998
39999         * m4/stpncpy.m4: New file.
40000
40001 2003-01-29  Bruno Haible  <bruno@clisp.org>
40002
40003         * lib/stpncpy.h: New file, from GNU gettext with modifications.
40004         * lib/stpncpy.c: New file, from GNU gettext with modifications.
40005
40006 2003-01-28  Bruno Haible  <bruno@clisp.org>
40007
40008         * modules/c-ctype: New module.
40009         * MODULES.html.sh (func_all_modules): Add it.
40010
40011 2003-01-28  Bruno Haible  <bruno@clisp.org>
40012
40013         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
40014         Paul Eggert.
40015         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
40016         Paul Eggert.
40017
40018 2003-01-27  Bruno Haible  <bruno@clisp.org>
40019
40020         * modules/xsetenv: New module.
40021         * MODULES.html.sh (func_all_modules): Add it.
40022
40023 2003-01-27  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/xsetenv.h: New file, from GNU gettext.
40026         * lib/xsetenv.c: New file, from GNU gettext.
40027
40028 2003-01-23  Jim Meyering  <jim@meyering.net>
40029
40030         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
40031         from working on systems without dirfd (at least Irix and OSF1/Tru64).
40032
40033 2003-01-23  Bruno Haible  <bruno@clisp.org>
40034
40035         * modules/minmax: New module.
40036         * MODULES.html.sh (func_all_modules): Add it.
40037
40038 2003-01-23  Bruno Haible  <bruno@clisp.org>
40039
40040         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
40041         Eggert.
40042
40043 2003-01-22  Bruno Haible  <bruno@clisp.org>
40044
40045         * modules/exit: New module.
40046         * MODULES.html.sh (func_all_modules): Add it.
40047
40048 2003-01-22  Bruno Haible  <bruno@clisp.org>
40049
40050         * lib/exit.h: New file, from GNU gettext.
40051
40052 2003-01-19  Bruno Haible  <bruno@clisp.org>
40053
40054         * gnulib-tool: Recognize option --extract-maintainer.
40055         (func_get_maintainer): New function.
40056         * modules/*: Add Maintainer entry.
40057
40058 2003-01-16  Jim Meyering  <jim@meyering.net>
40059
40060         * m4/regex.m4: The `regex' struct is both input and output.
40061         Initialize it before each use.  Patch by Tim Waugh.
40062
40063 2003-01-16  Bruno Haible  <bruno@clisp.org>
40064
40065         * MODULES.html.sh: Add a table of contents. Add the module name as
40066         leftmost column. Add hyperlinks.
40067
40068 2003-01-15  Bruno Haible  <bruno@clisp.org>
40069
40070         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
40071
40072 2003-01-15  Bruno Haible  <bruno@clisp.org>
40073
40074         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
40075         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
40076         suffix.
40077
40078 2003-01-15  Bruno Haible  <bruno@clisp.org>
40079
40080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
40081
40082 2003-01-15  Bruno Haible  <bruno@clisp.org>
40083
40084         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
40085         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
40086
40087 2003-01-14  Jim Meyering  <jim@meyering.net>
40088
40089         * lib/same.c (same_name): Tweak a comment.
40090
40091 2003-01-14  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
40094         when a string comparison is sufficient.
40095
40096 2003-01-14  Bruno Haible  <bruno@clisp.org>
40097
40098         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
40099         'unsigned int'.
40100
40101 2003-01-14  Bruno Haible  <bruno@clisp.org>
40102
40103         * lib/hash-pjw.c: Add comment about low quality of this function.
40104
40105 2003-01-13  Bruno Haible  <bruno@clisp.org>
40106
40107         * modules/stpcpy: Distribute lib/stpcpy.h.
40108         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
40109
40110 2003-01-13  Bruno Haible  <bruno@clisp.org>
40111
40112         * modules/*: Add a description.
40113         * modules/strpbrk: Fix Makefile.am snippet.
40114         * modules/strtoimax: Fix dependencies.
40115         * modules/strtoumax: Likewise.
40116
40117 2003-01-13  Bruno Haible  <bruno@clisp.org>
40118
40119         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40120         * modules/alloca (Makefile.am): All object files depend on alloca.h.
40121         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40122
40123 2003-01-13  Bruno Haible  <bruno@clisp.org>
40124
40125         * gnulib-tool (func_create_testdir): Store config/* files in the main
40126         directory.
40127         * config.rpath: Move to ...
40128         * config/config.rpath: ... here.
40129         * modules/gettext: Contains config/config.rpath, not config.rpath.
40130         * modules/iconv: Likewise.
40131
40132 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40133
40134         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40135         to avoid collisions with libcurses and libreadline.
40136
40137         * m4/getstr.m4: Remove.
40138         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40139
40140 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40141
40142         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40143         to avoid collisions with libcurses and libreadline.
40144
40145         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40146         * lib/getstr.h, getstr.c: Remove.
40147         * lib/getline.c: Include "getline.h", to check interface.
40148         Move body of old getstr.c here: this defines MIN_CHUNK and
40149         declares getdelim2, which is renamed from getstr.
40150         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40151
40152         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40153         All uses changed.
40154         * lib/linebuffer.h: Likewise.
40155         (readline): Remove backward-compatibility macro.
40156
40157 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40158
40159         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40160         to avoid collisions with libcurses and libreadline.
40161         * getstr: Remove.
40162         * MODULES.html.sh: Remove getstr.
40163         * modules/getline: Depend on unlocked-io, not getstr.
40164
40165 2003-01-12  Jim Meyering  <jim@meyering.net>
40166
40167         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
40168
40169 2003-01-10  Bruno Haible  <bruno@clisp.org>
40170
40171         * modules/alloca: Change Makefile.am requirements. Simplify Include
40172         requirements. Add lib/alloca_.h to file list.
40173
40174 2003-01-10  Bruno Haible  <bruno@clisp.org>
40175
40176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
40177
40178 2003-01-10  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/alloca_.h: New file.
40181         * lib/getdate.y: Unconditionally include alloca.h.
40182         * lib/makepath.c: Likewise.
40183         * lib/setenv.c: Likewise.
40184         * lib/userspec.c: Likewise.
40185
40186 2003-01-09  Karl Berry  <karl@gnu.org>
40187
40188         * MODULES.html.sh: include `dirname $0` in PATH, to find
40189         gnulib-tool.
40190
40191 2003-01-09  Bruno Haible  <bruno@clisp.org>
40192
40193         * modules/stdbool: Change configure.ac, Makefile.am requirements.
40194         Simplify Include requirements. Add lib/stdbool.h.in to file list.
40195
40196 2003-01-09  Bruno Haible  <bruno@clisp.org>
40197
40198         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
40199
40200 2003-01-09  Bruno Haible  <bruno@clisp.org>
40201
40202         * lib/stdbool.h.in: New file.
40203
40204 2003-01-09  Bruno Haible  <bruno@clisp.org>
40205
40206         * gnulib-tool (func_all_modules): Ignore files ending in ~.
40207         * MODULES.html.sh: Likewise.
40208
40209 2003-01-08  Jim Meyering  <jim@meyering.net>
40210
40211         * lib/full-write.c: Undefine and define-away `const' after inclusion
40212         of errno.h, not before.  Suggestion from Bruno Haible.
40213
40214 2003-01-08  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/full-read: Depend on full-write.
40217
40218 2003-01-08  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/safe-read.c: Include specification header first, to ensure its
40221         selfcontainedness.
40222         * lib/full-write.c: Likewise.
40223
40224 2003-01-07  Jim Meyering  <jim@meyering.net>
40225
40226         * lib/full-write.c: Rework so that it may serve to define full_read,
40227         too.
40228         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
40229
40230 2003-01-07  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/strtoimax.c: Include <stdint.h> as an alternative to
40233         <inttypes.h>.
40234         * lib/xstrtol.h: Likewise.
40235         * lib/xstrtoimax.c: Likewise.
40236         * lib/xstrtoumax.c: Likewise.
40237         * lib/human.h: Likewise.
40238
40239         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
40240         on systems that have <inttypes.h> but not <stdint.h>.
40241
40242 2003-01-07  Bruno Haible  <bruno@clisp.org>
40243
40244         * MODULES.html.sh: Add copyright notice.
40245         (missed_files): Omit CVS directory entries.
40246         (func_module): Make it work with sed-3.02.
40247         * MODULES.txt: Remove file.
40248
40249 2003-01-06  Jim Meyering  <jim@meyering.net>
40250
40251         * lib/version-etc.c: Update year in translatable copyright string.
40252
40253 2003-01-03  Karl Berry  <karl@gnu.org>
40254
40255         * config/config.{guess,sub}: update from prep.
40256
40257 2003-01-02  Karl Berry  <karl@gnu.org>
40258
40259         * doc/COPYING.DOC: belatedly updated to 1.2.
40260
40261 2003-01-01  Karl Berry  <karl@gnu.org>
40262
40263         * gnulib-tool (func_verify_module): report module name $module in
40264         error message, not $1.
40265         * gnulib-tool (create-testdir): don't complain if destdir couldn't
40266         be created, only if it doesn't exist.
40267         * gnulib-tool (last_checkin_date): don't expand the $Date here.
40268
40269 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40270
40271         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40272
40273 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40274
40275         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40276         memcmp if strcoll doesn't work.
40277
40278 2002-12-31  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/utime.c (utime_null): No need to call ftruncate if the file was
40281         nonempty.
40282
40283 2002-12-31  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/memcoll.c (STRCOLL): New macro.
40286         (memcoll): Use it.
40287
40288 2002-12-31  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/localcharset.h: New file.
40291         * lib/localcharset.c: Include it.
40292         * lib/unicodeio.c: Likewise.
40293
40294 2002-12-31  Bruno Haible  <bruno@clisp.org>
40295
40296         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40297         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40298
40299 2002-12-31  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/getline.h: Include <stddef.h>, for size_t.
40302
40303         * lib/unicodeio.h: Include <stddef.h>, for size_t.
40304         * lib/unicodeio.c: Don't include <stddef.h>.
40305
40306 2002-12-31  Bruno Haible  <bruno@clisp.org>
40307
40308         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40309         HAVE_TM_ZONE.
40310
40311 2002-12-24  Karl Berry  <karl@gnu.org>
40312
40313         * config/config.guess: update from prep.
40314
40315 2002-12-24  Bruno Haible  <bruno@clisp.org>
40316
40317         General infrasructure.
40318         * m4/README: Rewritten.
40319         * m4/onceonly.m4: New file.
40320         * m4/onceonly_2_57.m4: New file.
40321
40322         Module atexit.
40323         * m4/atexit.m4: New file.
40324
40325         Module strtod.
40326         * m4/strtod.m4: New file.
40327
40328         Module strtol.
40329         * m4/strtol.m4: New file.
40330
40331         Module strtoul.
40332         * m4/strtoul.m4: New file.
40333
40334         Module memchr.
40335         * m4/memchr.m4: New file.
40336
40337         Module memcmp.
40338         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40339         (jm_FUNC_MEMCMP): Invoke it.
40340
40341         Module memcpy.
40342         * m4/memcpy.m4: New file.
40343
40344         Module memmove.
40345         * m4/memmove.m4: New file.
40346
40347         Module memset.
40348         * m4/memset.m4: New file.
40349
40350         Module strcspn.
40351         * m4/strcspn.m4: New file.
40352
40353         Module strpbrk.
40354         * m4/strpbrk.m4: New file.
40355
40356         Module strstr.
40357         * m4/strstr.m4: New file.
40358
40359         Module strerror.
40360         * m4/strerror.m4: New file.
40361
40362         Module mktime.
40363         * m4/mktime.m4: Renamed from jm-mktime.m4.
40364         (gl_PREREQ_MKTIME): New macro.
40365         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40366
40367         Module malloc.
40368         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40369         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40370         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40371
40372         Module realloc.
40373         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40374         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40375         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40376
40377         Module strftime.
40378         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40379         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40380         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40381         gl_TM_GMTOFF.
40382         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40383
40384         Module xalloc.
40385         * m4/xalloc.m4: New file.
40386
40387         Module alloca.
40388         * m4/alloca.m4: New file.
40389
40390         Module putenv.
40391         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40392         (jm_FUNC_PUTENV): Invoke it.
40393
40394         Module setenv.
40395         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40396         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40397         when invoked twice.
40398         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40399         gt_FUNC_SETENV.
40400
40401         Module memrchr.
40402         * m4/memrchr.m4: New file.
40403
40404         Module stpcpy.
40405         * m4/stpcpy.m4: New file.
40406
40407         Module strcase.
40408         * m4/strcase.m4: New file.
40409
40410         Module strdup.
40411         * m4/strdup.m4: New file.
40412
40413         Module strnlen.
40414         * m4/strnlen.m4: New file.
40415
40416         Module strndup.
40417         * m4/strndup.m4: New file.
40418
40419         Module xstrtod.
40420         * m4/xstrtod.m4: New file.
40421
40422         Module xstrtol.
40423         * m4/xstrtol.m4: New file.
40424
40425         Module getdate.
40426         * m4/getdate.m4: New file.
40427
40428         Module unlocked-io.
40429         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40430         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40431         * m4/jm-glibc-io.m4n: Remove file.
40432
40433         Module long-options.
40434         * m4/long-options.m4: New file.
40435
40436         Module md5.
40437         * m4/md5.m4: New file.
40438
40439         Module sha.
40440         * m4/sha.m4: New file.
40441
40442         Module getstr.
40443         * m4/getstr.m4: New file.
40444
40445         Module getline.
40446         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40447         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40448         <sys/types.h>, for size_t. Use the function name gnu_getline, not
40449         simply getline. Infoke gl_PREREQ_GETLINE.
40450
40451         Module obstack.
40452         * m4/obstack.m4: New file.
40453
40454         Module hash.
40455         * m4/hash.m4: New file.
40456
40457         Module readtokens.
40458         * m4/readtokens.m4: New file.
40459
40460         Module strverscmp.
40461         * m4/strverscmp.m4: New file.
40462
40463         Module stdbool.
40464         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40465         OSF/1.
40466
40467         Module strtoll.
40468         * m4/strtoll.m4: New file.
40469
40470         Module strtoull.
40471         * m4/strtoull.m4: New file.
40472
40473         Module strtoimax.
40474         * m4/strtoimax.m4: New file.
40475
40476         Module strtoumax.
40477         * m4/strtoumax.m4: New file.
40478
40479         Module xstrtoimax.
40480         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40481         jm_AC_PREREQ_XSTRTOIMAX.
40482         Moved the strtol prerequisites to strtol.m4.
40483         Moved the strtoll prerequisites to strtoll.m4.
40484         Moved the strtoimax prerequisites to strtoimax.m4.
40485
40486         Module xstrtoumax.
40487         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40488         jm_AC_PREREQ_XSTRTOUMAX.
40489         Moved the strtoul prerequisites to strtoul.m4.
40490         Moved the strtoull prerequisites to strtoull.m4.
40491         Moved the strtoumax prerequisites to strtoumax.m4.
40492
40493         Module chown.
40494         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40495         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40496
40497         Module dup2.
40498         * m4/dup2.m4: New file.
40499
40500         Module ftruncate.
40501         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40502         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40503
40504         Module getgroups.
40505         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40506         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40507
40508         Module gettimeofday.
40509         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40510         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40511         gl_PREREQ_GETTIMEOFDAY.
40512
40513         Module mkdir.
40514         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40515         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40516
40517         Module mkstemp.
40518         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40519         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40520         jm_AC_TYPE_UINTMAX_T.
40521         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40522
40523         Module stat.
40524         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40525         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40526
40527         Module lstat.
40528         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40529         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40530
40531         Module timespec.
40532         * m4/timespec.m4 (gl_TIMESPEC): New macro.
40533         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40534         * m4/st_mtim.m4: Indentation.
40535
40536         Module nanosleep.
40537         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40538         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40539         gl_PREREQ_NANOSLEEP.
40540
40541         Module regex.
40542         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40543         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40544         (gl_REGEX): New macro.
40545
40546         Module rename.
40547         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40548         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40549
40550         Module rmdir.
40551         * m4/rmdir.m4: New file.
40552
40553         Module utime.
40554         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40555         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40556         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40557
40558         Module dirname.
40559         * m4/dirname.m4: New file.
40560
40561         Module getopt.
40562         * m4/getopt.m4: New file.
40563
40564         Module unistd-safer.
40565         * m4/unistd-safer.m4: New file.
40566
40567         Module fnmatch.
40568         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40569         declaration.
40570         (gl_PREREQ_FNMATCH_EXTRA): New macro.
40571         (gl_FUNC_FNMATCH_POSIX): New macro.
40572         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40573         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40574         simply fnmatch.
40575
40576         Module exclude.
40577         * m4/exclude.m4: New file.
40578
40579         Module human.
40580         * m4/human.m4: New file.
40581
40582         Module acl.
40583         * m4/acl.m4: Nop.
40584
40585         Module backupfile.
40586         * m4/backupfile.m4: New file.
40587         * m4/d-ino.m4: Indentation.
40588
40589         Module fsusage.
40590         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40591         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40592         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40593
40594         Module dirfd.
40595         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40596         requirements.
40597
40598         Module euidaccess.
40599         * m4/euidaccess.m4: New file.
40600
40601         Module file-type.
40602         * m4/file-type.m4: New file.
40603
40604         Module fileblocks.
40605         * m4/fileblocks.m4: New file.
40606
40607         Module filemode.
40608         * m4/filemode.m4: New file.
40609
40610         Module isdir.
40611         * m4/isdir.m4: New file.
40612
40613         Module lchown.
40614         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40615         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40616
40617         Module makepath.
40618         * m4/makepath.m4: New file.
40619
40620         Module modechange.
40621         * m4/modechange.m4: New file.
40622
40623         Module mountlist.
40624         * m4/mountlist.m4: New file.
40625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40626         Indentation.
40627
40628         Module path-concat.
40629         * m4/path-concat.m4: New file.
40630
40631         Module pathmax.
40632         * m4/pathmax.m4: New file.
40633
40634         Module same.
40635         * m4/same.m4: New file.
40636
40637         Module save-cwd.
40638         * m4/save-cwd.m4: New file.
40639
40640         Module savedir.
40641         * m4/savedir.m4: New file.
40642
40643         Module xgetcwd.
40644         * m4/xgetcwd.m4: New file.
40645         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40646
40647         Module xreadlink.
40648         * m4/xreadlink.m4: New file.
40649
40650         Module safe-read.
40651         * m4/safe-read.m4: New file.
40652
40653         Module safe-write.
40654         * m4/safe-write.m4: New file.
40655
40656         Module closeout.
40657         * m4/closeout.m4: New file.
40658
40659         Module stdio-safer.
40660         * m4/stdio-safer.m4: New file.
40661
40662         Module getpass.
40663         * m4/getpass.m4: New file.
40664
40665         Module getugroups.
40666         * m4/getugroups.m4: New file.
40667
40668         Module group-member.
40669         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40670         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40671
40672         Module idcache.
40673         * m4/idcache.m4: New file.
40674
40675         Module userspec.
40676         * m4/userspec.m4: New file.
40677
40678         Module gettime.
40679         * m4/clock_time.m4: New file.
40680         * m4/gettime.m4: New file.
40681
40682         Module settime.
40683         * m4/settime.m4: New file.
40684
40685         Module posixtm.
40686         * m4/posixtm.m4: New file.
40687
40688         Module gethostname.
40689         * m4/gethostname.m4: New file.
40690
40691         Module canon-host.
40692         * m4/canon-host.m4: New file.
40693
40694         Module gettext.
40695         * m4/codeset.m4: New file, from gettext-0.11.5.
40696         * m4/gettext.m4: New file, from gettext-0.11.5.
40697         * m4/glibc21.m4: New file, from gettext-0.11.5.
40698         * m4/iconv.m4: New file, from gettext-0.11.5.
40699         * m4/intdiv0.m4: New file, from gettext-0.11.5.
40700         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40701         * m4/inttypes.m4: New file, from gettext-0.11.5.
40702         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40703         * m4/isc-posix.m4: New file, from gettext-0.11.5.
40704         * m4/lcmessage.m4: New file, from gettext-0.11.5.
40705         * m4/lib-ld.m4: New file, from gettext-0.11.5.
40706         * m4/lib-link.m4: New file, from gettext-0.11.5.
40707         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40708         * m4/progtest.m4: New file, from gettext-0.11.5.
40709         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40710         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40711         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40712
40713         Module localcharset.
40714         * m4/localcharset.m4: New file.
40715
40716         Module hard-locale.
40717         * m4/hard-locale.m4: New file.
40718
40719         Module mbswidth.
40720         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40721         onceonly macros.
40722         * m4/mbrtowc.m4: Add comment.
40723
40724         Module memcasecmp.
40725         * m4/memcasecmp.m4: New file.
40726
40727         Module memcoll.
40728         * m4/memcoll.m4: New file.
40729
40730         Module unicodeio.
40731         * m4/unicodeio.m4: New file.
40732
40733         Module rpmatch.
40734         * m4/rpmatch.m4: New file.
40735
40736         Module yesno.
40737         * m4/yesno.m4: New file.
40738
40739         Module exitfail.
40740         * m4/exitfail.m4: New file.
40741
40742         Module c-stack.
40743         * m4/c-stack.m4 (gl_C_STACK): New macro.
40744         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40745
40746         Module error.
40747         * m4/error.m4 (gl_ERROR): New macro.
40748         (jm_PREREQ_ERROR): Use onceonly macros.
40749
40750         Module fatal.
40751         * m4/fatal.m4: New file.
40752
40753         Module getloadavg.
40754         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40755         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40756
40757         Module getpagesize.
40758         * m4/getpagesize.m4: New file.
40759
40760         Module getusershell.
40761         * m4/getusershell.m4: New file.
40762
40763         Module physmem.
40764         * m4/physmem.m4: New file.
40765
40766         Module posixver.
40767         * m4/posixver.m4: New file.
40768
40769         Module quotearg.
40770         * m4/quotearg.m4: New file.
40771
40772         Module quote.
40773         * m4/quote.m4: New file.
40774
40775         Module readutmp.
40776         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40777
40778         Module sig2str.
40779         * m4/sig2str.m4: New file.
40780
40781         Other.
40782         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40783         ulonglong.m4.
40784         * m4/intmax_t.m4: New file.
40785         * m4/d-type.m4: Indentation.
40786         * m4/jm-macros.m4: Update.
40787         * m4/prereq.m4 (jm_PREREQ): Update.
40788         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40789         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40790         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40791         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40792         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40793         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40794         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40795         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40796         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40797         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40798         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40799         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40800         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40801         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40802         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40803         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40804         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40805         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40806         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40807
40808 2002-12-24  Bruno Haible  <bruno@clisp.org>
40809
40810         * MODULES.txt: Update according to m4/ changes.
40811
40812         Module gettext.
40813         * config.rpath: New file, from gettext-0.11.5.
40814
40815         * modules/*: New module descriptions.
40816         * gnulib-tool: New file.
40817         * MODULES.html.sh: New file.
40818
40819 2002-12-21  Karl Berry  <karl@gnu.org>
40820
40821         * doc/fdl.texi: update to version 1.2.
40822
40823 2002-12-19  Karl Berry  <karl@gnu.org>
40824
40825         * config/config.guess: update from prep.
40826
40827 2002-12-18  Bruno Haible  <bruno@clisp.org>
40828
40829         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40830         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40831
40832 2002-12-17  Bruno Haible  <bruno@clisp.org>
40833
40834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40835         stdlib.h, string.h.
40836
40837 2002-12-17  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/canon-host.c (strdup): Remove unused declaration.
40840
40841         * lib/fsusage.c: Include full_read.h.
40842         (get_fs_usage): Use full_read instead of safe_read.
40843
40844         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40845
40846 2002-12-12  Karl Berry  <karl@gnu.org>
40847
40848         * config/config.guess: update from prep.
40849
40850 2002-12-11  Bruno Haible  <bruno@clisp.org>
40851
40852         * m4/setenv.m4: New file, from gettext-0.11.5.
40853
40854 2002-12-11  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40857         not unsetenv().
40858         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40859         modifications:
40860
40861         2002-12-11  Bruno Haible  <bruno@clisp.org>
40862
40863                 * setenv.c (alloca): Fall back to malloc.
40864                 (freea): New macro.
40865                 (setenv): Use freea() to free memory allocated with alloca().
40866
40867         2002-11-13  Bruno Haible  <bruno@clisp.org>
40868
40869                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40870                 function declarations.
40871                 * unsetenv.c (unsetenv): Likewise.
40872
40873         2002-03-04  Bruno Haible  <bruno@clisp.org>
40874
40875                 Portability to AIX 4.3.3.
40876                 * unsetenv.c: New file, extracted from setenv.c.
40877                 * setenv.c: Move the unsetenv() function to unsetenv.c.
40878
40879         2001-12-20  Bruno Haible  <bruno@clisp.org>
40880
40881                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40882                 use malloc instead. For SunOS 4.
40883
40884         2001-12-11  Bruno Haible  <bruno@clisp.org>
40885
40886                 * setenv.c: Declare alloca.
40887                 (compar_fn_t): New typedef.
40888                 (KNOWN_VALUE, STORE_VALUE): Use it.
40889
40890         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40891         setenv.h.
40892
40893 2002-12-10  Paul Eggert  <eggert@twinsun.com>
40894
40895         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40896         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40897         Choose values that are less likely to collide with system fnmatch
40898         options.
40899         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40900         defined (e.g., a pure POSIX system).
40901         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40902         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40903
40904 2002-12-06  Paul Eggert  <eggert@twinsun.com>
40905
40906         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40907         a pain in practice to deal with generated m4 files.  This change
40908         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40909
40910         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40911         and jm-glibc-io.m4, as they are no longer a special case.
40912         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40913         kludge and the auto-generation stuff.  Check only whether the
40914         functions are declared, not whether they exist, since older hosts
40915         that don't declare the functions can't use the optimization anyway.
40916
40917 2002-12-06  Jim Meyering  <jim@meyering.net>
40918
40919         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40920
40921         Merge in changes from libc's misc/error.c, in preparation
40922         for the merge of gnulib's changes back into libc.
40923
40924         * lib/error.c (_): Define only if not already defined.
40925         Move definition to follow all #include directives.
40926         Include unlocked-io.h only if !_LIBC.
40927         [_LIBC]: Include <libio/libioP.h>.
40928         [USE_IN_LIBIO]: Include <libio/iolibio.h>
40929         (fflush): Tweak definition to use INTUSE.
40930         (putc): Define.
40931
40932 2002-12-05  Paul Eggert  <eggert@twinsun.com>
40933
40934         * lib/alloca.c [defined emacs]: Include "lisp.h".
40935         (xalloc_die) [defined emacs]: New macro.
40936         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40937         [! defined emacs]: Include <xalloc.h>.
40938         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40939         (pointer): Typedef to POINTER_TYPE *.
40940         (malloc): Remove decl; we now always use xmalloc.
40941         (alloca): Use old-style definition, since Emacs needs this.
40942         Check for arithmetic overflow when computing combined size.
40943
40944 2002-12-04  Paul Eggert  <eggert@twinsun.com>
40945
40946         Do not generate unlocked-io.h automatically, since it's easier to
40947         maintain it by hand.
40948
40949         * lib/unlocked-io.h: New file, from GNU diffutils,
40950         but with proper copyright notice and attribution.
40951         * lib/gen-uio: Remove.
40952         * lib/Makefile.am: Add copyright notice.
40953         (libfetish_a_SOURCES): Add unlocked-io.h.
40954         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40955         (DISTCLEANFILES, io_functions): Remove macros.
40956         (EXTRA_DIST): Remove gen_uio.
40957         (unlocked-io.h): Remove rule.
40958
40959 2002-12-04  Jim Meyering  <jim@meyering.net>
40960
40961         Reflect the fact that stat.c and lstat.c are no longer generated.
40962         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40963         (DISTCLEANFILES): Likewise.
40964         (EXTRA_DIST): Likewise.
40965         (all_local): Don't depend on stat.c or lstat.c.
40966         (stat.c, lstat.c): Remove rules.
40967         (EXTRA_DIST): Remove xstat.in.
40968
40969         * lib/xstat.in: Remove file.  Contents moved into stat.c.
40970         * lib/stat.c: New file.  Contents mostly from xstat.in.
40971         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40972         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40973
40974         * lib/safe-read.c: Rework so that it may serve to define safe_write,
40975         too.
40976         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
40977
40978 2002-12-03  Jim Meyering  <jim@meyering.net>
40979
40980         * lib/safe-read.c, safe-write.c: Change variable names and comments,
40981         but not semantics, to minimize the differences between these two files.
40982         (safe_read): Change comment to mention SAFE_READ_ERROR.
40983
40984         * lib/safe-read.c (IS_EINTR): Define.
40985         (safe_read): Use IS_EINTR in place of in-function cpp directives.
40986
40987 2002-12-02  Jim Meyering  <jim@meyering.net>
40988
40989         * lib/safe-read.c (EINTR): Define.
40990         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40991         (INT_MAX): Provide fallback.
40992         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
40993
40994         * lib/safe-read.h (SAFE_READ_ERROR): Define.
40995
40996 2002-12-02  Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
40999         Define, taken from safe-read.c.
41000         (INT_MAX): Provide fallback.
41001         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
41002         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
41003
41004         * lib/safe-read.c (EINTR): Remove definition.
41005         (safe_read): Don't use EINTR if it is absent.
41006
41007 2002-12-01  Jim Meyering  <jim@meyering.net>
41008
41009         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
41010         zero.
41011         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
41012
41013 2002-11-27  Paul Eggert  <eggert@twinsun.com>
41014
41015         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
41016         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
41017         with `if (! (value < limit)) abort ();', for readability.
41018
41019 2002-11-26  Karl Berry  <karl@gnu.org>
41020
41021         * lib/strdup.c: copy from libc again, with jim's ok.
41022         * lib/.cppi-disable: re-add strdup.c
41023
41024 2002-11-25  Karl Berry  <karl@gnu.org>
41025
41026         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
41027         instead of "strtol.c".
41028
41029 2002-11-25  Karl Berry  <karl@gnu.org>
41030
41031         * config/install-sh: update from automake for variable quoting, $0 in
41032         error msgs, etc.
41033
41034         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
41035         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
41036         entry.
41037
41038 2002-11-25  Jim Meyering  <jim@meyering.net>
41039
41040         * lib/mktime.c: Sync from libc, now that it has the latest fix.
41041
41042 2002-11-24  Karl Berry  <karl@gnu.org>
41043
41044         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
41045         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
41046
41047 2002-11-24  Jim Meyering  <jim@meyering.net>
41048
41049         Update from coreutils:
41050
41051         * lib/mktime.c: Merge in changes from libc.
41052
41053         Avoid a link-time failure on some Linux systems.
41054         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
41055         (otherwise).
41056         (__mon_yday): Declare with the STATIC attribute.
41057         (__mktime_internal): Likewise.
41058         Based on a report from Greg Schafer.
41059
41060 2002-11-23  Jim Meyering  <jim@meyering.net>
41061
41062         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
41063         Use `unsigned', not `int', as type of index.
41064
41065         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
41066
41067         * lib/fsusage.c: Remove unneeded parentheses around operands of
41068         `defined'.
41069
41070 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41071
41072         * lib/quotearg.h: Allow multiple inclusion by surrounding with
41073         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
41074         so that we can be included first.
41075         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
41076         * lib/quotearg.c: Include quotearg.h immediately after config.h.
41077         No need to include stddef.h or sys/types.h any more.
41078         Surround local include files with "", not "<>".
41079         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
41080         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
41081         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
41082         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
41083         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
41084         (ISPRINT): Remove; no longer needed now that we assume C89.
41085
41086         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
41087         Preserve errno.
41088
41089         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
41090         quotearg_char): Use SIZE_MAX rather than
41091         (size_t) -1 when we are talking about "infinity".
41092
41093         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
41094
41095 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41096
41097         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
41098         hint that one should use `if (! x) abort ();' rather than `assert
41099         (x);', and anyway it's one less thing to worry about configuring.
41100         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
41101         hash_rehash, hash_insert): Use abort rather than assert.
41102
41103 2002-11-22  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/safe-read.h: Assume C89. Add comments.
41106         (safe_read): Change return type to size_t.
41107         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
41108         byte counts > SSIZE_MAX correctly.
41109         * lib/safe-write.h: New file.
41110         * lib/safe-write.c: New file.
41111         * lib/full-read.h: New file.
41112         * lib/full-read.c: New file.
41113         * lib/full-write.h: Assume C89. Add comments.
41114         * lib/full-write.c: Include safe-write.h.
41115         (full_write): Rewritten to use safe_write.
41116         Suggested by Jim Meyering and Paul Eggert.
41117
41118 2002-11-21  Jim Meyering  <jim@meyering.net>
41119
41120         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41121
41122         Merge in changes from the coreutils.
41123
41124         2002-09-25  Paul Eggert  <eggert@twinsun.com>
41125         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41126         <stdint.h>.
41127         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41128         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41129         int.  Work more efficiently if X is the same width as uintmax_t.
41130         Do not compare X to -1, to avoid bogus compiler warning.
41131         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41132         Don't assume that f_frsize and f_bsize are the same type.
41133
41134         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41135         warning on FreeBSD.
41136
41137         * lib/makepath.c (make_path): Restore umask *before* creating the final
41138         component.
41139         (make_path): Minor reformatting.
41140
41141         * lib/xmalloc.c: Adjust to work with new autoconf macros,
41142         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41143         HAVE_MALLOC/HAVE_REALLOC.
41144
41145         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41146         dummy ones.  At least on GNU/Linux systems, `auto' means something
41147         else.
41148         From Michael Stone.
41149
41150 2002-11-21  Bruno Haible  <bruno@clisp.org>
41151
41152         Remove case insensitive option matching.
41153         * lib/argmatch.h (argcasematch): Remove declaration.
41154         (ARGCASEMATCH): Remove macro.
41155         (__xargmatch_internal): Remove case_sensitive argument.
41156         (XARGMATCH): Update.
41157         (XARGCASEMATCH): Remove macro.
41158         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41159         case_sensitive argument.
41160         (argcasematch): Remove function.
41161         (__xargmatch_internal): Remove case_sensitive argument.
41162         (main): Use XARGMATCH instead of XARGCASEMATCH.
41163
41164         * lib/xmalloc.c: Change compile-time error message. Add comment about
41165         required autoconf version.
41166
41167 2002-11-20  Paul Eggert  <eggert@twinsun.com>
41168
41169         Merge argmatch cleanups from Bison.  Assume C89.
41170
41171         * lib/argmatch.c: Include config.h here, not in argmatch.h.
41172         Include stdlib.h, for EXIT_FAILURE.
41173         Always include <string.h>, since we assume C89.
41174         (EXIT_FAILURE): Remove pre-C89 bug workaround.
41175         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
41176         Include <stddef.h> instead, since it's all we need for size_t.
41177         (PARAMS): Remove.  All uses removed.
41178         (ARRAY_CARDINALITY): Do not bother to #undef.
41179         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
41180         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41181         Remove unnecessary parentheses.
41182         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41183         Insert necessary parentheses.
41184         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
41185         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
41186
41187 2002-11-19  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
41190         * lib/mbswidth.h: Include <stddef.h>, for size_t.
41191
41192         * lib/mbswidth.h (PARAMS): Remove macro.
41193         (mbswidth, mbsnwidth): Use ANSI C function declarations.
41194         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
41195
41196         * lib/gcd.h (PARAMS): Remove macro.
41197         (gcd): Use ANSI C function declarations.
41198         * lib/gcd.c (gcd): Likewise.
41199
41200 2002-11-15  Bruno Haible  <bruno@clisp.org>
41201
41202         * lib/strcspn.c: Include <stddef.h>.
41203         (strcspn): Use ANSI C function declaration. Change return type to
41204         size_t. Use NULL.
41205         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
41206         (strpbrk): Use NULL.
41207         * lib/strpbrk.h (PARAMS): Remove macro.
41208         (strpbrk): Use ANSI C function declaration.
41209         * lib/strstr.c: Don't include <sys/types.h>.
41210         * lib/strstr.h (PARAMS): Remove macro.
41211         (strstr): Use ANSI C function declarations.
41212
41213 2002-11-14  Karl Berry  <karl@gnu.org>
41214
41215         * config/mkinstalldirs: `do' on separate line, instead of
41216         `for var; do'.
41217
41218 2002-11-06  Bruno Haible  <bruno@clisp.org>
41219
41220         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
41221         * lib/gcd.c (gcd): Likewise.
41222
41223 2002-11-05  Bruno Haible  <bruno@clisp.org>
41224
41225         * lib/gcd.h: New file, from gettext-0.11.5.
41226         * lib/gcd.c: New file, from gettext-0.11.5.
41227
41228 2002-11-05  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41231         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41232         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41233         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41234
41235         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
41236         <libintl.h>.
41237         * lib/makepath.c: Include gettext.h instead of <locale.h> and
41238         <libintl.h>.
41239
41240         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
41241         * lib/human.c: Include gettext.h instead of <libintl.h>.
41242         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
41243         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
41244         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
41245         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
41246         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
41247         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
41248         (textdomain): Remove definition.
41249         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41250
41251         * lib/long-options.c: Remove include of <libintl.h> and definition of
41252         _.
41253         * lib/same.c: Remove include of <libintl.h> and definition of _.
41254
41255 2002-11-04  Owen Taylor  <otaylor@redhat.com>
41256
41257         * lib/config.charset: A few additions for Solaris.
41258
41259 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41260
41261         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41262         * lib/localcharset.c (locale_charset): Declare as extern "C".
41263
41264 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41265
41266         * lib/config.charset: msdos in uk_UA uses CP1125.
41267
41268 2002-11-04  Bruno Haible  <bruno@clisp.org>
41269
41270         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41271         * lib/strcase.h: New file, from GNU gettext-0.11.5.
41272         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41273         * lib/strstr.h: New file, from GNU gettext-0.11.5.
41274         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41275
41276 2002-11-04  Bruno Haible  <bruno@clisp.org>
41277
41278         * lib/localcharset.c (locale_charset): Don't return an empty string.
41279
41280 2002-11-04  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41283         aliases.
41284
41285 2002-11-04  Bruno Haible  <bruno@clisp.org>
41286
41287         * lib/config.charset: Update for newest glibc. Add canonical names
41288         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41289
41290 2002-11-04  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/config.charset: Add support for NetBSD.
41293
41294 2002-11-04  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41297
41298 2002-11-01  Bruno Haible  <bruno@clisp.org>
41299
41300         * configure.in: Add AC_CONFIG_AUX_DIR call.
41301         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41302         test/Makefile.
41303         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41304
41305 2002-09-28  Karl Berry  <karl@gnu.org>
41306
41307         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41308         installed automake until the next release, since changes have been
41309         made.
41310
41311 2002-09-25  Karl Berry  <karl@gnu.org>
41312
41313         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41314         * lib/getopt*: copy from libc/posix.
41315         * lib/gettext.h: copy from gettext.
41316         * lib/.cppi-disable: add strdup.c, gettext.h.
41317
41318 2002-09-25  Karl Berry  <karl@gnu.org>
41319
41320         * config/srclist.txt: enable gettext.h check.
41321         * config/config.{guess,sub}: update from prep.
41322         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41323                 from automake 1.6.3.
41324         See srclist*.
41325
41326 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
41327
41328         * regex.c (PATFETCH): Remove the translating fetch.
41329         (PATFETCH_RAW): Rename to PATFETCH.
41330         (set_image_of_range): New fun.
41331         (SET_RANGE_TABLE_WORK_AREA): Use it.
41332         (regex_compile): Don't translate the pattern chars so eagerly.
41333         Only do it when inserting an `exactn' bytecode or when handling
41334         a char-range.
41335         (mutually_exclusive_p): Avoid empty statement.
41336
41337 2002-07-06  Jim Meyering  <meyering@lucent.com>
41338
41339         * m4/README: Don't mention Makefile.am.in.
41340         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
41341
41342 2002-07-01  Jim Meyering  <meyering@lucent.com>
41343
41344         * lib/c-stack.c: Include sys/time.h.
41345         From Volker Borchert.
41346
41347 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41348
41349         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41350
41351 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41352
41353         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41354         New macro.  Use it uniformly instead of
41355         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41356         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41357         reported by Vin Shelton.
41358
41359 2002-06-22  Paul Eggert  <eggert@twinsun.com>
41360
41361         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41362         Do not assume SA_SIGINFO behavior.
41363         Bug reported by Jim Meyering on NetBSD 1.5.2.
41364
41365 2002-06-22  Jim Meyering  <meyering@lucent.com>
41366
41367         * m4/c-stack.m4: New file, from diffutils-2.8.2.
41368         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41369
41370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41371         now that configure.ac uses AC_GNU_SOURCE.
41372         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41373         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41374
41375         Update to latest tools.  Suggestions from Paul Eggert.
41376         * m4/stdbool.m4: New file, from diffutils-2.8.2.
41377         * m4/gnu-source.m4: Update from diffutils-2.8.2.
41378         * m4/fnmatch.m4: Likewise.
41379         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41380         to AC_HEADER_STDBOOL
41381
41382 2002-06-22  Jim Meyering  <meyering@lucent.com>
41383
41384         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41385         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41386
41387 2002-06-22  Jim Meyering  <meyering@lucent.com>
41388
41389         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41390
41391         * lib/exitfail.c, exitfail.h: Likewise.
41392         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41393
41394         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41395         of fnmatch.h.
41396         (EXTRA_DIST): Add fnmatch_loop.c.
41397         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41398
41399         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41400         * lib/fnmatch.c: Update from diffutils-2.8.2.
41401         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
41402         * lib/fnmatch.h: Remove file.
41403
41404 2002-06-21  Jim Meyering  <meyering@lucent.com>
41405
41406         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41407         * m4/mbrtowc.m4: Likewise.
41408
41409         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41410         * m4/mbswidth.m4: Reflect name change:
41411         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41412         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41413
41414         * m4/lib-link.m4: Update from gettext-0.11.2.
41415         * m4/gettext.m4: Likewise.
41416
41417         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41418         From Alfred M. Szmidt.
41419
41420 2002-06-18  Paul Eggert  <eggert@twinsun.com>
41421
41422         * lib/file-type.h: Report an error if neither S_ISREG nor
41423         S_IFREG is defined, instead of using a test specific to glibc
41424         2.2.  This should be safe, since POSIX requires S_ISREG and
41425         Unix Version 7 had S_IFREG.  We don't need to check for
41426         <sys/types.h> since we don't use any symbols that it defines.
41427
41428 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
41429
41430         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41431         $@-t, so that each temporary file name is unique and valid in the first
41432         8 characters, for operation under DOS.
41433
41434 2002-06-15  Paul Eggert  <eggert@twinsun.com>
41435
41436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41437
41438 2002-06-15  Jim Meyering  <meyering@lucent.com>
41439
41440         Work even with DJGPP 2.03, which lacks support for symlinks.
41441         From Richard Dawe.
41442         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41443         is defined.
41444         * lib/lchown.c (S_ISLNK): Likewise.
41445
41446 2002-06-15  Jim Meyering  <meyering@lucent.com>
41447
41448         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41449         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41450         have been included before this file.
41451
41452 2002-06-14  Jim Meyering  <meyering@lucent.com>
41453
41454         * lib/file-type.h: Use the version from diffutils-2.8.2.
41455         * lib/file-type.c: Likewise.
41456
41457 2002-06-07  Jim Meyering  <meyering@lucent.com>
41458
41459         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41460         They're needed at least for NetBSD 1.5.2.
41461         ($statxfs_includes): Include those same headers.
41462         ($statxfs_includes): Include sys/vfs.h if available.
41463         ($statxfs_includes): Likewise for sys/statvfs.h.
41464         Check for the following members in both structs statfs and statvfs:
41465         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41466
41467 2002-06-01  Jim Meyering  <meyering@lucent.com>
41468
41469         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41470         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41471
41472 2002-05-28  Jim Meyering  <meyering@lucent.com>
41473
41474         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41475         Reported by Volker Borchert.
41476
41477 2002-05-27  Jim Meyering  <meyering@lucent.com>
41478
41479         Fix a problem seen only on nonconforming systems whereby ls.c's
41480         use of localtime, and then of gettimeofday would cause trouble:
41481         the localtime call used to initialize rpl_gettimeofday's save
41482         mechanism would clobber ls's current local time information so
41483         that in any long listing the first file would always be listed
41484         with date 1970-01-01.  Analysis by Volker Borchert.
41485
41486         * lib/gettimeofday.c (localtime): Undefine.
41487         (rpl_localtime): New function.
41488
41489 2002-05-27  Jim Meyering  <meyering@lucent.com>
41490
41491         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41492         localtime.
41493
41494         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41495         use the replacement function; it wouldn't resolve at link time.
41496         Reported by Volker Borchert.
41497
41498 2002-05-22  Jim Meyering  <meyering@lucent.com>
41499
41500         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41501         file-type.h.
41502         * lib/file-type.h: New file.
41503         * lib/file-type.c (file_type): New file/function.  Extracted from
41504         diffutils.
41505
41506 2002-04-30  Jim Meyering  <meyering@lucent.com>
41507
41508         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41509
41510 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41511
41512         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41513
41514 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41515
41516         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41517         Do not check for alloca.h (no longer used) or stdbool.h (was never
41518         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
41519
41520 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41521
41522         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41523
41524 2002-04-29  Jim Meyering  <meyering@lucent.com>
41525
41526         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41527         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41528         Use AC_FUNC_STRNLEN here instead.
41529
41530         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41531         With autoconf-2.53a, it's part of AC_PROG_CC.
41532
41533 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41534
41535         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41536         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41537
41538 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41539
41540         * lib/sig2str.h, lib/sig2str.c: New files.
41541         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41542
41543 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41544
41545         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41546         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
41547         of 127, since 64 is the largest conceivable number for ancient
41548         nonstandard hosts.
41549         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41550
41551 2002-04-28  Jim Meyering  <meyering@lucent.com>
41552
41553         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41554
41555 2002-04-24  Jim Meyering  <meyering@lucent.com>
41556
41557         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41558         (jm_PREREQ): Use it.
41559
41560         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41561         mach/mach.h fcntl.h.
41562         Check for this function: setlocale.
41563
41564 2002-04-24  Jim Meyering  <meyering@lucent.com>
41565
41566         * lib/gettext.h: New file, from Gettext.
41567         * lib/Makefile.am (INCLUDES): Remove -I../intl.
41568         (libfetish_a_SOURCES): Add gettext.h.
41569
41570 2002-04-16  Jim Meyering  <meyering@lucent.com>
41571
41572         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41573         ut_pid, ut_id, ut_exit.
41574
41575 2002-04-16  Jim Meyering  <meyering@lucent.com>
41576
41577         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41578         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41579         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41580
41581 2002-04-12  Jim Meyering  <meyering@lucent.com>
41582
41583         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41584         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
41585         existence of the getmntinfo function.  Needed for Darwin 5.3.
41586
41587         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41588         This is necessary at least on Darwin 5.3.
41589
41590         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41591         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
41592         strnlen.o in the library, and that makes some versions of ranlib
41593         object.
41594
41595 2002-04-12  Jim Meyering  <meyering@lucent.com>
41596
41597         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41598
41599 2002-04-09  Jim Meyering  <meyering@lucent.com>
41600
41601         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41602         to be more precise.  Rather than saying we're checking whether the
41603         function `works', say what we're testing.
41604         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41605         Reported by Bruno Haible.
41606
41607 2002-03-10  Jim Meyering  <meyering@lucent.com>
41608
41609         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41610         Suggestion from Santiago Vila.
41611
41612 2002-03-08  Jim Meyering  <meyering@lucent.com>
41613
41614         * lib/rename.c: Mention that this wrapper is needed also on
41615         mips-dec-ultrix4.4 systems.
41616
41617 2002-03-02  Jim Meyering  <meyering@lucent.com>
41618
41619         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41620         not HAVE_CLOCK_SETTIME.
41621
41622 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41623
41624         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41625         Check for clock_settime.
41626
41627 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41628
41629         * lib/nanosleep.h: Rename to....
41630         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
41631
41632         * lib/gettime.c: New file.
41633         * lib/settime.c: New file.
41634         * lib/stime.c: Remove.
41635
41636         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41637         timespec.h.  Remove nanosleep.h.
41638
41639 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41640
41641         * m4/acl.m4: New file.
41642         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41643         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41644
41645 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41646
41647         * lib/acl.c, lib/acl.h: New files.
41648         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41649
41650 2002-02-24  Jim Meyering  <meyering@lucent.com>
41651
41652         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41653         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41654         cause trouble.  Reported by Nelson Beebe.
41655
41656 2002-02-23  Paul Eggert  <eggert@twinsun.com>
41657
41658         * lib/path-concat.c (xpath_concat): Reorder code to pacify
41659         compilers that don't know that xalloc_die never returns.
41660
41661 2002-02-20  Jim Meyering  <meyering@lucent.com>
41662
41663         * lib/getdate.c: Regenerate using bison-1.33.
41664
41665 2002-02-17  Jim Meyering  <meyering@lucent.com>
41666
41667         * config/config.guess (main): Don't use `head -1'; it's no longer
41668         portable. Use `sed 1q' instead.
41669
41670 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
41671
41672         * m4/codeset.m4: Upgrade to gettext-0.11.
41673         * m4/gettext.m4: Upgrade to gettext-0.11.
41674         * m4/glibc21.m4: Upgrade to gettext-0.11.
41675         * m4/iconv.m4: Upgrade to gettext-0.11.
41676         * m4/isc-posix.m4: Upgrade to gettext-0.11.
41677         * m4/lcmessage.m4: Upgrade to gettext-0.11.
41678         * m4/lib-ld.m4: New file, from gettext-0.11.
41679         * m4/lib-link.m4: New file, from gettext-0.11.
41680         * m4/lib-prefix.m4: New file, from gettext-0.11.
41681         * m4/progtest.m4: Upgrade to gettext-0.11.
41682
41683 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41684
41685         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41686         (jm_PREREQ): Use it.
41687
41688 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41689
41690         * lib/posixver.c, lib/posixver.h: New files.
41691         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41692
41693 2002-02-02  Paul Eggert  <eggert@twinsun.com>
41694             Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41697         (fwrite_success_callback): New declaration.
41698         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41699         print_unicode_char. Call failure callback instead of error.
41700         (fwrite_success_callback): New function.
41701         (exit_failure_callback): New function.
41702         (fallback_failure_callback): New function.
41703         (print_unicode_char): Call unicode_to_mb.
41704
41705 2002-01-26  Jim Meyering  <meyering@lucent.com>
41706
41707         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41708         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41709
41710 2002-01-26  Jim Meyering  <meyering@lucent.com>
41711
41712         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41713
41714 2002-01-22  Paul Eggert  <eggert@twinsun.com>
41715
41716         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41717
41718 2002-01-22  Jim Meyering  <meyering@lucent.com>
41719
41720         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41721         Otherwise, some versions of automake would omit the rule that makes
41722         Makefile from Makefile.in.
41723
41724 2002-01-21  Paul Eggert  <eggert@twinsun.com>
41725
41726         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41727         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41728         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41729         (memcoll): Set errno to zero if there is no error.
41730
41731         * lib/quotearg.c (quotearg_buffer_restyled):
41732         Fix bug with quoting buffers containing NUL when backslashing escapes.
41733         This bug was exposed by the other changes in this patch.
41734         (quotearg_n_options): New arg ARGSIZE.
41735         All callers changed.
41736         (quoting_options_from_style): New function.
41737         (quotearg_n_style): Use it.
41738         (quotearg_n_style_mem): New function.
41739
41740         * lib/quotearg.h (quotearg_n_style_mem): New function.
41741
41742 2002-01-19  Jim Meyering  <meyering@lucent.com>
41743
41744         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41745         Remove useless quotes: DF_PROG="df".
41746         * m4/strnlen.m4: New file.
41747
41748 2002-01-16  Paul Eggert  <eggert@twinsun.com>
41749
41750         * lib/backupfile.c (ISDIGIT): Comment fix.
41751         * lib/getdate.y (ISDIGIT): Likewise.
41752         * lib/posixtm.c (ISDIGIT, year): Likewise.
41753         * lib/strverscmp.c (ISDIGIT): Likewise.
41754         * lib/userspec.c (ISDIGIT): Likewise.
41755
41756 2002-01-16  Jim Meyering  <meyering@lucent.com>
41757
41758         * lib/getdate.y: Add three semicolons, each just before a closing
41759         brace. Bison (as of version 1.31) no longer papers over that mistake.
41760
41761 2002-01-05  Jim Meyering  <meyering@lucent.com>
41762
41763         * lib/version-etc.c (version_etc_copyright): Update copyright year.
41764
41765 2001-12-19  Paul Eggert  <eggert@twinsun.com>
41766
41767         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41768         not silently exit merely because the output buffer happens to
41769         have nothing pending.
41770
41771 2001-12-18  Paul Eggert  <eggert@twinsun.com>
41772
41773         See the big note in ../ChangeLog.
41774         * lib/human.c (suffixes): Prefer K to k for 1024.
41775         (generate_suffix_backwards): New function.
41776         (human_readable_inexact): Use it.
41777         * lib/xstrtol.c (__xstrtol): If there is no number but there
41778         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
41779         Accept 'K' as well as 'k'.
41780
41781 2001-12-15  Jim Meyering  <meyering@lucent.com>
41782
41783         * lib/regex.h (__restrict_arr): Update from libc.
41784
41785         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41786         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
41787         (STREQ): Define.
41788
41789 2001-12-14  Jim Meyering  <meyering@lucent.com>
41790
41791         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41792         Suggestion from Bruno Haible.
41793
41794 2001-12-10  Jim Meyering  <meyering@lucent.com>
41795
41796         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41797         xrealloc, Instead, include "xalloc.h".
41798         (initbuffer): Don't cast xmalloc return value to char*.
41799         (readline): Reword comment.
41800         Don't cast xrealloc return value to char*
41801         Return NULL, not 0.
41802
41803 2001-12-09  Jim Meyering  <meyering@lucent.com>
41804
41805         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41806         about `signed and unsigned type in conditional expression'.
41807         * lib/posixtm.c (posix_time_parse): Likewise.
41808
41809         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41810
41811         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41812         to avoid a pedantic warning.
41813
41814         * lib/getstr.c: Don't include assert.h.
41815         (getstr): Remove warning-evoking assertions.
41816         Return -1 if offset parameter is out of bounds.
41817         Change the type of a local from int to size_t.
41818
41819         * lib/strftime.c (my_strftime_localtime_r): Include this function
41820         definition in the `#if ! HAVE_TM_GMTOFF' block.
41821
41822         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41823         Include xalloc.h instead.
41824
41825 2001-12-02  Jim Meyering  <meyering@lucent.com>
41826
41827         * lib/tempname.c: Don't declare getenv, thus reverting the change of
41828         2001-11-18.  It's no longer necessary, now that stdlib.h is always
41829         included.
41830
41831         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41832         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
41833
41834 2001-11-30  Akim Demaille  <akim@epita.fr>
41835
41836         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41837         before being defined.
41838
41839 2001-11-27  Paul Eggert  <eggert@twinsun.com>
41840
41841         * lib/quotearg.h (quotearg_n, quotearg_n_style):
41842         First arg is int, not unsigned.
41843         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41844         (SIZE_MAX, UINT_MAX): New macros.
41845         (quotearg_n_options): Abort if N is negative.
41846         Avoid overflow check on hosts where size_t is 64 bits and int
41847         is 32 bits, as overflow is impossible there.
41848         Fix off-by-one typo that caused unnecessary reallocation.
41849
41850 2001-11-27  Jim Meyering  <meyering@lucent.com>
41851
41852         * lib/tempname.c: Merge with version from libc.
41853         * lib/regex.c: Likewise.
41854
41855         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
41856         systems for which STDC_HEADERS is 0, it was not included, resulting in
41857         a warning about an integer-to-pointer conversion problem with getenv.
41858         Reported by Volker Borchert.
41859
41860 2001-11-26  Jim Meyering  <meyering@lucent.com>
41861
41862         * lib/gtod.h: Remove file.
41863         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41864         * lib/gettimeofday.c: Don't include gtod.h.
41865         (GTOD_init): Remove function.
41866         (rpl_gettimeofday): Do its job here instead, rather than aborting.
41867         Suggestion from Volker Borchert.
41868
41869 2001-11-23  Jim Meyering  <meyering@lucent.com>
41870
41871         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
41872         it.
41873         * lib/hash.c (struct hash_table): Define it here instead.
41874
41875 2001-11-22  Jim Meyering  <meyering@lucent.com>
41876
41877         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41878
41879 2001-11-20  Jim Meyering  <meyering@lucent.com>
41880
41881         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41882         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41883
41884 2001-11-19  Jim Meyering  <meyering@lucent.com>
41885
41886         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41887         directory.  Use "conftestXXXXXX" as the template.
41888         Suggestion from Paul Eggert.
41889
41890         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41891         immediately, so the test doesn't mistakenly hit the max-open-files
41892         limit.
41893
41894 2001-11-18  Paul Eggert  <eggert@twinsun.com>
41895
41896         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41897         (TEMPORARIES): New macro.
41898         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
41899         removes an artificial limitation (e.g. HP-UX 10.20, where
41900         TMP_MAX is 17576).
41901
41902 2001-11-18  Jim Meyering  <meyering@lucent.com>
41903
41904         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41905
41906 2001-11-18  Jim Meyering  <meyering@lucent.com>
41907
41908         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41909         on SunOS 4.
41910
41911         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41912         files will be created before anything else.
41913
41914 2001-11-17  Paul Eggert  <eggert@twinsun.com>
41915
41916         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41917         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41918
41919 2001-11-17  Jim Meyering  <meyering@lucent.com>
41920
41921         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41922         Prompted by a report from Bob Proulx.
41923
41924         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41925         Instead, require UTILS_FUNC_MKSTEMP.
41926
41927 2001-11-17  Jim Meyering  <meyering@lucent.com>
41928
41929         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41930         Now, that's done as part of AC_FUNC_STRTOD.
41931
41932 2001-11-17  Jim Meyering  <meyering@lucent.com>
41933
41934         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41935         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41936         rather than group writable.  Patch by Juan F. Codagnone.
41937
41938         * lib/readtokens.c: Remove explicit declarations of xmalloc and
41939         xrealloc, Instead, include "xalloc.h".
41940
41941         * lib/mountlist.c: Include unlocked-io.h after all system headers.
41942         Remove explicit declarations of xmalloc, xrealloc,
41943         and xstrdup.  Instead, include "xalloc.h".
41944
41945         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41946         unlocked-io.h.
41947         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41948         Likewise.
41949         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41950
41951         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41952         Reported by Padraig Brady.
41953
41954         * lib/mkstemp.c: #undef mkstemp.
41955         Include config.h.
41956         (rpl_mkstemp): Rename from mkstemp.
41957         Protoize.
41958
41959 2001-11-16  Jim Meyering  <meyering@lucent.com>
41960
41961         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41962         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41963         determine the amount of total physical memory, use pstat_getstatic.
41964         HPUX-11 doesn't define _SC_PHYS_PAGES.
41965         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41966         If sysconf couldn't be used to determine the amount of available
41967         physical memory, use both pstat_getstatic and pstat_getdynamic.
41968         Based on a patch from Bob Proulx.
41969
41970 2001-11-10  Jim Meyering  <meyering@lucent.com>
41971
41972         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41973         (jm_PREREQ): Use it.
41974
41975 2001-11-09  Jim Meyering  <meyering@lucent.com>
41976
41977         * m4/jm-macros.m4: Require autoconf-2.52f.
41978         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
41979         Use these AC_-prefixed names, not the AM_-prefixed ones.
41980
41981         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
41982
41983 2001-11-05  Jim Meyering  <meyering@lucent.com>
41984
41985         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
41986
41987 2001-11-04  Jim Meyering  <meyering@lucent.com>
41988
41989         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
41990         $DEFS.
41991
41992 2001-11-03  Jim Meyering  <meyering@lucent.com>
41993
41994         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
41995         of AC_DEFUN.
41996
41997         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
41998         know the name of the variable in the macro definition.
41999
42000 2001-11-03  Jim Meyering  <meyering@lucent.com>
42001
42002         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
42003         in argmatch_to_argument call.
42004
42005         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
42006         argument.
42007
42008         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
42009         e.g., a fault due to an attempt to free a NULL pointer.
42010
42011 2001-11-01  Jim Meyering  <meyering@lucent.com>
42012
42013         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
42014         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
42015
42016 2001-11-01  Jim Meyering  <meyering@lucent.com>
42017
42018         * lib/dirfd.c, lib/dirfd.h: New files.
42019         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
42020
42021         * lib/hash.c (hash_print) [TESTING]: Clean up.
42022
42023 2001-10-22  Paul Eggert  <eggert@twinsun.com>
42024
42025         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
42026         to avoid a warning if -Wall.
42027
42028 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
42029
42030         * README: New file
42031         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
42032         (per RMS's instructions, this is now the canonical source)
42033         * lgpl/, gpl/: New directories.
42034
42035 2001-10-21  Paul Eggert  <eggert@twinsun.com>
42036
42037         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
42038
42039 2001-10-21  Jim Meyering  <meyering@lucent.com>
42040
42041         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
42042         this code would end up calling gettext even in packages built
42043         with --disable-nls.
42044         * lib/getopt.c (_): Likewise.
42045         * lib/regex.c (_): Likewise.
42046
42047 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42048
42049         * m4/error.m4 (jm_PREREQ_ERROR):
42050         Do not invoke AC_CHECK_FUNCS with strerror_r, as
42051         AC_FUNC_STRERROR_R does that.
42052         Check for strerror declaration.
42053
42054         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
42055         are supposed to have them these days.
42056         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
42057         Merge changes from latest Autoconf CVS.
42058         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
42059         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
42060         POSIX decided to standardize on the int flavor of strerror_r.
42061
42062 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42063
42064         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
42065         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
42066         Use strerror_r that is only a macro, even if it is not a function.
42067         (strerror): Check for HAVE_DECL_STRERROR before declaring.
42068         (private_strerror): Use prototypes, not old-style function definition.
42069         (print_errno_message): New function.
42070         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
42071         char*-flavored one.
42072         (error_tail, error, error_at_line): Use it.
42073
42074 2001-10-11  Jim Meyering  <meyering@lucent.com>
42075
42076         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
42077         and quote_n (1, ... to avoid clobbering a buffer.
42078
42079 2001-10-05  Jim Meyering  <meyering@lucent.com>
42080
42081         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
42082         hash-pjw.h.
42083         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
42084         * lib/hash-pjw.h: New file.
42085
42086 2001-09-30  Jim Meyering  <meyering@lucent.com>
42087
42088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
42089         `struct fsstat' has the `f_fstypename' member.
42090         Use that to define FS_TYPE, which is now used to make
42091         the getfsstat link test tighter.
42092
42093 2001-09-30  Jim Meyering  <meyering@lucent.com>
42094
42095         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
42096         Include <sys/ucred.h>, for Apple Darwin.
42097         Include sys/mount.h and sys/fs_types.h only if available.
42098         (FS_TYPE): Define.
42099         (read_filesystem_list): Use FS_TYPE.
42100
42101 2001-09-29  Paul Eggert  <eggert@twinsun.com>
42102
42103         * lib/exclude.c (excluded_filename): 0 -> false, since it's
42104         a boolean context.
42105
42106 2001-09-29  Jim Meyering  <meyering@lucent.com>
42107
42108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42109         [one-argument getmntent function]): Include stdio.h before mntent.h.
42110         SunOS 4.1.x needs it for the declaration of `FILE'.
42111         Patch by Volker Borchert.
42112
42113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42114         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42115         sys/fs_types.h, and make the link-test for getfsstat guard #include
42116         directives with appropriate #if HAVE_*_H tests so that we can
42117         detect getfsstat on Apple Darwin1.3.7 systems.
42118         Reported by Nelson Beebe.
42119         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42120
42121 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42122
42123         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42124         #defines strtoimax.  Also treat the other strto* functions
42125         like strtoimax.
42126
42127         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42128         Check for strtoul and strtoumax,
42129         as those declarations are made even in the signed case.
42130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42131         Likewise, for strtol and strtoimax.
42132
42133 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42134
42135         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42136         #defines strtoimax.  Also treat the other strto* functions
42137         like strtoimax.
42138
42139         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42140         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42141         (strtoimax, strtoumax): Do not declare if already defined as a macro.
42142
42143 2001-09-26  Jim Meyering  <meyering@lucent.com>
42144
42145         Most macros in unlocked-io.h had the wrong number of arguments.
42146         * lib/gen-uio: New script.
42147         (USE_UNLOCKED_IO): Define to 1 if not already defined.
42148         * lib/unlocked-io.hin: Remove file.
42149         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42150         rather than trying to embed it here.
42151         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
42152         Reported by Padraig Brady.
42153
42154 2001-09-25  Volker Borchert  <bt@teknon.de>
42155
42156         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42157         `result'.
42158
42159 2001-09-24  Jim Meyering  <meyering@lucent.com>
42160
42161         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42162
42163 2001-09-23  Jim Meyering  <meyering@lucent.com>
42164
42165         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42166         instead of the mere test for existence of mntent.h.  The latter
42167         would get a false-positive on AIX 3.4 systems.
42168         In the outer getmntent if-block, don't die if neither of the getmntent
42169         tests succeeds.  Instead, just fall through and continue with the
42170         remaining tests.
42171
42172 2001-09-23  Jim Meyering  <meyering@lucent.com>
42173
42174         * lib/mountlist.c: Remove useless parentheses in #if directives.
42175         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
42176         the deprecated MOUNTED symbol is no longer defined in mntent.h.
42177
42178 2001-09-22  Jim Meyering  <meyering@lucent.com>
42179
42180         * m4/gettext.m4: New file.  From gettext.
42181         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
42182         * m4/progtest.m4: Likewise
42183         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
42184         * m4/glibc21.m4: Likewise.
42185
42186         * m4/libintl.m4: Remove.  No longer used.
42187
42188 2001-09-22  Jim Meyering  <meyering@lucent.com>
42189
42190         * lib/localcharset.c: Update from latest gettext.
42191         * lib/config.charset: Likewise.
42192
42193 2001-09-20  Jim Meyering  <meyering@lucent.com>
42194
42195         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
42196         strtoimax.
42197         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
42198         strtoumax.
42199
42200 2001-09-20  Jim Meyering  <meyering@lucent.com>
42201
42202         * lib/xstrtol.c (strtoimax): Guard declaration with
42203         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
42204         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
42205         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
42206         (strtoumax): Likewise, for completeness (it wasn't necessary).
42207
42208 2001-09-17  Paul Eggert  <eggert@twinsun.com>
42209
42210         * lib/strtoimax.c (HAVE_LONG_LONG):
42211         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
42212         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
42213         to work around bug in IBM C compiler.
42214
42215 2001-09-17  Jim Meyering  <meyering@lucent.com>
42216
42217         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
42218         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
42219         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
42220         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
42221         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
42222         whenever the right hand side need not be expanded by the shell.
42223
42224 2001-09-16  Paul Eggert  <eggert@twinsun.com>
42225
42226         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
42227         library.  It's not correct, as some older glibcs are buggy.
42228         fnmatch wasn't fixed until glibc 2.2.
42229
42230         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
42231         special shell magic here.
42232
42233 2001-09-16  Jim Meyering  <meyering@lucent.com>
42234
42235         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
42236         * m4/jm-macros.m4: Require it.
42237
42238 2001-09-16  Jim Meyering  <meyering@lucent.com>
42239
42240         * lib/mkdir.c: New file.
42241
42242 2001-09-15  Jim Meyering  <meyering@lucent.com>
42243
42244         * m4/jm-macros.m4: Check for help2man.
42245
42246 2001-09-11  Jim Meyering  <meyering@lucent.com>
42247
42248         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42249         The body, by Paul Eggert, was moved here from configure.in.
42250         * m4/jm-macros.m4: Require UTILS_HOST_OS.
42251
42252 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42253
42254         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42255         (jm_PREREQ): Use it.
42256
42257 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42258
42259         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
42260         Use ssize_t, not int, to store result of readlink.
42261         Check for ssize_t overflow as well as size_t overflow,
42262         as POSIX says the result of readlink is implementation-defined
42263         when ssize_t overflows.
42264         Remove unnecessary cast to char*.
42265         Use free+malloc instead of realloc, as the storage doesn't need
42266         to be preserved and it's clearer and can be more efficient that way.
42267         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42268         * lib/xreadlink.h (xreadlink): Update prototype.
42269
42270 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42271
42272         * lib/xgetcwd.c: Revert some of the previous change; intead,
42273         fix the HAVE_GETCWD_NULL code to behave more like the
42274         !HAVE_GETCWD_NULL code used to.
42275
42276         Include "xalloc.h".
42277         (xgetcwd): Do not return NULL when memory is exhausted; instead,
42278         invoke xalloc_die.
42279
42280 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42281
42282         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42283         sys/param.h, as pathmax.h includes them.
42284
42285 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42286
42287         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42288         (jm_PREREQ_XGETCWD): New macro.
42289
42290         * m4/getcwd.m4: New file.
42291
42292 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42293
42294         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42295         like the HAVE_GETCWD_NULL code.
42296         Include pathmax.h if not HAVE_GETCWD.
42297         Do not include xalloc.h.
42298         (INITIAL_BUFFER_SIZE): New symbol.
42299         Do not use xmalloc / xrealloc, since the caller is responsible for
42300         handling errors.  Preserve errno around `free' during failure.
42301         Do not overrun buffer when using getwd.
42302
42303 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42304
42305         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42306         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42307         getcwd (NULL, 0).
42308
42309 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42310
42311         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42312         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
42313         spotted by Jim Meyering.
42314
42315 2001-09-03  Jim Meyering  <meyering@lucent.com>
42316
42317         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42318         failure.
42319
42320 2001-09-02  Jim Meyering  <meyering@lucent.com>
42321
42322         * lib/error.c: Update from GNU libc.
42323
42324 2001-09-01  Jim Meyering  <meyering@lucent.com>
42325
42326         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42327         Used by df.
42328
42329 2001-09-01  Jim Meyering  <meyering@lucent.com>
42330
42331         * lib/xreadlink.c: New file.
42332         * lib/xreadlink.h: New file.
42333         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42334         xreadlink.h.
42335
42336         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42337         doesn't conflict with sparc Solaris 7's definition in
42338         /usr/include/sys/int_types.h.
42339
42340         * lib/exclude.c: Use `""', not `<>' to #include non-system header
42341         files.
42342         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42343         and strncasecmp as r-values.  Unixware didn't have declarations.
42344
42345 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42346
42347         * lib/xstrtol.h: Add copyright notice.
42348         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42349         LONGINT_INVALID_SUFFIX_CHAR.
42350
42351 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42352
42353         * lib/xstrtol.c (strtoimax): New decl.
42354
42355 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42356
42357         * lib/xgetcwd.c: Don't include pathmax.h.
42358         Include stdlib.h and unistd.h if available.
42359         Include xalloc.h.
42360         (xmalloc, xstrdup, free): Remove decls.
42361         (xgetcwd): Don't assume sizes fit in unsigned.
42362         Check for overflow when computing sizes.
42363         Simplify reallocation code.
42364
42365 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42366
42367         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42368         a directory's st_size can have an arbitrary value, so the old
42369         usage could waste an arbitrary amount of memory.  All uses
42370         changed.
42371         * lib/savedir.h: Update prototype.
42372
42373 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42374
42375         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42376
42377         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42378         old strtoimax.c.
42379
42380         Also, make the following further changes to make this file's
42381         configuration more similar to that of strtol.c:
42382         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
42383         (strtoumax, uintmax_t, strtoull, strtol): Remove.
42384         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42385         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
42386         changed to signed values.
42387
42388         And make the following changes as well:
42389         Fix copyright notice, as 1999 was missing.
42390         (verify): New macro.
42391         (strtoimax): Check sizes at compile-time, not run-time.
42392         Prefer strtol to strtoll if both work.
42393         (main): Remove; it was not that useful and was a pain to maintain.
42394
42395         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42396
42397 2001-08-31  Jim Meyering  <meyering@lucent.com>
42398
42399         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42400         Use an initial, malloc'd, buffer of length 128 rather than
42401         a statically allocated one of length 1024.
42402
42403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42404
42405         Simplify code, partly by assuming autoconf 2.52 semantics.
42406
42407         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42408
42409         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42410         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42411         All uses removed.
42412         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42413         Move AC_REQUIRE to next-to-top level, to avoid confusion.
42414         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42415         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42416         jm_AC_HEADER_INTTYPES_H.
42417         * m4/jm-macros.m4 (jm_MACROS): Likewise.
42418
42419         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42420
42421         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42422         Quote first arg of AC_DEFUN.
42423         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42424         since they are needed to parse the include file even if we need
42425         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
42426         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42427         but with opposite signedness.
42428
42429 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42430
42431         Merge 'exclude' changes from tar 1.13.22.
42432         This fixes one or two unlikely storage allocation overflow bugs,
42433         but doesn't change user-visible behavior otherwise.
42434
42435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42436
42437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42438         (jm_PREREQ_EXCLUDE): New macro.
42439
42440 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42441
42442         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42443         tm to be declared.
42444
42445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42446
42447         * lib/hash.c: Remove '2001' from copyright notice.
42448
42449 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42450
42451         * lib/full-write.h: New file.
42452         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42453         * lib/full-write.c: Correct credits, as cccp.c no longer
42454         exists and anyway it was so heavily changed from the old cccp
42455         code as to be unrecognizable.  Include full-write.h.
42456         (full_write) Return size_t, with short writes meaning failure.
42457         All callers changed.  This fixes a bug with large buffers
42458         on 64-bit hosts.
42459         * lib/utime.c: Include full-write.h.
42460
42461 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42462
42463         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42464         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42465         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42466         Include if available.
42467         (<xalloc.h>): Include
42468         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42469         (verify): New macro.  Use it to verify that EXCLUDE macros do not
42470         collide with FNM macros.
42471         (struct patopts): New struct.
42472         (struct exclude): Use it, as exclude patterns now come with options.
42473         (new_exclude): Support above changes.
42474         (new_exclude, add_exclude_file):
42475         Initial size must now be a power of two to simplify overflow checking.
42476         (free_exclude, fnmatch_no_wildcards): New function.
42477         (excluded_filename): No longer requires options arg, as the options
42478         are determined by add_exclude.  Now returns bool, not int.
42479         (excluded_filename, add_exclude):
42480         Add support for the fancy new exclusion options.
42481         (add_exclude, add_exclude_file): Now takes int options arg.
42482         Check for arithmetic overflow when computing sizes.
42483         (add_exclude_file): xrealloc might modify errno, so don't
42484         realloc until after errno might be used.
42485
42486         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42487         New macros.
42488         (free_exclude): New decl.
42489         (add_exclude, add_exclude_file): Now takes int options arg.
42490         (excluded_filename): No longer requires options arg, as the options
42491         are determined by add_exclude.  Now returns bool, not int.
42492
42493 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42494
42495         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42496
42497 2001-08-27  Jim Meyering  <meyering@lucent.com>
42498
42499         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42500
42501         * lib/version-etc.c (N_): Remove definition.
42502         Revert most of last change.
42503         Instead, simply don't mark the `Copyright...' string for translation.
42504         Based on advice from Paul Eggert.
42505
42506         * lib/strtoxmax.c: Tweak comment.
42507
42508 2001-08-26  Jim Meyering  <meyering@lucent.com>
42509
42510         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42511
42512         * m4/xstrtoimax.m4: New file.
42513         * m4/xstrtoumax.m4: Add comments explaining why we
42514         AC_REPLACE_FUNCS(strtol).
42515
42516 2001-08-26  Jim Meyering  <meyering@lucent.com>
42517
42518         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42519         of copyright with `%s' so translators don't get an untranslated
42520         message in 2002.
42521         (COPYRIGHT_YEAR): Define.
42522         (version_etc): Use fprintf rather than fputs.
42523         Suggestion from Ulrich Drepper.
42524
42525         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42526
42527         * lib/strtoll.c: New file, from GNU libc.
42528         * lib/xstrtoimax.c: New file.
42529
42530         * lib/xstrtol.h: Add xstrtoimax.
42531         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
42532         * lib/strtoimax.c: New file.  Likewise, but first define
42533         STRTOUXMAX_SIGNED.
42534
42535         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42536         ...
42537         * lib/strtoxmax.c: ... then renamed to this.
42538
42539 2001-08-18  Paul Eggert  <eggert@twinsun.com>
42540
42541         * m4/inttypes.m4: Add AC_PREREQ(2.13).
42542         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42543         (jm_AC_TYPE_INTMAX_T): New macro.
42544         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42545
42546         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42547
42548         * m4/longlong.m4: Renamed from ulonglong.m4.
42549         * m4/inttypes.m4: Renamed from inttypes_h.m4.
42550         * m4/uintmax_t.m4: Removed.
42551
42552 2001-08-13  Paul Eggert  <eggert@twinsun.com>
42553
42554         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42555         Port to Solaris 8, where 'sed' requires a space after the 'r'
42556         command, and where sh dislikes "$/".  Clean up the spacing a bit.
42557         Redirect output to $tmp just once.
42558
42559 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
42560
42561         * lib/addext.c (<errno.h>): Include.
42562         (errno): Declare if not defined.
42563         (addext): Work correctly when pathconf returns -1 and leaves
42564         errno alone because there is no limit.  Also, work even if
42565         pathconf returns a value greater than SIZE_MAX.
42566
42567 2001-08-12  Jim Meyering  <meyering@lucent.com>
42568
42569         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42570         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42571         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42572         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42573         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42574         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42575         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42576         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42577         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42578         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42579         utime.m4, utimes.m4, xstrtoumax.m4:
42580         Quote the first argument in each use of AC_DEFUN.
42581
42582 2001-08-12  Jim Meyering  <meyering@lucent.com>
42583
42584         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42585         Simply `return getcwd (NULL, 0);'.
42586         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42587         Use 1300 as initial value for length, not PATH_MAX.
42588
42589         * lib/pathmax.h: Clean up cpp syntax.
42590
42591 2001-08-12  Jim Meyering  <meyering@lucent.com>
42592
42593         * lib/gettimeofday.c: New file.
42594         * lib/gtod.h: New file.
42595         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42596
42597 2001-08-05  Jim Meyering  <meyering@lucent.com>
42598
42599         * m4/jm-macros.m4: Require autoconf-2.52.
42600
42601 2001-08-04  Jim Meyering  <meyering@lucent.com>
42602
42603         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42604         stmt, to get in sync with glibc.
42605
42606 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42607
42608         The following changes are from gettext 0.10.39 as maintained by
42609         Bruno Haible.
42610
42611         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42612         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42613         with inverted sense.  All uses changed.
42614
42615         * lib/mbswidth.c: Don't include <limits.h>.
42616         Include <stdlib.h> and <string.h> unconditionally.
42617         (iswcntrl, mbsinit, ISCNTRL): New macros.
42618         (mbsnwidth): Use K&R style function declarations.
42619         Don't bother checking for MB_LEN_MAX == 1, since the compiler
42620         can optimize it when MB_CUR_MAX == 1.
42621         The width of control characters is zero, not 1.
42622
42623 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42624
42625         The following changes are from gettext 0.10.39 as maintained by
42626         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42627
42628         * m4/codeset.m4: Upgrade to serial AM1.
42629         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42630         all uses changed.  Quote first arg of AC_DEFUN.
42631         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42632
42633         * m4/iconv.m4: Upgrade to serial AM2.
42634         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42635         Add --with-libconv-prefix.
42636         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
42637         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42638         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42639         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42640         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42641
42642         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42643         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42644         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42645         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42646         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42647         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42648         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42649         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42650         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42651
42652         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42653         string.h any more.
42654
42655         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42656         not the default value.
42657
42658         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
42659         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42660         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
42661         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42662         Also check for iswcntrl, used for wcwidth fallback.
42663         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42664         to Autoconf 2.13.
42665
42666 2001-08-03  Jim Meyering  <meyering@lucent.com>
42667
42668         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42669         as it was in the original.  Reported by Paul Eggert.
42670
42671 2001-07-16  Jim Meyering  <meyering@lucent.com>
42672
42673         * m4/gettimeofday.m4: New file.
42674         Prompted by a report from Bernhard Baehr.
42675
42676 2001-07-15  Jim Meyering  <meyering@lucent.com>
42677
42678         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42679         stuff. Now it's in ../Makefile.cfg.
42680
42681 2001-07-15  Jim Meyering  <meyering@lucent.com>
42682
42683         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42684         (BUILT_SOURCES): Add unlocked-io.h.
42685         (io_functions): Define.
42686         (unlocked-io.h): New rule.
42687         (DISTCLEANFILES): Add unlocked-io.h.
42688         (all-local): Depend on unlocked-io.h, to ensure it is created.
42689
42690         * lib/unlocked-io.hin: New file
42691
42692         * lib/regex.c: Update from glibc.
42693
42694 2001-07-05  Jim Meyering  <meyering@lucent.com>
42695
42696         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42697         recommendation.
42698         (libfetish_a_SOURCES): Put all .h files here instead.
42699         Remove a thus-exposed (better checks in automake) duplicate and
42700         two unnecessary .h files.
42701
42702 2001-07-04  Jim Meyering  <meyering@lucent.com>
42703
42704         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
42705         that generates jm-glibc-io.m4 so that it doesn't trigger any make
42706         distcheck failure.
42707
42708 2001-07-02  Jim Meyering  <meyering@lucent.com>
42709
42710         The following changes were prompted by suggestions from Bruno Haible.
42711
42712         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42713         is now generated.
42714         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42715         definition of EXTRA_DIST.
42716         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42717         ensure that the generated file is created/updated whenever the list
42718         of $(unlocked_functions) is changed.
42719         (jm-glibc-io.m4): New rule.
42720         (unlocked-io.h): New rule -- currently unused.
42721
42722 2001-06-24  Jim Meyering  <meyering@lucent.com>
42723
42724         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42725         unmatched right bracket, rather than kludging it with an extra,
42726         falsely-matching quote in a comment.  Patch by Akim Demaille.
42727
42728 2001-06-11  Jim Meyering  <meyering@lucent.com>
42729
42730         * lib/regex.c: Update from GNU libc.
42731
42732 2001-05-27  Jim Meyering  <meyering@lucent.com>
42733
42734         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42735         Check for ut_type in struct utmp.
42736
42737 2001-05-27  Jim Meyering  <meyering@lucent.com>
42738
42739         * lib/readutmp.h (UT_TYPE): Define.
42740
42741 2001-05-24  Jim Meyering  <meyering@lucent.com>
42742
42743         * lib/argmatch.c: Include "quote.h".
42744         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
42745         quote function.  Reported by Göran Uddeborg.
42746
42747 2001-05-22  Jim Meyering  <meyering@lucent.com>
42748
42749         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42750         now that we use the package-supplied version unconditionally.
42751         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42752
42753 2001-05-21  Jim Meyering  <meyering@lucent.com>
42754
42755         * m4/regex.m4: Change a couple backticks to single quotes to avoid
42756         shell syntax errors.
42757
42758 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42759
42760         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42761
42762 2001-05-20  Paul Eggert  <eggert@twinsun.com>
42763
42764         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42765         Don't bother to check library strftime, since
42766         we'll be using our own my_strftime function anyway.
42767         Define my_strftime instead of strftime.
42768
42769 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
42770
42771         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42772         which is not yet declared.
42773
42774 2001-05-15  Jim Meyering  <meyering@lucent.com>
42775
42776         * m4/regex.m4: Use proper quoting so brackets appear in the test
42777         program.
42778         Reported by, and with help from, Bruno Haible.
42779
42780 2001-05-13  Jim Meyering  <meyering@lucent.com>
42781
42782         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42783         undefined.
42784
42785 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42786
42787         dirname code cleanup.  base_name now behaves more compatibly
42788         with POSIX basename when given file names that have trailing
42789         slashes, and similarly for dir_name.  Add new primitives
42790         base_len and dir_len.  Put the directory-name-related decls
42791         into dirname.h.
42792
42793         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42794         * lib/backupfile.c (base_name): Likewise.
42795         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42796         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42797         * lib/makepath.c (strip_trailing_slashes): Likewise.
42798         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42799         ISSLASH): Likewise.
42800         * lib/rename.c (strip_trailing_slashes): Likewise.
42801         * lib/same.c (base_name): Likewise.
42802         * lib/stripslash.c (ISSLASH): Likewise.
42803
42804         * lib/addext.c: Include <dirname.h> after size_t is defined.
42805         * lib/backupfile.c: Likewise.
42806
42807         * lib/addext.c (addext): Use base_len to trim redundant
42808         trailing slashes instead of doing it ourselves.
42809         But do not trim the last slash if it is not redundant.
42810
42811         * lib/backupfile.c (find_backup_file_name,
42812         max_backup_version): Use base_len instead of rolling it ourselves.
42813         Handle the case of "" and (on DOS) "C:" correctly.
42814
42815         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42816         needed. Include <string.h>, <dirname.h>.
42817         (base_name): Allow file names ending in slashes, other than names
42818         that are all slashes.  In this case, return the basename followed
42819         by the slashes.  This is more general, and can be used in places
42820         where the original base_name purposely had an assertion failure.
42821         (base_len): New function.
42822
42823         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42824         Do not include <assert.h>; no longer needed.
42825         Include xalloc.h.
42826         (memrchr): Remove decl.
42827         (dir_name_r): Remove.
42828         (dir_len): Renamed from dirlen.  All callers changed.
42829         Rewrite in terms of base_name, for simplicity and consistency.
42830         (dir_name): Never return NULL.  All callers changed.
42831         Do not include <stdlib.h> in test program; no longer needed.
42832         return 0; is fine for test program.
42833
42834         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42835         New macros.
42836         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42837
42838         * lib/path-concat.c (path_concat): Use base_len to compute
42839         base length, not strlen; this means we cannot rely on memcpy
42840         to null-terminate.
42841
42842         * lib/same.c (STREQ): Remove.
42843         (same_name): Handle the case where the basename ends in trailing '/'.
42844
42845         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42846         a slash was stripped.  Do not strip the last slash after a
42847         file system prefix.
42848
42849 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42850
42851         * lib/Makefile.am (libfetish_a_SOURCES):
42852         Add strftime.c, since we now compile it on all hosts.
42853
42854         * lib/strftime.c (my_strftime):
42855         Define to nstrftime if emacs, but only if my_strftime is not defined.
42856         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42857         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42858         Add one more extra argument: a nanoseconds value.
42859         All uses changed.
42860         (ns): New macro.
42861         (my_strftime function): Add %N format.
42862         (emacs_strftimeu): Renamed from emacs_strftime,
42863         with extra ut argument.
42864
42865 2001-05-09  Paul Eggert  <eggert@twinsun.com>
42866
42867         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42868
42869 2001-04-21  Jim Meyering  <meyering@lucent.com>
42870
42871         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42872         doesn't interfere.
42873
42874 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42875
42876         * m4/ftruncate.m4: Check for chsize.
42877         Link with ftruncate.o unconditionally if ftruncate is missing.
42878         This was required when cross-compiling to i586-mingw32msvc.
42879
42880 2001-04-08  Jim Meyering  <meyering@lucent.com>
42881
42882         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42883         recomputed; that's necessary when the offset spans a DST transition.
42884         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
42885
42886 2001-04-02  Jim Meyering  <meyering@lucent.com>
42887
42888         * lib/regex.h, regex.c: Update from GNU libc.
42889
42890 2001-03-24  Jim Meyering  <meyering@lucent.com>
42891
42892         * m4/jm-macros.m4: Require autoconf-2.49d.
42893
42894 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
42895
42896         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42897
42898 2001-03-19  Paul Eggert  <eggert@twinsun.com>
42899
42900         * lib/version-etc.c (version_etc_copyright): Update to 2001.
42901
42902 2001-03-17  Jim Meyering  <meyering@lucent.com>
42903
42904         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42905         now that the version in autoconf is equivalent.
42906         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42907
42908         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42909         Suggestion from Akim Demaille.
42910
42911         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42912         (jm_PREREQ_TEMPNAME): New function.
42913
42914 2001-03-16  Paul Eggert  <eggert@twinsun.com>
42915
42916         * lib/tempname.c (uint64_t): Define to uintmax_t if
42917         not defined, and if UINT64_MAX is not defined.
42918         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42919         Reported by John David Anglin.
42920
42921 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
42922
42923         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42924         resolve alias if codeset is empty.
42925         * lib/config.charset (BeOS): Use wildcard syntax.
42926
42927 2001-03-13  Jim Meyering  <meyering@lucent.com>
42928
42929         * lib/path-concat.c (path_concat)
42930         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42931         concatenating e.g., `C:' and `foo'.
42932         From Bruno Haible.
42933
42934 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42935
42936         * lib/localcharset.c (locale_charset): Don't use
42937         setlocale(LC_CTYPE,NULL). Don't return NULL.
42938         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42939
42940 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42941
42942         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42943         support for DOS/DJGPP.
42944
42945 2001-03-01  Paul Eggert  <eggert@twinsun.com>
42946
42947         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42948         lacks mkstemp.  Compile our own tempname.c if we compile our own
42949         mkstemp.c, as mkstemp relies on tempname.
42950
42951 2001-03-01  Jim Meyering  <meyering@lucent.com>
42952
42953         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42954         AH_VERBATIM really does output its argument verbatim.
42955
42956 2001-02-28  Paul Eggert  <eggert@twinsun.com>
42957
42958         * lib/Makefile.am (libfetish_a_SOURCES):
42959         Add dup-safer.c, fopen-safer.c.
42960         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42961
42962         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42963         * lib/unistd-safer.h: New files.
42964
42965 2001-02-25  Paul Eggert  <eggert@twinsun.com>
42966
42967         The mkstemp replacement is taken from glibc 2.2.2, with some
42968         portability fixes for use outside glibc, as follows:
42969
42970         * lib/tempname.c (struct_stat64): New macro.
42971         (direxists, __gen_tempname): Use it.
42972         This avoids a portability problem with Solaris 8.
42973
42974         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
42975         (<stddef.h>, <stdint.h>, <string.h>):
42976         Include only if STDC_HEADERS || _LIBC.
42977         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
42978         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
42979         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
42980         (__set_errno): Define this macro if <errno.h> doesn't.
42981         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
42982         Define these macros if <stdio.h> doesn't.
42983         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
42984         Define these macros if <sys/stat.h>
42985         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
42986         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
42987         __xstat64): Define if not _LIBC.
42988         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
42989         (__gen_tempname): Invoke gettimeofday only if
42990         HAVE_GETTIMEOFDAY || _LIBC;
42991         otherwise, fall back on plain "time".
42992         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
42993
42994         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
42995
42996         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
42997
42998 2001-02-18  Paul Eggert  <eggert@twinsun.com>
42999
43000         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
43001
43002 2001-02-17  Paul Eggert  <eggert@twinsun.com>
43003
43004         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
43005         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
43006         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
43007         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
43008
43009 2001-02-17  Paul Eggert  <eggert@twinsun.com>
43010
43011         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
43012         Remove workaround macros for hosts that have mbrtowc but not
43013         mbstate_t, as we now insist on proper declarations for both
43014         before using mbrtowc.
43015
43016 2001-02-17  Jim Meyering  <meyering@lucent.com>
43017
43018         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
43019         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
43020         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
43021         UnixWare 7.1.1.
43022
43023         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
43024         rather than AC_CACHE_VAL.
43025
43026 2001-02-17  Jim Meyering  <meyering@lucent.com>
43027
43028         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
43029         around included file name.
43030
43031         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
43032
43033         * lib/strftime.c: Update from GNU libc (the only changes were to
43034         comments).
43035
43036 2001-02-17  Jim Meyering  <meyering@lucent.com>
43037
43038         * lib/regex.c: Update from libc.
43039
43040 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
43041
43042         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
43043         clash.
43044
43045 2001-02-16  Paul Eggert  <eggert@twinsun.com>
43046
43047         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
43048         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
43049         Reported by Mark Hounschell via Paul Eggert.
43050
43051 2001-02-07  Jim Meyering  <meyering@lucent.com>
43052
43053         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
43054
43055 2001-02-05  Jim Meyering  <meyering@lucent.com>
43056
43057         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
43058         it includes the patch required for `large file' support with at least
43059         HP-UX's 10.20 /bin/cc.
43060
43061 2001-02-03  Jim Meyering  <meyering@lucent.com>
43062
43063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
43064         AS_IF, now that it works once again (mysteriously).
43065         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43066
43067 2001-01-30  Jim Meyering  <meyering@lucent.com>
43068
43069         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
43070         * m4/chown.m4: Rename conftestchown to conftest.chown.
43071         * m4/rename.m4: s/conftestdir/conftest.d1/ and
43072         s/conftestdir2/conftest.d2/.
43073         * m4/utimes.m4: s/conftestdata/conftest.data/
43074         Inspired by Pavel Roskin's change in autoconf.
43075
43076 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
43077
43078         * lib/config.charset: Update for FreeBSD 4.2.
43079
43080 2001-01-27  Jim Meyering  <meyering@lucent.com>
43081
43082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
43083         a use of AS_IF.
43084         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43085
43086 2001-01-26  Jim Meyering  <meyering@lucent.com>
43087
43088         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
43089         quotearg.c includes it.
43090
43091 2001-01-26  Jim Meyering  <meyering@lucent.com>
43092
43093         * lib/quotearg.c: Include stddef.h.
43094         * lib/quote.c: Include stddef.h.
43095         Reported by Axel Kittenberger.
43096
43097         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
43098         line in double quotes so that it evokes a better diagnostic.
43099         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
43100         Reported by Axel Kittenberger.
43101
43102 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
43103
43104         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
43105         as if it was a `charset'.
43106
43107 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43108
43109         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
43110         has const.
43111
43112 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43113
43114         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43115         to avoid a warning.  Add back 'const' to inptr.
43116
43117 2001-01-20  Jim Meyering  <meyering@lucent.com>
43118
43119         Be sure that headers are checked before used in code compiled
43120         for the type checks.
43121         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43122         In place of that, invoke jm_CHECK_ALL_TYPES.
43123         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43124         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43125         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43126         The check for ssize_t was mistakenly run before the test for unistd.h.
43127
43128         The configure-time check for stdbool.h was missing.
43129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43130         (jm_PREREQ_HASH): New function.
43131
43132 2001-01-17  Jim Meyering  <meyering@lucent.com>
43133
43134         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43135         for autoconf-2.49c.
43136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43137
43138 2001-01-16  Jim Meyering  <meyering@lucent.com>
43139
43140         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43141         From Bruno Haible.
43142
43143 2001-01-14  Jim Meyering  <meyering@lucent.com>
43144
43145         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43146         foo and bar.  Create conftestdir/ in the script, not in the C code.
43147         Remove directories in the script, not in the C code.
43148         Remove conftestdir{,2} before trying to create the directory.
43149         Make the entire configure script fail if the mkdir fails.
43150
43151 2001-01-14  Jim Meyering  <meyering@lucent.com>
43152
43153         * lib/rename.c: New file.  From Volker Borchert.
43154         Include stdlib.h, string.h or strings.h, and xalloc.h.
43155         Use strip_trailing_slashes rather than open-coding it.
43156
43157 2001-01-03  Paul Eggert  <eggert@twinsun.com>
43158
43159         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43160
43161 2001-01-03  Jim Meyering  <meyering@lucent.com>
43162
43163         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43164         of local `inptr' to avoid warning with some system declarations of
43165         iconv.
43166
43167 2001-01-02  Volker Borchert  <bt@teknon.de>
43168
43169         * m4/rename.m4: New file.
43170         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43171
43172 2001-01-01  Jim Meyering  <meyering@lucent.com>
43173
43174         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
43175         even on systems with utmpx.h.  It's necessary for the declaration of
43176         utmp's ut_user member.  Reported by Andreas Jaeger.
43177
43178         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
43179         available. They are required for the declarations of getgrgid and
43180         getpwuid resp.
43181         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
43182         Reported by Andreas Jaeger.
43183
43184 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
43185
43186         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
43187         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
43188         so `make install' also works in VPATH builds.
43189
43190 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
43191
43192         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
43193         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
43194         can be used in subdirectories.
43195
43196 2000-12-29  Paul Eggert  <eggert@twinsun.com>
43197
43198         * lib/modechange.c: Do not assume that mode_t uses the
43199         traditional octal encoding.  E.g. "chmod 1 FOO" should set
43200         the other-execute bit of FOO even if S_IXOTH != 1.
43201
43202         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
43203         WOTH, XOTH, ALLM): New macros.
43204         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
43205          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
43206         Use them.
43207         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
43208         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
43209         (mode_compile):
43210         No need to use uintmax_t; unsigned long is long enough.
43211         Don't bother to get suffix since we don't use it.
43212
43213 2000-12-26  Jim Meyering  <meyering@lucent.com>
43214
43215         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
43216         better with autoheader.
43217
43218 2000-12-24  Jim Meyering  <meyering@lucent.com>
43219
43220         * lib/hash.c (is_prime): Return explicit boolean values.
43221         (hash_get_first): Return NULL to appease Irix5.6's 89.
43222         Reported by Nelson Beebe.
43223
43224 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
43225
43226         * lib/localcharset.c (locale_charset): Add support for Win32.
43227
43228 2000-12-18  Paul Eggert  <eggert@twinsun.com>
43229
43230         * lib/physmem.h, lib/physmem.c: New files.
43231
43232         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
43233         (noinst_HEADERS): Add physmem.h.
43234
43235         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
43236         't' for compatibility with Solaris 8 sort.
43237
43238 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
43239
43240         * lib/config.charset: Add support for BeOS.
43241
43242 2000-12-17  Jim Meyering  <meyering@lucent.com>
43243
43244         * m4/dos.m4 (jm_AC_DOS): New file and macro.
43245         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
43246
43247 2000-12-16  Jim Meyering  <meyering@lucent.com>
43248
43249         This bug had a serious impact on chown: `chown N:M FILE' (for integer
43250         N and M) would have treated it like `chown N:N FILE'.
43251
43252         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43253
43254 2000-12-16  Jim Meyering  <meyering@lucent.com>
43255
43256         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43257         SHELLS_FILE to a file name that's useful on djgpp systems.
43258         Include stdlib.h.
43259         (ADDITIONAL_DEFAULT_SHELLS): Define.
43260         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43261         Based mostly on a patch from Prashant TR.
43262
43263 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
43264
43265         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43266         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43267         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43268
43269 2000-12-08  Andreas Schwab  <schwab@suse.de>
43270
43271         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43272         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43273
43274 2000-12-07  Jim Meyering  <meyering@lucent.com>
43275
43276         * lib/stripslash.c (ISSLASH): Define.
43277         (strip_trailing_slashes): Use ISSLASH rather than comparing against
43278         `/'.
43279         From Prashant TR.
43280
43281         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43282         (dir_name_r): Declare this function as static.
43283         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43284         manifest itself on a name containing a mix of slashes and
43285         backslashes.
43286         Make this function work with names starting with a DOS-style
43287         drive letter and colon prefix.
43288         (dir_name): Append `.' if necessary.
43289         Based mostly on patches from Prashant TR and Eli Zaretskii.
43290
43291         * lib/dirname.h (dir_name_r): Remove prototype.
43292
43293 2000-12-06  Paul Eggert  <eggert@twinsun.com>
43294
43295         * m4/off_t-format.m4: Remove this file.
43296         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43297
43298 2000-12-06  Jim Meyering  <meyering@lucent.com>
43299
43300         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43301         replacement strtoull, we may well need the replacement strtoul, too.
43302         Check for declarations of strtoul and strtoull.
43303         Check for strtol.  Mainly as a cue to cause automake to include
43304         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43305         Check for limits.h -- strtol.c needs it.
43306
43307 2000-12-05  Jim Meyering  <meyering@lucent.com>
43308
43309         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43310
43311 2000-12-04  Jim Meyering  <meyering@lucent.com>
43312
43313         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43314         Also include memory.h, stdlib.h, unistd.h if appropriate.
43315         Reported by Andreas Jaeger (conflicting declaration of malloc).
43316
43317 2000-12-02  Jim Meyering  <meyering@lucent.com>
43318
43319         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43320         * m4/jm-macros.m4 (jm_MACROS): require it.
43321
43322 2000-12-02  Jim Meyering  <meyering@lucent.com>
43323
43324         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43325
43326 2000-12-01  Paul Eggert  <eggert@twinsun.com>
43327
43328         * lib/memrchr.c: Include <config.h> before any system include file.
43329
43330 2000-11-30  Jim Meyering  <meyering@lucent.com>
43331
43332         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43333
43334 2000-11-30  Jim Meyering  <meyering@lucent.com>
43335
43336         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43337
43338 2000-11-29  Paul Eggert  <eggert@twinsun.com>
43339
43340         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43341
43342 2000-11-26  Jim Meyering  <meyering@lucent.com>
43343
43344         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
43345
43346 2000-11-22  Paul Eggert  <eggert@twinsun.com>
43347
43348         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43349         size of (size_t) -1; it's not portable.
43350
43351 2000-11-17  Jim Meyering  <meyering@lucent.com>
43352
43353         * lib/strstr.c: Update from GNU libc.
43354
43355 2000-11-17  Akim Demaille  <akim@epita.fr>
43356
43357         * lib/obstack.h: Formatting changes.
43358         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43359         prevent type checking.
43360         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43361         cast the value to (void *): assigning a `foo *' to a `void *'
43362         variable is valid.
43363         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43364
43365 2000-11-16  Jim Meyering  <meyering@lucent.com>
43366
43367         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43368
43369 2000-11-11  Jim Meyering  <meyering@lucent.com>
43370
43371         * lib/error.c: Add a couple #includes, merging from GNU libc version.
43372
43373 2000-11-10  Jim Meyering  <meyering@lucent.com>
43374
43375         * lib/obstack.h: Update from GNU libc.
43376         * lib/obstack.c: Likewise.
43377
43378 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
43379
43380         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43381
43382 2000-11-06  Paul Eggert  <eggert@twinsun.com>
43383
43384         * lib/getusershell.c (setusershell): Use rewind rather than
43385         fseek/fseeko, to avoid configuration hassles with fseeko.
43386         Don't bother opening SHELLS_FILE if shellstream is NULL;
43387         it's not necessary.
43388
43389 2000-11-05  Jim Meyering  <meyering@lucent.com>
43390
43391         * lib/makepath.h (make_dir): Declare.
43392         * lib/makepath.c (make_dir): Remove `static' attribute.
43393         Tweak a comment.
43394
43395 2000-11-04  Jim Meyering  <meyering@lucent.com>
43396
43397         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43398
43399 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
43400
43401         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
43402         last one in a bucket, advance to the next bucket.
43403
43404 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
43405
43406         * lib/fnmatch.c: Do not comment out all the code if we are using
43407         the GNU C library, because in some cases we are replacing buggy
43408         code in the GNU C library itself.
43409
43410 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
43411
43412         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43413         (regex_compile): Catch bogus \(\1\).
43414
43415 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43416
43417         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43418         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43419         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43420
43421 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43422
43423         * lib/error.h, getline.h, modechange.h:
43424         Remove "2000" from Copyright line, as the file hasn't been
43425         changed this year other than in the copyright notice.
43426
43427         * lib/xalloc.h: Add "2000" to Copyright line, as this file
43428         was changed this year.
43429
43430 2000-10-29  Jim Meyering  <meyering@lucent.com>
43431
43432         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43433         renaming.
43434         * m4/ls-mntd-fs.m4: Likewise
43435
43436 2000-10-29  Jim Meyering  <meyering@lucent.com>
43437
43438         * lib/xstat.in: Fix grammar in comment.
43439
43440 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
43441
43442         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43443         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43444         doesn't define __restrict_arr.
43445
43446 2000-10-28  Jim Meyering  <meyering@lucent.com>
43447
43448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43449         (jm_PREREQ_MEMCHR): New function.
43450
43451 2000-10-28  Jim Meyering  <meyering@lucent.com>
43452
43453         * lib/memchr.c: Update from libc.
43454         Adjust for portability:
43455         [HAVE_STDLIB_H]: Include stdlib.h.
43456         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43457         Undef __memchr, too.
43458         [!weak_alias]: Define __memchr to memchr.
43459
43460         * lib/regex.c: Update from libc.
43461         * lib/regex.h: Likewise.
43462         * lib/getopt1.c: Likewise.
43463         * lib/memcmp.c: Likewise.
43464
43465         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43466         Avoid using fseek, when possible -- it's broken by design.
43467         Patch by Ulrich Drepper.
43468
43469 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
43470
43471         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43472         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43473         Giving in to popular pressure to shut up the compiler with casts.
43474
43475 2000-10-26  Jim Meyering  <meyering@lucent.com>
43476
43477         * lib/strftime.c: Update from libc.
43478
43479 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
43480
43481         * regex.c: More `unsigned char' -> `re_char' changes.
43482         Also change several `int' into `re_wchar_t'.
43483         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43484         (PUSH_FAILURE_POINTER): Don't cast any more.
43485         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43486         We want GCC to complain, since this piece of code makes
43487         re_match non-reentrant, which *should* be fixed.
43488         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43489         (EXTEND_BUFFER): Use RETALLOC.
43490         (SET_LIST_BIT): Don't cast.
43491         (re_wchar_t): New type.
43492         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43493         that those two functions will always properly return.
43494         (IMMEDIATE_QUIT_CHECK): Cast to void.
43495         (analyse_first): Use recursion rather than an explicit stack.
43496         (re_compile_fastmap): Can't fail anymore.
43497         (re_search_2): Don't check re_compile_fastmap for failure.
43498         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43499         Now also sets the new value (passed in a new argument).
43500         (re_match_2_internal): Use it.
43501         Also, use a new var `reg' of type size_t when looping through regs
43502         rather than reuse the inappropriate `mcnt'.
43503
43504 2000-10-25  Jim Meyering  <meyering@lucent.com>
43505
43506         * lib/obstack.c: Update from libc.
43507
43508 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
43509
43510         * regex.c (regex_compile): Change the way of handling a range from
43511         a char less than 256 to a char not less than 256.
43512
43513 2000-10-24  Andrew Innes  <andrewi@gnu.org>
43514
43515         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43516         NT-Emacs only.
43517         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43518         so that re_search functions only quit when callers expect them to.
43519
43520 2000-10-23  Jim Meyering  <meyering@lucent.com>
43521
43522         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43523         wrong.  That set_locale call must not have any side effects.
43524         From Paul Eggert.
43525
43526 2000-10-22  Jim Meyering  <meyering@lucent.com>
43527
43528         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43529         [CYCLIC]: Remove now-unused definition.
43530
43531         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43532         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43533         Suggestion from Ulrich Drepper.
43534
43535 2000-10-21  Jim Meyering  <meyering@lucent.com>
43536
43537         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43538         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43540
43541 2000-10-21  Jim Meyering  <meyering@lucent.com>
43542
43543         * lib/dirname.c (memrchr): Declare if necessary.
43544         (dir_name): Remove the restriction that there be no
43545         trailing slashes.  Now, this code skips past them, effectively
43546         ignoring them.
43547         [TEST_DIRNAME] (main): New unit tests.
43548
43549         * lib/memrchr.c: New file from GNU libc.
43550         Undef __memrchr, too.
43551         [!weak_alias]: Define __memrchr to memrchr.
43552         Guard weak_alias use with `#ifdef weak_alias'.
43553
43554 2000-10-21  Jim Meyering  <meyering@lucent.com>
43555
43556         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43557         (dir_name): Use dir_name_r.
43558         * lib/dirname.h (dir_name_r): Declare it.
43559
43560 2000-10-17  Jim Meyering  <meyering@lucent.com>
43561
43562         * lib/quote.h (PARAMS): Define and use.
43563         Reported by Akim Demaille.
43564
43565         * lib/getopt.c: Update from libc.
43566
43567 2000-10-16  Jim Meyering  <meyering@lucent.com>
43568
43569         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43570         setlocale.
43571         From Jan Fedak.
43572
43573 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
43574
43575         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43576
43577 2000-09-25  Jim Meyering  <meyering@lucent.com>
43578
43579         * lib/md5.h (rol): Define (from GnuPG).
43580
43581         * lib/sha.c: Give credit (GnuPG) where due.
43582         (M): Use rol rather than open-coding it.
43583         Add a FIXME comment.
43584
43585 2000-09-21  Jim Meyering  <meyering@lucent.com>
43586
43587         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43588         Reported by Michael Stone.
43589
43590 2000-09-20  Jim Meyering  <meyering@lucent.com>
43591
43592         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43593         (noinst_HEADERS): Add sha.h.
43594         Based on code from Scott G. Miller and from GnuPG.
43595
43596 2000-09-18  Jim Meyering  <meyering@lucent.com>
43597
43598         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43599         LIBS. Otherwise, everyone ends up linking with -lelf for some
43600         configurations.
43601         Reported by Mike Stone.
43602
43603 2000-09-15  Jim Meyering  <meyering@lucent.com>
43604
43605         * lib/regex.c: Update from libc.
43606
43607 2000-09-10  Jim Meyering  <meyering@lucent.com>
43608
43609         * lib/getopt.c (_getopt_internal): Update from glibc.
43610
43611 2000-09-09  Jim Meyering  <meyering@lucent.com>
43612
43613         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43614         think it should be used as a general replacement for isascii.
43615         * lib/fnmatch.c: Likewise.
43616         * lib/mbswidth.c: Likewise
43617         * lib/regex.c: Likewise.
43618
43619         Don't use atoi.
43620         * lib/userspec.c: Include sys/param.h and limits.h.
43621         Include xstrtol.h.
43622         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43623         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43624         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43625         UID, GID.  Check range.
43626
43627 2000-09-06  Jim Meyering  <meyering@lucent.com>
43628
43629         * lib/getopt.c (_getopt_internal): Update from glibc.
43630
43631 2000-08-30  Jim Meyering  <meyering@lucent.com>
43632
43633         * lib/strftime.c: Merge in changes from GNU libc.
43634
43635 2000-08-26  Jim Meyering  <meyering@lucent.com>
43636
43637         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43638         * m4/fpending.m4: New file.
43639
43640 2000-08-26  Jim Meyering  <meyering@lucent.com>
43641
43642         * lib/closeout.c: Include "__fpending.h".
43643         (close_stdout_status): Return right away if there's nothing to flush.
43644
43645         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43646         * lib/__fpending.c: New file.
43647         * lib/__fpending.h: New file.
43648
43649 2000-08-20  Jim Meyering  <meyering@lucent.com>
43650
43651         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43652         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
43653         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
43654
43655 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
43656
43657         Improve fileutils installation on systems where running
43658         programs (like install) can't be unlinked.
43659         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43660         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43661
43662 2000-08-07  Paul Eggert  <eggert@twinsun.com>
43663
43664         Standardize on "memory exhausted" instead of "Memory exhausted"
43665         or "virtual memory exhausted".
43666         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43667         "virtual memory exhausted".
43668         * lib/same.c (same_name): Invoke xalloc_die instead of printing
43669         our own message.
43670         * lib/userspec.c (parse_user_spec): Likewise.
43671         * lib/bumpalloc.h: comment fix
43672         * lib/same.c, userspec.c: Include xalloc.h.
43673
43674         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43675         not char *const and pointing to a constant array.
43676         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43677         (xrealloc): Comment fix.
43678
43679         * lib/userspec.c (parse_user_spec):
43680         Don't translate a message until just before returning,
43681         to avoid unnecessary translation.
43682
43683 2000-08-07  Jim Meyering  <meyering@lucent.com>
43684
43685         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43686         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43687         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43688         getgroups.c, gethostname.c, getopt.h, group-member.c,
43689         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43690         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43691         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43692         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43693         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43694         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43695         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43696         yesno.c: Back out Copyright date changes for each file with no change
43697         this year.  This eases coordination with other programs using the same
43698         source code modules.  From Paul Eggert.
43699
43700 2000-08-06  Paul Eggert  <eggert@twinsun.com>
43701
43702         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43703         not char, for compatibility with glibc 2.1.3 strftime.c.
43704
43705 2000-08-03  Greg McGary  <greg@mcgary.org>
43706
43707         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43708         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43709         (EXTEND_BUFFER): Use them.
43710
43711 2000-08-01  Jim Meyering  <meyering@lucent.com>
43712
43713         * lib/dirname.c (ISSLASH): Define.
43714         (BACKSLASH_IS_PATH_SEPARATOR): Define.
43715         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43716         both `\' and `/' may be use as path separators.
43717         Based on a patch from Prashant TR.
43718
43719 2000-07-31  Paul Eggert  <eggert@twinsun.com>
43720
43721         * lib/quotearg.c (quotearg_n_options): Don't make the initial
43722         slot vector a constant, since it might get modified.
43723
43724 2000-07-31  Jim Meyering  <meyering@lucent.com>
43725
43726         * lib/xmalloc.c: Use `virtual memory exhausted', not
43727         `Memory exhausted'.
43728         * lib/obstack.c (print_and_abort): Likewise.
43729
43730 2000-07-30  Paul Eggert  <eggert@twinsun.com>
43731
43732         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43733         buffer, so that the caller can always quote one small
43734         component of a "memory exhausted" message in slot 0.
43735         From a suggestion by Jim Meyering.
43736
43737 2000-07-30  Jim Meyering  <meyering@lucent.com>
43738
43739         * lib/makepath.c (make_path): Quote the other instance, too.
43740
43741         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43742         (STATIC_BUF_SIZE): Define.
43743         (quotearg_n_options): Use only statically allocated storage when
43744         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43745         than STATIC_BUF_SIZE.
43746
43747 2000-07-29  Jim Meyering  <meyering@lucent.com>
43748
43749         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43750         * lib/dirname.c (dir_name): Likewise.
43751
43752         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43753         `/'.
43754
43755         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43756         (dir_name): Assert that there are no trailing slashes.
43757
43758 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
43759
43760         * lib/mbswidth.h (mbswidth): Add a flags argument.
43761         (mbswidth): New declaration.
43762         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43763         * lib/mbswidth.c (mbswidth): Add a flags argument.
43764         (mbsnwidth): New function.
43765
43766 2000-07-24  Jim Meyering  <meyering@lucent.com>
43767
43768         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
43769
43770 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43771
43772         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43773
43774 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43775
43776         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43777         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43778         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43779         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43780         invoke multibyte primitives.
43781
43782 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43783
43784         * lib/quotearg.c:
43785         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43786         so that mbstate_t is always defined.
43787
43788         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43789         be 1 in at least one GCC installation, and this configuration
43790         error is likely to be common.  Ignoring MB_LEN_MAX hurts
43791         performance on hosts that have mbrtowc but have only unibyte
43792         locales, but I assume these hosts are rare.
43793
43794 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43795
43796         * lib/mbswidth.c (_XOPEN_SOURCE):
43797         Don't define; this causes problems on Solaris 7.
43798         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43799
43800 2000-07-23  Jim Meyering  <meyering@lucent.com>
43801
43802         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43803         too: getgrgid, getpwuid, getuid.
43804
43805 2000-07-23  Jim Meyering  <meyering@lucent.com>
43806
43807         * lib/basename.c (base_name): Add an assertion.
43808
43809 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
43810
43811         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43812         shadow its mbsinit function.
43813
43814 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43815
43816         * lib/mbswidth.h: New file.
43817         * lib/mbswidth.c: New file.
43818         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43819         (noinst_HEADERS): Add mbswidth.h.
43820
43821 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43822
43823         * lib/config.charset: Add support for FreeBSD. Improve support for
43824         HP-UX and IRIX 6.
43825
43826 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
43827
43828         * m4/mbswidth.m4: New file.
43829         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43830
43831 2000-07-15  Jim Meyering  <meyering@lucent.com>
43832
43833         * lib/makepath.c: Include quote.h.
43834         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43835         corresponding argument in a `quote (...)' call.
43836         Give better diagnostics.
43837
43838         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43839         (noinst_HEADERS): Add quote.h.
43840
43841         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
43842         from tar's src/misc.c.
43843         * lib/quote.h: New file.  Prototypes for same.
43844
43845 2000-07-14  Paul Eggert  <eggert@twinsun.com>
43846
43847         From a suggestion by Bruno Haible.
43848         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43849         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43850         to decide whether to define the BeOS workaround macro;
43851         this adjusts to the change to AC_MBSTATE_T.
43852
43853 2000-07-14  Jim Meyering  <meyering@lucent.com>
43854
43855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43856         jm_AC_TYPE_UINTMAX_T.
43857
43858 2000-07-13  Paul Eggert  <eggert@twinsun.com>
43859
43860         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43861
43862         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43863         quotearg_buffer_restyled): Add support for
43864         clocale_quoting_style.  Undo previous change to
43865         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43866         and "{RIGHT QUOTATION MARK}" msgids.
43867
43868 2000-07-10  Paul Eggert  <eggert@twinsun.com>
43869
43870         From a suggestion by Bruno Haible.
43871         * m4/mbstate_t.m4 (AC_MBSTATE_T):
43872         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
43873         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43874         and mbstate_t, to a single-part test that simply defines mbstate_t.
43875         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43876         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43877
43878 2000-07-10  Jim Meyering  <meyering@lucent.com>
43879
43880         * m4/strerror_r.m4: Mirror the correction made in autoconf.
43881
43882         * m4/gnu-source.m4: Output to confdefs.h directly.
43883         Suggestion from Akim Demaille.
43884
43885 2000-07-09  Paul Eggert  <eggert@twinsun.com>
43886
43887         The old behavior of quoting `like this' doesn't look good with
43888         newer, ISO-style fonts.  See:
43889         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43890
43891         Instead, quote "like this" by default.  Let the translator
43892         tailor the locale-specific quoting behavior by providing
43893         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43894
43895         * lib/quotearg.c (N_): New macro.
43896         (gettext_default): New function.
43897         (quotearg_buffer_restyled): Use
43898         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43899         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43900
43901 2000-07-09  Jim Meyering  <meyering@lucent.com>
43902
43903         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43904         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
43905
43906         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43908
43909 2000-07-09  Jim Meyering  <meyering@lucent.com>
43910
43911         * lib/Most files: Update copyright dates to include 2000.
43912
43913 2000-07-08  Jim Meyering  <meyering@lucent.com>
43914
43915         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43916         if not defined.
43917         (xgethostname): Remove now-unnecessary #ifdef.
43918         Move declaration of `err' into loop where it's used.
43919
43920 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43921         and Bruno Haible  <haible@clisp.cons.org>
43922
43923         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43924         only if the test for an object-type mbstate_t fails.  This
43925         prevents us from mistakenly reporting that mbstate_t is a
43926         system object type after we "#define mbstate_t int" to work
43927         around its lack.
43928
43929 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43930         and Bruno Haible  <haible@clisp.cons.org>
43931
43932         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43933
43934 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43935
43936         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43937         to strerror_r.
43938         Include <ctype.h> for use of isalpha.
43939
43940 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43941
43942         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43943         by allocating a larger buffer. Test the gethostname return value for
43944         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
43945         returns an error and ENAMETOOLONG isn't defined.
43946
43947 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43948
43949         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43950         dimension.
43951
43952 2000-07-04  Jim Meyering  <meyering@lucent.com>
43953
43954         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43955         of the deprecated AC_CHECKING.
43956
43957 2000-07-04  Jim Meyering  <meyering@lucent.com>
43958
43959         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43960         Reported by Bruno Haible.
43961
43962 2000-07-04  Jim Meyering  <meyering@lucent.com>
43963
43964         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43965         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
43966         lacks mbrtowc.
43967
43968 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43969
43970         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43971         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43972
43973 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43974         and Bruno Haible  <haible@clisp.cons.org>
43975
43976         * lib/quotearg.c (mbrtowc):
43977         Assign to *pwc, and return 1 only if result is nonzero.
43978         (iswprint): Use ISPRINT when substituting our own mbrtowc.
43979
43980 2000-07-03  Jim Meyering  <meyering@lucent.com>
43981
43982         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
43983
43984 2000-07-03  Jim Meyering  <meyering@lucent.com>
43985
43986         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
43987         This is necessary to get a definition of e.g., UTMP_FILE on
43988         HP-UX 10.20.
43989         From Bob Proulx.
43990
43991 2000-07-02  Jim Meyering  <meyering@lucent.com>
43992
43993         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
43994
43995         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
43996         AC_LIBOBJ(function_name).
43997         * m4/chown.m4: Likewise.
43998         * m4/fnmatch.m4: Likewise.
43999         * m4/ftruncate.m4: Likewise.
44000         * m4/getgroups.m4: Likewise.
44001         * m4/getline.m4: Likewise.
44002         * m4/group-member.m4: Likewise.
44003         * m4/jm-macros.m4: Likewise.
44004         * m4/lstat.m4: Likewise.
44005         * m4/malloc.m4: Likewise.
44006         * m4/memcmp.m4: Likewise.
44007         * m4/nanosleep.m4: Likewise.
44008         * m4/putenv.m4: Likewise.
44009         * m4/realloc.m4: Likewise.
44010         * m4/regex.m4: Likewise.
44011         * m4/stat.m4: Likewise.
44012         * m4/strftime.m4: Likewise.
44013
44014 2000-07-02  Jim Meyering  <meyering@lucent.com>
44015
44016         * lib/quotearg.c (mbstate_t): Don't define here.
44017
44018 2000-07-02  Jim Meyering  <meyering@lucent.com>
44019
44020         * lib/nanosleep.c (SIGCONT): Define if not already defined.
44021
44022 2000-07-01  Jim Meyering  <meyering@lucent.com>
44023
44024         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
44025
44026 2000-07-01  Jim Meyering  <meyering@lucent.com>
44027
44028         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
44029         problem.
44030
44031 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44032
44033         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
44034         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
44035
44036 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44037
44038         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
44039         per change in ../m4/ls-mntd-fs.m4.
44040         (read_filesystem_list): Ignore symbolic links.
44041
44042 2000-06-29  Jim Meyering  <meyering@lucent.com>
44043
44044         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
44045         for declaration of strcmp.
44046
44047         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
44048
44049         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
44050         Avoid warning by casting result to `char *' to remove `const'.
44051
44052 2000-06-28  Jim Meyering  <meyering@lucent.com>
44053
44054         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
44055         included by quotearg.c, for which we perform this test.  From
44056         Bruno Haible.
44057
44058 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44059
44060         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
44061         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
44062         <utmpx.h> exists, put readutmp.o into LIBOBJS.
44063
44064 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44065
44066         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
44067
44068 2000-06-26  Paul Eggert  <eggert@twinsun.com>
44069
44070         savedir now sets errno on failure and invokes xmalloc to get memory.
44071         Fix a couple of other minor bugs while we're at it.
44072
44073         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
44074         (NAMLEN): Remove macro.
44075         (malloc, realloc): Remove decls.
44076         (stpcpy): Likewise.
44077         ("xalloc.h"): Include.
44078         (NAME_SIZE_DEFAULT): New macro.
44079         (savedir): Use xmalloc / xrealloc to allocate memory.
44080         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
44081         Skip "" directory entries.
44082         Use strlen to calculate directory entry length, since the old method
44083         is rarely used these days and isn't worth supporting.
44084         Don't use a pointer after freeing it.
44085         Check for integer overflow when calculating allocation size.
44086         Use memcpy to copy entries, instead of stpcpy.
44087         Set errno properly when returning NULL.
44088         Check for readdir error.
44089
44090 2000-06-26  Jim Meyering  <meyering@lucent.com>
44091
44092         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
44093
44094 2000-06-25  Jim Meyering  <meyering@lucent.com>
44095
44096         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
44097         Linux header bug when _XOPEN_SOURCE is defined to 500.
44098
44099 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44100
44101         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
44102         deficiency.
44103
44104 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44105
44106         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
44107         Include xalloc.h.
44108         Don't include <stdlib.h>.  Don't declare malloc, realloc.
44109
44110 2000-06-24  Jim Meyering  <meyering@lucent.com>
44111
44112         * m4/strerror_r.m4: Revive this file -- to try out an experimental
44113         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44114         for which strerror does return char*, but which lacks a conveniently
44115         accessible declaration of the function.  If the compile-test says
44116         strerror_r doesn't work, then resort to a `run'-test that works on
44117         BeOS and segfaults on DEC Unix.
44118
44119 2000-06-24  Jim Meyering  <meyering@lucent.com>
44120
44121         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44122
44123 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44124
44125         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44126         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
44127
44128 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44129
44130         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44131         (mbrtowc, mbstate_t): Define substitutes if
44132         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44133         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44134         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44135
44136 2000-06-23  Jim Meyering  <meyering@lucent.com>
44137
44138         * m4/afs.m4: Add missing AC_MSG_RESULT.
44139         Reported by Bruno Haible.
44140
44141         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44142         Suggestion from Bruno Haible.
44143
44144 2000-06-23  Jim Meyering  <meyering@lucent.com>
44145
44146         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
44147
44148 2000-06-21  Jim Meyering  <meyering@lucent.com>
44149
44150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44151
44152 2000-06-21  Jim Meyering  <meyering@lucent.com>
44153
44154         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44155         (noinst_HEADERS): Add getstr.h.
44156
44157         * lib/getline.c (getstr): Move into a separate file.
44158         * lib/getstr.c (getstr): New file, extracted from getline.c, with
44159         the following changes: new parameter, delim2; both delim[12]
44160         parameters have type `int', not `char'.  The latter would lose
44161         with 8-bit delimiters.
44162         * lib/getstr.h: New file.
44163
44164 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44165
44166         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44167         than 1024, return a memory chunk of least possible size, instead
44168         of size PATH_MAX + 2. In the loop, increment the size proportionally.
44169         Use free/xmalloc instead of xrealloc to avoid copying for very long
44170         paths.
44171
44172 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44173
44174         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
44175         the empty string.
44176
44177 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44178
44179         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
44180         address, not strdup.  Include <stdlib.h> and don't declare free().
44181
44182 2000-06-19  Jim Meyering  <meyering@lucent.com>
44183
44184         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
44185
44186 2000-06-18  Jim Meyering  <meyering@lucent.com>
44187
44188         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
44189
44190         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
44191         `checking whether...' message to be consistent with that of the
44192         lstat test.
44193
44194 2000-06-18  Jim Meyering  <meyering@lucent.com>
44195
44196         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
44197         Besides, these days every porting target provides a mkdir function.
44198
44199         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
44200         needed. (this snippet comes from src/system.h).
44201
44202 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
44203
44204         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
44205
44206 2000-06-15  Paul Eggert  <eggert@twinsun.com>
44207
44208         * lib/human.c (adjust_value): New function.
44209         (human_readable_inexact): Apply rounding style even when
44210         printing approximate values.
44211
44212 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44213
44214         * lib/human.c (human_readable_inexact): Allow an input block
44215         size that is not a multiple of the output block size, and vice versa.
44216         Reported by Piergiorgio Sartor.
44217
44218 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44219
44220         * lib/getdate.y (get_date): Apply relative times after time
44221         zone indicator, not before.  Reported by Todd A. Jacobs.
44222
44223 2000-06-13  Jim Meyering  <meyering@lucent.com>
44224
44225         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
44226
44227         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
44228
44229 2000-06-12  Paul Eggert  <eggert@twinsun.com>
44230
44231         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
44232
44233 2000-06-12  Jim Meyering  <meyering@lucent.com>
44234
44235         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
44236         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
44237         optional argument.
44238         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
44239         the optional argument, `lib'.
44240
44241 2000-06-08  Jim Meyering  <meyering@lucent.com>
44242
44243         * m4/largefile.m4: Remove file (now that it's part of autoconf).
44244
44245 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44246
44247         Rewrite largefile configuration so that we don't need to run
44248         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
44249         AC_CANONICAL_HOST in configure.in -- jmm]
44250
44251         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44252         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44253         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44254         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44255         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44256         All uses changed.
44257         Instead of inspecting the output of getconf, try to compile the
44258         test program without and with the macro definition.
44259         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44260         for getconf.  Instead, check for the needed flags by compiling
44261         test programs.
44262
44263 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44264
44265         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44266
44267 2000-06-04  Jim Meyering  <meyering@lucent.com>
44268
44269         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44270         SunOS 4.1.4 for which gid_t is an unsigned type.
44271
44272 2000-06-03  Jim Meyering  <meyering@lucent.com>
44273
44274         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44275         now that autoconf requires that.
44276
44277         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44278         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44279         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44280
44281 2000-06-03  Jim Meyering  <meyering@lucent.com>
44282
44283         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44284
44285 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44286
44287         * m4/glibc21.m4: New file.
44288         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44289
44290 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44291
44292         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44293         newer, don't install charset.alias.
44294         * lib/config.charset: Change the Linux/glibc rules so they become empty
44295         on glibc-2.1 or newer.
44296
44297 2000-06-02  Jim Meyering  <meyering@lucent.com>
44298
44299         * lib/mountlist.c: Back out last change.  Instead, do this...
44300         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44301         me_dummy member using the same `ignore'-testing code.
44302         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44303         fs_type strings.
44304         From Mark D. Roth.
44305
44306 2000-05-29  Jim Meyering  <meyering@lucent.com>
44307
44308         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44309         mounts with the `ignore' attribute.  Based on a patch from
44310         Mark D. Roth.
44311
44312 2000-05-28  Jim Meyering  <meyering@lucent.com>
44313
44314         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44315         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44316         * m4/stat.m4: Likewise.
44317         * m4/lstat.m4: Likewise.
44318         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44319
44320         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44321         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44322
44323 2000-05-26  Jim Meyering  <meyering@lucent.com>
44324
44325         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44326
44327 2000-05-24  Jim Meyering  <meyering@lucent.com>
44328
44329         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44330         autoconf requires that.
44331         * m4/lib-check.m4: Likewise.
44332         * m4/jm-macros.m4: Likewise.
44333         * m4/strftime.m4: Likewise.
44334
44335         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44336         AC_CHECK_DECLS, now that autoconf requires that.
44337
44338 2000-05-22  Jim Meyering  <meyering@lucent.com>
44339
44340         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44341         * m4/lstat.m4: Likewise.
44342
44343 2000-05-22  Jim Meyering  <meyering@lucent.com>
44344
44345         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44346
44347 2000-05-20  Jim Meyering  <meyering@lucent.com>
44348
44349         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44350         (jm_PREREQ): Use it.
44351
44352 2000-05-18  Jim Meyering  <meyering@lucent.com>
44353
44354         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44355         back, too, since it may have been modified by allocate_entry.
44356         (hash_delete): Rewrite to use neither the assignment operator
44357         nor the comma operator in an if-expression.
44358
44359 2000-05-15  Paul Eggert  <eggert@twinsun.com>
44360
44361         * lib/closeout.c:
44362         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44363         Remove; no longer needed.
44364         "quotearg.h": Add include.
44365         (file_name): Do not bother to explicitly initialize to NULL; it's less
44366         efficient on some hosts.
44367         (close_stdout_status): Remove test as to whether stdout was already
44368         closed; it breaks for the case "echo x | sort >&-".
44369         Quote file name colons.
44370         Do not assume that _("write error") lacks format strings.
44371
44372 2000-05-15  Jim Meyering  <meyering@lucent.com>
44373
44374         * lib/version-etc.c (version_etc_copyright): Update the copyright
44375         string used in all --version output.
44376
44377 2000-05-14  Jim Meyering  <meyering@lucent.com>
44378
44379         * lib/closeout.c (close_stdout_set_file_name): New function.
44380         (close_stdout_status): Use new file-scoped global.
44381         Return right away if fstat says the stdout file descriptor is invalid.
44382         * lib/closeout.h (close_stdout_set_file_name): Declare.
44383
44384 2000-05-10  Jim Meyering  <meyering@lucent.com>
44385
44386         * lib/closeout.c [default_exit_status]: New file-scoped variable.
44387         (close_stdout_set_status): New function.
44388         * lib/closeout.h (close_stdout_set_status): Declare.
44389
44390 2000-05-09  Jim Meyering  <meyering@lucent.com>
44391
44392         * m4/gettext.m4: Rename this...
44393         * m4/libintl.m4: ...to this.
44394
44395 2000-05-08  Jim Meyering  <meyering@lucent.com>
44396
44397         * lib/long-options.c: Don't include closeout.h.
44398         (parse_long_options): Don't call close_stdout for --version.
44399
44400 2000-05-06  Paul Eggert  <eggert@twinsun.com>
44401
44402         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44403         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44404         2.1.3 bug.  This avoids a clash when files like regex.c define
44405         _GNU_SOURCE.
44406
44407 2000-05-06  Jim Meyering  <meyering@lucent.com>
44408
44409         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44410         (AC_REPLACE_FUNCS): Add strnlen.
44411
44412         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44413         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44414
44415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44416         AC_SEARCH_LIBS call for nanosleep.
44417         (LIB_NANOSLEEP): Set and AC_SUBST.
44418
44419 2000-05-06  Jim Meyering  <meyering@lucent.com>
44420
44421         * lib/strnlen.c: Undefine __strnlen and strnlen.
44422         [!weak_alias]: Define __strnlen to strnlen.
44423
44424         * lib/atexit.c: New file, from libiberty.
44425
44426 2000-05-06  Jim Meyering  <meyering@lucent.com>
44427
44428         * lib/closeout.c (close_stdout_status): Also check for errors on the
44429         stderr stream.
44430
44431 2000-05-05  Jim Meyering  <meyering@lucent.com>
44432
44433         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44434         AC_SEARCH_LIBS call for clock_gettime.
44435         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44436
44437         * m4/search-libs.m4: Update from autoconf.
44438
44439         su doesn't work on Solaris 2.6.
44440         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44441         <shadow.h>.  Reported by Dragos Harabor.
44442
44443 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
44444
44445         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44446         memcpy instead of xmalloc, xrealloc, path_concat.
44447         (locale_charset): Treat empty environment variables as absent.
44448         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44449
44450 2000-05-04  Jim Meyering  <meyering@lucent.com>
44451
44452         * lib/getopt.c: Update from glibc.
44453         * lib/obstack.c: Likewise.
44454         * lib/obstack.h: Likewise.
44455         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
44456         file
44457
44458         * lib/regex.h: Likewise.
44459         * lib/strndup.c: Likewise.
44460         * lib/strnlen.c: New file, from glibc.
44461
44462 2000-05-03  Jim Meyering  <meyering@lucent.com>
44463
44464         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44465
44466 2000-05-02  Paul Eggert  <eggert@twinsun.com>
44467
44468         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44469         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
44470         compile-time test, rather than inspecting host and OS, to
44471         decide whether to define _LARGEFILE_SOURCE.
44472
44473 2000-05-01  Jim Meyering  <meyering@lucent.com>
44474
44475         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44476
44477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44478         Based on a patch from Bruno Haible.
44479
44480 2000-05-01  Jim Meyering  <meyering@lucent.com>
44481
44482         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44483
44484 2000-04-29  Jim Meyering  <meyering@lucent.com>
44485
44486         * lib/path-concat.c: Declare strdup only if it's not defined.
44487         * lib/canon-host.c: Likewise.
44488
44489 2000-04-28  Jim Meyering  <meyering@lucent.com>
44490
44491         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44492         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
44493         is included first, then limits.h is included by locale.h by libintl.h.
44494         From John David Anglin.
44495
44496 2000-04-25  Jim Meyering  <meyering@lucent.com>
44497
44498         * lib/makepath.c (S_IRWXUGO): Define.
44499         (make_path): Always perform explicit chmod if MODE specifies any
44500         of the `special' permission bits.  Prompted by a bug report against
44501         install from Mate Wierdl and Joost van Baal.
44502
44503 2000-04-18  Jim Meyering  <meyering@lucent.com>
44504
44505         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44506         (jm_PREREQ): Use it.
44507
44508 2000-04-18  Jim Meyering  <meyering@lucent.com>
44509
44510         * lib/README: New file.
44511
44512         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44513         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
44514
44515 2000-04-17  Jim Meyering  <meyering@lucent.com>
44516
44517         Get it right :-)
44518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44519         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
44520         Suggestion from Akim Demaille.
44521
44522 2000-04-17  Jim Meyering  <meyering@lucent.com>
44523
44524         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44525         the definition of it to rpl_strftime also defined-away the system's
44526         declaration.
44527
44528 2000-04-15  Jim Meyering  <meyering@lucent.com>
44529
44530         Use `C' to denote so-called `contiguous' files, the same way
44531         that tar does.
44532         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44533         (ftypelet): Use S_ISCTG.
44534         From Michael Deutschmann.
44535
44536 2000-04-14  Jim Meyering  <meyering@lucent.com>
44537
44538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44539         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
44540         clobbered.
44541
44542 2000-04-14  Jim Meyering  <meyering@lucent.com>
44543
44544         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44545
44546 2000-04-13  Jim Meyering  <meyering@lucent.com>
44547
44548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44549         AH_VERBATIM to insert required #ifndef into config.h.in.
44550         Suggestion from Akim Demaille.
44551
44552 2000-04-12  Jim Meyering  <meyering@lucent.com>
44553
44554         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44555         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
44556         Christian Krackowizer.
44557
44558         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44559         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44560         (AC_SYS_LARGEFILE): Require.
44561         (AM_C_PROTOTYPES): Require.
44562
44563 2000-04-08  Jim Meyering  <meyering@lucent.com>
44564
44565         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44566         names don't conflict.  Reported by Eli Zaretskii.
44567
44568 2000-04-07  Jim Meyering  <meyering@lucent.com>
44569
44570         * lib/putenv.c: Move inclusion of errno.h so it follows that of
44571         sys/types.h, to work around system header problems on AIX 3.2.5.
44572         From Bruno Haible.
44573
44574 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
44575
44576         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44577         bug.  Deal with the different error behavior of Irix iconv.
44578
44579 2000-04-05  Paul Eggert  <eggert@twinsun.com>
44580
44581         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44582         IRIX if the installer said otherwise.
44583
44584 2000-04-05  Jim Meyering  <meyering@lucent.com>
44585
44586         Portability tweaks required for ultrix4.3.
44587         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44588         (jm_CHECK_DECLS): Add getutent to the list of functions.
44589         (_jm_DECL_HEADERS): Add utmpx.h.
44590         From John David Anglin.
44591
44592         * m4/strftime.m4: Back out the 2000-04-02 change.
44593         Instead of that change, simply undefine putenv in the test program.
44594
44595 2000-04-05  Jim Meyering  <meyering@lucent.com>
44596
44597         Portability tweaks required for ultrix4.3.
44598         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44599         getutent.
44600         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44601         * lib/canon-host.c: Declare strdup.
44602         * lib/path-concat.c: Likewise.
44603         From John David Anglin.
44604
44605 2000-04-04  Jim Meyering  <meyering@lucent.com>
44606
44607         Be more DOS 8.3-friendly.
44608         * lib/ref-add.sin: Renamed from ref-add.sed.in.
44609         * lib/ref-del.sin: Renamed from ref-del.sed.in.
44610         * lib/Makefile.am: Reflect renaming.
44611         Reported by Eli Zaretskii.
44612
44613         Use a temporary file name that won't clash with `charset.alias'
44614         in the DOS 8.3 name space.
44615         * lib/Makefile.am (charset_tmp): Define.
44616         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44617         (uninstall-local): Likewise.
44618         Reported by Eli Zaretskii.
44619
44620 2000-04-03  Jim Meyering  <meyering@lucent.com>
44621
44622         * m4/gettext.m4: Fix typo in comment.
44623
44624         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44625         textutils/configure.in).  Suggestion from Paul Eggert.
44626         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
44627
44628 2000-04-02  Paul Eggert  <eggert@twinsun.com>
44629
44630         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44631         variable in the shell rather than using putenv, which isn't
44632         portable.  This avoids the configure-time inter-test dependency
44633         on the potentially-renamed putenv function.
44634
44635 2000-03-30  Paul Eggert  <eggert@twinsun.com>
44636
44637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44638         before checking struct stat.st_blksize, so that
44639         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44640
44641 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44642
44643         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44644         since strftime.c uses HAVE_STRFTIME to decide whether to use
44645         the underlying strftime.
44646
44647 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44648
44649         * lib/time/strftime.c (my_strftime): Make sure we call the system
44650         strftime, not ourselves, when invoking the underlying strftime.
44651
44652 2000-03-24  Jim Meyering  <meyering@lucent.com>
44653
44654         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44655         (charset_alias): Define.
44656         (install-exec-local): Factor out common code.
44657         (uninstall-local): Split lines longer than 80.
44658         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44659         (SUFFIXES): Define.
44660         (.sed.in.sed): New rule.  Don't redirect directly to $@.
44661         (CLEANFILES): Add ref-add.sed and ref-del.sed.
44662
44663 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
44664
44665         * lib/config.charset: Output a line containing "Packages using this
44666         file".
44667         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44668         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44669         ref-del.sed): New rules.
44670
44671 2000-03-17  Jim Meyering  <meyering@lucent.com>
44672
44673         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44674         Otherwise, include <strings.h>
44675
44676 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
44677
44678         * lib/unicodeio.c (utf8_wctomb): New function.
44679         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44680         format instead of in UCS-4 with platform dependent endianness.
44681
44682 2000-03-10  Jim Meyering  <meyering@lucent.com>
44683
44684         * m4/lib-check.m4: Look for getspnam in -lgen, too.
44685         From Marco Franzen.
44686
44687 2000-03-07  Paul Eggert  <eggert@twinsun.com>
44688
44689         * lib/savedir.c (savedir): Work even if directory size is
44690         negative; this can happen with some screwy NFS configurations.
44691
44692 2000-03-06  Jim Meyering  <meyering@lucent.com>
44693
44694         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44695         if it's NULL (because we ran out of memory).  From Bruno Haible.
44696
44697 2000-03-05  Jim Meyering  <meyering@lucent.com>
44698
44699         * lib/localcharset.c ("path-concat.h"): Include.
44700         (get_charset_aliases): Use path_concat instead of ANSI string
44701         concatenation.
44702
44703         * lib/unicodeio.h (PARAMS): Define.
44704         Use it to guard prototype.
44705
44706 2000-03-04  Jim Meyering  <meyering@lucent.com>
44707
44708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44709         for lib/localcharset.c.
44710
44711 2000-03-04  Jim Meyering  <meyering@lucent.com>
44712
44713         * lib/Makefile.am (install-exec-local): Create $(libdir) before
44714         installing into it.
44715         (uninstall-local): Uncomment this rule so `make distcheck' works
44716         once again.
44717
44718         * lib/unicodeio.c (<errno.h>): Include it.
44719         (errno): Declare if not defined.
44720
44721         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44722
44723         * lib/config.charset: New version, incorporating remarks from a linux
44724         i18n mailing list.  From Bruno Haible.
44725
44726 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
44727
44728         * m4/codeset.m4: New file.
44729         * m4/iconv.m4: New file.
44730         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44731
44732 2000-03-03  Jim Meyering  <meyering@lucent.com>
44733
44734         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44735
44736 2000-03-02  Jim Meyering  <meyering@lucent.com>
44737
44738         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44739         the messages come out on separate lines.
44740
44741         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44742         rather than jm_CHECK_DECLARATIONS.
44743         * m4/decl.m4: Remove now-unused file.
44744
44745         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44746         geteuid.
44747
44748 2000-03-02  Jim Meyering  <meyering@lucent.com>
44749
44750         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44751
44752 2000-03-01  Jim Meyering  <meyering@lucent.com>
44753
44754         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44755         * lib/unicodeio.c: Likewise.
44756
44757 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
44758
44759         * lib/config.charset: New file.
44760         * lib/localcharset.c: New file.
44761         * lib/unicodeio.h, lib/unicodeio.c: New files.
44762         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44763         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44764         (noinst_HEADERS): Add unicodeio.h.
44765         (all-local, install-exec-local, charset.alias): New targets.
44766
44767 2000-02-28  Paul Eggert  <eggert@twinsun.com>
44768
44769         * lib/quotearg.c (ALERT_CHAR): New macro.
44770         (quotearg_buffer_restyled): Use it.
44771
44772 2000-02-27  Jim Meyering  <meyering@lucent.com>
44773
44774         * m4/check-decl.m4: Add getenv to the list.
44775
44776 2000-02-27  Jim Meyering  <meyering@lucent.com>
44777
44778         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44779         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44780
44781         * lib/backupfile.c: Guard inclusion of stdlib.h with
44782         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44783         Declare malloc if needed.
44784
44785         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44786         `#ifndef HAVE_DECL..'
44787         now that autoconf always defines the HAVE_DECL_ symbols.
44788         * lib/human.c: Likewise.
44789         * lib/same.c: Likewise.
44790         * lib/strtoumax.c: Likewise.
44791
44792         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44793         declaration check was not run.
44794         * lib/hash.c: Likewise.
44795         * lib/human.c: Likewise.
44796         * lib/same.c: Likewise.
44797         * lib/strtoumax.c: Likewise.
44798
44799         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44800         `.', then first look up the entire `.'-containing string as a login
44801         name.
44802
44803 2000-02-23  Jim Meyering  <meyering@lucent.com>
44804
44805         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44806         in place of my hack.
44807
44808 2000-02-18  Paul Eggert  <eggert@twinsun.com>
44809
44810         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44811         (textint): New typedef.
44812         (parser_control): Member year changed from int to textint.
44813         All uses changed.
44814         (YYSTYPE): Removed; replaced by %union with int and textint members.
44815         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44816         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44817         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44818         (tSNUMBER, tUNUMBER): Now of type <textintval>.
44819         (date, number, to_year): Use width of number in digits, not its value,
44820         to determine whether it's a 2-digit year, or a 2-digit time.
44821         (yylex): Store number of digits of numeric tokens.
44822         Reported by John Kendall.
44823
44824         (parser_control): Changed from struct parser_control to typedef (for
44825         consistency).  All uses changed.
44826
44827         (tID): Removed; not used.
44828         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44829
44830 2000-02-14  Paul Eggert  <eggert@twinsun.com>
44831
44832         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44833         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44834
44835 2000-02-12  Jim Meyering  <meyering@lucent.com>
44836
44837         * lib/userspec.c (ISDIGIT): Define it.
44838         (isdigit): Remove definition.
44839         (is_number): Use ISDIGIT, not isdigit.
44840         <libintl.h>: Include.
44841         (_ and N_): Define.
44842         (parse_user_spec): Mark translatable strings.
44843
44844 2000-02-10  Jim Meyering  <meyering@lucent.com>
44845
44846         With these changes, nanosleep.[ch] are finally enough like the other
44847         lib/* replacement files to compile on a few more losing systems.
44848
44849         * lib/nanosleep.h: Don't include config.h.
44850         Remove prototype from declaration of nanosleep.
44851         (PARAMS): Remove now-unneeded definition.
44852         * lib/nanosleep.c: #undef nanosleep.
44853         (rpl_nanosleep): Rename from nanosleep.
44854
44855 2000-02-10  Jim Meyering  <meyering@lucent.com>
44856
44857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44858         gnu_nanosleep to rpl_nanosleep.
44859
44860 2000-02-09  Jim Meyering  <meyering@lucent.com>
44861
44862         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44863         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
44864
44865 2000-02-08  Akim Demaille  <akim@epita.fr>
44866
44867         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44868         `[' and `]' and remove uses of `changequote'.
44869         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44870         (AC_SYS_LARGEFILE): Likewise.
44871         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44872         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44873         of changequote.
44874         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44875         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44876         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44877         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44878
44879 2000-02-05  Jim Meyering  <meyering@lucent.com>
44880
44881         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44882         Remove explicit use of AC_HEADER_TIME.  It is required by
44883         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
44884         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44885         in autoconf whereby the expansion of the latter ended up preceding
44886         the expansion of its prerequisite, AC_HEADER_TIME.
44887         Reported by Volker Borchert.
44888
44889 2000-02-03  Jim Meyering  <meyering@lucent.com>
44890
44891         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44892
44893 2000-02-03  Jim Meyering  <meyering@lucent.com>
44894
44895         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44896         rather than with `#if HAVE_UTMPNAME'.
44897
44898 2000-02-02  Jim Meyering  <meyering@lucent.com>
44899
44900         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44901         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44902         Reported by Eli Zaretskii.
44903
44904 2000-02-01  Jim Meyering  <meyering@lucent.com>
44905
44906         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
44907
44908 2000-01-31  Jim Meyering  <meyering@lucent.com>
44909
44910         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44911         functions.  Add the time.h and sys/time.h headers along with the
44912         AC_REQUIRE'ment of AC_HEADER_TIME.
44913
44914 2000-01-31  Jim Meyering  <meyering@lucent.com>
44915
44916         * lib/nanosleep.h (nanosleep): Guard declaration with
44917         `#if ! HAVE_DECL_NANOSLEEP'.
44918         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44919         the declaration in that vendor's sys/timers.h.
44920         Reported by Christian Krackowizer.
44921
44922         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44923         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44924         (ISPRINT): Likewise.
44925         Reported by Tom Tromey.
44926
44927 2000-01-30  Jim Meyering  <meyering@lucent.com>
44928
44929         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44930
44931         * m4/prereq.m4 (utmp_includes): Define.
44932         Check for ut_user and ut_name members in both struct utmpx
44933         and struct utmp.
44934
44935 2000-01-30  Jim Meyering  <meyering@lucent.com>
44936
44937         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44938         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
44939         header files where only utmpx.ut_user is declared.
44940
44941         * lib/readutmp.h (UT_USER): Define.
44942
44943 2000-01-29  Jim Meyering  <meyering@lucent.com>
44944
44945         * m4/lib-check.m4: New file containing library-related checks from
44946         fileutils and sh-utils (textutils had none).
44947
44948 2000-01-28  Jim Meyering  <meyering@lucent.com>
44949
44950         * m4/perl.m4: Change format of warning message to look more like that
44951         from the missing script.  Suggestion from François Pinard.
44952
44953 2000-01-25  Jim Meyering  <meyering@lucent.com>
44954
44955         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44956         well as time.h in the compile check.
44957         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44958         Fix typo in cross-compiling case: s/yes/no/.
44959
44960 2000-01-23  Jim Meyering  <meyering@lucent.com>
44961
44962         * m4/jm-macros.m4: Move df-related tests here from
44963         fileutils/configure.in
44964
44965         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44966         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44967
44968         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
44969         s/space/ac_fsusage_space/.
44970         (jm_FILE_SYSTEM_USAGE): Take two parameters.
44971
44972         * m4/ftruncate.m4: New file (derived from part of
44973         fileutils/configure.in).
44974         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
44975         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
44976
44977         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
44978         AC_SUBST these here, rather than just in sh-util/configure.in, so
44979         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
44980         all the same.
44981         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
44982         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
44983         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
44984         (AC_SUBST(POW_LIBM)): Likewise.
44985         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
44986
44987 2000-01-23  Jim Meyering  <meyering@lucent.com>
44988
44989         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
44990         obstack.c.
44991
44992 2000-01-22  Jim Meyering  <meyering@lucent.com>
44993
44994         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
44995
44996         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
44997
44998         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
44999         configure.in
45000         (AC_CHECK_HEADERS): Likewise for sh-utils.
45001         (AC_CHECK_HEADERS): Likewise for textutils.
45002         Merge the three lists of headers.
45003
45004         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
45005         from fileutils' configure.in.
45006
45007         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
45008         code. Moved tests into their own function (_jm_DECL_HEADERS) in
45009         check-decl.m4.
45010
45011         * m4/check-decl.m4: Use #if rather than #ifdef.
45012         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
45013         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
45014         (_jm_DECL_HEADERS): Define new function.
45015         (jm_CHECK_DECLARATIONS): Require it.
45016
45017 2000-01-22  Jim Meyering  <meyering@lucent.com>
45018
45019         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
45020         [! HAVE_DECL_STRTOULL]: Declare strtoull.
45021         Required for some AIX systems.  Reported by Christian Krackowizer.
45022         [TESTING] (main): New function.
45023
45024         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
45025         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
45026         letters.
45027
45028         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
45029         iswprint.
45030
45031         * lib/strverscmp.c (ISDIGIT): Define.
45032         (strverscmp): Use ISDIGIT, not isdigit.
45033
45034 2000-01-19  Jim Meyering  <meyering@lucent.com>
45035
45036         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
45037         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
45038         defines `struct timespec' in <sys/time.h>
45039
45040         * m4/c-bs-a.m4: Remove uses of changequote altogether.
45041         Thanks to Akim for explaining.
45042
45043 2000-01-17  Paul Eggert  <eggert@twinsun.com>
45044
45045         * lib/nanosleep.c (nanosleep):
45046         Don't use SA_INTERRUPT to decide whether to call sigaction, as
45047         POSIX.1 doesn't require SA_INTERRUPT and some systems
45048         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
45049         it's been part of POSIX.1 since day 1 (in 1988).
45050
45051 2000-01-17  Jim Meyering  <meyering@lucent.com>
45052
45053         * lib/interlock: Remove unused file.  Reported by François Pinard.
45054
45055 2000-01-16  Paul Eggert  <eggert@twinsun.com>
45056
45057         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
45058         alert, backslash, formfeed, and vertical tab unnecessarily in
45059         shell quoting style.
45060
45061 2000-01-16  Jim Meyering  <meyering@lucent.com>
45062
45063         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
45064         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
45065         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
45066         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
45067
45068 2000-01-16  Jim Meyering  <meyering@lucent.com>
45069
45070         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
45071         because the latter didn't work.
45072
45073 2000-01-15  Jim Meyering  <meyering@lucent.com>
45074
45075         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
45076         (AC_REPLACE_FUNCS): Add memcpy and memset.
45077         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
45078         Add strpbrk.
45079         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
45080
45081 2000-01-12  Jim Meyering  <meyering@lucent.com>
45082
45083         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
45084         (jm_PREREQ): Use it.
45085         (jm_PREREQ_READUTMP): New macro.
45086         (jm_PREREQ): Use it.
45087
45088 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45089
45090         Quote multibyte characters correctly.
45091         * m4/c-bs-a.m4: New file.
45092         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
45093         (jm_PREREQ): Use it.
45094
45095 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45096
45097         * m4/uintmax_t.m4: Port to autoconf 2.13.
45098
45099 2000-01-08  Jim Meyering  <meyering@ascend.com>
45100
45101         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
45102         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
45103
45104 2000-01-04  Jim Meyering  <meyering@ascend.com>
45105
45106         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
45107         jm_STRUCT_DIRENT_D_TYPE.
45108         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
45109         jm_STRUCT_DIRENT_D_INO.
45110         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
45111         jm_STRUCT_UTIMBUF.
45112         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45113         renamings.
45114         * m4/utime.m4: Likewise.
45115
45116         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45117         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45118
45119 2000-01-03  Paul Eggert  <eggert@twinsun.com>
45120
45121         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45122         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45123
45124 2000-01-02  Jim Meyering  <meyering@ascend.com>
45125
45126         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
45127         remember if this is necessary.
45128
45129 1999-12-26  Jim Meyering  <meyering@ascend.com>
45130
45131         * m4/jm-macros.m4: Use it here.
45132         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45133
45134 1999-12-23  Jim Meyering  <meyering@ascend.com>
45135
45136         * m4/jm-macros.m4: Check for clock_gettime (moved from
45137         fileutils/configure.in)
45138         Check for gettimeofday.
45139
45140 1999-12-20  Jim Meyering  <meyering@ascend.com>
45141
45142         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45143         autoconf-2.14a-1999-12-20.
45144
45145 1999-12-19  Jim Meyering  <meyering@ascend.com>
45146
45147         * m4/lstat-slash.m4: New file.
45148         * m4/jm-macros.m4: Use the new macro:
45149         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45150
45151 1999-12-07  Jim Meyering  <meyering@ascend.com>
45152
45153         * m4/perl.m4: Require that File::Compare be available, too.
45154         Too many systems seem to lack it.
45155
45156         * m4/strftime.m4: Add checks for most of the cpp macros tested in
45157         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
45158
45159 1999-11-18  Paul Eggert  <eggert@twinsun.com>
45160
45161         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45162         problem with the QNX 4.25 shell, which doesn't propagate exit
45163         status of failed commands inside shell assignments.
45164
45165 1999-11-17  Jim Meyering  <meyering@ascend.com>
45166
45167         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45168
45169 1999-11-07  Jim Meyering  <meyering@ascend.com>
45170
45171         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45172
45173 1999-11-06  Jim Meyering  <meyering@ascend.com>
45174
45175         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
45176         * m4/jm-macros.m4 (jm_MACROS): Use it here.
45177
45178 1999-11-05  Jim Meyering  <meyering@ascend.com>
45179
45180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
45181         configure.in of textutils, fileutils, and sh-utils into this one
45182         (shared between those packages) file.
45183         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
45184         AC_STRUCT_ST_BLKSIZE.
45185
45186 1999-11-03  Jim Meyering  <meyering@ascend.com>
45187
45188         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
45189         of AC_CHECK_TYPE checks includes unistd.h.
45190         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
45191         Suggestion from Akim Demaille.
45192
45193 1999-10-30  Jim Meyering  <meyering@ascend.com>
45194
45195         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
45196         m4-quoted string.
45197         * m4/ls-mntd-fs.m4: Likewise.
45198         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
45199         * m4/jm-winsz1.m4: Likewise.
45200
45201         * m4/const.m4: Remove file, since the fix made it into the experimental
45202         version of autoconf.
45203         * m4/mktime.m4: Likewise.
45204
45205         * m4/check-type.m4: Remove file, now that the latest version of
45206         AC_CHECK_TYPE takes a third arg to specify additional #includes.
45207
45208         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
45209         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
45210         AC_CHECK_TYPE.
45211
45212 1999-10-04  Jim Meyering  <meyering@ascend.com>
45213
45214         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
45215
45216 1999-09-22  Paul Eggert  <eggert@twinsun.com>
45217
45218         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
45219         2.95.1 bug with HP-UX 10.20.
45220
45221 1999-09-17  Jim Meyering  <meyering@ascend.com>
45222
45223         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
45224         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
45225         due to missing strdup (against sh-utils-2.0).
45226
45227 1999-08-29  Jim Meyering  <meyering@ascend.com>
45228
45229         * m4/jm-macros.m4: Require jm_BISON.
45230         * m4/bison.m4: New file.
45231
45232 1999-08-17  Paul Eggert  <eggert@twinsun.com>
45233
45234         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
45235         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
45236
45237 1999-08-05  Jim Meyering  <meyering@ascend.com>
45238
45239         * m4/getline.m4: Rename test file from conftestdata to conftest.data
45240         to avoid conflicts with `conftest' on 8+3 filesystems.
45241         Suggestion from Eli Zaretskii.
45242
45243 1999-08-04  Jim Meyering  <meyering@ascend.com>
45244
45245         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
45246         fileutils and sh-utils (textutils's getline test was inadequate).
45247         (AM_FUNC_GETLINE): Run this test.
45248         (AC_CHECK_FUNCS): Check for getdelim.
45249         Reported by Bob Proulx.
45250
45251 1999-08-02  Jim Meyering  <meyering@ascend.com>
45252
45253         * m4/jm-macros.m4: Add a comment.
45254
45255 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45256
45257         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45258         <inttypes.h> defines strtoumax as a macro (and not as a
45259         function).
45260
45261 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45262
45263         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45264         that we can shift, multiply and divide unsigned long long
45265         values; Ultrix cc can't do it.
45266
45267 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45268
45269         * m4/mktime.m4: New file, which is a preview of what should appear
45270         in the next public autoconf release.
45271
45272 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45273
45274         * m4/lfs.m4: Remove this file.
45275         * m4/largefile.m4: New file.  It contains the old contents of
45276         lfs.m4, except that all names with prefix AC_LFS have been
45277         changed to use the prefix AC_SYS_LARGEFILE instead, to be
45278         compatible with future autoconf versions.  Also, some minor m4
45279         quoting problems have been fixed.
45280
45281 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45282
45283         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45284         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45285         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45286         and simplify the shell code.
45287
45288 1999-08-01  Jim Meyering  <meyering@ascend.com>
45289
45290         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45291         m4.
45292
45293 1999-07-20  Jim Meyering  <meyering@ascend.com>
45294
45295         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45296
45297 1999-07-15  Jim Meyering  <meyering@ascend.com>
45298
45299         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45300
45301 1999-05-22  Jim Meyering  <meyering@ascend.com>
45302
45303         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45304
45305 1999-05-20  Jim Meyering  <meyering@ascend.com>
45306
45307         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45308         Add a colon after each `then' in case $4 is empty.
45309
45310 1999-05-16  Jim Meyering  <meyering@ascend.com>
45311
45312         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45313
45314 1999-05-10  Jim Meyering  <meyering@ascend.com>
45315
45316         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45317
45318         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45319         AC_FUNC_MKTIME.
45320
45321 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
45322
45323         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45324
45325 1999-05-04  Paul Eggert  <eggert@twinsun.com>
45326
45327         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45328         not CPPFLAGS, so that linking works correctly in IRIX.
45329
45330 1999-04-30  Paul Eggert  <eggert@twinsun.com>
45331
45332         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45333
45334 1999-04-20  Paul Eggert  <eggert@twinsun.com>
45335
45336         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45337         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45338         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45339         jm_AC_TYPE_UNSIGNED_LONG_LONG.
45340         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45341
45342         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
45343
45344 1999-04-20  Jim Meyering  <meyering@ascend.com>
45345
45346         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45347         AC_REPLACE xstroull if necessary.  From Paul Eggert.
45348         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45349
45350 1999-04-18  Jim Meyering  <meyering@ascend.com>
45351
45352         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45353         * m4/jm-macros.m4: Use it.
45354
45355 1999-04-06  Jim Meyering  <meyering@ascend.com>
45356
45357         * m4/strftime.m4: Remove test for %f.
45358
45359 1999-03-29  Jim Meyering  <meyering@ascend.com>
45360
45361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45362         superset of the AC_TYPE_* checks in the textutils, fileutils,
45363         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
45364         AC_TYPE_PID_T.
45365
45366 1999-03-28  Jim Meyering  <meyering@ascend.com>
45367
45368         * m4/jm-macros.m4: Define GNU_PACKAGE here.
45369         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45370         replaced e.g., in the *.sh files of the sh-utils.
45371
45372 1999-03-20  Jim Meyering  <meyering@ascend.com>
45373
45374         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45375         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45376         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
45377
45378 1999-03-19  Jim Meyering  <meyering@ascend.com>
45379
45380         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45381
45382 1999-03-12  Jim Meyering  <meyering@ascend.com>
45383
45384         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45385
45386 1999-03-07  Jim Meyering  <meyering@ascend.com>
45387
45388         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45389         declared.
45390
45391 1999-02-17  Jim Meyering  <meyering@ascend.com>
45392
45393         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45394         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
45395
45396 1999-02-07  Jim Meyering  <meyering@ascend.com>
45397
45398         * m4/group-member.m4: New file -- extracted from sh-utils'
45399         configure.in.
45400
45401         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
45402         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45403
45404 1999-02-06  Jim Meyering  <meyering@ascend.com>
45405
45406         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45407         * m4/fnmatch.m4: Likewise.
45408         * m4/getgroups.m4: Likewise.
45409         * m4/lstat.m4: Likewise.
45410         * m4/malloc.m4: Likewise.
45411         * m4/putenv.m4: Likewise.
45412         * m4/realloc.m4: Likewise.
45413         * m4/regex.m4: Likewise.
45414         * m4/stat.m4: Likewise.
45415         * m4/strftime.m4: Likewise.
45416         Suggestion from Alain Magloire.
45417
45418         * m4/chown.m4: Use `.$ac_objext', not `.o'.
45419         * m4/fnmatch.m4: Likewise.
45420         * m4/getgroups.m4: Likewise.
45421         * m4/getline.m4: Likewise.
45422         * m4/lstat.m4: Likewise.
45423         * m4/malloc.m4: Likewise.
45424         * m4/memcmp.m4: Likewise.
45425         * m4/putenv.m4: Likewise.
45426         * m4/realloc.m4: Likewise.
45427         * m4/regex.m4: Likewise.
45428         * m4/stat.m4: Likewise.
45429         * m4/strftime.m4: Likewise.
45430         Suggestion from Alain Magloire.
45431
45432         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45433         an argument.
45434
45435         * m4/regex.m4: Add a run-time Test for proper operation of
45436         re_compile_pattern.
45437
45438 1999-01-31  Jim Meyering  <meyering@ascend.com>
45439
45440         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45441
45442 1999-01-30  Jim Meyering  <meyering@ascend.com>
45443
45444         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45445
45446         * m4/jm-mktime.m4: Make this a wrapper around the official
45447         AM_FUNC_MKTIME rather than my private copy, now that the official one
45448         is up to date.
45449         * m4/mktime.m4: Remove file.
45450
45451         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45452         * m4/uptime.m4: Likewise.
45453         * m4/uintmax_t.m4: Likewise.
45454
45455 1999-01-28  Jim Meyering  <meyering@ascend.com>
45456
45457         * m4/jm-macros.m4: Use jm_AFS.
45458         * m4/afs.m4: New file (from fileutils' configure.in).
45459
45460         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45461         * m4/chown.m4: Likewise.
45462         * m4/d-ino.m4: Likewise.
45463         * m4/d-type.m4: Likewise.
45464         * m4/fnmatch.m4: Likewise.
45465         * m4/getgroups.m4: Likewise.
45466         * m4/gettext.m4: Likewise.
45467         * m4/jm-mktime.m4: Likewise.
45468         * m4/jm-winsz2.m4: Likewise.
45469         * m4/lcmessage.m4: Likewise.
45470         * m4/ls-mntd-fs.m4: Likewise.
45471         * m4/malloc.m4: Likewise.
45472         * m4/memcmp.m4: Likewise.
45473         * m4/putenv.m4: Likewise.
45474         * m4/realloc.m4: Likewise.
45475         * m4/st_mtim.m4: Likewise.
45476         * m4/strftime.m4: Likewise.
45477
45478 1999-01-16  Jim Meyering  <meyering@ascend.com>
45479
45480         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45481         (ARGMATCH_DIE_DECL): Define.
45482
45483 1999-01-12  Jim Meyering  <meyering@ascend.com>
45484
45485         * m4/Makefile.am.in: Rewrite to avoid using fmt.
45486         Reported by Lars Hecking.
45487
45488 1999-01-10  Jim Meyering  <meyering@ascend.com>
45489
45490         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45491         gross kludge.
45492         * m4/inttypes_h.m4: Likewise.
45493         * m4/lstat.m4: Likewise.
45494         * m4/malloc.m4: Likewise.
45495         * m4/readdir.m4: Likewise.
45496         * m4/realloc.m4: Likewise.
45497         * m4/st_dm_mode.m4: Likewise.
45498         * m4/stat.m4: Likewise.
45499         * m4/utimbuf.m4: Likewise.
45500         * m4/utimes.m4: Likewise.
45501
45502         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45503         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
45504         comments in config.h.in are meaningful.
45505
45506         * m4/jm-macros.m4: Require autoconf-2.13 here.
45507
45508         * m4/regex.m4: By default, don't use the included regex.c on systems
45509         with glibc 2.  Suggestion from Uli Drepper.
45510
45511 1999-01-02  Jim Meyering  <meyering@ascend.com>
45512
45513         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45514
45515 1998-12-18  Jim Meyering  <meyering@ascend.com>
45516
45517         * m4/Makefile.am.in (Makefile.am): Simplify rule.
45518         Based on a suggestion from Lars Hecking.
45519
45520 1998-11-16  Paul Eggert  <eggert@twinsun.com>
45521
45522         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45523
45524 1998-11-16  Jim Meyering  <meyering@ascend.com>
45525
45526         * m4/lfs.m4: Double-quote the `uname...` expression.
45527
45528 1998-11-14  Jim Meyering  <meyering@ascend.com>
45529
45530         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
45531         * m4/stat.m4: Likewise.
45532
45533 1998-11-03  Jim Meyering  <meyering@ascend.com>
45534
45535         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45536         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45537
45538 1998-10-18  Jim Meyering  <meyering@ascend.com>
45539
45540         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45541
45542 1998-10-17  Jim Meyering  <meyering@ascend.com>
45543
45544         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45545         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45546         calls for those previously hard-coded headers.  Instead, take a new
45547         parameter.
45548         (jm_CHECK_DECLARATIONS): Reflect interface change.
45549         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45550         (jm_CHECK_DECL_LOCALTIME_R): New macro.
45551
45552         * m4/mktime.m4: Test for spring-forward gap before long-running test.
45553
45554 1998-10-14  Jim Meyering  <meyering@ascend.com>
45555
45556         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45557         instead of "TZ=America/Vancouver".  From Paul Eggert.
45558
45559 1998-10-11  Jim Meyering  <meyering@ascend.com>
45560
45561         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45562         This adds a test for a recently added compatibility fix for mktime.c.
45563         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45564
45565 1998-09-27  Jim Meyering  <meyering@ascend.com>
45566
45567         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45568
45569         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
45570         ../configure.in, including a change from Gordon Matzigkeit to allow
45571         cross-compiling for the Hurd.
45572
45573         * m4/glibc.m4: New file/macro to test for the GNU C Library
45574         versions 1 and 2.  From Gordon Matzigkeit.
45575         Indent.
45576
45577 1998-09-21  Jim Meyering  <meyering@ascend.com>
45578
45579         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
45580
45581 1998-08-18  Paul Eggert  <eggert@twinsun.com>
45582
45583         Port nanosecond-resolution times to UnixWare 2.1.2 and
45584         pedantic Solaris 2.6.
45585
45586         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45587         AC_STRUCT_ST_MTIM.
45588         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45589         Generate name of ns member, instead of just 1 or undef.
45590         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45591
45592 1998-08-15  Jim Meyering  <meyering@ascend.com>
45593
45594         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45595         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
45596         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45597         instead of jm_TYPE_SSIZE_T.
45598
45599 1998-08-12  Jim Meyering  <meyering@ascend.com>
45600
45601         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
45602
45603 1998-08-02  Jim Meyering  <meyering@ascend.com>
45604
45605         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45606         in acconfig.h manually.
45607
45608 1998-07-31  Paul Eggert  <eggert@twinsun.com>
45609
45610         * m4/st_mtim.m4: New file.
45611
45612 1998-07-28  Jim Meyering  <meyering@ascend.com>
45613
45614         * m4/utimes.m4: Undef stat.
45615
45616 1998-07-25  Jim Meyering  <meyering@ascend.com>
45617
45618         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45619         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45620
45621 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
45622
45623         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45624         uid and gid actually remain unchanged.
45625
45626 1998-07-07  Jim Meyering  <meyering@ascend.com>
45627
45628         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45629
45630 1998-07-04  Jim Meyering  <meyering@ascend.com>
45631
45632         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
45633         to prove that this macro can be used in packages without regex.c.
45634
45635 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
45636
45637         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45638         is to be used.
45639
45640 1998-07-03  Jim Meyering  <meyering@ascend.com>
45641
45642         * m4/gettext.m4: Add -lintl if it's found to be necessary.
45643
45644         * m4/gettext.m4: New file -- from gettext-0.10.35.
45645         * m4/lcmessage.m4: Likewise.
45646         * m4/progtest.m4: Likewise.
45647
45648         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45649         * m4/jm-macros.m4: Require the new macro.
45650
45651 1998-06-29  Jim Meyering  <meyering@ascend.com>
45652
45653         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
45654         for the definition of NGROUPS (used in a system header included
45655         by sys/mount.h).
45656
45657 1998-06-28  Jim Meyering  <meyering@ascend.com>
45658
45659         * m4/ls-mntd-fs.m4: New file.
45660         * m4/fstypename.m4: New file.
45661
45662         * m4/jm-macros.m4: Require the new macro.
45663         * m4/jm-glibc-io.m4: New file.
45664
45665 1998-05-19  Jim Meyering  <meyering@ascend.com>
45666
45667         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45668         * m4/lchown.m4: New file.
45669
45670         * m4/Makefile.am.in: New file.
45671         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45672
45673 1998-05-14  Jim Meyering  <meyering@ascend.com>
45674
45675         * m4/Makefile.am (EXTRA_DIST): Add them.
45676         * m4/jm-macros.m4: New file.
45677         * m4/utimbuf.m4: New file.
45678
45679 1998-05-12  Jim Meyering  <meyering@ascend.com>
45680
45681         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45682
45683 1998-05-11  Jim Meyering  <meyering@ascend.com>
45684
45685         * m4/isc-posix.m4: New file.
45686
45687 1998-05-10  Jim Meyering  <meyering@ascend.com>
45688
45689         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45690
45691 1998-05-09  Jim Meyering  <meyering@ascend.com>
45692
45693         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45694         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45695         with automake.
45696
45697         * m4/ssize_t.m4: New file.
45698         * m4/mktime.m4: Remove file -- the new automake has this now.
45699
45700 1998-04-26  Jim Meyering  <meyering@ascend.com>
45701
45702         * m4/assert.m4: New file.
45703         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45704
45705 1998-04-05  Jim Meyering  <meyering@ascend.com>
45706
45707         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45708         (jm_PREREQ): Use it here.
45709
45710 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
45711
45712         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45713         in acconfig.h.
45714
45715 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
45716
45717         * m4/prereq.m4: New file.
45718         * m4/error.m4: New file.
45719         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45720
45721 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
45722
45723         * m4/getline.m4: Don't set am_cv_func_working_getline before the
45724         cache-check for the same variable -- that defeated the purpose of
45725         the test; the test program was never run.  This was a problem only
45726         on systems with losing getline functions -- HP-UX 10.20 is one.
45727         Reported by Bjorn Helgaas.
45728
45729 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
45730
45731         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45732
45733 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
45734
45735         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45736
45737         * m4/const.m4: New file.  Use an initializer in this declaration
45738         typedef int charset[2]; const charset x;
45739         Reported by Bob Glickstein.
45740
45741 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
45742
45743         * m4/chown.m4: Fix reversed types on -1 args to chown.
45744         From Kaveh Ghazi.
45745
45746 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
45747
45748         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45749         Add lseek and memchr.
45750
45751         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45752         T.E.Dickey <dickey@clark.net> said that some older preprocessors
45753         have a 20-character limit on names.
45754
45755 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
45756
45757         * m4/inttypes_h.m4: New file.
45758         * m4/uintmax_t.m4: New file.
45759         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45760
45761
45762         -----
45763
45764         Local Variables:
45765         coding: utf-8
45766         End:
45767
45768         Copyright (C) 1997-2008 Free Software Foundation, Inc.
45769
45770         Copying and distribution of this file, with or without
45771         modification, are permitted provided the copyright notice
45772         and this notice are preserved.