0974dafec6246e86ac0923ea96b3ff24b766edf6
[gnulib.git] / ChangeLog
1 2008-11-11  Bruno Haible  <bruno@clisp.org>
2
3         * lib/sockets.h: Add a comment.
4
5 2008-11-11  Karl Berry  <karl@gnu.org>
6
7         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
8
9 2008-11-11  Eric Blake  <ebb9@byu.net>
10
11         fdl.texi: avoid git symlinks
12         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
13
14 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15
16         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17
18 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19
20         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
21         (gl_WARN_ADD): Substitute $2 if literal.
22
23 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24
25         * m4/warning.m4: Remove.
26
27 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28
29         * m4/warnings.m4: Almost complete rewrite. :-)
30
31 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32
33         * modules/warnings: New module.
34         * m4/warnings.m4: New file.
35         * MODULES.html.sh: Mention warnings module.
36         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38
39 2008-11-10  Eric Blake  <ebb9@byu.net>
40
41         fdl.texi: make a symlink to the latest version
42         * doc/standards.texi: Revert today's earlier change.
43         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44         * doc/fdl.texi: ...and replace this with a symlink to the newer
45         fdl-1.3.texi.
46
47 2008-11-10  Bruno Haible  <bruno@clisp.org>
48
49         * tests/test-select-fd.c (main): Accept the result file name as fourth
50         argument.
51         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53
54 2008-11-10  Bruno Haible  <bruno@clisp.org>
55
56         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
57         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
58         as autoconf-substituted macros.
59         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
60         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
61         gl_NETDB_H_DEFAULTS. Set these variables.
62         * modules/netdb (Makefile.am): Substitute these variables.
63
64 2008-11-10  Eric Blake  <ebb9@byu.net>
65
66         standards.texi: include correct file for FDL 1.3
67         * doc/standards.texi (GNU Free Documentation License): Change
68         include file to pull in FDL 1.3, not 1.2.
69
70         fdl.texi: revert accidental change to license
71         * doc/fdl.texi: This is FDL 1.2, not 1.3.
72
73 2008-11-10  Bruno Haible  <bruno@clisp.org>
74
75         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
76         cross-compiling guesses also when the native compile gives no result.
77
78 2008-11-10  Bruno Haible  <bruno@clisp.org>
79
80         * lib/spawni.c (__spawni): Force variable into the stack.
81
82 2008-11-10  Bruno Haible  <bruno@clisp.org>
83
84         Add support for Haiku.
85         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
86         glibc and BeOS, but also on Haiku.
87         * lib/fpurge.c (fpurge): Likewise.
88         * lib/freadable.c (freadable): Likewise.
89         * lib/freadahead.c (freadahead): Likewise.
90         * lib/freading.c (freading): Likewise.
91         * lib/freadptr.c (freadptr): Likewise.
92         * lib/freadseek.c (freadptrinc): Likewise.
93         * lib/fseeko.c (rpl_fseeko): Likewise.
94         * lib/fseterr.c (fseterr): Likewise.
95         * lib/fwritable.c (fwritable): Likewise.
96         * lib/fwriting.c (fwriting): Likewise.
97         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
98
99 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
100
101         * lib/config.charset: Treat Haiku like BeOS.
102
103 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
104
105         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
106         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
107
108 2008-11-08  Bruno Haible  <bruno@clisp.org>
109
110         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
111         AC_CACHE_CHECK.
112
113 2008-11-08  Bruno Haible  <bruno@clisp.org>
114
115         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
116
117 2008-11-08  Bruno Haible  <bruno@clisp.org>
118
119         * tests/test-select-fd.c: New file.
120         * tests/test-select-in.sh: New file.
121         * tests/test-select-out.sh: New file.
122         * tests/test-select-stdin.c: New file.
123         * modules/select-tests (Files): Add the new files.
124         (Depends-on): Add gettimeofday.
125         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
126         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
127         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
128
129 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
130             Bruno Haible  <bruno@clisp.org>
131
132         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
133
134 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
135
136         * build-aux/pmccabe2html: Added support for C++ source files.
137
138 2008-11-05  Ben Pfaff  <blp@gnu.org>
139
140         Fix lib/close.c build on Windows.
141         * modules/close (Files): Add lib/w32sock.h.
142
143 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
144
145         Accept Bison's NEWS format.
146         * build-aux/announce-gen (print_news_deltas): Tweak
147         $re_prefix.
148
149 2008-11-04  Bruno Haible  <bruno@clisp.org>
150
151         * modules/random_r (Maintainer): Add glibc.
152
153 2008-11-04  Simon Josefsson  <simon@josefsson.org>
154
155         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
156         by karl@freefriends.org (Karl Berry).
157         * doc/alloca.texi: Likewise.
158         * doc/c-ctype.texi: Likewise.
159         * doc/c-strcase.texi: Likewise.
160         * doc/c-strcaseeq.texi: Likewise.
161         * doc/c-strcasestr.texi: Likewise.
162         * doc/c-strstr.texi: Likewise.
163         * doc/c-strtod.texi: Likewise.
164         * doc/c-strtold.texi: Likewise.
165         * doc/ctime.texi: Likewise.
166         * doc/error.texi: Likewise.
167         * doc/fdl.texi: Likewise.
168         * doc/gcd.texi: Likewise.
169         * doc/getdate.texi: Likewise.
170         * doc/gnulib-intro.texi: Likewise.
171         * doc/gnulib-tool.texi: Likewise.
172         * doc/gnulib.texi: Likewise.
173         * doc/inet_ntoa.texi: Likewise.
174         * doc/maintain.texi: Likewise.
175         * doc/make-stds.texi: Likewise.
176         * doc/quote.texi: Likewise.
177         * doc/regexprops-generic.texi: Likewise.
178         * doc/standards.texi: Likewise.
179         * doc/verify.texi: Likewise.
180         * doc/visibility.texi: Likewise.
181         * doc/gnulib.texi (GNU Free Documentation License): Include
182         fdl-1.3.texi instead of fdl.texi.
183
184 2008-11-04  Simon Josefsson  <simon@josefsson.org>
185
186         * doc/fdl-1.3.texi: New file, from
187         <http://www.gnu.org/licenses/fdl-1.3.texi>.
188         * modules/fdl-1.3: Add.
189         * MODULES.html.sh: Add fdl-1.3.
190
191 2008-11-03  Bruno Haible  <bruno@clisp.org>
192
193         Make determination of absolute name of header file work with AIX xlc.
194         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
195         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
196         preprocessing.
197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
198         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
199
200 2008-11-03  Simon Josefsson  <simon@josefsson.org>
201
202         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
203         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
204         <ludo@gnu.org>.
205
206 2008-11-02  Bruno Haible  <bruno@clisp.org>
207
208         Mark 'strpbrk' obsolete.
209         * modules/strpbrk (Status, Notice): New sections.
210         * modules/strtok_r (Depends-on): Add strpbrk.
211
212 2008-11-02  Bruno Haible  <bruno@clisp.org>
213
214         Mark 'strdup' obsolete.
215         * modules/strdup (Status, Notice): New sections.
216         * modules/findprog (Depends-on): Add strdup.
217         * modules/getaddrinfo (Depends-on): Likewise.
218         * modules/localename (Depends-on): Likewise.
219         * modules/relocatable-lib (Depends-on): Likewise.
220         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
221         * modules/relocatable-prog (Depends-on): Likewise.
222         * modules/trim (Depends-on): Likewise.
223         * modules/unictype/gen-ctype (Depends-on): Likewise.
224         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
225
226 2008-11-02  Bruno Haible  <bruno@clisp.org>
227
228         Mark 'strcspn' obsolete.
229         * modules/strcspn (Status, Notice): New sections.
230
231 2008-11-02  Bruno Haible  <bruno@clisp.org>
232
233         Mark 'rmdir' obsolete.
234         * modules/rmdir (Status, Notice): New sections.
235         * modules/clean-temp (Depends-on): Add rmdir.
236         * modules/openat (Depends-on): Likewise.
237
238 2008-11-02  Bruno Haible  <bruno@clisp.org>
239
240         Mark 'raise' obsolete.
241         * modules/raise (Status, Notice): New sections.
242         (Include): Specify <signal.h>.
243         * modules/stdio (Depends-on): Add raise.
244         * modules/write (Depends-on): Likewise.
245
246 2008-11-02  Bruno Haible  <bruno@clisp.org>
247
248         Mark 'memset' obsolete.
249         * modules/memset (Status, Notice): New sections.
250
251 2008-11-02  Bruno Haible  <bruno@clisp.org>
252
253         Mark 'memmove' obsolete.
254         * modules/memmove (Status, Notice): New sections.
255         * modules/argp (Depends-on): Add memmove.
256         * modules/argz (Depends-on): Likewise.
257         * modules/canonicalize (Depends-on): Likewise.
258         * modules/canonicalize-lgpl (Depends-on): Likewise.
259         * modules/fts (Depends-on): Likewise.
260         * modules/getcwd (Depends-on): Likewise.
261         * modules/human (Depends-on): Likewise.
262         * modules/regex (Depends-on): Likewise.
263         * modules/striconveh (Depends-on): Likewise.
264         * modules/trim (Depends-on): Likewise.
265         * modules/unistr/u8-move (Depends-on): Likewise.
266         * modules/unistr/u16-move (Depends-on): Likewise.
267         * modules/unistr/u32-move (Depends-on): Likewise.
268
269 2008-11-02  Bruno Haible  <bruno@clisp.org>
270
271         Mark 'memcpy' obsolete.
272         * modules/memcpy (Status, Notice): New sections.
273
274 2008-11-02  Bruno Haible  <bruno@clisp.org>
275
276         Mark 'memcmp' obsolete.
277         * modules/memcmp (Status, Notice): New sections.
278         * modules/argmatch (Depends-on): Add memchr.
279         * modules/backupfile (Depends-on): Likewise.
280         * modules/c-strcasestr (Depends-on): Likewise.
281         * modules/crypto/des (Depends-on): Likewise.
282         * modules/csharpcomp (Depends-on): Likewise.
283         * modules/fnmatch (Depends-on): Likewise.
284         * modules/git-merge-changelog (Depends-on): Likewise.
285         * modules/isnand (Depends-on): Likewise.
286         * modules/isnand-nolibm (Depends-on): Likewise.
287         * modules/isnanf (Depends-on): Likewise.
288         * modules/isnanf-nolibm (Depends-on): Likewise.
289         * modules/isnanl (Depends-on): Likewise.
290         * modules/isnanl-nolibm (Depends-on): Likewise.
291         * modules/mbchar (Depends-on): Likewise.
292         * modules/memcoll (Depends-on): Likewise.
293         * modules/quotearg (Depends-on): Likewise.
294         * modules/regex (Depends-on): Likewise.
295         * modules/relocatable-prog (Depends-on): Likewise.
296         * modules/same (Depends-on): Likewise.
297         * modules/signbit (Depends-on): Likewise.
298         * modules/strcasestr-simple (Depends-on): Likewise.
299         * modules/unictype/gen-ctype (Depends-on): Likewise.
300         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
301         * modules/uniname/uniname (Depends-on): Likewise.
302         * modules/unistr/u8-cmp (Depends-on): Likewise.
303
304 2008-11-02  Bruno Haible  <bruno@clisp.org>
305
306         Mark 'memchr' obsolete.
307         * modules/memchr (Status, Notice): New sections.
308         * modules/argp (Depends-on): Add memchr.
309         * modules/base64 (Depends-on): Likewise.
310         * modules/c-strcasestr (Depends-on): Likewise.
311         * modules/chdir-long (Depends-on): Likewise.
312         * modules/fnmatch (Depends-on): Likewise.
313         * modules/getsubopt (Depends-on): Likewise.
314         * modules/git-merge-changelog (Depends-on): Likewise.
315         * modules/glob (Depends-on): Likewise.
316         * modules/strcasestr-simple (Depends-on): Likewise.
317         * modules/strnlen (Depends-on): Likewise.
318
319 2008-11-02  Bruno Haible  <bruno@clisp.org>
320
321         Mark 'atexit' obsolete.
322         * modules/atexit (Status, Notice): New sections.
323         * modules/chdir-long (Depends-on): Add atexit.
324         * modules/wait-process (Depends-on): Likewise.
325
326 2008-11-02  Bruno Haible  <bruno@clisp.org>
327
328         * gnulib-tool: New option --with-obsolete.
329         (func_usage): Document it.
330         (func_modules_transitive_closure): Drop obsolete dependencies if
331         incobsolete is not true.
332         (func_import): Read and save the incobsolete variable to the cache.
333
334 2008-11-02  Bruno Haible  <bruno@clisp.org>
335
336         * modules/TEMPLATE-EXTENDED: New field 'Status'.
337         * gnulib-tool: New option --extract-status.
338         (func_usage): Document it.
339         (sed_extract_prog): Recognize it.
340         (func_get_status): New function.
341
342 2008-10-30  Simon Josefsson  <simon@josefsson.org>
343
344         * modules/sockets (License): Change from LGPL to LGPLv2+.
345
346 2008-10-28  Simon Josefsson  <simon@josefsson.org>
347
348         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
349
350 2008-10-28  Simon Josefsson  <simon@josefsson.org>
351
352         * MODULES.html.sh (Support for systems lacking POSIX:2001):
353         Mention times and sys_times.
354         * modules/sys_times, modules/sys_times-tests: New modules.
355         * modules/times, modules/times-tests: Likewise
356         * m4/sys_times_h.m4: New file.
357         * lib/sys_times.in.h: Likewise
358         * lib/times.c: Likewise.
359         * tests/test-sys_times.c: Likewise.
360         * tests/test-times.c: Likewise.
361         * doc/posix-headers/sys_times.texi: Update.
362         * doc/posix-functions/times.texi: Update.
363
364 2008-10-28  Jim Meyering  <meyering@redhat.com>
365
366         * modules/tempname (Depends-on): Add lstat.
367
368         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
369
370 2008-10-28  Simon Josefsson  <simon@josefsson.org>
371
372         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
373         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
374         using idiom used elsewhere in gnulib.
375
376 2008-10-27  Jim Meyering  <meyering@redhat.com>
377
378         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
379
380 2008-10-27  Simon Josefsson  <simon@josefsson.org>
381
382         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
383         TESTS_ENVIRONMENT, for shell scripts that needs to call built
384         programs.
385         * tests/test-argp-2.sh: Use $EXEEXT when needed.
386
387 2008-10-27  Simon Josefsson  <simon@josefsson.org>
388
389         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
390
391 2008-10-27  Bruno Haible  <bruno@clisp.org>
392
393         * tests/test-lstat.c: Include <stdio.h>.
394
395 2008-10-27  Simon Josefsson  <simon@josefsson.org>
396
397         * modules/lstat-tests: New module.
398         * tests/test-lstat.c: New file.
399
400 2008-10-26  Jim Meyering  <meyering@redhat.com>
401
402         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
403
404 2008-10-26  Simon Josefsson  <simon@josefsson.org>
405             Bruno Haible  <bruno@clisp.org>
406
407         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
408         * modules/configmake (Include): Add a note that the include must come
409         after all system headers.
410         * lib/javaversion.c: Include configmake.h after all other includes.
411
412 2008-10-26  Bruno Haible  <bruno@clisp.org>
413
414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
415         HAVE_STRUCT_RANDOM_DATA to 1.
416         (gl_STDLIB_H): Simplify.
417
418 2008-10-26  Simon Josefsson  <simon@josefsson.org>
419
420         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
421         substitute HAVE_STRUCT_RANDOM_DATA.
422         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
423         random_data.
424         * modules/stdlib (Makefile.am): Substitute
425         HAVE_STRUCT_RANDOM_DATA.
426
427 2008-10-26  Simon Josefsson  <simon@josefsson.org>
428
429         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
430         * doc/gnulib-intro.texi (Copyright): Likewise.
431
432 2008-10-26  Simon Josefsson  <simon@josefsson.org>
433
434         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
435         findings.
436
437 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
438             Bruno Haible  <bruno@clisp.org>
439
440         * lib/unistd.in.h: Include <winsock2.h>.
441         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
442         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
443         Provide dummy declarations.
444         (gethostname): Override.
445         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
446         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
447         gl_PREREQ_SYS_H_WINSOCK2.
448         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
449         * doc/posix-functions/gethostname.texi: More details.
450
451 2008-10-25  Bruno Haible  <bruno@clisp.org>
452
453         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
454         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
455         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
456
457         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
458         here ...
459         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
461         gl_UNISTD_H_DEFAULTS.
462
463 2008-10-25  Eric Blake  <ebb9@byu.net>
464
465         signbit: avoid spurious compiler failure
466         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
467         declarations inside function.
468
469 2008-10-24  Simon Josefsson  <simon@josefsson.org>
470             Bruno Haible  <bruno@clisp.org>
471
472         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
473         * modules/random_r (Depends-on): Add stdint.
474
475 2008-10-24  Bruno Haible  <bruno@clisp.org>
476
477         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
478         Eggert.
479         * modules/strerror (License): Likewise.
480
481 2008-10-24  Jim Meyering  <meyering@redhat.com>
482
483         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
484         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
485
486 2008-10-24  Eric Blake  <ebb9@byu.net>
487
488         getgroups: fix compilation when getgroups is available
489         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
490         but with <config.h> override of getgroups disabled.
491
492 2008-10-24  Simon Josefsson  <simon@josefsson.org>
493
494         * doc/gnulib.texi (Header files): Add note about C++ problems.
495         Explained by Bruno Haible <bruno@clisp.org>.
496
497 2008-10-23  Bruno Haible  <bruno@clisp.org>
498
499         Define a dummy SA_NODEFER macro on Interix.
500         * lib/signal.in.h (SA_NODEFER): Define fallback.
501         Reported by Aleksey Cheusov <cheusov@tut.by> via
502         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
503
504 2008-10-23  Bruno Haible  <bruno@clisp.org>
505
506         * modules/freadahead (License): Change to LGPLv2+.
507         Suggested by Simon Josefsson.
508
509 2008-10-23  Jim Meyering  <meyering@redhat.com>
510
511         random_r: new module
512         * modules/random_r: New file.
513         * m4/random_r.m4: New file.
514         * lib/random_r.c: New file, from glibc.
515         * modules/random_r-tests: New file.
516         * tests/test-random_r.c: New file.
517         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
518          Declare.
519         (RAND_MAX): Define.
520         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
521         * modules/stdlib: Substitute them, too.
522         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
523         * doc/glibc-functions/initstate_r.texi: Mention the new module.
524         * doc/glibc-functions/random_r.texi: Likewise.
525         * doc/glibc-functions/setstate_r.texi: Likewise.
526         * doc/glibc-functions/srandom_r.texi: Likewise.
527         * config/srclist.txt: Mention it.
528
529 2008-10-23  David Lutterkort  <lutter@redhat.com>
530
531         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
532         link requirement
533
534 2008-10-23  Jim Meyering  <meyering@redhat.com>
535
536         selinux-h: mark parameters of stub functions as intentionally unused
537         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
538         * lib/se-context.in.h: Likewise.
539
540 2008-10-22  Simon Josefsson  <simon@josefsson.org>
541
542         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
543
544 2008-10-22  Simon Josefsson  <simon@josefsson.org>
545
546         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
547
548 2008-10-22  Eric Blake  <ebb9@byu.net>
549
550         glthread/thread: avoid compiler warning
551         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
552         Add unreachable abort to silence compiler.
553
554 2008-10-22  Eric Blake  <ebb9@byu.net>
555
556         netdb: also supply struct addrinfo for cygwin 1.5.x
557         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
558         older cygwin.
559         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
560         cygwin.
561         * doc/posix-headers/netdb.texi (netdb.h): Document this.
562
563 2008-10-22  Bruno Haible  <bruno@clisp.org>
564
565         * users.txt: Update entry about pspp.
566
567 2008-10-21  Bruno Haible  <bruno@clisp.org>
568
569         Simplification.
570         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
571         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
572
573         Simplification.
574         * lib/ioctl.c (ioctl): Don't undefine.
575         * lib/socket.c (socket): Don't undefine.
576
577         Remove unused module indicator macros.
578         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
579         GNULIB_$1 as a C macro.
580
581         * doc/posix-functions/close.texi: Undo last change.
582         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
583         Windows platforms.
584
585 2008-10-21  Bruno Haible  <bruno@clisp.org>
586
587         Add gethostname() declaration to <unistd.h>.
588         * lib/unistd.in.h (gethostname): New declaration.
589         * lib/gethostname.c: Include <unistd.h>.
590         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
591         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
593         and HAVE_GETHOSTNAME.
594         * modules/gethostname (Depends-on): Add unistd.
595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
596         (Include): Specify <unistd.h>.
597         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
598         HAVE_GETHOSTNAME.
599         * tests/test-gethostname.c: Include <unistd.h> first.
600
601 2008-10-21  Bruno Haible  <bruno@clisp.org>
602
603         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
604         * modules/select-tests (Depends-on): Likewise.
605         Reported by Simon Josefsson.
606
607 2008-10-21  Simon Josefsson  <simon@josefsson.org>
608
609         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
610         * lib/accept.c: New file, based on winsock.c.
611         * lib/bind.c: New file, based on winsock.c.
612         * lib/connect.c: New file, based on winsock.c.
613         * lib/getpeername.c: New file, based on winsock.c.
614         * lib/getsockname.c: New file, based on winsock.c.
615         * lib/getsockopt.c: New file, based on winsock.c.
616         * lib/ioctl.c: New file, based on winsock.c.
617         * lib/listen.c: New file, based on winsock.c.
618         * lib/recv.c: New file, based on winsock.c.
619         * lib/recvfrom.c: New file, based on winsock.c.
620         * lib/send.c: New file, based on winsock.c.
621         * lib/sendto.c: New file, based on winsock.c.
622         * lib/setsockopt.c: New file, based on winsock.c.
623         * lib/shutdown.c: New file, based on winsock.c.
624         * lib/socket.c: New file, based on winsock.c.
625         * lib/w32sock.h: New file, based on winsock.c.
626         * lib/winsock.c: Remove file.
627         * modules/accept: Likewise.
628         * modules/bind: Likewise.
629         * modules/connect: Likewise.
630         * modules/getpeername: Likewise.
631         * modules/getsockname: Likewise.
632         * modules/getsockopt: Likewise.
633         * modules/ioctl: Likewise.
634         * modules/listen: Likewise.
635         * modules/recv: Likewise.
636         * modules/recvfrom: Likewise.
637         * modules/send: Likewise.
638         * modules/sendto: Likewise.
639         * modules/setsockopt: Likewise.
640         * modules/shutdown: Likewise.
641         * modules/socket: Use socket.c instead of winsock.c.
642         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
643         * doc/posix-functions/accept.texi: Doc fix.
644         * doc/posix-functions/bind.texi: Doc fix.
645         * doc/posix-functions/close.texi: Doc fix.
646         * doc/posix-functions/connect.texi: Doc fix.
647         * doc/posix-functions/getpeername.texi: Doc fix.
648         * doc/posix-functions/getsockname.texi: Doc fix.
649         * doc/posix-functions/getsockopt.texi: Doc fix.
650         * doc/posix-functions/ioctl.texi: Doc fix.
651         * doc/posix-functions/listen.texi: Doc fix.
652         * doc/posix-functions/recv.texi: Doc fix.
653         * doc/posix-functions/recvfrom.texi: Doc fix.
654         * doc/posix-functions/send.texi: Doc fix.
655         * doc/posix-functions/sendto.texi: Doc fix.
656         * doc/posix-functions/setsockopt.texi: Doc fix.
657         * doc/posix-functions/shutdown.texi: Doc fix.
658         * doc/posix-functions/socket.texi: Doc fix.
659
660 2008-10-20  Bruno Haible  <bruno@clisp.org>
661
662         Take into account the role of SIGABRT_COMPAT on Windows 2008.
663         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
664         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
665         as an alias for SIGABRT.
666         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
667         (sigaction): Map it to SIGABRT.
668         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
669
670 2008-10-20  Bruno Haible  <bruno@clisp.org>
671
672         * lib/fts.c: Don't include lstat.h.
673         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
674
675         Move the lstat() declaration to <sys/stat.h>.
676         * lib/lstat.h: Remove file.
677         * lib/sys_stat.in.h: Add special invocation convention.
678         (lstat): New declaration.
679         * lib/lstat.c (orig_lstat): New function.
680         (rpl_lstat): Use orig_lstat instead of lstat.
681         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
682         AC_C_INLINE. Set REPLACE_LSTAT.
683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
684         and REPLACE_LSTAT.
685         * modules/lstat (Files): Remove lib/lstat.h.
686         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
687         (Include): Specify <sys/stat.h> instead of lstat.h.
688         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
689         REPLACE_LSTAT.
690         * NEWS: Mention the change.
691
692 2008-10-20  Bruno Haible  <bruno@clisp.org>
693
694         * modules/posix_spawn-tests: New file.
695         * tests/test-posix_spawn3.c: New file.
696
697 2008-10-20  Bruno Haible  <bruno@clisp.org>
698
699         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
700         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
701         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
702         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
703         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
704
705 2008-10-20  Bruno Haible  <bruno@clisp.org>
706
707         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
708         of posix_spawn on AIX 5.3.
709
710 2008-10-20  Bruno Haible  <bruno@clisp.org>
711
712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
713
714 2008-10-20  Bruno Haible  <bruno@clisp.org>
715
716         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
717         of AC_LANG_PROGRAM.
718
719 2008-10-20  Simon Josefsson  <simon@josefsson.org>
720
721         * lib/netdb.in.h: Don't define GNU specific constants until they
722         are supported or needed.  Reported by Bruno Haible
723         <bruno@clisp.org>.
724
725 2008-10-20  Simon Josefsson  <simon@josefsson.org>
726
727         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
728
729 2008-10-20  Simon Josefsson  <simon@josefsson.org>
730
731         * lib/getaddrinfo.h: Remove file.
732         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
733         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
734         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
735         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
736         * modules/netdb: Substitute GNULIB_GETADDRINFO.
737         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
738         * tests/test-getaddrinfo.c: Likewise.
739         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
740         * NEWS: Mention change.
741
742 2008-10-19  Bruno Haible  <bruno@clisp.org>
743
744         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
745
746 2008-10-19  Bruno Haible  <bruno@clisp.org>
747
748         * lib/wait-process.c: Include simply <sys/wait.h>.
749         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
750         WIFSTOPPED): Remove fallback definitions.
751         * modules/wait-process (Depends-on): Add sys_wait.
752
753         New module 'sys_wait'.
754         * modules/sys_wait: New file.
755         * lib/sys_wait.in.h: New file, partially copied from
756         lib/wait-process.c.
757         * m4/sys_wait_h.m4: New file.
758         * doc/posix-headers/sys_wait.texi: Mention the new module.
759
760 2008-10-19  Bruno Haible  <bruno@clisp.org>
761
762         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
763
764 2008-10-19  Bruno Haible  <bruno@clisp.org>
765
766         Assume that waitpid() fills an 'int' status, not a 'union wait'.
767         * lib/wait-process.c (WAIT_T): Remove type.
768         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
769         (wait_subprocess): Update.
770
771 2008-10-19  Bruno Haible  <bruno@clisp.org>
772
773         New module 'atoll'.
774         * modules/atoll: New file.
775         * lib/stdlib.in.h (atoll): New declaration.
776         * lib/atoll.c: New file, from glibc with modifications.
777         * m4/atoll.m4: New file.
778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
779         HAVE_ATOLL.
780         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
781         * doc/posix-functions/atoll.texi: Mention the new module.
782
783 2008-10-19  Bruno Haible  <bruno@clisp.org>
784
785         Add strtoull() declaration to <stdlib.h>.
786         * lib/stdlib.in.h (strtoull): New declaration.
787         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
788         Set HAVE_STRTOULL.
789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
790         HAVE_STRTOULL.
791         * modules/strtoull (Depends-on): Add stdlib.
792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
793         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
794         HAVE_STRTOULL.
795
796 2008-10-19  Bruno Haible  <bruno@clisp.org>
797
798         Add strtoll() declaration to <stdlib.h>.
799         * lib/stdlib.in.h (strtoll): New declaration.
800         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
801         Set HAVE_STRTOLL.
802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
803         HAVE_STRTOLL.
804         * modules/strtoll (Depends-on): Add stdlib.
805         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
806         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
807
808 2008-10-19  Bruno Haible  <bruno@clisp.org>
809
810         * modules/bcopy (Depends-on): Add strings.
811         (Include): Specify <strings.h>.
812
813 2008-10-19  Bruno Haible  <bruno@clisp.org>
814
815         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
816
817 2008-10-19  Bruno Haible  <bruno@clisp.org>
818
819         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
820         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
821         mingw.
822
823 2008-10-19  Bruno Haible  <bruno@clisp.org>
824
825         * lib/atanl.c: Don't include isnanl.h.
826         * lib/cosl.c: Likewise.
827         * lib/ldexpl.c: Likewise.
828         * lib/logl.c: Likewise.
829         * lib/sinl.c: Likewise.
830         * lib/sqrtl.c: Likewise.
831         * lib/tanl.c: Likewise.
832
833         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
834         * lib/isnanf.h: Remove file.
835         * lib/isnand.h: Remove file.
836         * lib/isnanl.h: Remove file.
837         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
838         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
839         macros.
840         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
841         HAVE_ISNANF, don't define it as a C macro.
842         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
843         HAVE_ISNAND, don't define it as a C macro.
844         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
845         HAVE_ISNANL, don't define it as a C macro.
846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
847         HAVE_ISNAN[FDL].
848         * modules/isnanf (Files): Remove lib/isnanf.h.
849         (Depends-on): Add math.
850         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
851         (Include): Specify <math.h> instead of isnanf.h.
852         * modules/isnand (Files): Remove lib/isnand.h.
853         (Depends-on): Add math.
854         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
855         (Include): Specify <math.h> instead of isnand.h.
856         * modules/isnanl (Files): Remove lib/isnanl.h.
857         (Depends-on): Add math.
858         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
859         (Include): Specify <math.h> instead of isnanl.h.
860         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
861         HAVE_ISNAN[FDL].
862         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
863         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
864         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
865         * NEWS: Mention the change.
866
867 2008-10-18  Bruno Haible  <bruno@clisp.org>
868
869         Add getusershell(), setusershell(), endusershell() declarations to
870         <unistd.h>.
871         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
872         declarations.
873         * lib/getusershell.c: Include unistd.h.
874         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
875         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
876         HAVE_GETUSERSHELL.
877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
878         and HAVE_GETUSERSHELL.
879         * modules/getusershell (Depends-on): Add unistd, extensions.
880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
881         (Include): Specify <unistd.h>.
882         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
883         HAVE_GETUSERSHELL.
884
885 2008-10-18  Bruno Haible  <bruno@clisp.org>
886
887         Add a getloadavg() declaration to <stdlib.h>.
888         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
889         getloadavg declaration.
890         (getloadavg): New declaration.
891         * lib/getloadavg.c: Include <stdlib.h> first.
892         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
893         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
894         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
896         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
897         * modules/getloadavg (Depends-on): Add stdlib, extensions.
898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
899         (Include): Specify <stdlib.h>.
900         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
901         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
902
903 2008-10-18  Bruno Haible  <bruno@clisp.org>
904
905         * lib/dirchownmod.c: Don't include lchmod.h.
906
907         Move the lchmod() declaration to <sys/stat.h>.
908         * lib/lchmod.h: Remove file.
909         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
910         (lchmod): New declaration, moved here from lib/lchown.h.
911         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
912         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
914         and HAVE_LCHMOD.
915         * modules/lchmod (Files): Remove lib/lchmod.h.
916         (Depends-on): Add sys_stat, extensions.
917         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
918         (Include): Specify <sys/stat.h> instead of lchmod.h.
919         * modules/sys_stat (Depends-on): Add link-warning.
920         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
921         definition of GL_LINK_WARNING.
922         * NEWS: Mention the change.
923
924 2008-10-18  Bruno Haible  <bruno@clisp.org>
925
926         * lib/fchdir.c: Don't include dirfd.h.
927         * lib/fts.c: Likewise.
928         * lib/getcwd.c: Likewise.
929         * lib/glob.c: Likewise.
930
931         Move the dirfd() declaration to <dirent.h>.
932         * lib/dirfd.h: Remove file.
933         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
934         (dirfd): New declaration.
935         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
936         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
937         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
938         HAVE_DECL_DIRFD.
939         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
940         HAVE_DECL_DIRFD.
941         * modules/dirfd (Files): Remove lib/dirfd.h.
942         (Depends-on): Add dirent, extensions.
943         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
944         (Include): Specify <dirent.h> instead of dirfd.h.
945         * modules/dirent (Depends-on): Add link-warning.
946         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
947         definition of GL_LINK_WARNING.
948         * NEWS: Mention the change.
949
950 2008-10-18  Bruno Haible  <bruno@clisp.org>
951
952         Move the euidaccess() declaration to <unistd.h>.
953         * lib/euidaccess.h: Remove file.
954         * lib/unistd.in.h (euidaccess): New declaration.
955         * lib/euidaccess.c: Don't include euidaccess.h.
956         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
957         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
959         and HAVE_EUIDACCESS.
960         * modules/euidaccess (Files): Remove lib/euidaccess.h.
961         (Depends-on): Add unistd.
962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
963         (Include): Specify <unistd.h> instead of euidaccess.h.
964         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
965         HAVE_EUIDACCESS.
966         * NEWS: Mention the change.
967
968 2008-10-18  Bruno Haible  <bruno@clisp.org>
969
970         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
971
972         Move the getdomainname() declaration to <unistd.h>.
973         * lib/getdomainname.h: Remove file.
974         * lib/unistd.in.h (getdomainname): New declaration.
975         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
976         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
977         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
978         HAVE_GETDOMAINNAME.
979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
980         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
981         * modules/getdomainname (Files): Remove lib/getdomainname.h.
982         (Depends-on): Add unistd, extensions.
983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
984         (Includes): Specify <unistd.h> instead of getdomainname.h.
985         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
986         HAVE_GETDOMAINNAME.
987         * NEWS: Mention the change.
988
989 2008-10-18  Bruno Haible  <bruno@clisp.org>
990
991         * modules/dirent: New file.
992         * m4/dirent_h.m4: New file.
993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
994         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
995         * modules/fchdir (Files): Remove lib/dirent.in.h.
996         (Depends-on): Add dirent.
997         (Makefile.am): Move rules to modules/dirent.
998         * doc/posix-headers/dirent.texi: Mention the new module.
999
1000 2008-10-18  Bruno Haible  <bruno@clisp.org>
1001
1002         Avoid -Wunused-parameter warnings in public gnulib header files.
1003         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1004         macro.
1005         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1006
1007 2008-10-18  Bruno Haible  <bruno@clisp.org>
1008
1009         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1010         * doc/glibc-functions/error.texi: Mention the module 'error'.
1011         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1012         * doc/glibc-functions/getdomainname.texi: Mention the module
1013         'getdomainname'.
1014         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1015         * doc/glibc-functions/getpagesize.texi: Mention the module
1016         'getpagesize'.
1017         * doc/glibc-functions/getusershell.texi: Mention the module
1018         'getusershell'.
1019         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1020         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1021         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1022         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1023         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1024         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1025         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1026         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1027         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1028         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1029         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1030         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1031         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1032         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1033
1034 2008-10-17  Bruno Haible  <bruno@clisp.org>
1035
1036         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1037         HP-UX and IRIX, use -0.0L.
1038         * tests/test-ceill.c (minus_zero): Likewise.
1039         * tests/test-floorl.c (minus_zero): Likewise.
1040         * tests/test-frexpl.c (minus_zero): Likewise.
1041         * tests/test-isnan.c (minus_zerol): Likewise.
1042         * tests/test-isnanl.h (minus_zero): Likewise.
1043         * tests/test-ldexpl.c (minus_zero): Likewise.
1044         * tests/test-roundl.c (minus_zero): Likewise.
1045         * tests/test-signbit.c (minus_zerol): Likewise.
1046         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1047         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1048         * tests/test-truncl.c (minus_zero): Likewise.
1049         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1050         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1051         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1052         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1053
1054 2008-10-17  Bruno Haible  <bruno@clisp.org>
1055
1056         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1057         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1058         that it gets activated only for gcc >= 3.0.
1059         * lib/dirent.in.h: Likewise.
1060         * lib/errno.in.h: Likewise.
1061         * lib/fcntl.in.h: Likewise.
1062         * lib/float.in.h: Likewise.
1063         * lib/iconv.in.h: Likewise.
1064         * lib/inttypes.in.h: Likewise.
1065         * lib/locale.in.h: Likewise.
1066         * lib/math.in.h: Likewise.
1067         * lib/netdb.in.h: Likewise.
1068         * lib/netinet_in.in.h: Likewise.
1069         * lib/search.in.h: Likewise.
1070         * lib/signal.in.h: Likewise.
1071         * lib/spawn.in.h: Likewise.
1072         * lib/stdarg.in.h: Likewise.
1073         * lib/stdint.in.h: Likewise.
1074         * lib/stdio.in.h: Likewise.
1075         * lib/stdlib.in.h: Likewise.
1076         * lib/string.in.h: Likewise.
1077         * lib/strings.in.h: Likewise.
1078         * lib/sys_file.in.h: Likewise.
1079         * lib/sys_ioctl.in.h: Likewise.
1080         * lib/sys_select.in.h: Likewise.
1081         * lib/sys_socket.in.h: Likewise.
1082         * lib/sys_stat.in.h: Likewise.
1083         * lib/sys_time.in.h: Likewise.
1084         * lib/sysexits.in.h: Likewise.
1085         * lib/time.in.h: Likewise.
1086         * lib/unistd.in.h: Likewise.
1087         * lib/wchar.in.h: Likewise.
1088         * lib/wctype.in.h: Likewise.
1089         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1090
1091 2008-10-17  Jim Meyering  <meyering@redhat.com>
1092
1093         ignore-value: don't depend on inline module
1094         * modules/ignore-value (Depends-on): Remove 'inline'.
1095         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
1096         Suggestion from Bruno Haible.
1097
1098 2008-10-17  Bruno Haible  <bruno@clisp.org>
1099
1100         New implementation of condition variables for Win32.
1101         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
1102         (gl_linked_waitqueue_t): New type.
1103         (gl_cond_t): Use it.
1104         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
1105         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
1106         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
1107         (glthread_cond_init_func, glthread_cond_wait_func,
1108         glthread_cond_timedwait_func, glthread_cond_signal_func,
1109         glthread_cond_broadcast_func, glthread_cond_destroy_func):
1110         Reimplemented on the basis of gl_linked_waitqueue_t.
1111         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
1112         gl_waitqueue_t.
1113         (gl_rwlock_t): Update.
1114         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
1115
1116 2008-10-17  Simon Josefsson  <simon@josefsson.org>
1117
1118         * modules/recvfrom (Depends-on): Add dependency on getpeername.
1119         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1120
1121 2008-10-17  Jim Meyering  <meyering@redhat.com>
1122
1123         ignore-value: new module
1124         * modules/ignore-value: New file.
1125         * lib/ignore-value.h: New file.
1126         * MODULES.html.sh (Compiler warning management): New section,
1127         just for this module.  More to come.
1128
1129 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1130
1131         open-safer.c: avoid 'signed and unsigned in conditional...' warning
1132         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
1133         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
1134
1135 2008-10-16  Jim Meyering  <meyering@redhat.com>
1136
1137         openat-die.c: avoid 'no previous prototype' warning
1138         * lib/openat-die.c: Include "openat.h".
1139         Reported by Reuben Thomas <rrt@sc3d.org>.
1140
1141 2008-10-16  Simon Josefsson  <simon@josefsson.org>
1142
1143         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1144         * lib/netdb.in.h: Fix typo.
1145         Reported by Bruno Haible  <bruno@clisp.org>
1146
1147         * lib/netdb.in.h: Include sys/socket.h for platforms without
1148         netdb.h, to get structures like hostent on MinGW.
1149         * modules/netdb (Depends-on): Add sys_socket.
1150
1151 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1152
1153         * modules/netdb, modules/netdb-tests: New file.
1154         * m4/netdb_h.m4: New file.
1155         * lib/netdb.in.h: Add, currently just an empty file pending
1156         definitions.
1157         * tests/test-netdb.c: New file.
1158         * doc/posix-headers/netdb.texi: Mention that we replace it if
1159         needed.
1160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1161         netdb.
1162
1163 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1164
1165         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1166         with code.
1167
1168 2008-10-13  Bruno Haible  <bruno@clisp.org>
1169
1170         * lib/glthread/cond.c (glthread_cond_wait_func,
1171         glthread_cond_timedwait_func): Add a comment.
1172
1173 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1174
1175         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1176         * tests/test-select.c: Likewise,
1177
1178 2008-10-13  Bruno Haible  <bruno@clisp.org>
1179
1180         * lib/glthread/cond.c (glthread_cond_wait_func,
1181         glthread_cond_timedwait_func): Fix variable name.
1182         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1183
1184 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1185
1186         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1187         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1188         struct sockaddr.sa_len.
1189         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1190
1191 2008-10-13  Simon Josefsson  <simon@josefsson.org>
1192
1193         * build-aux/pmccabe2html: Add css and css_url parameters.
1194
1195 2008-10-12  Bruno Haible  <bruno@clisp.org>
1196
1197         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1198         calling aclx_get.
1199         Reported by Rainer Tammer <tammer@tammer.net>.
1200
1201 2008-10-12  Bruno Haible  <bruno@clisp.org>
1202
1203         Use msvcrt aware primitives for creation/termination of Win32 threads.
1204         * lib/glthread/thread.c: Include <process.h>.
1205         (glthread_create_func): Use _beginthreadex instead of CreateThread.
1206         (wrapper_func): Update signature.
1207         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1208
1209 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1210             Bruno Haible  <bruno@clisp.org>
1211
1212         Provide a Win32 implementation of the 'cond' module.
1213         * lib/glthread/cond.h [USE_WIN32]: New implementation.
1214         * lib/glthread/cond.c (glthread_cond_init_func,
1215         glthread_cond_wait_func, glthread_cond_timedwait_func,
1216         glthread_cond_signal_func, glthread_cond_broadcast_func,
1217         glthread_cond_destroy_func) [USE_WIN32]: New functions.
1218         * modules/cond (Dependencies): Add gettimeofday.
1219
1220 2008-10-11  Bruno Haible  <bruno@clisp.org>
1221
1222         Make sleep work on older versions of mingw.
1223         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1224         only whether it exists.
1225         * doc/posix-functions/sleep.texi: Mention the problem with older
1226         versions of mingw.
1227
1228 2008-10-11  Bruno Haible  <bruno@clisp.org>
1229
1230         New module 'shutdown'.
1231         * modules/shutdown: New file.
1232         * lib/sys_socket.in.h (shutdown): New declaration.
1233         * lib/winsock.c (shutdown): New function.
1234         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1235         GNULIB_SHUTDOWN.
1236         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1237         * doc/posix-functions/shutdown.texi: Document the new module.
1238
1239 2008-10-11  Jim Meyering  <meyering@redhat.com>
1240
1241         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1242
1243 2008-10-11  Bruno Haible  <bruno@clisp.org>
1244
1245         New module 'fclose'.
1246         * modules/fclose: New file.
1247         * lib/stdio.in.h (fclose): New declaration.
1248         * lib/fclose.c: New file.
1249         * m4/fclose.m4: New file.
1250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1251         REPLACE_FCLOSE.
1252         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1253         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1254         REPLACE_FCLOSE.
1255         * modules/close (Depends-on): fclose.
1256         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1257
1258 2008-10-11  Bruno Haible  <bruno@clisp.org>
1259
1260         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1261         set errno and don't call _close.
1262
1263 2008-10-10  Bruno Haible  <bruno@clisp.org>
1264
1265         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1266         ACL, not afterwards. Fixes test failure on Cygwin.
1267
1268 2008-10-09  Ben Pfaff  <blp@gnu.org>
1269
1270         * build-aux/announce-gen: Fix gnulib version related part of usage
1271         message.  Die with a useful error message if no tarballs are
1272         found.
1273
1274 2008-10-10  Jim Meyering  <meyering@redhat.com>
1275
1276         bootstrap: use git's --depth=N option only if it's supported
1277         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1278         recognize the --depth option.  Reported by Pádraig Brady.
1279
1280 2008-10-09  Bruno Haible  <bruno@clisp.org>
1281
1282         New module 'ioctl'.
1283         * modules/ioctl: New file.
1284         * lib/sys_socket.in.h (ioctl): Remove declaration.
1285         * lib/winsock.c: Include <sys/ioctl.h>.
1286         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1287         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1288         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1289         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1290         * doc/posix-functions/ioctl.texi: Mention the new module.
1291
1292 2008-10-09  Bruno Haible  <bruno@clisp.org>
1293
1294         New module 'sys_ioctl'.
1295         * lib/sys_ioctl.in.h: New file.
1296         * m4/sys_ioctl_h.m4: New file.
1297         * modules/sys_ioctl: New file.
1298         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1299
1300 2008-10-09  Bruno Haible  <bruno@clisp.org>
1301
1302         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1303         * lib/winsock.c: Include <stdarg.h>.
1304         (rpl_ioctl): Change to second argument 'int' and then varargs.
1305
1306 2008-10-09  Bruno Haible  <bruno@clisp.org>
1307
1308         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1309         when the sys_socket module is present and the system has <winsock2.h>.
1310
1311 2008-10-09  Bruno Haible  <bruno@clisp.org>
1312
1313         * doc/posix-functions/close.texi: Mention module 'close' instead of
1314         module 'sys_socket'.
1315
1316 2008-10-09  Bruno Haible  <bruno@clisp.org>
1317
1318         * doc/glibc-headers/sys_ioctl.texi: New file.
1319         * doc/gnulib.texi: Include it.
1320
1321 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1322             Bruno Haible  <bruno@clisp.org>
1323
1324         Combine the two replacements of 'close'.
1325         * lib/sys_socket.in.h (close): Define to a reminder to include
1326         <unistd.h>.
1327         (_gl_close_fd_maybe_socket): New declaration.
1328         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1329         * lib/winsock.c (close): Remove undefinition.
1330         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1331         needed for the gnulib module 'close'.
1332         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1333         define to an error symbol or to a warning, if suitable.
1334         * lib/close.c: Include <sys/socket.h>.
1335         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1336         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1337         UNISTD_H_HAVE_WINSOCK2_H.
1338         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1340         UNISTD_H_HAVE_WINSOCK2_H.
1341         * modules/sys_socket (Files): Add m4/unistd_h.m4.
1342         (configure.ac): Set a module indicator.
1343         (Makefile.am): Substitute GNULIB_CLOSE.
1344         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1345         * modules/poll-tests (Depends-on): Add close.
1346         * modules/select-tests (Depends-on): Likewise.
1347
1348 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1349             Bruno Haible  <bruno@clisp.org>
1350
1351         New module 'close'.
1352         * modules/close: New file.
1353         * lib/unistd.in.h (close): Move declaration out of the
1354         FCHDIR_REPLACEMENT scope.
1355         (_gl_unregister_fd): New declaration.
1356         * lib/close.c: New file.
1357         * lib/fchdir.c (rpl_close): Remove function.
1358         * m4/close.m4: New file.
1359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1360         close.
1361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1362         REPLACE_CLOSE.
1363         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1364         REPLACE_CLOSE.
1365         * modules/fchdir (Depends-on): Add close.
1366
1367 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1368             Bruno Haible  <bruno@clisp.org>
1369
1370         * lib/fcntl.in.h (open): Simplify conditionals.
1371         (_gl_register_fd): New declaration.
1372         * lib/fchdir.c (rpl_open): Remove function.
1373         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1374         also.
1375         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1377         open.
1378
1379 2008-10-09  Jim Meyering  <meyering@redhat.com>
1380
1381         GNUmakefile: use the more name-space-friendly "_version"
1382         * top/GNUmakefile (_dummy): Update.
1383         (_version): Rename from "version".
1384
1385 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1386             Bruno Haible  <bruno@clisp.org>
1387
1388         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1389         rpl_close.
1390         (_gl_register_fd): New function, extracted from rpl_open.
1391         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1392         (rpl_open, rpl_opendir): Use _gl_register_fd.
1393
1394 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1395
1396         Fix organization of 'open' replacement.
1397         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1398         (gl_FUNC_OPEN): Use it.
1399         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1400
1401 2008-10-08  Bruno Haible  <bruno@clisp.org>
1402
1403         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1404
1405 2008-10-08  Simon Josefsson  <simon@josefsson.org>
1406
1407         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
1408         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1409         listen).
1410
1411 2008-10-08  Eric Blake  <ebb9@byu.net>
1412
1413         GNUmakefile: add 'make version' target
1414         * top/GNUmakefile (_curr-ver): Split version update rules...
1415         (version): ...into a target.
1416
1417 2008-10-07  Bruno Haible  <bruno@clisp.org>
1418
1419         Use a more portable replacement expression for -0.0L.
1420         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1421         instead of -0.0L. Fix m4 quotation.
1422
1423         * tests/test-signbit.c: Include <float.h>.
1424         (minus_zero): New variable.
1425         (test_signbitl): Use minus_zero instead of -zero.
1426         * modules/signbit-tests (Depends-on): Add float.
1427
1428         * tests/test-ceill.c: Include <float.h>.
1429         (zero): Remove variable.
1430         (minus_zero): New variable.
1431         (main): Use minus_zero instead of -zero.
1432         * modules/ceill-tests (Depends-on): Add float.
1433
1434         * tests/test-floorl.c: Include <float.h>.
1435         (zero): Remove variable.
1436         (minus_zero): New variable.
1437         (main): Use minus_zero instead of -zero.
1438         * modules/floorl-tests (Depends-on): Add float.
1439
1440         * tests/test-roundl.c: Include <float.h>.
1441         (zero): Remove variable.
1442         (minus_zero): New variable.
1443         (main): Use minus_zero instead of -zero.
1444         * modules/roundl-tests (Depends-on): Add float.
1445
1446         * tests/test-truncl.c: Include <float.h>.
1447         (zero): Remove variable.
1448         (minus_zero): New variable.
1449         (main): Use minus_zero instead of -zero.
1450         * modules/truncl-tests (Depends-on): Add float.
1451
1452         * tests/test-frexpl.c (zero): Remove variable.
1453         (minus_zero): New variable.
1454         (main): Use minus_zero instead of -zero.
1455         * modules/frexpl-tests (Depends-on): Add float.
1456
1457         * tests/test-isnan.c (zerol): Remove variable.
1458         (minus_zerol): New variable.
1459         (test_long_double): Use minus_zerol instead of -zerol.
1460         * modules/isnan-tests (Depends-on): Add float.
1461
1462         * tests/test-isnanl.h (zero): Remove variable.
1463         (minus_zero): New variable.
1464         (main): Use minus_zero instead of -zero.
1465         * modules/isnanl-nolibm-tests (Depends-on): Add float.
1466         * modules/isnanl-tests (Depends-on): Add float.
1467
1468         * tests/test-ldexpl.c (zero): Remove variable.
1469         (minus_zero): New variable.
1470         (main): Use minus_zero instead of -zero.
1471         * modules/ldexpl-tests (Depends-on): Add float.
1472
1473         * tests/test-snprintf-posix.h (zerol): Remove variable.
1474         (minus_zerol): New variable.
1475         (test_function): Use minus_zerol instead of -zerol.
1476         * modules/snprintf-posix-tests (Depends-on): Add float.
1477         * modules/vsnprintf-posix-tests (Depends-on): Add float.
1478
1479         * tests/test-sprintf-posix.h (zerol): Remove variable.
1480         (minus_zerol): New variable.
1481         (test_function): Use minus_zerol instead of -zerol.
1482         * modules/sprintf-posix-tests (Depends-on): Add float.
1483         * modules/vsprintf-posix-tests (Depends-on): Add float.
1484
1485         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1486         (minus_zerol): New variable.
1487         (test_function): Use minus_zerol instead of -zerol.
1488         * modules/vasnprintf-posix-tests (Depends-on): Add float.
1489
1490         * tests/test-vasprintf-posix.c (zerol): Remove variable.
1491         (minus_zerol): New variable.
1492         (test_function): Use minus_zerol instead of -zerol.
1493         * modules/vasprintf-posix-tests (Depends-on): Add float.
1494
1495 2008-10-07  Simon Josefsson  <simon@josefsson.org>
1496
1497         * MODULES.html.sh (Support for building documentation): Mention
1498         pmccabe2html.  Sort entries.
1499
1500         Add pmccabe2html module, from gnupdf.
1501         * build-aux/pmccabe.css: New file.
1502         * build-aux/pmccabe2html: New file.
1503         * m4/pmccabe2html.m4: New file.
1504         * modules/pmccabe2html: New file.
1505
1506 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
1507
1508         flock: new module
1509         * MODULES.html.sh: Add to list of modules.
1510         * lib/flock.c: flock implementation for Windows and Unix systems
1511         which have fcntl.
1512         * doc/glibc-functions/flock.texi: Update documentation.
1513         * lib/sys_file.in.h: <sys/file.h> header file.
1514         * m4/flock.m4: M4 macros.
1515         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1516         * modules/flock: flock module.
1517         * modules/flock-tests: flock tests module.
1518         * modules/sys_file: sys/file.h module.
1519         * tests/test-flock.c: test suite for flock.
1520
1521 2008-10-06  Jim Meyering  <meyering@redhat.com>
1522
1523         bootstrap: check for LT_INIT more portably still ;-)
1524         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1525         Spotted by Bruno Haible.
1526
1527 2008-10-06  Eric Blake  <ebb9@byu.net>
1528
1529         test-signbit: avoid tripping Irix cc bug on -0.0L
1530         * tests/test-signbit.c (minus_zerol): Delete, and replace with
1531         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
1532         entire testsuite consistent and avoids an Irix 6.2 bug.
1533
1534 2008-10-05  Bruno Haible  <bruno@clisp.org>
1535             Jim Meyering  <jim@meyering.net>
1536
1537         Add an option for ignoring EPIPE during close_stdout.
1538         * lib/closeout.h: Include <stdbool.h>.
1539         (close_stdout_set_ignore_EPIPE): New declaration.
1540         * lib/closeout.c: Include <stdbool.h>.
1541         (ignore_EPIPE): New variable.
1542         (close_stdout_set_ignore_EPIPE): New function.
1543         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1544         * lib/close-stream.c (close_stream): Mention the possible EPIPE
1545         failure.
1546         * modules/closeout (Depends-on): Add stdbool.
1547
1548 2008-10-05  Bruno Haible  <bruno@clisp.org>
1549
1550         * modules/accept: New file.
1551         * modules/bind: New file.
1552         * modules/connect: New file.
1553         * modules/getpeername: New file.
1554         * modules/getsockname: New file.
1555         * modules/getsockopt: New file.
1556         * modules/listen: New file.
1557         * modules/recv: New file.
1558         * modules/recvfrom: New file.
1559         * modules/send: New file.
1560         * modules/sendto: New file.
1561         * modules/setsockopt: New file.
1562         * modules/socket: New file.
1563         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1564         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1565         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1566         the particular module is requested. Add a link warning when the
1567         particular module is not requested.
1568         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1569         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1570         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1571         the particular module is requested.
1572         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1573         gl_SYS_SOCKET_H_DEFAULTS): New macros.
1574         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1575         * modules/sys_socket (Depends-on): Add link-warning.
1576         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1577         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1578         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1579         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1580         GL_LINK_WARNING.
1581         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1582         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1583         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1584         * doc/posix-functions/getpeername.texi: Mention the new module
1585         'getpeername'.
1586         * doc/posix-functions/getsockname.texi: Mention the new module
1587         'getsockname'.
1588         * doc/posix-functions/getsockopt.texi: Mention the new module
1589         'getsockopt'.
1590         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1591         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1592         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1593         * doc/posix-functions/send.texi: Mention the new module 'send'.
1594         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1595         * doc/posix-functions/setsockopt.texi: Mention the new module
1596         'setsockopt'.
1597         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1598         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1599         listen, connect, accept.
1600         * modules/select-tests (Depends-on): Likewise.
1601
1602 2008-10-05  Bruno Haible  <bruno@clisp.org>
1603
1604         * lib/winsock.c (strerror): Remove unused #undef.
1605         (rpl_close): Remove unused local variable.
1606
1607         * modules/sys_socket (Depends-on); Add errno.
1608
1609 2008-10-05  Bruno Haible  <bruno@clisp.org>
1610
1611         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1612         (select): Add a link warning when the 'select' module is not used.
1613         * modules/sys_select (Depends-on): Add link-warning.
1614         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1615         Suggested by Paolo Bonzini.
1616
1617 2008-10-05  Jim Meyering  <meyering@redhat.com>
1618
1619         bootstrap: check for LT_INIT more portably
1620         * build-aux/bootstrap: Avoid using grep -E, since it's not
1621         portable enough.  Suggestion from Bruno Haible.
1622
1623 2008-10-05  Bruno Haible  <bruno@clisp.org>
1624
1625         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1626         as being fixed by gnulib.
1627
1628 2008-10-05  Bruno Haible  <bruno@clisp.org>
1629
1630         * modules/select-tests: New file, mostly copied from
1631         modules/sys_select-tests.
1632         * tests/test-select.c: New file, mostly copied from
1633         tests/test-sys_select.c.
1634         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1635         * modules/sys_select-tests (Depends-on): Remove all dependencies.
1636         (Makefile.am): Remove test_sys_select_LDADD.
1637
1638         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1639         to an undefined symbol, for an error message.
1640         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1641         (gl_SYS_SELECT_H_DEFAULTS): New macro.
1642         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1643         winsock-select.c here.
1644         * modules/sys_select (Files): Remove lib/winsock-select.c.
1645         (Depends-on): Remove alloca.
1646         (Makefile.am): Substitute GNULIB_SELECT.
1647         * modules/select: New file.
1648         * doc/posix-functions/select.texi: Update.
1649
1650 2008-10-05  Bruno Haible  <bruno@clisp.org>
1651
1652         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1653         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1654         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1655         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1656         getdtablesize.
1657         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1658         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1659
1660 2008-10-05  Bruno Haible  <bruno@clisp.org>
1661
1662         * modules/getdtablesize-tests: New file.
1663         * tests/test-getdtablesize.c: New file.
1664
1665         New module 'getdtablesize'.
1666         * lib/unistd.in.h (getdtablesize): New declaration.
1667         * lib/getdtablesize.c: New file.
1668         * m4/getdtablesize.m4: New file.
1669         * modules/getdtablesize: New file.
1670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1671         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1672         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1673         HAVE_GETDTABLESIZE.
1674         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1675
1676 2008-10-05  Bruno Haible  <bruno@clisp.org>
1677
1678         * modules/sched (Makefile.am): Fix typo.
1679         Reported by Simon Josefsson.
1680
1681 2008-10-05  Jim Meyering  <meyering@redhat.com>
1682
1683         bootstrap: check for LT_INIT, too
1684         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1685         are deprecated.  Suggestion from Ralf Wildenhues.
1686
1687 2008-10-05  Bruno Haible  <bruno@clisp.org>
1688
1689         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1690         overriding them by ours.
1691         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1692
1693 2008-10-05  Jim Meyering  <meyering@redhat.com>
1694
1695         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1696         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1697         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
1698
1699 2008-10-04  Bruno Haible  <bruno@clisp.org>
1700
1701         * modules/dup2 (License): Change to LGPLv2+.
1702         * modules/sleep (License): Likewise.
1703         * modules/perror (License): Likewise.
1704         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1705         Blake.
1706         * modules/signal (License): Likewise.
1707         * modules/sigprocmask (License): Likewise.
1708         * modules/raise (License): Change to LGPLv2+, with approval by Jim
1709         Meyering.
1710
1711 2008-10-04  Bruno Haible  <bruno@clisp.org>
1712
1713         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1714         Reported by Rainer Tammer <tammer@tammer.net>.
1715
1716 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
1717             Bruno Haible  <bruno@clisp.org>
1718
1719         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1720         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1721         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1722
1723 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
1724
1725         filevercmp: new module
1726         * lib/filevercmp.h: New function filevercmp comparing version strings.
1727         * lib/filevercmp.c: Implementation of filevercmp function.
1728         * modules/filevercmp: Module metadata.
1729         * tests/test-filevercmp.c: Unit test for new module.
1730         * modules/filevercmp-tests: Unit test metadata.
1731         * MODULES.html.sh: Add filevercmp module.
1732
1733 2008-10-03  Bruno Haible  <bruno@clisp.org>
1734
1735         * lib/c-ctype.h: Add comment.
1736         Reported by Jim Meyering.
1737
1738 2008-10-02  Bruno Haible  <bruno@clisp.org>
1739
1740         * modules/posix_spawn-internal (Depends-on): Add 'open'.
1741
1742 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1743
1744         * build-aux/bootstrap: Allow renaming bootstrap, and change the
1745         name of bootstrap.conf accordingly.
1746
1747 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1748
1749         * build-aux/bootstrap: Install git-merge-changelog configuration
1750         items into .gitconfig if needed.
1751
1752 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1753
1754         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1755         git repository, and initialize/update it accordingly.
1756
1757 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
1758
1759         * modules/fsync-tests: New file.
1760         * tests/test-fsync.c: New file.
1761
1762         New module 'fsync'.
1763         * lib/fsync.c: New file.
1764         * m4/fsync.m4: New file.
1765         * modules/fsync: New file.
1766         * lib/unistd.in.h (fsync): New declaration.
1767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1768         GNULIB_FSYNC and HAVE_FSYNC.
1769         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1770         * MODULES.html.sh (posix_functions): Add fsync.
1771         * doc/posix-functions/fsync.texi: Mention the new module.
1772
1773 2008-10-02  Jim Meyering  <meyering@redhat.com>
1774
1775         fts.c: sync with similar code from coreutils' remove.c
1776         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1777         Guard also with "#if defined __linux__", since for now at least,
1778         this code is Linux-kernel-specific.
1779
1780 2008-10-02  Jim Meyering  <meyering@redhat.com>
1781
1782         fts: bug fixes
1783         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1784         Include <sys/vfs.h>, not <sys/statfs.h>.
1785
1786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1787         Include <sys/vfs.h>, not <sys/statfs.h>.
1788
1789 2008-10-01  Bruno Haible  <bruno@clisp.org>
1790
1791         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1793         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1794         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1795         * doc/posix-functions/posix_spawnp.texi: Likewise.
1796         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1797         whether posix_spawn actually works.
1798         * m4/pipe.m4 (gl_PIPE): Likewise.
1799         * modules/execute (Files): Add m4/posix_spawn.m4.
1800         * modules/pipe (Files): Add m4/posix_spawn.m4.
1801         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1802
1803 2008-10-01  Jim Meyering  <meyering@redhat.com>
1804
1805         remove trailing spaces
1806         * NEWS: Likewise.
1807         * lib/poll.c (poll): Likewise.
1808         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1809         * lib/winsock.c (rpl_close): Likewise.
1810         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1811         * modules/yield: Likewise.
1812         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1813         * tests/test-sys_select.c (connect_to_socket): Likewise.
1814
1815         fts.c: adjust a new interface to be more generally useful
1816         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1817         (fts_build): Adjust caller.
1818
1819 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1820
1821         * modules/cond-tests: New file.
1822         * tests/test-cond.c: New file.
1823
1824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1825             Bruno Haible  <bruno@clisp.org>
1826
1827         * modules/cond (Dependencies): Add errno, time.
1828         * lib/glthread/cond.h: Include <time.h>.
1829         (gl_cond_define, gl_cond_define_initialized): Use the same definition
1830         across platforms.
1831
1832 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1833             Bruno Haible  <bruno@clisp.org>
1834
1835         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1836
1837 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1838             Bruno Haible  <bruno@clisp.org>
1839
1840         * modules/tls-tests (Depends-on): Add thread, yield.
1841         (configure.ac): Remove all checks.
1842         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1843         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1844         gl_thread_self): Remove definitions. Include glthread/thread.h and
1845         glthread/yield.h instead.
1846         (test_tls): Pass an additional NULL argument to gl_thread_join.
1847
1848 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1849             Bruno Haible  <bruno@clisp.org>
1850
1851         * modules/lock-tests (Depends-on): Add thread, yield.
1852         (configure.ac): Remove all checks.
1853         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1854         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1855         gl_thread_self): Remove definitions. Include glthread/thread.h and
1856         glthread/yield.h instead.
1857         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1858         additional NULL argument to gl_thread_join.
1859
1860 2008-09-30  Bruno Haible  <bruno@clisp.org>
1861
1862         Fix the Win32 implementation of the 'thread' module.
1863         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
1864         pointer type.
1865         (gl_thread_self): Invoke gl_thread_self_func.
1866         (gl_thread_self_func): New declaration.
1867         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
1868         (do_init_self_key, init_self_key): New functions.
1869         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
1870         Remove some fields.
1871         (running_threads, running_lock): Remove variables.
1872         (get_current_thread_handle): New function.
1873         (gl_thread_self_func, wrapper_func, glthread_create_func,
1874         glthread_join_func, gl_thread_exit_func): Largely rewritten and
1875         simplified.
1876
1877 2008-09-30  Bruno Haible  <bruno@clisp.org>
1878
1879         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
1880         files.
1881
1882 2008-09-30  Jim Meyering  <meyering@redhat.com>
1883
1884         fts.m4: correct the test for statfs.f_type
1885         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
1886         when checking for statfs.f_type.
1887
1888 2008-09-15  Simon Josefsson  <simon@josefsson.org>
1889
1890         tests: avoid some compiler warnings
1891         * tests/test-memchr.c (main): Pass NULL indirectly.
1892         * tests/test-getdate.c (main): Remove unused variable 'ret'.
1893
1894 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
1895
1896         getdate.y: disallow countable dayshifts like "4 yesterday ago"
1897         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
1898         exactly specified dayshifts.
1899         (dayshift): New rule.
1900         (rel): Add dayshift.
1901         (relative_time_table) [tomorrow, yesterday, today, now]:
1902         Use tDAY_SHIFT in place of tDAY_UNIT.
1903         * tests/test-getdate.c: Add tests for now-disallowed countable
1904         dayshifts, e.g., "4 yesterday ago".
1905
1906 2008-09-29  Bruno Haible  <bruno@clisp.org>
1907
1908         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
1909         * tests/test-posix_spawn1.in.sh: Renamed from
1910         tests/test-posix_spawn.in.sh.
1911         * tests/test-posix_spawn2.c: New file.
1912         * tests/test-posix_spawn2.in.sh: New file.
1913         * modules/posix_spawnp-tests (Files): Update.
1914         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
1915
1916 2008-09-29  Bruno Haible  <bruno@clisp.org>
1917
1918         Propagate effects of putenv/setenv/unsetenv to child processes.
1919         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
1920         * lib/pipe.c (create_pipe): Likewise.
1921
1922 2008-09-29  Bruno Haible  <bruno@clisp.org>
1923
1924         Enable use of shell scripts as executables in mingw.
1925         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
1926         run the program as a shell script.
1927         * lib/pipe.c (create_pipe): Likewise.
1928         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
1929         resulting array.
1930
1931 2008-09-29  Eric Blake  <ebb9@byu.net>
1932
1933         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
1934
1935 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
1936
1937         * doc/posix-functions/accept.texi: Update mingw problems.
1938         * doc/posix-functions/bind.texi: Update mingw problems.
1939         * doc/posix-functions/close.texi: Update mingw problems.
1940         * doc/posix-functions/connect.texi: Update mingw problems.
1941         * doc/posix-functions/getpeername.texi: Update mingw problems.
1942         * doc/posix-functions/getsockname.texi: Update mingw problems.
1943         * doc/posix-functions/getsockopt.texi: Update mingw problems.
1944         * doc/posix-functions/ioctl.texi: Update mingw problems.
1945         * doc/posix-functions/listen.texi: Update mingw problems.
1946         * doc/posix-functions/recv.texi: Update mingw problems.
1947         * doc/posix-functions/recvfrom.texi: Update mingw problems.
1948         * doc/posix-functions/select.texi: Update mingw problems.
1949         * doc/posix-functions/send.texi: Update mingw problems.
1950         * doc/posix-functions/sendto.texi: Update mingw problems.
1951         * doc/posix-functions/setsockopt.texi: Update mingw problems.
1952         * doc/posix-functions/socket.texi: Update mingw problems.
1953
1954 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
1955             Bruno Haible  <bruno@clisp.org>
1956
1957         * lib/sys_select.in.h: Include sys/time.h.
1958         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
1959         * modules/sys_select: Depend on sys_time.
1960         * tests/test-sys_select.c: Test that sys/select.h defines struct
1961         timeval fully.
1962
1963 2008-09-29  Bruno Haible  <bruno@clisp.org>
1964
1965         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
1966         * lib/sys_select.in.h: Likewise.
1967
1968 2008-09-29  Bruno Haible  <bruno@clisp.org>
1969
1970         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
1971
1972 2008-09-29  Bruno Haible  <bruno@clisp.org>
1973
1974         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
1975         Set LIBSOCKET instead of augmenting LIBS.
1976         * modules/sockets (Link): New section.
1977         * modules/sockets-tests (test_sockets_LDADD): New variable.
1978         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
1979         * modules/poll-tests (test_poll_LDADD): New variable.
1980         * NEWS: Document the change.
1981
1982 2008-09-29  Bruno Haible  <bruno@clisp.org>
1983
1984         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
1985         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
1986         ARPA_INET_H directly.
1987         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1988
1989 2008-09-28  Bruno Haible  <bruno@clisp.org>
1990
1991         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
1992         from gl_HEADER_SYS_SOCKET.
1993         (gl_HEADER_SYS_SOCKET): Invoke it.
1994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1995
1996 2008-09-28  Bruno Haible  <bruno@clisp.org>
1997
1998         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
1999         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2000         Needed on OSF/1 4.0.
2001
2002 2008-09-28  Bruno Haible  <bruno@clisp.org>
2003
2004         Override open more carefully.
2005         * lib/open.c (orig_open): New function.
2006         (rpl_open): Use orig_open instead of open.
2007         * lib/fcntl.in.h: Add special invocation convention.
2008         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2009         (gl_FUNC_OPEN): Invoke it.
2010
2011         Override freopen more carefully.
2012         * lib/freopen.c (orig_freopen): New function.
2013         (rpl_freopen): Use orig_freopen instead of freopen.
2014         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2015         (gl_FUNC_FREOPEN): Invoke it.
2016
2017         Override fopen more carefully.
2018         * lib/fopen.c (orig_fopen): New function.
2019         (rpl_fopen): Use orig_fopen instead of fopen.
2020         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2021         (gl_FUNC_FOPEN): Invoke it.
2022         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2023
2024 2008-09-28  Bruno Haible  <bruno@clisp.org>
2025
2026         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2027         SIGPIPE.
2028
2029 2008-09-28  Bruno Haible  <bruno@clisp.org>
2030
2031         * tests/test-sigaction.c (handler, main): Disable the check whether
2032         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2033         glibc systems with LinuxThreads.
2034
2035 2008-09-28  Bruno Haible  <bruno@clisp.org>
2036
2037         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2038
2039         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2040         with AIX xlc.
2041         * lib/fcntl.in.h (open): Likewise.
2042         Reported by Rainer Tammer <tammer@tammer.net>.
2043
2044 2008-09-28  Bruno Haible  <bruno@clisp.org>
2045
2046         * modules/posix_spawnp-tests: New file.
2047         * tests/test-posix_spawn.c: New file.
2048         * tests/test-posix_spawn.in.sh: New file.
2049
2050         New module 'posix_spawnp'.
2051         * modules/posix_spawnp: New file.
2052         * lib/spawnp.c: New file, from GNU libc with modifications.
2053         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2054
2055         New module 'posix_spawn'.
2056         * modules/posix_spawn: New file.
2057         * lib/spawn.c: New file, from GNU libc with modifications.
2058         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2059
2060         New module 'posix_spawnattr_destroy'.
2061         * modules/posix_spawnattr_destroy: New file.
2062         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
2063         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
2064         module.
2065
2066         New module 'posix_spawnattr_setsigmask'.
2067         * modules/posix_spawnattr_setsigmask: New file.
2068         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
2069         modifications.
2070         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
2071         new module.
2072
2073         New module 'posix_spawnattr_getsigmask'.
2074         * modules/posix_spawnattr_getsigmask: New file.
2075         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
2076         modifications.
2077         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
2078         new module.
2079
2080         New module 'posix_spawnattr_setsigdefault'.
2081         * modules/posix_spawnattr_setsigdefault: New file.
2082         * lib/spawnattr_setdefault.c: New file, from GNU libc with
2083         modifications.
2084         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
2085         new module.
2086
2087         New module 'posix_spawnattr_getsigdefault'.
2088         * modules/posix_spawnattr_getsigdefault: New file.
2089         * lib/spawnattr_getdefault.c: New file, from GNU libc with
2090         modifications.
2091         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
2092         new module.
2093
2094         New module 'posix_spawnattr_setschedpolicy'.
2095         * modules/posix_spawnattr_setschedpolicy: New file.
2096         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
2097         modifications.
2098         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
2099         new module.
2100
2101         New module 'posix_spawnattr_getschedpolicy'.
2102         * modules/posix_spawnattr_getschedpolicy: New file.
2103         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
2104         modifications.
2105         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
2106         new module.
2107
2108         New module 'posix_spawnattr_setschedparam'.
2109         * modules/posix_spawnattr_setschedparam: New file.
2110         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
2111         modifications.
2112         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
2113         new module.
2114
2115         New module 'posix_spawnattr_getschedparam'.
2116         * modules/posix_spawnattr_getschedparam: New file.
2117         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
2118         modifications.
2119         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
2120         new module.
2121
2122         New module 'posix_spawnattr_setpgroup'.
2123         * modules/posix_spawnattr_setpgroup: New file.
2124         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
2125         modifications.
2126         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
2127         module.
2128
2129         New module 'posix_spawnattr_getpgroup'.
2130         * modules/posix_spawnattr_getpgroup: New file.
2131         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
2132         modifications.
2133         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
2134         module.
2135
2136         New module 'posix_spawnattr_setflags'.
2137         * modules/posix_spawnattr_setflags: New file.
2138         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2139         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2140         module.
2141
2142         New module 'posix_spawnattr_getflags'.
2143         * modules/posix_spawnattr_getflags: New file.
2144         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2145         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2146         module.
2147
2148         New module 'posix_spawnattr_init'.
2149         * modules/posix_spawnattr_init: New file.
2150         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2151         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2152         module.
2153
2154         New module 'posix_spawn_file_actions_destroy'.
2155         * modules/posix_spawn_file_actions_destroy: New file.
2156         * lib/spawn_faction_destroy.c: New file, from GNU libc with
2157         modifications.
2158         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2159         the new module.
2160
2161         New module 'posix_spawn_file_actions_addopen'.
2162         * modules/posix_spawn_file_actions_addopen: New file.
2163         * lib/spawn_faction_addopen.c: New file, from GNU libc with
2164         modifications.
2165         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2166         the new module.
2167
2168         New module 'posix_spawn_file_actions_adddup2'.
2169         * modules/posix_spawn_file_actions_adddup2: New file.
2170         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2171         modifications.
2172         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2173         the new module.
2174
2175         New module 'posix_spawn_file_actions_addclose'.
2176         * modules/posix_spawn_file_actions_addclose: New file.
2177         * lib/spawn_faction_addclose.c: New file, from GNU libc with
2178         modifications.
2179         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2180         the new module.
2181
2182         New module 'posix_spawn_file_actions_init'.
2183         * modules/posix_spawn_file_actions_init: New file.
2184         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2185         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2186         new module.
2187
2188         New module 'posix_spawn-internal'.
2189         * modules/posix_spawn-internal: New file.
2190         * lib/spawn_int.h: New file, from GNU libc with modifications.
2191         * lib/spawni.c: New file, from GNU libc with modifications.
2192         * m4/posix_spawn.m4: New file.
2193
2194         New module 'spawn'.
2195         * modules/spawn: New file.
2196         * lib/spawn.in.h: New file, from GNU libc with modifications.
2197         * m4/spawn_h.m4: New file.
2198         * doc/posix-headers/spawn.texi: Mention the new module.
2199
2200 2008-09-28  Bruno Haible  <bruno@clisp.org>
2201
2202         * modules/sched-tests: New file.
2203         * tests/test-sched.c: New file.
2204
2205         New module 'sched'.
2206         * modules/sched: New file.
2207         * lib/sched.in.h: New file.
2208         * m4/sched_h.m4: New file.
2209         * doc/posix-headers/sched.texi: Mention the new module.
2210
2211 2008-09-27  Eric Blake  <ebb9@byu.net>
2212
2213         Fix previous patch, and tweak references to $0.
2214         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2215         (func_version, func_gnulib_dir): Don't call this program
2216         gnulib-tool.
2217         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2218         with using $0 in function.
2219         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2220         (func_fatal_error): Reuse the name the user invoked us with.
2221
2222 2008-09-27  Bruno Haible  <bruno@clisp.org>
2223
2224         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2225         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2226         (gl_ICONV_H): Not here.
2227         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2228         instead of assigning ICONV_H directly.
2229
2230         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2232         WCHAR_H directly.
2233
2234 2008-09-27  Bruno Haible  <bruno@clisp.org>
2235
2236         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2237         * modules/arpa_inet (Depends-on): Add link-warning.
2238         (Makefile.am): Insert the definition of GL_LINK-WARNING.
2239         * modules/unistd (Makefile.am): Likewise.
2240
2241 2008-09-26  Bruno Haible  <bruno@clisp.org>
2242
2243         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2244         variables.
2245         (func_version): Essentially copied from gnulib-tool.
2246         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2247         func_readlink): Copied from gnulib-tool.
2248
2249 2008-09-26  Bruno Haible  <bruno@clisp.org>
2250
2251         * gnulib-tool (func_version): Change directory to $gnulib_dir before
2252         invoking git-version-gen.
2253
2254 2008-09-26  Bruno Haible  <bruno@clisp.org>
2255
2256         * posix-modules: Update to directory names changed on 2008-01-19.
2257         Remove commas in output before splitting into words. No more need to
2258         avoid 'ftruncate' since 2007-02-19.
2259
2260 2008-09-26  Bruno Haible  <bruno@clisp.org>
2261
2262         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2263
2264 2008-09-26  Bruno Haible  <bruno@clisp.org>
2265
2266         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2267         * modules/fwriteerror (Depends-on): Add errno.
2268
2269 2008-09-26  Bruno Haible  <bruno@clisp.org>
2270
2271         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2272         * tests/test-vc-list-files-cvs.sh: Likewise.
2273
2274 2008-09-26  Bruno Haible  <bruno@clisp.org>
2275
2276         * doc/posix-headers/sys_resource.texi: Reorder items.
2277
2278 2008-09-26  Jim Meyering  <meyering@redhat.com>
2279
2280         fts: tweak inode comparison function
2281         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2282         inode numbers, as documented.
2283
2284         fts: sort dirent entries on inode number before traversing
2285         This avoids a quadratic, seek-related performance penalty when
2286         operating on a directory containing many entries (measurable at 10k;
2287         3.5 hours at 2 million entries with a cold cache) on certain types
2288         of file systems, including ext3 and ext4, but not tmpfs.
2289         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2290         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2291         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2292         (fs_handles_readdir_ordered_dirents_efficiently): New function.
2293         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2294         (fts_build): Set the stat.st_ino member from D_INO.
2295         If it is likely to be useful, sort dirent entries on inode number.
2296
2297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2298         and the struct statfs.f_type member.
2299         * modules/fts (Depends-on): Add d-ino.
2300
2301 2008-09-26  Bruno Haible  <bruno@clisp.org>
2302
2303         * modules/sigpipe-die (Depends-on): Add sigpipe.
2304
2305         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2306         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2307         and GNULIB_STDIO_H_SIGPIPE are set.
2308         * lib/stdio-write.c: New file.
2309         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2310         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2311         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2312         REPLACE_STDIO_WRITE_FUNCS.
2313         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2314         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2315         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2316         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2317         * modules/stdio (Files): Add lib/stdio-write.c.
2318         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2319         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2320         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2321         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2322         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2323         REPLACE_FPRINTF_POSIX.
2324         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2325         REPLACE_PRINTF_POSIX.
2326         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2327         REPLACE_VFPRINTF_POSIX.
2328         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2329         REPLACE_VPRINTF_POSIX.
2330         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2331         SIGPIPE issue.
2332         * doc/posix-functions/fputc.texi: Likewise.
2333         * doc/posix-functions/fputs.texi: Likewise.
2334         * doc/posix-functions/fwrite.texi: Likewise.
2335         * doc/posix-functions/printf.texi: Likewise.
2336         * doc/posix-functions/putc.texi: Likewise.
2337         * doc/posix-functions/putchar.texi: Likewise.
2338         * doc/posix-functions/puts.texi: Likewise.
2339         * doc/posix-functions/vfprintf.texi: Likewise.
2340         * doc/posix-functions/vprintf.texi: Likewise.
2341
2342         * modules/safe-write (Depends-on): Add write.
2343
2344         * modules/sigpipe-tests: New file.
2345         * tests/test-sigpipe.c: New file.
2346         * tests/test-sigpipe.sh: New file.
2347
2348         * modules/write: New file.
2349         * lib/unistd.in.h: Include <sys/types.h>.
2350         (write): New declaration.
2351         * lib/write.c: New file.
2352         * m4/write.m4: New file.
2353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2354         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2355         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2356         GNULIB_WRITE, REPLACE_WRITE.
2357         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2358         and the SIGPIPE issue.
2359
2360         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2361         (raise): New declaration.
2362         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2363         (ext_signal): New function.
2364         (rpl_raise): New function.
2365         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2366         GNULIB_SIGNAL_H_SIGPIPE.
2367         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2368         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2369
2370         * modules/sigpipe: New file.
2371         * m4/sigpipe.m4: New file.
2372
2373 2008-09-25  Derek Price  <derek@ximbiot.com>
2374             Bruno Haible  <bruno@clisp.org>
2375
2376         * gnulib-tool (func_import): Report all license incompatibilities, not
2377         just the first one.
2378
2379 2008-09-25  Bruno Haible  <bruno@clisp.org>
2380
2381         * gnulib-tool (func_import): When computing the edits, consider not
2382         only the Makefile.ams that exist but also those that will be generated.
2383
2384 2008-09-25  Simon Josefsson  <simon@josefsson.org>
2385
2386         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2387         fixes gnulib-tool --test warning about duplicate dependency.
2388
2389 2008-09-25  Bruno Haible  <bruno@clisp.org>
2390
2391         * gnulib-tool: Don't ask the user to perform edits in the generated
2392         Makefile.ams.
2393         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2394         apply to the Makefile.am being generated.
2395         (func_emit_tests_Makefile_am): Execute edits that apply to the
2396         Makefile.am being generated.
2397         (func_import): Setup list of Makefile.am edits before emitting the
2398         Makefile.ams, not at the end.
2399         (func_create_testdir): Update.
2400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2401
2402 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2403
2404         * gnulib-tool (func_import): Store the --tests-base option in the
2405         comment in gnulib-cache.m4.
2406
2407 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
2408
2409         * NEWS: Document increased portability that sys_select now provides.
2410
2411         * lib/sys_select.in.h: Install select wrapper.
2412         * lib/sys_socket.in.h: Use more descriptive name when there is no
2413         select wrapper.
2414         * lib/winsock-select.c: New.
2415         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2416         Require gl_HEADER_SYS_SOCKET.
2417         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2418         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2419         * tests/test-sys_select.c: Add functional tests.
2420
2421 2008-09-24  Eric Blake  <ebb9@byu.net>
2422
2423         open, fopen: close fd leak in last patch
2424         * lib/open.c (rpl_open): Close fd before returning error.
2425         * lib/fopen.c (rpl_fopen): Close fd before returning error.
2426         * doc/posix-functions/open.texi (open): Document that Irix also
2427         has the bug.
2428         * doc/posix-functions/fopen.texi (fopen): Likewise.
2429         Reported by Paolo Bonzini.
2430
2431 2008-09-24  Bruno Haible  <bruno@clisp.org>
2432
2433         Ensure that a filename ending in a slash cannot be used to access a
2434         non-directory.
2435         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2436         to check whether it's really a directory.
2437         * lib/fopen.c: Include fcntl.h, unistd.h.
2438         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2439         and fdopen().
2440         * modules/fopen (Depends-on): Add unistd.
2441         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2442         * tests/test-fopen.c (main): Likewise.
2443         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2444         * doc/posix-functions/fopen.texi: Likewise.
2445         Reported by Eric Blake.
2446
2447 2008-09-23  Eric Blake  <ebb9@byu.net>
2448
2449         c-stack: avoid compiler optimizations when provoking overflow
2450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2451         recursion harder to optimize, to ensure a stack overflow occurs.
2452         * tests/test-c-stack.c (recurse): Likewise.
2453         Borrowed from libsigsegv.
2454
2455         c-stack: work around Irix sigaltstack bug
2456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2457         whether sigaltstack uses wrong end of stack_t (copied in part from
2458         libsigsegv).
2459         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2460         Irix bug, without requiring an over-allocation.
2461         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2462         bug.
2463
2464         fopen: document mingw bug on directories
2465         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2466         not allowing a stream visiting a directory, even though reading
2467         from such a stream is not portable.
2468
2469 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2470
2471         * lib/poll.c: Rewrite.
2472         * modules/poll: Depend on alloca.
2473
2474 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2475
2476         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2477         instead define prototypes for a full set of wrappers.  Ensure
2478         that Cygwin does not use the compatibility code, which is only
2479         for MinGW.
2480         * lib/winsock.c: New.
2481         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2482         * modules/sys_socket: Add lib/winsock.c.
2483
2484         * modules/poll-tests: Add errno and perror.
2485         * tests/test-poll.c: Use ioctl, not ioctlsocket.
2486
2487 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2488
2489         * tests/test-poll.c: Downgrade minimum needed Winsock version.
2490
2491 2008-09-23  Bruno Haible  <bruno@clisp.org>
2492
2493         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2494         * doc/glibc-functions/*: Likewise.
2495
2496 2008-09-23  Simon Josefsson  <simon@josefsson.org>
2497
2498         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2499         success.
2500
2501 2008-09-22  Eric Blake  <ebb9@byu.net>
2502             Bruno Haible  <bruno@clisp.org>
2503
2504         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2505         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2506         supply %A but mishandle pseudo-NaN.
2507         Reported by Simon Josefsson.
2508
2509 2008-09-21  Bruno Haible  <bruno@clisp.org>
2510
2511         * tests/test-lock.c (main): Tweak skip message.
2512         * tests/test-tls.c (main): Likewise.
2513
2514 2008-09-21  Bruno Haible  <bruno@clisp.org>
2515
2516         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2517         whether 'struct sigaction' has sa_sigaction here...
2518         (gl_PREREQ_SIG_HANDLER_H): ... not here.
2519         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2520
2521 2008-09-21  Bruno Haible  <bruno@clisp.org>
2522
2523         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2524         section.
2525         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2526         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2527         the new section.
2528         (Support for obsolete systems lacking POSIX:2001): New section.
2529         (String handling <string.h>): Move strdup to the new section.
2530         Suggested by Simon Josefsson and Paolo Bonzini.
2531
2532 2008-09-21  Bruno Haible  <bruno@clisp.org>
2533
2534         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2535         exponents in %e and %g results on 'long double'. Needed for mingw's
2536         improved *printf functions.
2537         * tests/test-vasprintf-posix.c (test_function): Likewise.
2538         * tests/test-snprintf-posix.h (test_function): Likewise.
2539         * tests/test-sprintf-posix.h (test_function): Likewise.
2540         Reported by Eric Blake.
2541
2542 2008-09-21  Bruno Haible  <bruno@clisp.org>
2543
2544         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2545         * tests/test-sprintf-posix.h (test_function): Likewise.
2546
2547 2008-09-21  Bruno Haible  <bruno@clisp.org>
2548
2549         * modules/getpass (Depends-on): Add strdup-posix.
2550
2551         New module 'strdup-posix'.
2552         * modules/strdup-posix: New file.
2553         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2554         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2556         REPLACE_STRDUP.
2557         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2558         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2560         strdup-posix.
2561
2562         * modules/strdup (Depends-on): Remove malloc-posix.
2563
2564 2008-09-20  Bruno Haible  <bruno@clisp.org>
2565
2566         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2567         Wildenhues.
2568
2569 2008-09-20  Bruno Haible  <bruno@clisp.org>
2570
2571         Ensure that wint_t gets defined on IRIX 5.3.
2572         * lib/wchar.in.h (wint_t): Define if not defined by the system.
2573         * lib/wctype.in.h (wint_t): Likewise.
2574         (__wctype_wint_t): Remove type.
2575         (isw*): Use wint_t instead of __wctype_wint_t.
2576         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2577         * modules/wchar (Files): Add m4/wint_t.m4.
2578         (Makefile.am): Substitute HAVE_WINT_T.
2579         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2580         * tests/test-wctype.c: Check that wint_t is defined.
2581         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2582         * doc/posix-headers/wctype.texi: Likewise.
2583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2584
2585 2008-09-18  Bruno Haible  <bruno@clisp.org>
2586
2587         * gnulib-tool (func_exit): Update comment.
2588
2589 2008-09-18  Simon Josefsson  <simon@josefsson.org>
2590
2591         * modules/getaddrinfo (Depends-on): Remove strdup, this module
2592         assumes strdup exists and does not depend on strdup to return
2593         ENOMEM on out of memory conditions.
2594
2595 2008-09-18  Bruno Haible  <bruno@clisp.org>
2596
2597         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
2598         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2599         digits for the exponent.
2600
2601 2008-09-18  Jim Meyering  <meyering@redhat.com>
2602             Bruno Haible  <bruno@clisp.org>
2603
2604         * lib/vasnprintf.c (decimal_point_char): Define also if
2605         NEED_PRINTF_INFINITE_LONG_DOUBLE.
2606
2607 2008-09-16  Bruno Haible  <bruno@clisp.org>
2608         and Eric Blake  <ebb9@byu.net>
2609
2610         vasnprintf: support Irix 5.3
2611         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2612         that mishandle long double infinity.
2613         Reported by Tom G. Christensen.
2614
2615 2008-09-16  Bruno Haible  <bruno@clisp.org>
2616
2617         * doc/glibc-functions/scandir.texi: Mention the function is missing on
2618         Solaris 9.
2619         * doc/glibc-functions/alphasort.texi: Likewise.
2620         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2621
2622 2008-09-16  Jim Meyering  <meyering@redhat.com>
2623
2624         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2625         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2626         a umask modification leak out of a subshell.  Otherwise, the
2627         opensolaris /bin/sh would be accepted and thus cause unwarranted
2628         failures in the coreutils test suite.
2629
2630 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
2631
2632         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2633         to succeed.
2634
2635 2008-09-16  Jim Meyering  <meyering@redhat.com>
2636
2637         avoid spurious test failure when library is built without ACL support
2638         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2639         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2640         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2641         * tests/test-copy-acl.sh: Likewise.
2642
2643 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2644
2645         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2646         based on character occurrence counts.
2647
2648 2008-09-15  Eric Blake  <ebb9@byu.net>
2649
2650         tests: avoid some compiler warnings
2651         * tests/test-memchr.c (main): Pass NULL indirectly.
2652         * tests/test-closein.c (main): Avoid unused variable.
2653
2654 2008-09-15  Bruno Haible  <bruno@clisp.org>
2655
2656         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2657         are missing on OpenBSD 4.0 individually.
2658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2659
2660 2008-09-15  Bruno Haible  <bruno@clisp.org>
2661
2662         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2663         * doc/posix-functions/strerror.texi: Mention also Cygwin.
2664         * doc/posix-functions/perror.texi: Likewise.
2665         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2666         is missing.
2667         Reported by Eric Blake.
2668
2669         * lib/errno.in.h: Use replacement values >= 2000.
2670         Reported by Eric Blake.
2671
2672 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2673
2674         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2675         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2676         limit.
2677         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2678         compareseq was aborted.
2679
2680 2008-09-14  Bruno Haible  <bruno@clisp.org>
2681
2682         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2683         yvec_edit_count.
2684         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2685         (fstrcmp_bounded): Simplify result computation accordingly.
2686
2687 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2688
2689         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2690         (fstrcmp): Define in terms of fstrcmp_bounded.
2691         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2692         lower_bound argument.
2693         Return quickly if the result is certainly < lower_bound.
2694         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2695
2696 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2697
2698         * lib/diffseq.h (EARLY_ABORT): New macro.
2699         (compareseq): Change return type to bool. Return true when EARLY_ABORT
2700         evaluates to true.
2701
2702 2008-09-14  Bruno Haible  <bruno@clisp.org>
2703
2704         * modules/perror-tests: New file.
2705         * tests/test-perror.sh: New file.
2706         * tests/test-perror.c: New file.
2707
2708         New module 'perror'.
2709         * lib/stdio.in.h (perror): New declaration.
2710         * lib/perror.c: New file.
2711         * m4/perror.m4: New file.
2712         * modules/perror: New file.
2713         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2714         * doc/posix-functions/perror.texi: Mention the perror module.
2715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2716         REPLACE_PERROR.
2717         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2718         REPLACE_PERROR.
2719
2720 2008-09-14  Bruno Haible  <bruno@clisp.org>
2721
2722         * modules/stdio (Makefile.am): Reorder to match the order in
2723         lib/stdio.in.h.
2724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2725
2726 2008-09-13  Bruno Haible  <bruno@clisp.org>
2727
2728         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2729
2730 2008-09-13  Bruno Haible  <bruno@clisp.org>
2731
2732         Extend strerror to cover the added errno values.
2733         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2734         (rpl_strerror): Provide error messages for the added errno values and
2735         for the WSA* values.
2736         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2737         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2738         strerror.
2739         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2740         * modules/strerror (Depends-on): Add errno.
2741         * doc/posix-functions/strerror.texi: Document the change.
2742         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2743         and EOVERFLOW.
2744
2745 2008-09-13  Bruno Haible  <bruno@clisp.org>
2746
2747         * modules/EOVERFLOW: Remove file.
2748         * m4/eoverflow.m4: Remove file.
2749         * modules/EOVERFLOW-tests: Remove file.
2750         * tests/test-EOVERFLOW.c: Remove file.
2751         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2752         * modules/ftell (Depends-on): Likewise.
2753         * modules/getdelim (Depends-on): Likewise.
2754         * modules/getugroups (Depends-on): Likewise.
2755         * modules/poll (Depends-on): Likewise.
2756         * modules/snprintf (Depends-on): Likewise.
2757         * modules/sprintf-posix (Depends-on): Likewise.
2758         * modules/vasnprintf (Depends-on): Likewise.
2759         * modules/vasprintf (Depends-on): Likewise.
2760         * modules/vfprintf-posix (Depends-on): Likewise.
2761         * modules/vsnprintf (Depends-on): Likewise.
2762         * modules/vsprintf-posix (Depends-on): Likewise.
2763         * modules/xvasprintf (Depends-on): Likewise.
2764         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2765         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2766         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2767         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2768         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2769         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2770         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2771         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2772         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2773         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2774         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2775         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2776         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2777         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2778         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2779         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2781         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2782         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2783         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2784         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2785         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2786         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2787         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2788         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2789         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2790         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2791         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2792         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2793         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2794         * MODULES.html.sh: Remove EOVERFLOW.
2795         * NEWS: Mention the change.
2796
2797 2008-09-13  Bruno Haible  <bruno@clisp.org>
2798
2799         * modules/errno-tests: New file.
2800         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2801
2802         * lib/errno.in.h: New file.
2803         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2804         * modules/errno: New file.
2805         * doc/posix-headers/errno.texi: Update documentation.
2806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2807
2808 2008-09-13  Bruno Haible  <bruno@clisp.org>
2809
2810         * tests/test-poll.c: Use #if for native Windows, rather than testing
2811         __MSVCRT__.
2812
2813 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2814             Bruno Haible  <bruno@clisp.org>
2815
2816         * lib/glob.c: Don't include <pwd.h> on native Windows.
2817         (WINDOWS32): New macro.
2818         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2819
2820 2008-09-13  Bruno Haible  <bruno@clisp.org>
2821
2822         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2823         (ETIMEDOUT): Remove macro.
2824         (glthread_cond_timedwait_multithreaded): New declaration.
2825         (glthread_cond_timedwait): Use it.
2826         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2827         (glthread_cond_timedwait_multithreaded): New function.
2828
2829 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2830
2831         * modules/poll-tests: Do not check for io.h.
2832         * tests/test-poll.c: Check for __MSVCRT__ instead.
2833
2834 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2835
2836         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2837         * modules/poll-tests: Add inet_pton, stdbool, sockets.
2838         * tests/test-poll.c: Use them.  Use _pipe on Windows.
2839
2840 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
2841
2842         * modules/poll-tests: New.
2843         * tests/test-poll.c: New.
2844
2845 2008-09-12  Eric Blake  <ebb9@byu.net>
2846
2847         frexp: test for NetBSD failure on -0.0
2848         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2849         not all, bugs from NetBSD 3.0 have been fixed.
2850         * doc/posix-functions/frexp.texi (frexp): Document bug.
2851         Reported by Thomas Klausner.
2852
2853         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2854         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2855         literal -0.0.
2856         Reported by Jonathan C. Patschke <jp@centtech.com>.
2857
2858 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2859
2860         * lib/glthread/cond.h: Use dummy implementation also if
2861         USE_WIN32_THREADS.
2862
2863 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2864
2865         * modules/fnmatch-posix (License): Change to LGPLv2+.
2866         * modules/fnmatch-gnu (License): Likewise.
2867
2868 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2869
2870         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
2871
2872 2008-09-11  Jim Meyering  <meyering@redhat.com>
2873
2874         * users.txt: Add gtk-vnc.
2875
2876 2008-09-08  Simon Josefsson  <simon@josefsson.org>
2877
2878         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
2879         rotate amounts.
2880
2881         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
2882         required for 16-bit and 8-bit rotates.
2883         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
2884         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
2885         UINT8_MAX instead of hard-coded constants.
2886         Suggested by Paul Eggert.
2887
2888 2008-09-07  Bruno Haible  <bruno@clisp.org>
2889
2890         * tests/test-striconveh.c (main): Check behaviour when converting from
2891         UTF-7.
2892
2893         Make striconveh work better with stateful encodings.
2894         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
2895         that iconv does not increment the inptr when returning -1/EINVAL.
2896
2897 2008-09-07  Bruno Haible  <bruno@clisp.org>
2898
2899         * build-aux/config.rpath: Update according to libtool-2.2.6.
2900         * build-aux/config.libpath: Likewise.
2901
2902 2008-09-06  Bruno Haible  <bruno@clisp.org>
2903
2904         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
2905         * lib/freadptr.c (freadptr): Likewise.
2906         * lib/freadseek.c (freadptrinc): Likewise.
2907         Reported by Simon Josefsson.
2908
2909 2008-09-06  Bruno Haible  <bruno@clisp.org>
2910
2911         * modules/freadptr (License): Change to LGPLv2+.
2912         * modules/freadseek (License): Likewise.
2913         Suggested by Eric Blake.
2914
2915         * modules/memchr2 (License): Change to LGPLv2+.
2916         Approved by Eric Blake.
2917
2918 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2919             Bruno Haible  <bruno@clisp.org>
2920
2921         Make gnulib-tool work with native 'sed' on AIX.
2922         * gnulib-tool (sed_noop): New variable.
2923         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
2924         func_add_or_update, func_create_testdir): Use it to initialize sed
2925         script variables.
2926         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2927
2928 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
2929             Bruno Haible  <bruno@clisp.org>
2930
2931         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
2932         also works after #include directives.
2933
2934 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
2935
2936         getdate.y: reject an out-of-range timezone value
2937         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
2938         the range [-24...+24].  When specified with only one or two digits,
2939         * tests/test-getdate.c: Tests for the fix.
2940         * doc/getdate.texi: Document this change.
2941
2942 2008-09-03  Bruno Haible  <bruno@clisp.org>
2943
2944         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
2945
2946 2008-09-02  Simon Josefsson  <simon@josefsson.org>
2947
2948         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
2949         <bruce.korb@gmail.com> with ideas from Ben Pfaff
2950         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
2951         Blake <ebb9@byu.net>.
2952
2953         * tests/test-bitrotate.c: Add more test vectors.
2954
2955 2008-09-02  Eric Blake  <ebb9@byu.net>
2956
2957         vasnprintf-posix: handle large precision via %.*d
2958         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
2959         when handling it ourselves.
2960         * tests/test-vasnprintf-posix.c (test_function): Add test.
2961         * tests/test-snprintf-posix.h (test_function): Likewise.
2962         * tests/test-sprintf-posix.h (test_function): Likewise.
2963         * tests/test-vasprintf-posix.c (test_function): Likewise.
2964         Reported by Alain Guibert.
2965
2966 2008-09-01  Eric Blake  <ebb9@byu.net>
2967
2968         c-stack: make configure-time check more robust
2969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
2970         successful sigaction call.
2971         Reported by Tom G. Christensen.
2972
2973 2008-09-01  Bruno Haible  <bruno@clisp.org>
2974
2975         New module 'findprog-lgpl'.
2976         * modules/findprog-lgpl: New file.
2977         * lib/findprog-lgpl.c: New file.
2978         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
2979         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
2980         to decide whether to use strdup or xstrdup, concatenated_filename or
2981         xconcatenated_filename.
2982
2983 2008-09-01  Bruno Haible  <bruno@clisp.org>
2984
2985         Split module 'concat-filename' into 'concat-filename' (LGPL) and
2986         'xconcat-filename' (GPL).
2987         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
2988         (License): Change to LGPLv2+.
2989         * modules/xconcat-filename: New file.
2990         * lib/concat-filename.h (concatenated_filename): Change specification.
2991         (xconcatenated_filename): New declaration.
2992         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
2993         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
2994         memory situations.
2995         * lib/xconcat-filename.c: New file.
2996         * NEWS: Mention the change.
2997         * lib/findprog.c: Include concat-filename.h, not filename.h.
2998         (find_in_path): Use xconcatenated_filename instead of
2999         concatenated_filename.
3000         * lib/javacomp.c: Include concat-filename.h, not filename.h.
3001         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3002         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3003         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3004         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3005         instead of concatenated_filename.
3006         * lib/javaexec.c: Include concat-filename.h, not filename.h.
3007         (execute_java_class): Use xconcatenated_filename instead of
3008         concatenated_filename.
3009         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3010         * modules/javacomp (Depends-on): Likewise.
3011         * modules/javaexec (Depends-on): Likewise.
3012
3013 2008-09-01  Bruno Haible  <bruno@clisp.org>
3014
3015         Split module 'filename' into 'filename' and 'concat-filename'.
3016         * modules/filename: Keep only lib/filename.h.
3017         (License): Change to LGPLv2+.
3018         * modules/concat-filename: New file, extracted from modules/filename.
3019         * lib/filename.h (concatenated_filename): Remove declaration.
3020         * lib/concat-filename.h: New file, extracted from lib/filename.h.
3021         * lib/concat-filename.c: Include concat-filename.h.
3022         * NEWS: Mention the change.
3023
3024 2008-09-01  Simon Josefsson  <simon@josefsson.org>
3025
3026         * lib/bitrotate.h (rotl8, rotr8): Add.
3027
3028         * modules/bitrotate (configure.ac): Need
3029         AC_REQUIRE([AC_C_INLINE]).
3030         (Description): Mention stdint.h.  Reported by Bruno Haible
3031         <bruno@clisp.org>.
3032
3033         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
3034         Paolo Bonzini <bonzini@gnu.org>.
3035
3036 2008-08-31  Bruno Haible  <bruno@clisp.org>
3037
3038         Assume Solaris specific bi-arch conventions on Solaris systems.
3039         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3040         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3041         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3042         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3043         like acl_libdirstem.
3044         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3045         acl_libdirstem.
3046         * NEWS: Mention the change.
3047         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3048
3049 2008-08-31  Jim Meyering  <meyering@redhat.com>
3050
3051         * lib/strftime.h: Add comments describing the two added arguments.
3052
3053         remove duplicate #include directives
3054         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3055         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3056
3057 2008-08-31  Bruno Haible  <bruno@clisp.org>
3058
3059         New module 'sigpipe-die'.
3060         * modules/sigpipe-die: New file.
3061         * lib/sigpipe-die.h: New file.
3062         * lib/sigpipe-die.c: New file.
3063         * MODULES.html.sh (Signal handling): Add sigpipe-die.
3064
3065 2008-08-31  Bruno Haible  <bruno@clisp.org>
3066
3067         Don't override previously installed signal handlers.
3068         * lib/fatal-signal.c (saved_sigactions): New variable.
3069         (uninstall_handlers): Reset the signal to the saved handler, not
3070         to SIG_DFL (except when ignored).
3071         (install_handlers): Save the previous handlers.
3072
3073 2008-08-30  Bruno Haible  <bruno@clisp.org>
3074
3075         * gnulib-tool (func_reset_sigpipe): New function.
3076         (func_get_automake_snippet, func_modules_transitive_closure,
3077         func_import): Invoke it before a join command that reads from stdin,
3078         to avoid "echo: write error: Broken pipe" error messages on stderr.
3079         Reported by Sam Steingold <sds@gnu.org>.
3080
3081 2008-08-30  Bruno Haible  <bruno@clisp.org>
3082
3083         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
3084         Code copied from m4/open.m4.
3085         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
3086         access and the filename ends in a slash. Code copied from lib/open.c.
3087         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
3088         * tests/test-fopen.c (main): Check against bug with trailing slash.
3089
3090 2008-08-29  Bruno Haible  <bruno@clisp.org>
3091
3092         Avoid some "gcc -pedantic" warnings.
3093         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
3094         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
3095         * lib/dirent.in.h: Likewise.
3096         * lib/fcntl.in.h: Likewise.
3097         * lib/float.in.h: Likewise.
3098         * lib/iconv.in.h: Likewise.
3099         * lib/inttypes.in.h: Likewise.
3100         * lib/locale.in.h: Likewise.
3101         * lib/math.in.h: Likewise.
3102         * lib/netinet_in.in.h: Likewise.
3103         * lib/search.in.h: Likewise.
3104         * lib/signal.in.h: Likewise.
3105         * lib/stdarg.in.h: Likewise.
3106         * lib/stdint.in.h: Likewise.
3107         * lib/stdio.in.h: Likewise.
3108         * lib/stdlib.in.h: Likewise.
3109         * lib/string.in.h: Likewise.
3110         * lib/strings.in.h: Likewise.
3111         * lib/sys_select.in.h: Likewise.
3112         * lib/sys_socket.in.h: Likewise.
3113         * lib/sys_stat.in.h: Likewise.
3114         * lib/sys_time.in.h: Likewise.
3115         * lib/sysexits.in.h: Likewise.
3116         * lib/time.in.h: Likewise.
3117         * lib/unistd.in.h: Likewise.
3118         * lib/wchar.in.h: Likewise.
3119         * lib/wctype.in.h: Likewise.
3120         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
3121         * modules/fchdir (Makefile.am): Likewise.
3122         * modules/fcntl (Makefile.am): Likewise.
3123         * modules/float (Makefile.am): Likewise.
3124         * modules/iconv_open (Makefile.am): Likewise.
3125         * modules/inttypes (Makefile.am): Likewise.
3126         * modules/locale (Makefile.am): Likewise.
3127         * modules/math (Makefile.am): Likewise.
3128         * modules/netinet_in (Makefile.am): Likewise.
3129         * modules/search (Makefile.am): Likewise.
3130         * modules/signal (Makefile.am): Likewise.
3131         * modules/stdarg (Makefile.am): Likewise.
3132         * modules/stdint (Makefile.am): Likewise.
3133         * modules/stdio (Makefile.am): Likewise.
3134         * modules/stdlib (Makefile.am): Likewise.
3135         * modules/string (Makefile.am): Likewise.
3136         * modules/strings (Makefile.am): Likewise.
3137         * modules/sys_select (Makefile.am): Likewise.
3138         * modules/sys_socket (Makefile.am): Likewise.
3139         * modules/sys_stat (Makefile.am): Likewise.
3140         * modules/sys_time (Makefile.am): Likewise.
3141         * modules/sysexits (Makefile.am): Likewise.
3142         * modules/time (Makefile.am): Likewise.
3143         * modules/unistd (Makefile.am): Likewise.
3144         * modules/wchar (Makefile.am): Likewise.
3145         * modules/wctype (Makefile.am): Likewise.
3146         Reported by Reuben Thomas <rrt@sc3d.org>.
3147
3148 2008-08-29  Bruno Haible  <bruno@clisp.org>
3149
3150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3151         any more.
3152
3153 2008-08-29  Simon Josefsson  <simon@josefsson.org>
3154
3155         * MODULES.html.sh (Misc): Add bitrotate.
3156
3157         * modules/bitrotate: New file.
3158
3159         * lib/bitrotate.h: New file.
3160
3161         * modules/bitrotate-tests: New file.
3162
3163         * tests/test-bitrotate.c: New file.
3164
3165         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3166         on the bitrotate module.
3167
3168         * lib/arctwo.c: Use new bitrotate module.
3169
3170 2008-08-29  Jim Meyering  <meyering@redhat.com>
3171
3172         bootstrap: merge changes from coreutils
3173         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3174         of copied files.  Remove a kludge, now that this is fixed.
3175         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3176         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3177         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3178
3179 2008-08-29  Bruno Haible  <bruno@clisp.org>
3180
3181         * MODULES.html.sh: Remove --cvs-urls option.
3182
3183 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
3184
3185         maint.mk: adjust to file name change
3186         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3187
3188 2008-08-28  Jim Meyering  <meyering@redhat.com>
3189
3190         * modules/getndelim2 (License): Relicense to LGPLv2+.
3191         Approved by Richard Stallman for the version of 1995, and by
3192         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3193
3194 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
3195
3196         * lib/getdelim.c (flockfile, funlockfile): Make all of them
3197         dummy if one is not available.  Do not touch them if
3198         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3199         (getc_maybe_unlocked): New.
3200         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3201
3202 2008-08-26  Eric Blake  <ebb9@byu.net>
3203
3204         doc/INSTALL: resync from autoconf
3205         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3206         (INSTALL_PRELUDE): Delete; this is done more efficiently by
3207         moving...
3208         * install.texi [!autoconf]: ...here.  Resync from autoconf.
3209         * INSTALL: Regenerate.
3210         * INSTALL.ISO: New file.
3211         * INSTALL.UTF-8: Likewise.
3212
3213 2008-08-26  Jim Meyering  <meyering@redhat.com>
3214
3215         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3216         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3217         these definitions conditional, so that they may be overridden, too.
3218
3219 2008-08-26  Bruno Haible  <bruno@clisp.org>
3220
3221         Generate INSTALL file variants with prettier quotes.
3222         * doc/Makefile (INSTALL_PRELUDE): New macro.
3223         (INSTALL): Use it.
3224         (INSTALL.ISO, INSTALL.UTF-8): New rules.
3225
3226 2008-08-26  Bruno Haible  <bruno@clisp.org>
3227
3228         Run makeinfo in an English locale.
3229         * doc/Makefile (MAKEINFO): New variable.
3230
3231 2008-08-26  Bruno Haible  <bruno@clisp.org>
3232
3233         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3234         Suggested by Eric Blake.
3235
3236 2008-08-25  Bruno Haible  <bruno@clisp.org>
3237
3238         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3239
3240 2008-08-25  Eric Blake  <ebb9@byu.net>
3241
3242         c-stack: test that stack overflow can be caught
3243         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3244         that platform allows handling stack overflow; at least OS/2 EMX
3245         has sigaltstack, but crashes before transferring control to
3246         handler on stack overflow.
3247         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3248         check for HAVE_STACK_OVERFLOW_HANDLING.
3249         Reported by Elbert Pol.
3250
3251 2008-08-25  Bruno Haible  <bruno@clisp.org>
3252
3253         * doc/posix-functions/strftime.texi: Fix description of strftime
3254         module.
3255
3256 2008-08-24  Bruno Haible  <bruno@clisp.org>
3257
3258         * tests/uniwidth/test-uc_width2.c: New file.
3259         * tests/uniwidth/test-uc_width2.sh: New file.
3260         * modules/uniwidth/width-tests (Files): Add the new files.
3261         (TESTS): Add uniwidth/test-uc_width2.sh.
3262         (TESTS_ENVIRONMENT): New variable.
3263         (check_PROGRAMS): Add test-uc_width2.
3264         (test_uc_width2_SOURCES): New variable.
3265
3266         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3267         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3268         not 0x00AB.
3269         Reported by Alexander V. Lukyanov <lav@netis.ru>.
3270
3271 2008-08-22  Eric Blake  <ebb9@byu.net>
3272
3273         test-lock, test-tls: mention why a test is skipped
3274         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3275         skipped.
3276         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3277
3278         count-one-bits: relax license
3279         * modules/count-one-bits (License): Relicense to LGPLv2+.
3280         Suggested by Ludovic Courtès, approved by Ben Pfaff.
3281
3282 2008-08-22  Andreas Schwab  <schwab@suse.de>
3283
3284         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3285         Remove spurious space in assignment.
3286
3287 2008-08-21  Simon Josefsson  <simon@josefsson.org>
3288
3289         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
3290         Paul Eggert <eggert@CS.UCLA.EDU>.
3291
3292 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
3293
3294         * modules/gettext: Add m4/threadlib.m4.
3295
3296 2008-08-19  Eric Blake  <ebb9@byu.net>
3297
3298         test-c-stack: fix compilation failure on FreeBSD 5.0
3299         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3300         headers before <sys/resource.h>.
3301         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3302         the bug.
3303         Reported by Nelson H. F. Beebe.
3304
3305         strverscmp: migrate from "strverscmp.h" to <string.h>
3306         * modules/string (Makefile.am): Add new hooks.
3307         * modules/strverscmp (Files): Remove strverscmp.h.
3308         (Depends-on): Add string.
3309         (configure.ac): Add indicator.
3310         (Include): Mention new header.
3311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3312         defaults.
3313         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3314         results.
3315         * lib/strverscmp.h: Delete.
3316         * lib/string.in.h (strverscmp): Provide declaration, when needed.
3317         * tests/test-strverscmp.c (includes): Adjust client.
3318         * lib/check-version.c (includes): Likewise.
3319         * NEWS: Document the change.
3320
3321         strverscmp: add unit test
3322         * modules/strverscmp-tests: New file.
3323         * tests/test-strverscmp.c: Likewise.
3324
3325 2008-08-19  Simon Josefsson  <simon@josefsson.org>
3326
3327         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
3328         regarding Windows crypto stuff, from Mono.
3329
3330 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
3331
3332         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
3333         if present, for intel RND.  Return error on failures.
3334
3335 2008-08-18  Ben Pfaff  <blp@gnu.org>
3336
3337         gitlog-to-changelog: give better diagnostic for failed pipe-open
3338         * build-aux/gitlog-to-changelog: Improve error message: suggest
3339         that the version of Git may be too old.
3340
3341 2008-08-18  Simon Josefsson  <simon@josefsson.org>
3342
3343         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
3344         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
3345
3346 2008-08-18  Bruno Haible  <bruno@clisp.org>
3347
3348         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3349         pthread_in_use().
3350
3351 2008-08-18  Bruno Haible  <bruno@clisp.org>
3352
3353         * lib/glthread/threadlib.c: Include <pthread.h>.
3354
3355 2008-08-18  Bruno Haible  <bruno@clisp.org>
3356
3357         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3358         glthread_recursive_lock_* macros.
3359         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3360         Fix syntax error.
3361
3362 2008-08-18  Bruno Haible  <bruno@clisp.org>
3363
3364         * lib/glthread/thread.c: Avoid forcing a context switch right after
3365         thread creation.
3366
3367 2008-08-17  Bruno Haible  <bruno@clisp.org>
3368
3369         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3370         * lib/glthread/thread.h: Provide Win32 specific implementation.
3371         * modules/thread (Files): Add lib/glthread/thread.c.
3372         (Depends-on): Add lock.
3373         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3374
3375 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3376
3377         New module 'yield'.
3378         * modules/yield: New file.
3379         * lib/glthread/yield.h: New file.
3380         * m4/yield.m4: New file.
3381         * MODULES.html.sh (Multithreading): Add yield.
3382
3383 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3384
3385         New module 'thread'.
3386         * modules/thread: New file.
3387         * lib/glthread/thread.h: New file.
3388         * m4/thread.m4: New file.
3389         * MODULES.html.sh (Multithreading): Add thread.
3390
3391 2008-08-17  Bruno Haible  <bruno@clisp.org>
3392
3393         * lib/glthread/lock.h: Include <stdlib.h> always.
3394         * lib/glthread/tls.h: Likewise.
3395         * lib/glthread/cond.h: Likewise.
3396
3397 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3398
3399         New module 'cond'.
3400         * modules/cond: New file.
3401         * lib/glthread/cond.h: New file.
3402         * lib/glthread/cond.c: New file.
3403         * m4/cond.m4: New file.
3404         * MODULES.html.sh (Multithreading): Add cond.
3405
3406 2008-08-16  Eric Blake  <ebb9@byu.net>
3407
3408         c-stack: fix regression on Irix 5.3 from 2008-06-21
3409         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3410         sa_sigaction...
3411         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3412         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3413         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3414         * modules/signal (Makefile.am): Use the value.
3415         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3416         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3417         * doc/posix-headers/signal.texi (signal.h): Document this
3418         portability issue.
3419         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3420         Reported by Tom G. Christensen.
3421
3422 2008-08-17  Bruno Haible  <bruno@clisp.org>
3423
3424         New module 'threadlib'.
3425         * modules/threadlib: New file.
3426         * lib/glthread/threadlib.c: New file, extracted from
3427         lib/glthread/lock.c.
3428         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3429         functions.
3430         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3431         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3432         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3433         macros.
3434         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3435         (gl_DISABLE_THREADS): Remove macro.
3436         * modules/lock (Files): Remove build-aux/config.rpath.
3437         (Depends-on): Remove havelib. Add threadlib.
3438         (configure.ac-early): Remove section.
3439         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3440         * modules/tls (Depends-on): Remove lock. Add threadlib.
3441         (Link): New section, copied from threadlib.
3442         * MODULES.html.sh (Multithreading): Add threadlib.
3443
3444 2008-08-14  Bruno Haible  <bruno@clisp.org>
3445
3446         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3447         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3448         glthread_rwlock_unlock, glthread_rwlock_destroy,
3449         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3450         glthread_recursive_lock_destroy): Define as macros always.
3451         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3452         glthread_lock_lock.
3453         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3454         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3455         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3456         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3457         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3458         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3459         (glthread_recursive_lock_lock_func): Renamed from
3460         glthread_recursive_lock_lock.
3461         (glthread_recursive_lock_unlock_func): Renamed from
3462         glthread_recursive_lock_unlock.
3463         (glthread_recursive_lock_destroy_func): Renamed from
3464         glthread_recursive_lock_destroy.
3465
3466 2008-08-14  Bruno Haible  <bruno@clisp.org>
3467
3468         * lib/glthread/lock.h: Renamed from lib/lock.h.
3469         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3470         * lib/glthread/tls.h: Renamed from lib/tls.h.
3471         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3472         * lib/fstrcmp.c: Update includes.
3473         * lib/strsignal.c: Update includes.
3474         * modules/lock (Files, Makefile.am): Update.
3475         (Include): Change to "glthread/lock.h".
3476         * modules/tls (Files, Makefile.am): Update.
3477         (Include): Change to "glthread/tls.h".
3478         * tests/test-lock.c: Update includes.
3479         * tests/test-tls.c: Update includes.
3480         * NEWS: Mention the renamed header files.
3481
3482 2008-08-11  Jim Meyering  <meyering@redhat.com>
3483
3484         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3485
3486 2008-08-11  Eric Blake  <ebb9@byu.net>
3487
3488         test-c-stack: avoid C99-ism
3489         * tests/test-c-stack.c (main): Fix whitespace, move declaration
3490         before statement.
3491         Reported by Alain Guibert.
3492
3493 2008-08-10  Jim Meyering  <meyering@redhat.com>
3494
3495         ensure that return value of uinttostr et al are not ignored
3496         * lib/inttostr.h (__GNUC_PREREQ): Define.
3497         (__attribute_warn_unused_result__): Define.
3498         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3499
3500 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
3501
3502         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3503         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3504
3505 2008-08-07  Jim Meyering  <meyering@redhat.com>
3506
3507         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3508
3509         * modules/mkstemp (License): Relicense under LGPLv2+.
3510         * modules/tempname (License): Likewise.
3511
3512 2008-08-06  Bruno Haible  <bruno@clisp.org>
3513
3514         * lib/poll.c (poll): Further micro-optimization.
3515
3516 2008-08-06  Jim Meyering  <meyering@redhat.com>
3517
3518         inet_pton.c: use locale-independent tolower
3519         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3520         (inet_pton6): Use c_tolower rather than tolower.
3521         * modules/inet_pton (Depends-on): Add c-ctype.
3522
3523 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
3524
3525         * lib/poll.c (poll): Avoid division when timeout is 0, cache
3526         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
3527
3528 2008-08-06  Jim Meyering  <meyering@redhat.com>
3529
3530         * modules/inet_pton (License): Relicense under LGPLv2+.
3531
3532 2008-08-03  Bruno Haible  <bruno@clisp.org>
3533
3534         Additional non-aborting API for lock and tls.
3535         * lib/lock.h: Include <errno.h>.
3536         (glthread_lock_init): New macro/function.
3537         (gl_lock_init): Define as wrapper around glthread_lock_init.
3538         (glthread_lock_lock): New macro/function.
3539         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3540         (glthread_lock_unlock): New macro/function.
3541         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3542         (glthread_lock_destroy): New macro/function.
3543         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3544         (glthread_rwlock_init): New macro/function.
3545         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3546         (glthread_rwlock_rdlock): New macro/function.
3547         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3548         (glthread_rwlock_wrlock): New macro/function.
3549         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3550         (glthread_rwlock_unlock): New macro/function.
3551         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3552         (glthread_rwlock_destroy): New macro/function.
3553         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3554         (glthread_recursive_lock_init): New macro/function.
3555         (gl_recursive_lock_init): Define as wrapper around
3556         glthread_recursive_lock_init.
3557         (glthread_recursive_lock_lock): New macro/function.
3558         (gl_recursive_lock_lock): Define as wrapper around
3559         glthread_recursive_lock_lock.
3560         (glthread_recursive_lock_unlock): New macro/function.
3561         (gl_recursive_lock_unlock): Define as wrapper around
3562         glthread_recursive_lock_unlock.
3563         (glthread_recursive_lock_destroy): New macro/function.
3564         (gl_recursive_lock_destroy): Define as wrapper around
3565         glthread_recursive_lock_destroy.
3566         (glthread_once): New macro/function.
3567         (gl_once): Define as wrapper around glthread_once.
3568         Update function declarations.
3569         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3570         glthread_rwlock_init. Return error code.
3571         (glthread_rwlock_rdlock_multithreaded): Renamed from
3572         glthread_rwlock_rdlock. Return error code.
3573         (glthread_rwlock_wrlock_multithreaded): Renamed from
3574         glthread_rwlock_wrlock. Return error code.
3575         (glthread_rwlock_unlock_multithreaded): Renamed from
3576         glthread_rwlock_unlock. Return error code.
3577         (glthread_rwlock_destroy_multithreaded): Renamed from
3578         glthread_rwlock_destroy. Return error code.
3579         (glthread_recursive_lock_init_multithreaded): Renamed from
3580         glthread_recursive_lock_init. Return error code.
3581         (glthread_recursive_lock_lock_multithreaded): Renamed from
3582         glthread_recursive_lock_lock. Return error code.
3583         (glthread_recursive_lock_unlock_multithreaded): Renamed from
3584         glthread_recursive_lock_unlock. Return error code.
3585         (glthread_recursive_lock_destroy_multithreaded): Renamed from
3586         glthread_recursive_lock_destroy. Return error code.
3587         (glthread_once_call): Make static.
3588         (glthread_once_multithreaded): Renamed from glthread_once.
3589         * lib/tls.h: Include <errno.h>.
3590         (glthread_tls_key_init): New macro/function.
3591         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3592         (glthread_tls_set): New macro/function.
3593         (gl_tls_set): Define as wrapper around glthread_tls_set.
3594         (glthread_tls_key_destroy): New macro/function.
3595         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3596         Update function declarations.
3597         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3598         glthread_tls_get.
3599         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3600
3601 2008-08-04  Eric Blake  <ebb9@byu.net>
3602
3603         gnumakefile: use space, not TAB, outside of targets
3604         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3605
3606 2008-08-02  Jim Meyering  <meyering@redhat.com>
3607
3608         getdate.y: avoid locale-dependent date parsing failure
3609         In Turkish locales, getdate would fail to recognize keywords
3610         containing a lowercase "i".  The solution is not to rely on
3611         locale-sensitive case-conversion.
3612         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3613         (lookup_word): Use c_toupper in place of toupper.
3614         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3615         Reported by Vefa Bicakci <bicave@superonline.com> in
3616         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3617         * modules/getdate (Depends-on): Add c-ctype.
3618
3619 2008-08-02  Bruno Haible  <bruno@clisp.org>
3620
3621         * gnulib-tool (func_import): When updating or creating a .gitignore
3622         file, prepend each added line with a slash, and ignore leading slashes
3623         from the existing lines.
3624         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3625
3626 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3627
3628         Portability fix for GNU make 3.79.1.
3629         * top/GNUmakefile: Avoid 'else COND', which older GNU make
3630         versions do not understand.
3631
3632 2008-08-01  Bruno Haible  <bruno@clisp.org>
3633
3634         Work around bug of HP-UX 10.20 cc with -0.0 literal.
3635         * tests/test-isnanf.h (zero): New variable.
3636         (main): Avoid literal -0.0f.
3637         * tests/test-isnand.h (zero): New variable.
3638         (main): Avoid literal -0.0.
3639         * tests/test-isnanl.h (zero): New variable.
3640         (main): Avoid literal -0.0L.
3641         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3642         (test_float, test_double, test_long_double): Avoid literals -0.0f,
3643         -0.0, -0.0L.
3644         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3645         (test_signbitd): Avoid literal -0.0.
3646         (test_signbitl): Avoid literal -0.0L.
3647         * tests/test-ceilf1.c (zero): New variable.
3648         (main): Avoid literal -0.0f.
3649         * tests/test-ceill.c (zero): New variable.
3650         (main): Avoid literal -0.0L.
3651         * tests/test-floorf1.c (zero): New variable.
3652         (main): Avoid literal -0.0f.
3653         * tests/test-floorl.c (zero): New variable.
3654         (main): Avoid literal -0.0L.
3655         * tests/test-roundf1.c (zero): New variable.
3656         (main): Avoid literal -0.0f.
3657         * tests/test-round1.c (zero): New variable.
3658         (main): Avoid literal -0.0.
3659         * tests/test-roundl.c (zero): New variable.
3660         (main): Avoid literal -0.0L.
3661         * tests/test-truncf1.c (zero): New variable.
3662         (main): Avoid literal -0.0f.
3663         * tests/test-trunc1.c (zero): New variable.
3664         (main): Avoid literal -0.0.
3665         * tests/test-truncl.c (zero): New variable.
3666         (main): Avoid literal -0.0L.
3667         * tests/test-frexp.c (zero): New variable.
3668         (main): Avoid literal -0.0.
3669         * tests/test-frexpl.c (zero): New variable.
3670         (main): Avoid literal -0.0L.
3671         * tests/test-ldexpl.c (zero): New variable.
3672         (main): Avoid literal -0.0L.
3673         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3674         (zerod, zerol): New variables.
3675         (test_function): Avoid literals -0.0, -0.0L.
3676         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3677         (zerod, zerol): New variables.
3678         (test_function): Avoid literals -0.0, -0.0L.
3679         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3680         (zerod, zerol): New variables.
3681         (test_function): Avoid literals -0.0, -0.0L.
3682         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3683         (zerod, zerol): New variables.
3684         (test_function): Avoid literals -0.0, -0.0L.
3685         * tests/test-strtod.c (zero): New variable.
3686         (main): Avoid literal -0.0.
3687         Reported by Jonathan C. Patschke <jp@centtech.com>.
3688
3689 2008-07-31  Jim Meyering  <meyering@redhat.com>
3690
3691         sha256.h: correct definition of SHA224_DIGEST_SIZE
3692         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3693         Reported by Paulie Pena IV <paulie4@gmail.com>.
3694         Define as 224 / 8, rather than as a literal.
3695         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3696         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3697         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3698
3699 2008-07-31  Bruno Haible  <bruno@clisp.org>
3700
3701         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3702         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3703         Reported by Jonathan Patschke <jp@centtech.com>.
3704
3705 2008-07-31  Bruno Haible  <bruno@clisp.org>
3706
3707         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3708         Reported by Paolo Bonzini <bonzini@gnu.org>.
3709
3710 2008-07-30  Eric Blake  <ebb9@byu.net>
3711
3712         test-strtod: allow compilation without -lm
3713         * tests/test-strtod.c (main): Avoid link dependence on fabs.
3714         Reported by Dennis Clarke <blastwave@gmail.com>.
3715
3716 2008-07-28  Jim Meyering  <meyering@redhat.com>
3717
3718         bootstrap: work also when there are no .po files in po/
3719         * build-aux/bootstrap (update_po_files): Complete the change
3720         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3721
3722 2008-07-27  Jim Meyering  <meyering@redhat.com>
3723
3724         * users.txt: Add zile.
3725
3726 2008-07-26  Ben Pfaff  <blp@gnu.org>
3727
3728         Add missing dependencies on new m4/exponent[fdl].m4 files.
3729         * modules/isnanf-nolibm: Add m4/exponentf.m4.
3730         * modules/isnand-nolibm: Add m4/exponentd.m4.
3731         * modules/isnanl-nolibm: Add m4/exponentl.m4.
3732         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3733         m4/isnan[fdl].m4, because the macros actually used moved.
3734         Reported by Jim Meyering.
3735
3736 2008-07-14  Ben Pfaff  <blp@gnu.org>
3737
3738         Add isinf module.
3739         * lib/isinf.c: New file.
3740         * lib/math.in.h: Define isinf macro if we have decided to replace
3741         it.
3742         * m4/isinf.m4: New file.
3743         * m4/math_h.m4: Initialize and substitute variables for isinf
3744         module.
3745         * modules/isinf: New file.
3746         * modules/isinf-tests: New file.
3747         * modules/math: Add substitutions for new module.
3748         * tests/test-isinf.c: New file.
3749         * doc/posix-functions/isinf.texi: Mention new module.
3750         * MODULES.html.sh: Mention new module.
3751
3752 2008-07-14  Ben Pfaff  <blp@gnu.org>
3753
3754         Factor out some macros for use by additional modules.
3755         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3756         exponentf.m4.
3757         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3758         exponentd.m4.
3759         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3760         file exponentl.m4.
3761         * m4/exponentf.m4: New file.
3762         * m4/exponentd.m4: New file.
3763         * m4/exponentl.m4: New file.
3764         * modules/isnanf: Use new file m4/exponentf.m4.
3765         * modules/isnand: Use new file m4/exponentd.m4.
3766         * modules/isnanl: Use new file m4/exponentl.m4.
3767
3768 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
3769
3770         mktime.c: normalize tp->tm_isdst value to -1/0/1.
3771         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3772         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3773         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3774
3775         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3776         readlink on platforms without PATH_MAX.
3777
3778 2008-07-21  Eric Blake  <ebb9@byu.net>
3779
3780         Warn, not fail, on stale version.
3781         * top/GNUmakefile (_curr-ver): Tone down previous patch.
3782
3783         Don't allow installation with stale devel version number.
3784         * top/GNUmakefile (_is-install-target): New macro.
3785         (_curr-ver): Forbid installation with stale version number.
3786
3787 2008-07-20  Bruno Haible  <bruno@clisp.org>
3788
3789         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3790         TESTS_ENVIRONMENT.
3791         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3792
3793 2008-07-20  Bruno Haible  <bruno@clisp.org>
3794
3795         * lib/c-stack.h (c_stack_action): Add documentation.
3796         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3797
3798 2008-07-20  Bruno Haible  <bruno@clisp.org>
3799
3800         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3801         * modules/readlink (License): Likewise.
3802
3803 2008-07-17  Eric Blake  <ebb9@byu.net>
3804
3805         * modules/c-stack (Link): Fix typo.
3806
3807         Make c-stack use libsigsegv, when available.
3808         * modules/c-stack (Depends-on): Add libsigsegv.
3809         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3810         needed.
3811         * lib/c-stack.c (SIGSTKSZ): Define fallback.
3812         (segv_handler, overflow_handler, c_stack_action)
3813         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3814         implementation when libsigsegv is available, but only when using
3815         the library is necessary.
3816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3817         comment, explaining why XSI check fails on Linux.
3818         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3819         * tests/test-c-stack2.sh: Tweak skip message.
3820         * NEWS: Document new link-time requirements.
3821
3822 2008-07-16  Eric Blake  <ebb9@byu.net>
3823
3824         c-stack: Expose false positives when not using libsigsegv.
3825         * modules/c-stack-tests (Files): Expand test.
3826         * tests/test-c-stack.c (main): Add means to conditionally trigger
3827         non-overflow SIGSEGV.
3828         * tests/test-c-stack2.sh: New file.
3829
3830 2008-07-14  Bruno Haible  <bruno@clisp.org>
3831
3832         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3833         Reported by Eric Blake.
3834
3835 2008-07-14  Sam Steingold  <sds@gnu.org>
3836             Bruno Haible  <bruno@clisp.org>
3837
3838         New module libsigsegv.
3839         * modules/libsigsegv: New file.
3840         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3841         modifications.
3842         * MODULES.html.sh (Signal handling): New section.
3843
3844 2008-07-14  Bruno Haible  <bruno@clisp.org>
3845
3846         * modules/unictype/ctype-* (Description): Add the word "function".
3847         Improves the resulting doc in MODULES.html.
3848
3849 2008-07-12  Ben Pfaff  <blp@gnu.org>
3850
3851         Add longlong module.
3852         * modules/longlong: New file.
3853
3854 2008-07-12  Bruno Haible  <bruno@clisp.org>
3855
3856         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3857         to empty.
3858
3859 2008-07-10  Ben Pfaff  <blp@gnu.org>
3860
3861         Add isnan module.
3862         * doc/posix-functions/isnan.texi: Mention new module.
3863         * lib/math.in.h: Define isnan macro if we have decided to replace
3864         it.
3865         * m4/isnan.m4: New file.
3866         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
3867         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
3868         also.
3869         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
3870         redundancy.
3871         * m4/math_h.m4: Initialize and substitute variables for isnan
3872         module.
3873         * modules/isnan: New file.
3874         * modules/isnan-tests: New file.
3875         * modules/math: Add substitutions for new module.
3876         * tests/test-isnan.c: New file.
3877         * MODULES.html.sh: Mention new module.
3878
3879 2008-07-10  Ben Pfaff  <blp@gnu.org>
3880
3881         Add isnanf module.
3882         * lib/isnanf.m4: New file.
3883         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
3884         (gl_HAVE_ISNANF_IN_LIBM): New macro.
3885         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
3886         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
3887         * modules/isnanf: New file.
3888         * modules/isnanf-tests: New file.
3889         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
3890         files.
3891         * tests/test-isnanf-nolibm.c: factored most of its contents into
3892         new file tests/test-isnanf.h.
3893         * tests/test-isnanf.h: New file.
3894         * tests/test-isnanf.c: New file.
3895         * MODULES.html.sh: Mention new module.
3896         * doc/glibc-functions/isnanf.texi: Mention new module.
3897
3898 2008-07-10  Ben Pfaff  <blp@gnu.org>
3899
3900         Add isnand module.
3901         * lib/isnand.h: New file.
3902         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
3903         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
3904         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
3905         functionality also.
3906         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
3907         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
3908         (gl_HAVE_ISNAND_IN_LIBM): New macro.
3909         * modules/isnand: New file.
3910         * modules/isnand-tests: New file.
3911         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
3912         files.
3913         * tests/test-isnand-nolibm.c: factored most of its contents into
3914         new file tests/test-isnand.h.
3915         * tests/test-isnand.h: New file.
3916         * tests/test-isnand.c: New file.
3917         * MODULES.html.sh: Mention new module.
3918
3919 2008-07-10  Ben Pfaff  <blp@gnu.org>
3920
3921         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
3922         * lib/isnand.h: Rename lib/isnand-nolibm.h.
3923         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
3924         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
3925         * modules/isnanf-nolibm: Update references to renamed files.
3926         * modules/isnand-nolibm: Likewise.
3927         * modules/isnanf-nolibm-tests: Likewise.
3928         * modules/isnand-nolibm-tests: Likewise.
3929         * lib/frexp.c: Likewise.
3930         * lib/isfinite.c: Likewise.
3931         * lib/signbitd.c: Likewise.
3932         * lib/signbitf.c: Likewise.
3933         * lib/vasnprintf.c: Likewise.
3934         * tests/test-ceilf1.c: Likewise.
3935         * tests/test-ceilf2.c: Likewise.
3936         * tests/test-floorf1.c: Likewise.
3937         * tests/test-floorf2.c: Likewise.
3938         * tests/test-frexp.c: Likewise.
3939         * tests/test-round1.c: Likewise.
3940         * tests/test-round2.c: Likewise.
3941         * tests/test-roundf1.c: Likewise.
3942         * tests/test-strtod.c: Likewise.
3943         * tests/test-trunc1.c: Likewise.
3944         * tests/test-trunc2.c: Likewise.
3945         * tests/test-truncf1.c: Likewise.
3946         * tests/test-truncf2.c: Likewise.
3947         * NEWS: Mention the renamed header files.
3948
3949 2008-07-11  Jim Meyering  <meyering@redhat.com>
3950
3951         vc-list-files: make the last-resort awk code more portable
3952         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
3953         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
3954         does not support it.
3955
3956 2008-07-10  Eric Blake  <ebb9@byu.net>
3957
3958         Work with tar's bootstrap.
3959         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
3960         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
3961         an m4 comment.
3962
3963 2008-07-09  Jim Meyering  <meyering@redhat.com>
3964
3965         posix-shell.m4: fix typo that made this test malfunction
3966         * m4/posix-shell.m4: Remove capitalization in variable name.
3967
3968 2008-07-08  Bruno Haible  <bruno@clisp.org>
3969
3970         * m4/onceonly.m4: Update comments.
3971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3972
3973 2008-07-04  Jim Meyering  <meyering@redhat.com>
3974
3975         * users.txt: Add vc-dwim.
3976         (bison, coreutils): Use the gitweb URL.
3977
3978 2008-07-03  Jim Meyering  <meyering@redhat.com>
3979
3980         * users.txt: Add libffcall.  From Sam Steingold.
3981
3982 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
3983
3984         getdate.y: do not ignore TZ with relative day, month or year offset
3985         * lib/getdate.y (get_date): Move the tz-handling block to follow the
3986         relative-date-handling, since otherwise, the latter would clobber the
3987         sole output (an updated Start value) of the tz-handling block.
3988         * tests/test-getdate.c: Tests for the fix
3989
3990 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3991
3992         Recognize 'foo_LIBRARIES += libgnu.a'.
3993         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
3994         makefile snippet has already specified an installation location,
3995         also using '+='.
3996
3997 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
3998
3999         getdate.y: factor out common actions
4000         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4001         Use them in place of open-coded actions.
4002
4003 2008-07-01  Simon Josefsson  <simon@josefsson.org>
4004
4005         Add self-test for getdate module.
4006         * modules/getdate-tests: New file.
4007         * tests/test-getdate.c: New file.
4008
4009 2008-06-29  Bruno Haible  <bruno@clisp.org>
4010
4011         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4012         .gitignore.
4013         Reported by Sylvain Beucler <beuc@beuc.net>.
4014
4015 2008-06-29  Bruno Haible  <bruno@clisp.org>
4016
4017         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4018         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4019
4020 2008-06-29  Bruno Haible  <bruno@clisp.org>
4021
4022         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4023         EXTRA_DIST.
4024         Reported by Sylvain Beucler <beuc@beuc.net>.
4025
4026 2008-06-26  Jim Meyering  <meyering@redhat.com>
4027
4028         make several modules depend on the "open" module
4029         This provides slightly increased consistency when opening-for-write
4030         the name of a non-directory spelled with a trailing slash.
4031         * modules/chdir-safer: Likewise.
4032         * modules/chown: Likewise.
4033         * modules/clean-temp: Likewise.
4034         * modules/copy-file: Likewise.
4035         * modules/fchdir: Likewise.
4036         * modules/fcntl-safer: Likewise.
4037         * modules/pipe: Likewise.
4038         * modules/utime: Likewise.
4039         Prompted by Eric Blake and Bruno Haible.
4040
4041 2008-06-24  Andreas Schwab  <schwab@suse.de>
4042
4043         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4044         literals can be used as initializers for global variables.
4045
4046 2008-06-23  Eric Blake  <ebb9@byu.net>
4047
4048         Make gnulib-cache.m4 easier to diff.
4049         * gnulib-tool (func_import): Allow newlines when reading cached
4050         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4051
4052 2008-06-23  Bruno Haible  <bruno@clisp.org>
4053
4054         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4055         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4056         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4057         m4/signalblocking.m4.
4058         (gl_PREREQ_SIGACTION): Don't invoke it.
4059         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4060         gl_PREREQ_SIG_HANDLER_H.
4061         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4062         Don't check for sigaction here.
4063
4064 2008-06-23  Bruno Haible  <bruno@clisp.org>
4065
4066         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
4067         (install_handlers): Don't set the SA_RESETHAND flag.
4068
4069 2008-06-23  Bruno Haible  <bruno@clisp.org>
4070
4071         * m4/sigaction.m4: Comment fixes.
4072         * lib/signal.in.h: Likewise.
4073
4074 2008-06-23  Eric Blake  <ebb9@byu.net>
4075
4076         Fix typo.
4077         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
4078
4079         Avoid SA_ namespace.
4080         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
4081         Reported by Ralf Wildenhues.
4082
4083         Avoid test failure due to SA_RESTORER.
4084         * tests/test-sigaction.c (SA_MASK): New macro.
4085         (main): Avoid failing due to extension flags being set.
4086         Reported by Jim Meyering.
4087
4088         Revert use of sig-handler.h in sigprocmask.c.
4089         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
4090         it requires the existence of struct sigaction.
4091         * lib/sigprocmask.c (handler_t): Restore typedef.
4092         (rpl_signal, old_handlers): Use local type.
4093
4094 2008-06-22  Bruno Haible  <bruno@clisp.org>
4095
4096         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
4097         conditionally.
4098         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4099
4100 2008-06-22  Bruno Haible  <bruno@clisp.org>
4101
4102         * doc/posix-functions/siginterrupt.texi: Move note.
4103
4104         * lib/signal.in.h (SA_RESTART): New macro.
4105         * lib/sigaction.c: Update comment.
4106
4107         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
4108
4109         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
4110         (gl_PREREQ_SIGPROCMASK): Invoke it.
4111         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
4112
4113         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
4114
4115         * lib/sigprocmask.c: Update a comment.
4116
4117 2008-06-21  Eric Blake  <ebb9@byu.net>
4118
4119         Use sigaction module rather than signal().
4120         * modules/c-stack (Depends-on): Add sigaction.
4121         * modules/fatal-signal (Depends-on): Likewise.
4122         * modules/nanosleep (Depends-on): Likewise.
4123         * modules/sigprocmask (Files): Add sig-handler.h.
4124         * modules/sigaction (Files): Likewise.
4125         * lib/sig-handler.h (get_handler): New file, suggested by Paul
4126         Eggert.
4127         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
4128         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
4129         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4130         (init_fatal_signals): Likewise.
4131         * lib/nanosleep.c (rpl_nanosleep): Likewise.
4132         (siginterrupt): Delete fallback.
4133         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
4134         instead.
4135         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4136         siginterrupt.
4137
4138         New module sigaction, for mingw.
4139         * modules/sigaction: New module...
4140         * modules/sigaction-tests: ...and its test.
4141         * m4/sigaction.m4: New file.
4142         * lib/sigaction.c: Likewise.
4143         * tests/test-sigaction.c: Likewise.
4144         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4145         * modules/signal (Makefile.am): Likewise.
4146         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4147         needed.
4148         * doc/posix-headers/signal.texi (signal.h): Mention provided
4149         types.
4150         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4151         that sigaction is preferable.
4152         * doc/posix-functions/sigaction.texi (sigaction): Mention new
4153         module.
4154         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4155         sigaction.
4156
4157         Improve robustness of sigprocmask by overriding signal.
4158         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4159         is in use.
4160         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4161         (SIGKILL, SIGSTOP): Provide fallbacks.
4162         (rpl_signal): Implement.
4163         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4164         signal can be called inside handlers.
4165
4166         Fix nanosleep module on mingw.
4167         * modules/nanosleep (Depends-on): Add sys_select.
4168         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4169
4170         Fix licensing of sigprocmask.
4171         * modules/raise (License): Relicense as LGPL.
4172
4173 2008-06-21  Bruno Haible  <bruno@clisp.org>
4174
4175         * lib/propername.c (proper_name_utf8): Don't use the transliterated
4176         result if it contains question marks.
4177         Reported by Michael Geng <linux@michaelgeng.de>.
4178
4179 2008-06-19  Bruno Haible  <bruno@clisp.org>
4180
4181         Fix CVS-ism.
4182         * doc/gnulib.texi: Include updated-stamp.texi.
4183         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4184         (updated-stamp.texi): New rule.
4185         (gnulib.info): Depend on it.
4186         * doc/.gitignore: Add updated-stamp.texi.
4187         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4188
4189 2008-06-19  Bruno Haible  <bruno@clisp.org>
4190
4191         * doc/Makefile (gnulib.info): Update and simplify dependencies.
4192         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4193
4194 2008-06-19  Eric Blake  <ebb9@byu.net>
4195
4196         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4197         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4198         Reported by Stepan Kasal.
4199
4200 2008-06-18  Bruno Haible  <bruno@clisp.org>
4201
4202         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4203         Reported by Eric Blake.
4204
4205 2008-06-18  Eric Blake  <ebb9@byu.net>
4206
4207         Work around cygwin 1.5.25 strsignal bug.
4208         * tests/test-strsignal.c: Allow for const char *.
4209         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4210
4211 2008-06-18  Simon Josefsson  <simon@josefsson.org>
4212
4213         * users.txt: Update URL to article and add author/date
4214         information.
4215
4216 2008-06-17  Bruno Haible  <bruno@clisp.org>
4217
4218         New macro gl_DISABLE_THREADS.
4219         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4220         if the user did not pass --enable-threads or --disable-threads option.
4221         (gl_DISABLE_THREADS): New macro.
4222         Reported by Eric Blake <ebb9@byu.net>.
4223
4224 2008-06-17  Bruno Haible  <bruno@clisp.org>
4225
4226         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4227         when the macro ignores it.
4228         Based on a patch by Eric Blake <ebb9@byu.net>.
4229
4230 2008-06-17  Bruno Haible  <bruno@clisp.org>
4231
4232         * modules/tls (License): Change to LGPLv2+.
4233         Reported by Eric Blake.
4234
4235 2008-06-17  Eric Blake  <ebb9@byu.net>
4236
4237         Simplify c-stack prerequisites.
4238         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4239         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4240         no longer requires <ucontext.h> to exist.  Optimize setrlimit
4241         check.
4242         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4243         <sys/resource.h>.
4244
4245         Move c-stack test into testsuite.
4246         * modules/c-stack-tests: New file.
4247         * lib/c-stack.c [DEBUG]: Move test program...
4248         * tests/test-c-stack.c: ...into this new file.  Skip rather than
4249         fail test if sigaltstack is lacking.
4250         * tests/test-c-stack.sh: New driver file.
4251
4252 2008-06-16  Eric Blake  <ebb9@byu.net>
4253
4254         Use raise module consistently.
4255         * modules/fatal-signal (Depends-on): Add raise.
4256         * modules/sigprocmask (Depends-on): Likewise.
4257         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4258         * lib/sigprocmask.c (sigprocmask): Likewise.
4259         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4260         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4261
4262         Fix compliance bug in sigpending.
4263         * lib/sigprocmask.c (sigpending): Return pending array via
4264         parameter, not return value.
4265
4266 2008-06-14  Eric Blake  <ebb9@byu.net>
4267
4268         Improve obstack-printf test code.
4269         * tests/test-obstack-printf.c (test_function): Fix comment, and
4270         simplify usage of obstack_* in macros.  Add a test for coverage.
4271         Reported by Bruno Haible.
4272
4273 2008-06-14  Bruno Haible  <bruno@clisp.org>
4274
4275         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4276         array size as a constant, not as a const variable.
4277         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4278         AC_USE_SYSTEM_EXTENSIONS.
4279         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4280         Test whether the obstack_printf function actually exists.
4281         * modules/obstack-printf (Depends-on): Add extensions.
4282         (Include): Remove obstack.h.
4283         * modules/obstack-printf-posix (Depends-on): Add extensions.
4284         (Include): Remove obstack.h.
4285
4286 2008-06-13  Eric Blake  <ebb9@byu.net>
4287
4288         Add obstack-printf and obstack-printf-posix modules.
4289         * modules/obstack-printf: New file.
4290         * modules/obstack-printf-posix: Likewise.
4291         * MODULES.html.sh (Misc): Mention them.
4292         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4293         Likewise.
4294         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4295         Likewise.
4296         * modules/stdio (Makefile.am): Accomodate new modules.
4297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4298         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4299         Declare.
4300         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4301         functions.
4302         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4303         (gl_REPLACE_OBSTACK_PRINTF): New macros
4304         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4305         * tests/test-obstack-printf.c: New file.
4306         * modules/obstack-printf-tests: Likewise.
4307         * modules/obstack-printf-posix-tests: Likewise.
4308
4309 2008-06-11  Bruno Haible  <bruno@clisp.org>
4310
4311         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4312         * lib/open.c: Include errno.h.
4313         (open): Fail when attempting to write to a file that has a trailing
4314         slash.
4315         * tests/test-open.c (main): Test against trailing slash bug.
4316         * doc/posix-functions/open.texi: Mention the trailing slash bug.
4317
4318 2008-06-10  Bruno Haible  <bruno@clisp.org>
4319
4320         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4321         for $? to work inside the trap command, with various /bin/sh-s.
4322         * tests/test-vc-list-files-cvs.sh: Likewise.
4323
4324 2008-06-10  Bruno Haible  <bruno@clisp.org>
4325
4326         * lib/acl-internal.h: Don't include gettext.h here.
4327         * lib/set-mode-acl.c: Include gettext.h here.
4328         * lib/copy-acl.c: Likewise.
4329
4330 2008-06-10  Bruno Haible  <bruno@clisp.org>
4331
4332         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4333         * lib/wait-process.c (wait_subprocess): Likewise.
4334         * lib/execute.h (execute): Add termsigp argument.
4335         * lib/execute.c (execute): Likewise.
4336         * lib/csharpcomp.c (compile_csharp_using_pnet,
4337         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4338         * lib/csharpexec.c (execute_csharp_using_pnet,
4339         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4340         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4341         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4342         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4343         is_jikes_present): Update.
4344         * lib/javaexec.c (execute_java_class): Update.
4345         * lib/javaversion.c (execute_and_read_line): Update.
4346         * NEWS: Document the changes.
4347         Reported by Eric Blake.
4348
4349 2008-06-10  Eric Blake  <ebb9@byu.net>
4350
4351         Add missing include.
4352         * tests/test-strstr.c (includes): Add <signal.h>.
4353         * tests/test-strcasestr.c (includes): Likewise.
4354         * tests/test-memmem.c (includes): Likewise.
4355
4356 2008-06-10  Bruno Haible  <bruno@clisp.org>
4357
4358         * lib/wait-process.c (wait_subprocess): Add an assertion.
4359
4360 2008-06-10  Bruno Haible  <bruno@clisp.org>
4361
4362         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4363
4364 2008-06-10  Bruno Haible  <bruno@clisp.org>
4365
4366         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4367         using alarm().
4368         * tests/test-strcasestr.c (main): Likewise.
4369         * tests/test-strstr.c (main): Likewise.
4370
4371 2008-06-09  Bruno Haible  <bruno@clisp.org>
4372
4373         Work around the Solaris 10 ACE ACLs ABI change.
4374         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4375         declare if ACL_NO_TRIVIAL is present.
4376         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4377         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4378         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4379         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4380         define if ACL_NO_TRIVIAL is present.
4381         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4382         and use the current ABI.
4383         (file_has_acl): Use same #if condition as elsewhere.
4384         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4385         in use, and use the current ABI.
4386         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4387         Reported by Jim Meyering.
4388
4389 2008-06-09  Eric Blake  <ebb9@byu.net>
4390
4391         Work around environments that (stupidly) ignore SIGALRM.
4392         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4393         before using alarm().
4394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4396         Reported by Ian Beckwith <ianb@erislabs.net>.
4397
4398         Produce autobuild blurb earlier in log.
4399         * modules/autobuild (configure.ac-early): Move AB_INIT here.
4400
4401 2008-06-09  Jim Meyering  <meyering@redhat.com>
4402         and Ondřej Vašík  <ovasik@redhat.com>
4403
4404         utimens.c: correct kernel bug work-around
4405         Ondřej Vašík found that the invalid return value of 280 indicates
4406         failure, not success, and the kernel bug we're trying to work
4407         around affects not just the utimensat call, but also the fallback
4408         futimens call.
4409         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4410         not success.
4411         [HAVE_FUTIMENS]: Use the same work-around, here.
4412
4413 2008-06-09  Jim Meyering  <meyering@redhat.com>
4414
4415         add more guards around definition of ACE_-related code
4416         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4417         ALLOW and ACE_OWNER are also defined.
4418
4419 2008-06-08  Bruno Haible  <bruno@clisp.org>
4420
4421         * lib/acl-internal.h: Add me as co-author.
4422         * lib/file-has-acl.c: Likewise.
4423         * lib/set-mode-acl.c: Likewise.
4424         * lib/copy-acl.c: Likewise.
4425
4426 2008-06-08  Bruno Haible  <bruno@clisp.org>
4427
4428         Add support for AIX ACLs.
4429         * lib/acl-internal.h (acl_nontrivial): New declaration.
4430         * lib/file-has-acl.c (acl_nontrivial): New function.
4431         (file_has_acl): Add implementation using AIX 4 ACL API.
4432         * lib/set-mode-acl.c (qset_acl): Likewise.
4433         * lib/copy-acl.c (qcopy_acl): Likewise.
4434
4435 2008-06-08  Bruno Haible  <bruno@clisp.org>
4436
4437         Add support for HP-UX ACLs.
4438         * lib/acl-internal.h (acl_nontrivial): New declaration.
4439         * lib/file-has-acl.c (acl_nontrivial): New function.
4440         (file_has_acl): Add implementation using HP-UX 11 ACL API.
4441         * lib/set-mode-acl.c (qset_acl): Likewise.
4442         * lib/copy-acl.c (qcopy_acl): Likewise.
4443
4444 2008-06-08  Bruno Haible  <bruno@clisp.org>
4445
4446         Add support for Cygwin ACLs.
4447         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4448         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4449         the chmod_or_fchmod call.
4450         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4451
4452 2008-06-08  Bruno Haible  <bruno@clisp.org>
4453
4454         Fix bug with setuid modes in Solaris 10+ code.
4455         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4456         succeeded, when the mode contains some special bits.
4457
4458 2008-06-08  Bruno Haible  <bruno@clisp.org>
4459
4460         Add support for Solaris 7..10 ACLs.
4461         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4462         declarations.
4463         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4464         functions.
4465         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4466         * lib/set-mode-acl.c (qset_acl): Likewise.
4467         * lib/copy-acl.c (qcopy_acl): Likewise.
4468
4469 2008-06-08  Bruno Haible  <bruno@clisp.org>
4470
4471         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4472         declaration.
4473         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4474         (acl_access_nontrivial): Remove MacOS X case.
4475         (file_has_acl): Use acl_extended_nontrivial.
4476         * lib/copy-acl.c (qcopy_acl): Likewise.
4477
4478 2008-06-08  Bruno Haible  <bruno@clisp.org>
4479
4480         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4481
4482 2008-06-08  Jim Meyering  <meyering@redhat.com>
4483
4484         * modules/acl (Maintainer): Add Bruno Haible.
4485
4486 2008-06-07  Bruno Haible  <bruno@clisp.org>
4487
4488         Improve support for Tru64 ACLs.
4489         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4490         ACL on OSF/1.
4491
4492 2008-06-07  Bruno Haible  <bruno@clisp.org>
4493
4494         Add support for MacOS X ACLs.
4495         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4496         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4497         * lib/set-mode-acl.c (qset_acl): Likewise.
4498         * lib/copy-acl.c (qcopy_acl): Likewise.
4499
4500 2008-06-07  Bruno Haible  <bruno@clisp.org>
4501
4502         Fix memory leak introduced on 2008-05-22.
4503         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4504         use.
4505
4506 2008-06-07  Bruno Haible  <bruno@clisp.org>
4507
4508         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4509         to construct an empty ACL.
4510
4511 2008-06-07  Bruno Haible  <bruno@clisp.org>
4512
4513         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4514         precisely.
4515         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4516
4517 2008-06-07  Bruno Haible  <bruno@clisp.org>
4518
4519         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4520         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4521
4522 2008-06-07  Bruno Haible  <bruno@clisp.org>
4523
4524         * doc/posix-functions/_setjmp.texi: Explain the use of this function
4525         regardless of POSIX.
4526         * doc/posix-functions/_longjmp.texi: Likewise.
4527         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4528         SystemV platform in this case.
4529
4530 2008-06-06  Eric Blake  <ebb9@byu.net>
4531
4532         Document abort() bugs.
4533         * doc/posix-functions/abort.texi (abort): Mention anomalies.
4534
4535         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4536         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4537         sigsetjmp.
4538         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4539         siglongjmp, but only as a macro.
4540         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4541         is obsolete.
4542         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4543
4544         Tweak documentation to cover cygwin argz bugs.
4545         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4546         argz bug fix; no code change needed since no cygwin releases
4547         occurred between the last fix and the bug being tested.
4548         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4549         module and recently fixed cygwin bugs.
4550         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4551         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4552         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4553         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4554         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4555         Likewise.
4556         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4557         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4558         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4559         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4560         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4561         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4562         Likewise.
4563
4564         Avoid gcc warning on cygwin.
4565         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4566         !ACL_NO_TRIVIAL]: Avoid unused variable.
4567
4568 2008-06-05  Eric Blake  <ebb9@byu.net>
4569
4570         Be tolerant of UNKNOWN version in gnulib-tool test dir.
4571         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4572         git-version-gen fails to come up with a version.
4573         Reported by Simon Josefsson.
4574
4575 2008-06-05  Jim Meyering  <meyering@redhat.com>
4576             Paul Eggert  <eggert@cs.ucla.edu>
4577
4578         utimens.c: work around a probable Linux kernel bug
4579         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4580         appears to be a kernel bug that causes utimensat to return 280
4581         instead of 0, indicating success.
4582
4583 2008-06-04  Bruno Haible  <bruno@clisp.org>
4584
4585         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4586         2008-06-01 commit.
4587
4588 2008-06-04  Bruno Haible  <bruno@clisp.org>
4589
4590         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4591         * lib/file-has-acl.c (acl_access_nontrivial): New function.
4592         (file_has_acl): Use it. Save errno afterwards.
4593         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4594
4595 2008-06-03  Bruno Haible  <bruno@clisp.org>
4596
4597         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4598         draft code. Simplify #ifs.
4599         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4600         Put Solaris code after POSIX-draft code. Fix comments regarding
4601         Solaris 10, HP-UX. Mention Cygwin.
4602         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4603
4604 2008-06-03  Eric Blake  <ebb9@byu.net>
4605
4606         Provide fallback for older kernels.
4607         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4608         Provide runtime fallback if kernel lacks support.
4609         Reported by Mike Frysinger.
4610
4611 2008-06-02  Bruno Haible  <bruno@clisp.org>
4612
4613         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4614         it exists.
4615
4616 2008-06-02  Bruno Haible  <bruno@clisp.org>
4617
4618         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4619         * lib/copy-acl.c (qcopy_acl): Update comment.
4620
4621 2008-06-02  Bruno Haible  <bruno@clisp.org>
4622
4623         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4624         like ACL APIs.
4625
4626 2008-06-02  Bruno Haible  <bruno@clisp.org>
4627
4628         * tests/test-file-has-acl.sh: Use different code for Cygwin.
4629         * tests/test-set-mode-acl.sh: Likewise.
4630         * tests/test-copy-acl.sh: Likewise.
4631         * tests/test-copy-file.sh: Likewise.
4632
4633 2008-06-02  Bruno Haible  <bruno@clisp.org>
4634
4635         * tests/test-file-has-acl.sh: Remove unused code.
4636
4637 2008-06-01  Bruno Haible  <bruno@clisp.org>
4638
4639         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4640         (copy_acl): Just a wrapper around qcopy_acl that emits the error
4641         messages.
4642         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4643
4644 2008-06-01  Bruno Haible  <bruno@clisp.org>
4645
4646         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4647         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4648         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4649         APIs.
4650         * modules/acl-tests (configure.ac): Remove tests now contained in
4651         m4/acl.m4.
4652
4653 2008-06-02  Jim Meyering  <meyering@redhat.com>
4654
4655         announce-gen: use a better key-server host name
4656         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4657         it may be more consistently reliable.  Suggested by Werner Koch
4658         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4659
4660 2008-06-01  Bruno Haible  <bruno@clisp.org>
4661
4662         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4663         Reported by Voroskoi Andras <voroskoi@gmail.com>.
4664
4665 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
4666
4667         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4668
4669 2008-06-01  Bruno Haible  <bruno@clisp.org>
4670
4671         New ACL tests.
4672         * tests/test-file-has-acl.sh: New file.
4673         * tests/test-file-has-acl.c: New file.
4674         * tests/test-set-mode-acl.sh: New file.
4675         * tests/test-set-mode-acl.c: New file.
4676         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4677         * tests/test-copy-acl.c: New file.
4678         * modules/acl-tests: New file, based on modules/copy-file-tests.
4679         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4680         (Depends-on): Add acl-tests.
4681         (configure.ac): Remove checks.
4682         (Makefile.am): Don't create test-sameacls program here any more.
4683
4684 2008-06-01  Bruno Haible  <bruno@clisp.org>
4685
4686         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4687         * tests/test-sameacls.c: Include progname.h.
4688         (main): Invoke set_program_name. Portability fixes for MacOS X,
4689         Solaris, HP-UX.
4690
4691 2008-06-01  Bruno Haible  <bruno@clisp.org>
4692
4693         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4694         function.
4695         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4696
4697 2008-06-01  Bruno Haible  <bruno@clisp.org>
4698
4699         * modules/rpmatch (Depends-on): Add strdup.
4700
4701 2008-06-01  Bruno Haible  <bruno@clisp.org>
4702
4703         * lib/pipe.c: Include unistd-safer.h.
4704         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4705         * modules/pipe (Depends-on): Add unistd-safer.
4706
4707 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4708
4709         * modules/autobuild (configure.ac): Call AB_INIT.
4710
4711 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4712
4713         * tests/test-getaddrinfo.c: Don't print debug messages by default.
4714         Suggested by Bruno Haible <bruno@clisp.org>.
4715
4716 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4717
4718         * tests/test-base64.c: Cast size_t to unsigned long when invoking
4719         printf.  Use %lu instead of %d.  Reported by Bruno Haible
4720         <bruno@clisp.org>.
4721
4722 2008-05-29  Eric Blake  <ebb9@byu.net>
4723
4724         Prefer new POSIX 200x interfaces over futimesat.
4725         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4726         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4727         when available.
4728         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4729
4730 2008-05-28  Bruno Haible  <bruno@clisp.org>
4731
4732         * modules/stpcpy (License): Change to LGPLv2+.
4733         Requested by David Lutterkort <dlutter@redhat.com>.
4734
4735 2008-05-27  Bruno Haible  <bruno@clisp.org>
4736
4737         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4738         current mingw.
4739         Reported by Jose E. Marchesi <jemarch@gnu.org>.
4740
4741 2008-05-27  Bruno Haible  <bruno@clisp.org>
4742
4743         * modules/iconv_open (Link): New section, from module 'iconv'.
4744         * modules/striconv (Link): Likewise.
4745         * modules/striconveh (Link): Likewise.
4746         * modules/xstriconv (Link): Likewise.
4747         * modules/unicodeio (Link): Likewise.
4748         * modules/propername (Link): Likewise.
4749         Reported by Jim Meyering.
4750
4751 2008-05-26  Jim Meyering  <meyering@redhat.com>
4752
4753         sha256: do not artificially restrict buffer length to be < 2^32
4754         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4755         uint32_t to size_t.
4756         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4757         to match.
4758
4759         avoid unaligned access errors, e.g., on sparc
4760         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4761         direct access through a possibly-unaligned uint64* pointer.
4762         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4763         direct access through a possibly-unaligned uint32* pointer.
4764         Prompted by this patch from Tom "spot" Callaway:
4765         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4766
4767         sha512.c: fix typo in comment
4768         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4769
4770 2008-05-25  Bruno Haible  <bruno@clisp.org>
4771
4772         * lib/set-mode-acl.c: Renamed from lib/acl.c.
4773         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4774         (Makefile.am): Update lib_SOURCES.
4775
4776 2008-05-25  Bruno Haible  <bruno@clisp.org>
4777
4778         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4779
4780 2008-05-25  Jim Meyering  <meyering@redhat.com>
4781
4782         useless-if-before-free: freed expr may have white-space differences
4783         * build-aux/useless-if-before-free: Recognize cases in which the
4784         freed expression differs from the tested one in embedded white
4785         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
4786         $1 was used, so we can't make any regexp shy.  Improved tests now
4787         detect this.
4788
4789         useless-if-before-free: accept white space in the expression.
4790         * build-aux/useless-if-before-free: For now, any white space
4791         in the expression must be identical in the free argument.
4792
4793         useless-if-before-free: efficiency tweak
4794         * build-aux/useless-if-before-free: Make the expression-matching
4795         regexp "shy".
4796         Make the *outer* regexp shy, not the expr-matching one.
4797
4798         update code-in-comment to accept cast of free arg
4799         * build-aux/useless-if-before-free: Update regexp.
4800
4801 2008-05-25  Bruno Haible  <bruno@clisp.org>
4802
4803         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4804         * modules/copy-file-tests (Files, Makefile.am): Update.
4805         * tests/test-copy-file.c (func_test_copy): Update.
4806
4807 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
4808
4809         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4810
4811 2008-05-23  Bruno Haible  <bruno@clisp.org>
4812
4813         Improve support for ACLs on OSF/1.
4814         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4815         Remove fallback for unknown flavors of ACLs.
4816
4817 2008-05-22  Bruno Haible  <bruno@clisp.org>
4818
4819         Add support for ACLs on OSF/1.
4820         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4821         replacements.
4822         (acl_free_text): New macro fallback.
4823         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4824         acl_free.
4825         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4826         acl_free_text function. Require AC_C_INLINE.
4827
4828 2008-05-22  Bruno Haible  <bruno@clisp.org>
4829
4830         Make copy_acl work on MacOS X 10.5.
4831         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4832         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4833         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4834         If MODE_INSIDE_ACL, don't assume that every system has the same text
4835         representation for ACLs as FreeBSD.
4836         * lib/copy-acl.c (copy_acl): Add support for platforms with
4837         !MODE_INSIDE_ACL.
4838         * lib/file-has-acl.c (file_has_acl): Likewise.
4839         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4840         FreeBSD, MacOS X, or IRIX, respectively.
4841
4842 2008-05-22  Bruno Haible  <bruno@clisp.org>
4843
4844         * lib/acl.h: Don't include <sys/acl.h>.
4845         (GETACLCNT): Move fallback to lib/acl-internal.h.
4846         * lib/acl-internal.h: Include <sys/acl.h> here.
4847         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4848
4849 2008-05-22  Bruno Haible  <bruno@clisp.org>
4850
4851         Split off copy_acl function to separate file.
4852         * lib/copy-acl.c: New file, extracted from lib/acl.c.
4853         * lib/acl.c (copy_acl): Moved function to separate file.
4854         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4855         * modules/acl (Files): Add lib/copy-acl.c.
4856         (Makefiles.am): Augment lib_SOURCES.
4857
4858 2008-05-22  Bruno Haible  <bruno@clisp.org>
4859
4860         * modules/copy-file-tests: New file.
4861         * tests/test-copy-file.sh: New file.
4862         * tests/test-copy-file.c: New file.
4863         * tests/test-copy-file-sameacls.c: New file.
4864
4865 2008-05-22  Eric Blake  <ebb9@byu.net>
4866
4867         Avoid gcc warning.
4868         * tests/test-memcmp.c (main): Pass NULL indirectly.
4869
4870 2008-05-21  Bruno Haible  <bruno@clisp.org>
4871
4872         Add reference doc about ACLs.
4873         * doc/acl-resources.txt: New file.
4874         * doc/acl-cygwin.txt: New file.
4875
4876 2008-05-21  Bruno Haible  <bruno@clisp.org>
4877
4878         Avoid one more warning from gcc.
4879         * lib/vasnprintf.c (IF_LINT): Update comments.
4880         (VASNPRINTF): Use it also for the 'prefix' array initializer.
4881
4882 2008-05-21  Jim Meyering  <meyering@redhat.com>
4883
4884         avoid a warning from gcc
4885         * lib/vasnprintf.c (IF_LINT): Define.
4886         (scale10_round_decimal_long_double):
4887         Use it to avoid a "may be used uninitialized" warning.
4888         (scale10_round_decimal_double): Likewise.
4889
4890 2008-05-21  Simon Josefsson  <simon@josefsson.org>
4891
4892         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
4893         declared.
4894
4895 2008-05-20  Bruno Haible  <bruno@clisp.org>
4896
4897         * tests/test-memcmp.c (main): Test also the sign of the result. Test
4898         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
4899
4900 2008-05-20  Simon Josefsson  <simon@josefsson.org>
4901
4902         * modules/memcmp-tests: New file.
4903         * tests/test-memcmp.c: New file.
4904
4905 2008-05-19  Bruno Haible  <bruno@clisp.org>
4906
4907         * modules/propername (Notice, configure.ac): Put quoted "..." into
4908         --keyword option.
4909         * lib/propername.h: Update comments accordingly.
4910         Reported by Eric Blake.
4911
4912 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
4913
4914         * modules/getpass-gnu (Depends-on): Add fseeko.
4915
4916 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4917
4918         * modules/base64-tests: New file.
4919
4920 2008-05-19  Bo Borgerson <gigabo@gmail.com>
4921
4922         * lib/base64.c (base64_decode_ctx): If a decode context structure
4923         was passed in use it to ignore newlines.  If a context structure
4924         was _not_ passed in, continue to treat newlines as garbage (this
4925         is the historical behavior).  Formerly base64_decode.
4926         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4927         takes a decode context structure.
4928         * lib/base64.h (base64_decode): Macro for four-argument calls.
4929         (base64_decode_alloc): Likewise.
4930         * lib/base64.c (base64_decode_ctx): If a decode context structure
4931         was passed in use it to ignore newlines.  If a context structure
4932         was _not_ passed in, continue to treat newlines as garbage (this
4933         is the historical behavior).  Formerly base64_decode.
4934         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
4935         takes a decode context structure.
4936         * lib/base64.h (base64_decode): Macro for four-argument calls.
4937         (base64_decode_alloc): Likewise.
4938
4939 2008-05-19  Jim Meyering  <meyering@redhat.com>
4940
4941         avoid a warning from gcc
4942         * lib/trim.c (IF_LINT): Define.
4943         (trim2): Use it to avoid a "may be used uninitialized" warning.
4944
4945         Fix doc typo.
4946         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
4947
4948 2008-05-19  Bruno Haible  <bruno@clisp.org>
4949
4950         * doc/glibc-functions/getpass.texi: Document limits of other
4951         implementations.
4952
4953 2008-05-19  Simon Josefsson  <simon@josefsson.org>
4954             Bruno Haible <bruno@clisp.org>
4955
4956         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
4957
4958 2008-05-18  Bruno Haible  <bruno@clisp.org>
4959
4960         * modules/propername: New file, from GNU gettext.
4961         * lib/propername.h: New file, from GNU gettext.
4962         * lib/propername.c: New file, from GNU gettext.
4963         * MODULES.html.sh (Internationalization functions): Add propername.
4964
4965 2008-05-16  Jim Meyering  <meyering@redhat.com>
4966             Bruno Haible  <bruno@clisp.org>
4967
4968         Avoid some warnings from "gcc -Wshadow".
4969         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
4970
4971 2008-05-15  Eric Blake  <ebb9@byu.net>
4972
4973         Extend previous patch to cygwin 1.7.0.
4974         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
4975         fast implementation in cygwin >= 1.7.0.
4976         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4978
4979 2008-05-15  Bruno Haible  <bruno@clisp.org>
4980
4981         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
4982         implementation in glibc >= 2.9.
4983         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4985
4986 2008-05-15  Bruno Haible  <bruno@clisp.org>
4987
4988         * MODULES.html.sh (Internationalization functions): Remove linebreak.
4989         (Unicode string functions): Add unilbrk/*.
4990         Reported by Karl Berry.
4991
4992 2008-05-15  Eric Blake  <ebb9@byu.net>
4993
4994         Fix violation of <stdbool.h> replacement in regex.
4995         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
4996         * lib/regexec.c (re_search_internal): Likewise.
4997         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
4998
4999 2008-05-15  Jim Meyering  <meyering@redhat.com>
5000
5001         avoid distracting test output when git or cvs is not found
5002         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5003         * tests/test-vc-list-files-git.sh: Likewise.
5004
5005 2008-05-15  Eric Blake  <ebb9@byu.net>
5006
5007         Glibc finally accepted the memmem speedup code, bugzilla #5514.
5008         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5009         glibc version.
5010         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5011         * doc/posix-functions/strstr.texi (strstr): Likewise.
5012         * lib/str-two-way.h (MAX): Sychronize with glibc.
5013
5014 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
5015
5016         * lib/regcomp.c (optimize_utf8): Add a note on why we test
5017         opr.ctx_type.
5018         (calc_first): Initialize constraint field.
5019         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5020         Fix grammar.
5021         (duplicate_node): Merge constraint field for all node types.
5022         (calc_eclosure_iter): Look at constraint field for all node types.
5023         * lib/regex_internal.c (create_cd_newstate): Don't look at
5024         opr.ctx_type.
5025
5026 2008-05-14  Bruno Haible  <bruno@clisp.org>
5027
5028         Help GCC to do better code generation.
5029         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5030         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5031         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5032         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5033         Declare with attribute 'malloc' if supported.
5034
5035 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
5036
5037         use "echo STR|wc -c" rather than unportable "expr length STR"
5038         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5039         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5040
5041 2008-05-14  Jim Meyering  <meyering@redhat.com>
5042
5043         use dd ibs=$n count=1 ... rather than less-portable head -c$n
5044         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5045         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5046         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5047         via Collin Lasse.
5048
5049 2008-05-14  Eric Blake  <ebb9@byu.net>
5050
5051         Avoid quadratic growth in gl_LIBSOURCES.
5052         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5053         Suggested by Bruno Haible.
5054
5055         Test xmemdup0.
5056         * modules/xmemdup0-tests: New file.
5057         * tests/test-xmemdup0.c: Likewise.
5058
5059 2008-05-13  Eric Blake  <ebb9@byu.net>
5060
5061         Split xmemdup0 into its own module.
5062         * modules/xmemdup0: New file.
5063         * lib/xmemdup0.h: Likewise.
5064         * lib/xmemdup0.c: Likewise.
5065         * MODULES.html.sh (Memory management functions): Add xmemdup0.
5066         * lib/xalloc.h (xmemdup0): Remove.
5067         * lib/xmalloc.c (xmemdup0): Likewise.
5068
5069 2008-05-13  Eric Blake  <ebb9@byu.net>
5070             Bruno Haible  <bruno@clisp.org>
5071
5072         Reduce number of forks required during autoconf.
5073         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
5074         and gl_LIBSOURCES_DIR.
5075         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
5076         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
5077         m4_syscmd per file.
5078         <m4_foreach_w>: Move...
5079         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
5080
5081 2008-05-13  Eric Blake  <ebb9@byu.net>
5082
5083         * gnulib-tool: Fix various comment typos.
5084
5085 2008-05-12  Bruno Haible  <bruno@clisp.org>
5086
5087         Tailor the linebreaking algorithm.
5088         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
5089
5090 2008-05-12  Bruno Haible  <bruno@clisp.org>
5091
5092         Update to Unicode 5.0.0.
5093         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5094         LBP_JV, LBP_JT. Redistribute values.
5095         (unilbrk_table): Change size.
5096         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
5097         Unicode TR#14 rev. 22.
5098         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5099         LBP_JV, LBP_JT. Redistribute values.
5100         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
5101         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
5102         Update.
5103         * lib/unilbrk/lbrkprop1.h: Regenerated.
5104         * lib/unilbrk/lbrkprop2.h: Regenerated.
5105         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
5106         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
5107         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5108         Likewise.
5109         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5110         Likewise.
5111         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
5112         result.
5113         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5114         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5115         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5116         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
5117         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
5118         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
5119
5120 2008-05-11  Bruno Haible  <bruno@clisp.org>
5121
5122         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
5123
5124 2008-05-11  Bruno Haible  <bruno@clisp.org>
5125
5126         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
5127         * modules/unilbrk/gen-lbrk: New file.
5128
5129 2008-05-11  Bruno Haible  <bruno@clisp.org>
5130
5131         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
5132         * m4/sha512.m4 (gl_SHA512): Likewise.
5133
5134 2008-05-11  Jim Meyering  <meyering@redhat.com>
5135
5136         New modules: crypto/sha256, crypto/sha512 (from coreutils)
5137         * modules/crypto/sha256: New file.
5138         * modules/crypto/sha512: Likewise.
5139         * lib/sha256.c: Likewise.
5140         * lib/sha256.h: Likewise.
5141         * lib/sha512.c: Likewise.
5142         * lib/sha512.h: Likewise.
5143         * lib/u64.h: Likewise.
5144         * m4/sha256.m4: Likewise.
5145         * m4/sha512.m4: Likewise.
5146         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5147
5148 2008-05-10  Bruno Haible  <bruno@clisp.org>
5149
5150         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5151         (Input/Output <stdio.h>): Add xprintf.
5152         (Signal handling <signal.h>): Add strsignal.
5153         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5154         (Core language properties): Add func.
5155         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5156         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5157         strings.
5158         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5159         (Input/output): New section.
5160         (File system functions): Add openat-die, stat-macros.
5161         (Networking functions): Add sockets.
5162         (Unicode string functions): Add unictype/*.
5163         (Support for building libraries and executables): Add gperf.
5164         (Support for building documentation): Add agpl-3.0.
5165         (Misc): Add nocrash.
5166
5167 2008-05-10  Bruno Haible  <bruno@clisp.org>
5168
5169         * modules/unictype/gen-ctype: New file.
5170
5171 2008-05-10  Jim Meyering  <meyering@redhat.com>
5172
5173         Make chdir-safer.c more efficient on a system with no symlinks.
5174         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5175         also if ELOOP is zero.  Suggested by Bruno Haible.
5176
5177         Make chdir-safer.c slightly safer.
5178         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5179         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5180
5181         Avoid compile failure on systems without ELOOP (like mingw).
5182         * lib/chdir-safer.c (ELOOP): Define if not already defined.
5183         Reported by Bruno Haible.
5184
5185 2008-05-10  Bruno Haible  <bruno@clisp.org>
5186
5187         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5188         (is_utf8_encoding): Use a case-insensitive comparison.
5189         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5190         streq.
5191
5192 2008-05-10  Bruno Haible  <bruno@clisp.org>
5193
5194         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5195         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5196         * lib/unilbrk/ulc-common.h (iconv_string_length,
5197         iconv_string_keeping_offsets): Remove declarations.
5198         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5199         Don't include <iconv.h>, streq.h, xsize.h.
5200         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5201         conversion.
5202         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5203         <iconv.h>, streq.h, xsize.h.
5204         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5205         conversion.
5206         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5207         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5208         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5209         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5210
5211 2008-05-10  Bruno Haible  <bruno@clisp.org>
5212
5213         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5214         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5215
5216         * modules/unilbrk/u32-width-linebreaks-tests: New file.
5217         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5218
5219         * modules/unilbrk/u16-width-linebreaks-tests: New file.
5220         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5221
5222         * modules/unilbrk/u8-width-linebreaks-tests: New file.
5223         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5224
5225         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5226         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5227
5228         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5229         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5230
5231         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5232         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5233
5234         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5235         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5236
5237 2008-05-10  Bruno Haible  <bruno@clisp.org>
5238
5239         Split up 'linebreak' module.
5240         * lib/unilbrk.h: New file, based on lib/linebreak.h.
5241         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5242         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5243         modifications.
5244         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5245         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5246         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5247         lib/linebreak.c.
5248         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5249         lib/linebreak.c.
5250         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5251         lib/linebreak.c.
5252         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5253         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5254         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5255         lib/linebreak.c.
5256         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5257         lib/linebreak.c.
5258         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5259         lib/linebreak.c.
5260         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5261         lib/linebreak.c.
5262         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5263         lib/linebreak.c.
5264         * modules/unilbrk/base: New file.
5265         * modules/unilbrk/tables: New file.
5266         * modules/unilbrk/u8-possible-linebreaks: New file.
5267         * modules/unilbrk/u16-possible-linebreaks: New file.
5268         * modules/unilbrk/u32-possible-linebreaks: New file.
5269         * modules/unilbrk/ulc-common: New file.
5270         * modules/unilbrk/ulc-possible-linebreaks: New file.
5271         * modules/unilbrk/u8-width-linebreaks: New file.
5272         * modules/unilbrk/u16-width-linebreaks: New file.
5273         * modules/unilbrk/u32-width-linebreaks: New file.
5274         * modules/unilbrk/ulc-width-linebreaks: New file.
5275         * lib/linebreak.h: Remove file.
5276         * lib/linebreak.c: Remove file.
5277         * m4/linebreak.m4: Remove file.
5278         * modules/linebreak: Remove file.
5279         * NEWS: Mention the changes.
5280
5281 2008-05-09  Eric Blake  <ebb9@byu.net>
5282
5283         Add xmemdup0.
5284         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5285         implementation.
5286         * lib/xmalloc.c (xmemdup0): New C implementation.
5287
5288 2008-05-08  Bruno Haible  <bruno@clisp.org>
5289
5290         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5291
5292 2008-05-07  Eric Blake  <ebb9@byu.net>
5293
5294         Support cross-compilation of <wctype.h>.
5295         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5296         AC_CACHE_CHECK.
5297
5298 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
5299
5300         * build-aux/vc-list-files: Add support for bzr.
5301
5302 2008-05-03  Jim Meyering  <meyering@redhat.com>
5303
5304         avoid failed assertion with tight malloc
5305         * tests/test-getndelim2.c: Correct an off-by-one assertion.
5306
5307 2008-05-03  Simon Josefsson  <simon@josefsson.org>
5308
5309         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5310         are needed from arpa/inet.h.
5311         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5312         Reported by Bruno Haible.
5313
5314 2008-05-02  Jim Meyering  <meyering@redhat.com>
5315
5316         avoid compilation error on FreeBSD 6
5317         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5318
5319 2008-05-01  Jim Meyering  <meyering@redhat.com>
5320
5321         useless-if-before-free: correct --help's exit status description
5322         * build-aux/useless-if-before-free (usage): Like grep, exit 0
5323         for one or more matches, etc.  Reported by Bruno Haible.
5324
5325         vc-list-files: make the stand-alone gnulib test work
5326         * modules/vc-list-files-tests (configure.ac):
5327         Define and AC_SUBST abs_aux_dir.
5328         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5329         $(abs_top_srcdir) to each script and having each of them
5330         duplicate the work of setting PATH, set PATH here, using
5331         the new variable, abs_aux_dir instead.
5332         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5333         * tests/test-vc-list-files-git.sh: Likewise.
5334         Reported by Bruno Haible.
5335
5336 2008-05-01  Bruno Haible  <bruno@clisp.org>
5337
5338         * lib/getndelim2.c (getndelim2): Fix newsize computation during
5339         reallocation. Rename 'done' to 'found_delimiter'.
5340
5341 2008-05-01  Jim Meyering  <meyering@redhat.com>
5342
5343         vc-list-files: accommodate /bin/sh like the one from Solaris 10
5344         * build-aux/vc-list-files: Use `...`, not $(...).
5345
5346 2008-04-30  Jim Meyering  <meyering@redhat.com>
5347
5348         add tests for vc-list-files
5349         * modules/vc-list-files-tests: New module.
5350         * tests/test-vc-list-files-cvs.sh: New file.
5351         * tests/test-vc-list-files-git.sh: New file.
5352
5353         avoid a warning from gcc
5354         * lib/getndelim2.c (IF_LINT): Define.
5355         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5356
5357         vc-list-files: work properly with build-aux/cvsu, too
5358         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5359         to all cvs-based clauses.
5360
5361         vc-list-files: work properly in the CVS+awk case, too
5362         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5363
5364         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5365         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5366         take more than one file argument, so .  Add quotes, just in case $dir
5367         ever contains a shell meta-character.  Prompted by Soren Hansen in
5368         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5369
5370 2008-04-29  Eric Blake  <ebb9@byu.net>
5371
5372         Optimize getndelim2 to use block operations when possible.
5373         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5374         freadseek, and memchr2.
5375         * lib/getndelim2.c (getndelim2): Use them for block reads.
5376
5377 2008-04-29  Bruno Haible  <bruno@clisp.org>
5378
5379         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5380         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5381         * modules/inet_ntop (Depends-on): Add extensions.
5382         * modules/inet_pton (Depends-on): Likewise.
5383         Reported by Simon Josefsson.
5384
5385 2008-04-29  Jim Meyering  <meyering@redhat.com>
5386
5387         When the is more than one match in a block, match all of them.
5388         * build-aux/useless-if-before-free: Iterate through each block
5389         until there are no more matches.
5390
5391         Fix broken useless-if-before-free script.
5392         * build-aux/useless-if-before-free: Fix typo: missing "?" after
5393         the expression to match cast of argument to free-like function.
5394
5395 2008-04-29  Eric Blake  <ebb9@byu.net>
5396
5397         Use new header.
5398         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5399
5400 2008-04-29  Jim Meyering  <meyering@redhat.com>
5401
5402         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5403         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5404         by gnulib to exist and to declare e.g., inet_ntop.
5405         Don't include "inet_ntop.h", now removed.
5406
5407         * m4/arpa_inet_h.m4: Remove trailing blanks.
5408
5409 2008-04-29  Eric Blake  <ebb9@byu.net>
5410
5411         Silence valgrind on safe reads beyond potential array bounds.
5412         * lib/rawmemchr.valgrind: New file.
5413         * lib/strchrnul.valgrind: Likewise.
5414         * modules/rawmemchr (Files): Distribute new file.
5415         * modules/strchrnul (Files): Likewise.
5416         Suggested by Bruno Haible.
5417
5418 2008-04-29  Bruno Haible  <bruno@clisp.org>
5419
5420         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5421         (inet_ntop, inet_pton): Change portability warning's wording.
5422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5423         Invoke gl_CHECK_NEXT_HEADERS.
5424         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5425         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5426         set ARPA_INET_H.
5427         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5428         * modules/arpa_inet (Description): No longer only for systems that
5429         lack it.
5430         (Depends-on): Add include_next.
5431         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5432         HAVE_ARPA_INET_H.
5433
5434 2008-04-29  Jim Meyering  <meyering@redhat.com>
5435
5436         * modules/mkdir (License): Re-license as LGPLv2+.
5437
5438 2008-04-29  Bruno Haible  <bruno@clisp.org>
5439
5440         * modules/rawmemchr (Maintainer): Set to Eric.
5441         * modules/strchrnul (Maintainer): Likewise.
5442
5443 2008-04-29  Simon Josefsson  <simon@josefsson.org>
5444
5445         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5446         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5447
5448         * modules/arpa_inet (arpa/inet.h): Use them.
5449
5450 2008-04-28  Eric Blake  <ebb9@byu.net>
5451
5452         Test getndelim2.
5453         * modules/getndelim2-tests: New file.
5454         * tests/test-getndelim2.c: Likewise.
5455         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
5456         stream.
5457         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5458
5459         * MODULES.html.sh: Document new module.
5460
5461 2008-04-20  Bruno Haible  <bruno@clisp.org>
5462
5463         * lib/c-stack.c (die): Use raise.
5464         * modules/c-stack (Depends-on): Add raise.
5465
5466 2008-04-28  Bruno Haible  <bruno@clisp.org>
5467
5468         Expect rpmatch to be declared.
5469         * lib/yesno.c (rpmatch): Remove declaration.
5470
5471         Declare rpmatch.
5472         * lib/stdlib.in.h (rpmatch): New declaration.
5473         * lib/rpmatch.c: Include <stdlib.h> first.
5474         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5475         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5477         HAVE_RPMATCH.
5478         * modules/rpmatch (Depends-on): Add stdlib, extensions.
5479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5480         (Include): Set to <stdlib.h>.
5481         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5482         HAVE_RPMATCH.
5483         * NEWS: Document the change.
5484
5485 2008-04-28  Bruno Haible  <bruno@clisp.org>
5486
5487         Change rpmatch to use nl_langinfo when appropriate.
5488         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5489         (N_): New macro.
5490         (localized_pattern): New function/macro.
5491         (try): Remove match, nomatch arguments. Copy the pattern into safe
5492         memory before caching it.
5493         (rpmatch): Use localized_pattern. Add translator comments.
5494         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5495         Suggested by Eric Blake.
5496         * modules/rpmatch (Depends-on): Add stdbool.
5497
5498 2008-04-28  Eric Blake  <ebb9@byu.net>
5499
5500         Add rawmemchr module, matching glibc.
5501         * modules/string (Makefile.am): New indicator.
5502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5503         * lib/string.in.h (rawmemchr): Declare when appropriate.
5504         * modules/rawmemchr: New file.
5505         * m4/rawmemchr.m4: Likewise.
5506         * lib/rawmemchr.c: Likewise.
5507         * modules/rawmemchr-tests: Likewise.
5508         * tests/test-rawmemchr.c: Likewise.
5509         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5510         module.
5511         * modules/strchrnul (Depends-on): Add rawmemchr.
5512         * lib/strchrnul.c (strchrnul): Optimize a corner case.
5513
5514         Whitespace cleanup.
5515         * tests/test-strchrnul.c: Reindent.
5516         * lib/strchrnul.c: Likewise.
5517
5518         Optimize and test strchrnul.
5519         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5520         * modules/strchrnul-tests: New file.
5521         * tests/test-strchrnul.c: Likewise.
5522
5523         Remove intprops dependency.
5524         * modules/memchr (Depends-on): Remove intprops.
5525         * modules/memrchr (Depends-on): Likewise.
5526         * modules/memchr2 (Depends-on): Likewise.
5527         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5528         * lib/memrchr.c (__memrchr): Likewise.
5529         * lib/memrchr2.c (memchr2): Likewise.
5530         Reported by Simon Josefsson.
5531
5532 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5533
5534         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5535         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5536
5537 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5538
5539         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5540
5541         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5542
5543         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5544
5545         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5546         declarations.
5547         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5548
5549         * m4/inet_pton.m4: Don't check for header files.
5550
5551         * m4/inet_ntop.m4: Don't check for header files.
5552
5553 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5554
5555         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5556         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5557         trigger for cygwin).
5558         Reported by Bruno Haible  <bruno@clisp.org>.
5559
5560 2008-04-28  Bruno Haible  <bruno@clisp.org>
5561
5562         * doc/posix-functions/strdup.texi: Mention mingw problem.
5563
5564 2008-04-27  Bruno Haible  <bruno@clisp.org>
5565
5566         * modules/stat-time-tests (Depends-on): Add sleep.
5567         * tests/test-stat-time.c (force_unlink): New function.
5568         (cleanup): Use it.
5569         (test_mtime): Remove the ctime related tests.
5570         (test_ctime): New function, containing the ctime related tests.
5571         (main): Call test_ctime, except on native Windows platforms.
5572
5573 2008-04-27  Bruno Haible  <bruno@clisp.org>
5574
5575         * lib/rpmatch.c (rpmatch): Add some comments.
5576         Reported by James Youngman <jay@gnu.org>.
5577
5578 2008-04-27  Bruno Haible  <bruno@clisp.org>
5579
5580         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5581         quiet NaNs.
5582
5583 2008-04-27  Bruno Haible  <bruno@clisp.org>
5584
5585         Make test-yesno.sh work on mingw.
5586         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5587         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5588         (main): Set stdin to binary mode.
5589         * modules/yesno-tests (Depends-on): Add binary-io.
5590
5591 2008-04-27  Bruno Haible  <bruno@clisp.org>
5592
5593         Fix 'isfinite' on x86, x86_64, ia64 platforms.
5594         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5595         argument that lie outside the IEEE 854 domain.
5596         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5597         (gl_ISFINITE): Use it.
5598         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5599
5600 2008-04-27  Bruno Haible  <bruno@clisp.org>
5601
5602         Allow local renaming in config.h.
5603         * lib/memrchr.c (memrchr): Don't undefine outside libc.
5604
5605 2008-04-27  Bruno Haible  <bruno@clisp.org>
5606
5607         * lib/memchr.c (__memchr): Change type of 'i'.
5608         * lib/memchr2.c (memchr2): Likewise.
5609
5610 2008-04-26  Eric Blake  <ebb9@byu.net>
5611         and Bruno Haible  <bruno@clisp.org>
5612
5613         Optimize and test memrchr.
5614         * modules/memrchr (Depends-on): Add intprops.
5615         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5616         * modules/memrchr-tests: New file.
5617         * tests/test-memrchr.c: New file.
5618
5619 2008-04-26  Bruno Haible  <bruno@clisp.org>
5620
5621         Add tentative support for DragonFly BSD.
5622         * lib/stdio-impl.h: Add macros for DragonFly BSD.
5623         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5624         fp.
5625         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5626         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5627         * lib/fpurge.c (fpurge): Likewise.
5628         * lib/freadable.c (freaadable): Likewise.
5629         * lib/freadahead.c (freadahead): Likewise.
5630         * lib/freading.c (freading): Likewise.
5631         * lib/freadptr.c (freadptr): Likewise.
5632         * lib/freadseek.c (freadptrinc): Likewise.
5633         * lib/fseeko.c (fseeko): Likewise.
5634         * lib/fseterr.c (fseterr): Likewise.
5635         * lib/fwritable.c (fwritable): Likewise.
5636         * lib/fwriting.c (fwriting): Likewise.
5637
5638 2008-04-26  Bruno Haible  <bruno@clisp.org>
5639
5640         * lib/stdio-impl.h: New file.
5641         * lib/fbufmode.c: Include stdio-impl.h.
5642         (fbufmode): Use fp_, remove redundant #defines.
5643         * lib/fflush.c: Include stdio-impl.h.
5644         (clear_ungetc_buffer): Remove redundant #defines.
5645         * lib/fpurge.c: Include stdio-impl.h.
5646         (fpurge): Remove redundant #defines.
5647         * lib/freadable.c: Include stdio-impl.h.
5648         (freadable): Remove redundant #defines.
5649         * lib/freadahead.c: Include stdio-impl.h.
5650         (freadahead): Remove redundant #defines.
5651         * lib/freading.c: Include stdio-impl.h.
5652         (freading): Remove redundant #defines.
5653         * lib/freadptr.c: Include stdio-impl.h.
5654         (freadptr): Remove redundant #defines.
5655         * lib/freadseek.c: Include stdio-impl.h.
5656         (freadptrinc): Remove redundant #defines.
5657         * lib/fseeko.c: Include stdio-impl.h.
5658         (rpl_fseeko): Remove redundant #defines.
5659         * lib/fseterr.c: Include stdio-impl.h.
5660         (fseterr): Remove redundant #defines.
5661         * lib/fwritable.c: Include stdio-impl.h.
5662         (fwritable: Remove redundant #defines.
5663         * lib/fwriting.c: Include stdio-impl.h.
5664         (fwriting): Remove redundant #defines.
5665         * modules/fbufmode (Files): Add lib/stdio-impl.h.
5666         * modules/fflush (Files): Likewise.
5667         * modules/fpurge (Files): Likewise.
5668         * modules/freadable (Files): Likewise.
5669         * modules/freadahead (Files): Likewise.
5670         * modules/freading (Files): Likewise.
5671         * modules/freadptr (Files): Likewise.
5672         * modules/freadseek (Files): Likewise.
5673         * modules/fseeko (Files): Likewise.
5674         * modules/fseterr (Files): Likewise.
5675         * modules/fwritable (Files): Likewise.
5676         * modules/fwriting (Files): Likewise.
5677
5678 2008-04-26  Bruno Haible  <bruno@clisp.org>
5679
5680         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5681         restore_seek_optimization, update_fpos_cache): New functions, extracted
5682         from rpl_fflush.
5683         (rpl_fflush): Use them.
5684         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5685         (gl_REPLACE_FFLUSH): Use it.
5686
5687 2008-04-26  Bruno Haible  <bruno@clisp.org>
5688
5689         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5690         on Solaris.
5691         * tests/test-xstrtoimax.sh: Likewise.
5692         * tests/test-xstrtoumax.sh: Likewise.
5693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5694
5695 2008-04-26  Bruno Haible  <bruno@clisp.org>
5696
5697         * modules/memchr-tests: New file.
5698         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5699
5700 2008-04-26  Eric Blake  <ebb9@byu.net>
5701             Bruno Haible  <bruno@clisp.org>
5702
5703         * lib/memchr.c: Include intprops.h.
5704         (__memchr): Optimize parallel detection of matching bytes. Rename local
5705         variables. Add explanatory comments.
5706
5707 2008-04-26  Bruno Haible  <bruno@clisp.org>
5708
5709         Fix module 'memchr', broken since 2000-10-28.
5710         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5711
5712 2008-04-26  Bruno Haible  <bruno@clisp.org>
5713
5714         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5715         comments.
5716
5717 2008-04-25  Eric Blake  <ebb9@byu.net>
5718
5719         Use native fstatat on cygwin 1.7.0.
5720         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5721         first.
5722
5723 2008-04-23  Eric Blake  <ebb9@byu.net>
5724
5725         Improve memchr2 performance.
5726         * lib/memchr2.c (memchr2): Further optimize parallel detection of
5727         NUL bytes.
5728         * modules/memchr2 (Depends-on): Use intprops.h.
5729
5730 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5731
5732         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5733         an inline function instead of a CPP macro.  Patch by Ben Pfaff
5734         <blp@cs.stanford.edu>.
5735
5736 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5737
5738         * lib/arpa_inet.in.h: New file.
5739
5740         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5741         (Makefile.am): Sed in substitute header file.
5742
5743         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5744         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
5745
5746         * modules/inet_ntop (configure.ac): Use
5747         gl_ARPA_INET_MODULE_INDICATOR.
5748
5749         * modules/inet_pton (configure.ac): Use
5750         gl_ARPA_INET_MODULE_INDICATOR.
5751
5752 2008-04-22  Jim Meyering  <meyering@redhat.com>
5753
5754         * modules/verify (License): Re-license as LGPLv2+.
5755
5756 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5757
5758         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5759         parameter to void* as per POSIX standard (MinGW uses char*).
5760
5761 2008-04-21  Bruno Haible  <bruno@clisp.org>
5762
5763         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5764         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5765         Define to replacements if REPLACE_ISWCNTRL is 1.
5766         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5767         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5768         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5769         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5770         what it fixes.
5771         * doc/posix-functions/iswalpha.texi: Likewise.
5772         * doc/posix-functions/iswblank.texi: Likewise.
5773         * doc/posix-functions/iswcntrl.texi: Likewise.
5774         * doc/posix-functions/iswdigit.texi: Likewise.
5775         * doc/posix-functions/iswgraph.texi: Likewise.
5776         * doc/posix-functions/iswlower.texi: Likewise.
5777         * doc/posix-functions/iswprint.texi: Likewise.
5778         * doc/posix-functions/iswpunct.texi: Likewise.
5779         * doc/posix-functions/iswspace.texi: Likewise.
5780         * doc/posix-functions/iswupper.texi: Likewise.
5781         * doc/posix-functions/iswxdigit.texi: Likewise.
5782         Reported by Alain Guibert.
5783
5784 2008-04-21  Bruno Haible  <bruno@clisp.org>
5785
5786         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5787         Patch by Alain Guibert.
5788
5789 2008-04-21  Bruno Haible  <bruno@clisp.org>
5790
5791         Fix test failures on mingw.
5792         * tests/test-xstrtol.c (print_no_progname): New function.
5793         (main): Install it in error_print_progname hook.
5794         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5795         * tests/test-xstrtoimax.sh: Likewise.
5796         * tests/test-xstrtoumax.sh: Likewise.
5797
5798 2008-04-21  Bruno Haible  <bruno@clisp.org>
5799
5800         Fix test failure on mingw.
5801         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5802
5803 2008-04-21  Bruno Haible  <bruno@clisp.org>
5804
5805         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5806         Actually assign a value.
5807
5808 2008-04-20  Bruno Haible  <bruno@clisp.org>
5809
5810         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5811         take 2.
5812         * lib/canonicalize.c (canonicalize_file_name): Elide if the
5813         'canonicalize-lgpl' module is also used.
5814         * lib/canonicalize-lgpl.c: Undo last change.
5815         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5816
5817 2008-04-20  Bruno Haible  <bruno@clisp.org>
5818
5819         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5820         config.h. Provide _mkdir based fallback for mingw.
5821         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5822         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5823         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5824         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5825         rather than defining mkdir in config.h.
5826         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5827         (gl_SYS_STAT_H_DEFAULTS): New macro.
5828         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5829         HAVE_IO_H any more.
5830         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5831         HAVE_DECL_MKDIR and HAVE_IO_H.
5832
5833 2008-04-20  Bruno Haible  <bruno@clisp.org>
5834
5835         * lib/isapipe.c: Port to native Windows platforms.
5836
5837 2008-04-20  Bruno Haible  <bruno@clisp.org>
5838
5839         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5840
5841 2008-04-21  Eric Blake  <ebb9@byu.net>
5842
5843         Work around preprocessors that don't handle UINTMAX_MAX.
5844         * lib/memchr2.c (memchr2): Avoid embedded #if.
5845         Reported by Alain Guibert, fix suggested by Bruno Haible.
5846
5847 2008-04-21  Simon Josefsson  <simon@josefsson.org>
5848
5849         * doc/posix-functions/strftime.texi (strftime): Explain better
5850         Windows incompatibility.  Suggested by Micah Cowan
5851         <micah@cowan.name>.
5852
5853 2008-04-20  Bruno Haible  <bruno@clisp.org>
5854
5855         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5856         unistr/u8-mblen.
5857
5858 2008-04-20  Bruno Haible  <bruno@clisp.org>
5859
5860         Fix test failure on platforms with non-GNU iconv.
5861         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5862         (U_TO_U8): Use it, rather than u16_to_u8.
5863         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
5864         units at the end of the input string.
5865         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
5866
5867 2008-04-20  Bruno Haible  <bruno@clisp.org>
5868
5869         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
5870         when the resulting length is 0.
5871         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5872
5873 2008-04-20  Bruno Haible  <bruno@clisp.org>
5874
5875         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
5876         works.
5877         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
5878
5879 2008-04-20  Bruno Haible  <bruno@clisp.org>
5880
5881         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
5882         * modules/tsearch-tests (configure.ac): Test for initstate function.
5883
5884 2008-04-20  Bruno Haible  <bruno@clisp.org>
5885
5886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
5887         for nlink_t if missing.
5888         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
5889
5890 2008-04-19  Bruno Haible  <bruno@clisp.org>
5891
5892         Work around snprintf bug on Linux libc5.
5893         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
5894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5895         gl_SNPRINTF_SIZE1.
5896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5897         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
5898         that test failed.
5899         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5900         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
5901         * modules/snprintf (Files): Add m4/printf.m4.
5902         * modules/vsnprintf (Files): Likewise.
5903         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
5904         * doc/posix-functions/vsnprintf.texi: Likewise.
5905
5906 2008-04-19  Bruno Haible  <bruno@clisp.org>
5907
5908         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
5909         from 0.0058 to less than 10^-7.
5910
5911 2008-04-19  Bruno Haible  <bruno@clisp.org>
5912
5913         Fix rounding when a precision is given.
5914         * lib/vasnprintf.c (is_borderline): New function.
5915         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
5916         9...9x.
5917         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
5918         %e, %g.
5919         * tests/test-vasprintf-posix.c (test_function): Likewise.
5920         * tests/test-snprintf-posix.h (test_function): Likewise.
5921         * tests/test-sprintf-posix.h (test_function): Likewise.
5922         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
5923         * tests/test-printf-posix.h (test_function): Likewise.
5924         * tests/test-printf-posix.output: Update.
5925         Reported by John Darrington <john@darrington.wattle.id.au> via
5926         Ben Pfaff <blp@cs.stanford.edu>.
5927
5928 2008-04-18  Simon Josefsson  <simon@josefsson.org>
5929
5930         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
5931         Suggested by Bruno Haible <bruno@clisp.org>.
5932
5933 2008-04-17  Bruno Haible  <bruno@clisp.org>
5934
5935         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
5936         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
5937         implementation.
5938         Patch by Bruce Merry <bmerry@gmail.com>.
5939
5940 2008-04-17  Simon Josefsson  <simon@josefsson.org>
5941
5942         * doc/posix-functions/strftime.texi (strftime): Mention that %e
5943         doesn't work under Windows.
5944
5945 2008-04-16  Bruno Haible  <bruno@clisp.org>
5946
5947         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
5948         New macros.
5949         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
5950         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
5951         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
5952         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
5953         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
5954         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
5955         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
5956         macros.
5957         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
5958         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
5959         Northern Sotho, Uighur.
5960
5961 2008-04-16  Bruno Haible  <bruno@clisp.org>
5962
5963         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
5964         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
5965         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
5966         Reported by Daniel Bergström <daniel@octocode.com>.
5967
5968 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
5969             Bruno Haible  <bruno@clisp.org>
5970
5971         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
5972         function.
5973         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
5974         New functions, mostly extracted from gl_locale_name_default.
5975         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
5976
5977 2008-04-16  Eric Blake  <ebb9@byu.net>
5978
5979         Adjust strtod detection to catch glibc 2.7 bug.
5980         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
5981         Reported by John Gatewood Ham.
5982
5983 2008-04-16  Bruno Haible  <bruno@clisp.org>
5984
5985         Add tentative support for Linux libc5.
5986         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
5987         * lib/fpurge.c (fpurge): Likewise.
5988         * lib/freadable.c (freadable): Likewise.
5989         * lib/freadahead.c (freadahead): Likewise.
5990         * lib/freading.c (freading): Likewise.
5991         * lib/freadptr.c (freadptr): Likewise.
5992         * lib/freadseek.c (freadptrinc): Likewise.
5993         * lib/fseeko.c (rpl_fseeko): Likewise.
5994         * lib/fseterr.c (fseterr): Likewise.
5995         * lib/fwritable.c (fwritable): Likewise.
5996         * lib/fwriting.c (fwriting): Likewise.
5997         Reported by Alain Guibert <alguibert+bts@free.fr>.
5998
5999 2008-04-15  Bruno Haible  <bruno@clisp.org>
6000
6001         * modules/mathl (configure.ac): Define module indicator.
6002
6003 2008-04-15  Bruno Haible  <bruno@clisp.org>
6004
6005         * lib/logl.c (logl): Remove unused variables.
6006
6007 2008-04-15  Bruno Haible  <bruno@clisp.org>
6008
6009         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6010         fails.
6011
6012 2008-04-15  Bruno Haible  <bruno@clisp.org>
6013
6014         * lib/trim.c (trim2): Fix argument of isspace() macro.
6015
6016 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
6017
6018         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6019         to 0.
6020         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6021
6022 2008-04-14  Bruno Haible  <bruno@clisp.org>
6023
6024         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6025         AC_LANG_PROGRAM argument.
6026         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6027         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6029         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6030         * m4/math_h.m4 (gl_MATH_H): Likewise.
6031         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6033         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6034         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6035         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6036         * m4/regex.m4 (gl_REGEX): Likewise.
6037         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6038         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6042         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6045
6046 2008-04-14  Jim Meyering  <meyering@redhat.com>
6047
6048         test-strtod: fix typos: s/abs/fabs/
6049         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6050
6051 2008-04-13  Bruno Haible  <bruno@clisp.org>
6052
6053         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6054         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6055         module is also used and while not building the reloc-wrapper.
6056
6057 2008-04-13  Bruno Haible  <bruno@clisp.org>
6058
6059         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6060
6061 2008-04-13  Bruno Haible  <bruno@clisp.org>
6062
6063         Fix AIX compilation failure introduced on 2008-04-02.
6064         * tests/test-frexp.c (exp): Undefine before redefining.
6065         * tests/test-frexpl.c (exp): Likewise.
6066
6067 2008-04-13  Bruno Haible  <bruno@clisp.org>
6068
6069         Work around a HP-UX stdio bug.
6070         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
6071         * tests/test-ftello.c (main): Likewise.
6072         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
6073         * doc/posix-functions/ftello.texi: Likewise.
6074
6075 2008-04-13  Bruno Haible  <bruno@clisp.org>
6076
6077         Make test-signbit pass on HP-UX/hppa.
6078         * tests/test-signbit.c (minus_zerol): New variable.
6079         (test_signbitl): Use it.
6080
6081 2008-04-13  Bruno Haible  <bruno@clisp.org>
6082
6083         Make truncl work on OSF/1 4.0.
6084         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
6085         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6086         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
6088         HAVE_DECL_TRUNCL.
6089         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
6090         HAVE_DECL_TRUNCL.
6091         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
6092
6093 2008-04-13  Bruno Haible  <bruno@clisp.org>
6094
6095         * lib/unictype.h: Remove trailing comma from enumeration definitions.
6096
6097 2008-04-13  Bruno Haible  <bruno@clisp.org>
6098
6099         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
6100         expression, so as to avoid HP-UX 11 cc compiler bug.
6101
6102 2008-04-13  Bruno Haible  <bruno@clisp.org>
6103
6104         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
6105
6106 2008-04-13  Bruno Haible  <bruno@clisp.org>
6107
6108         * lib/git-merge-changelog.c: Remove empty declaration outside of
6109         functions.
6110
6111 2008-04-13  Bruno Haible  <bruno@clisp.org>
6112
6113         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
6114
6115 2008-04-13  Bruno Haible  <bruno@clisp.org>
6116
6117         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
6118         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
6119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
6120         also if it exists but lacks definitions of the SHUT_* macros.
6121         * modules/sys_socket (Description): Update.
6122         Reported by Elbert Pol <e.pol@chello.nl>.
6123
6124 2008-04-13  Bruno Haible  <bruno@clisp.org>
6125
6126         * lib/localcharset.c (OS2): Don't redefine if already defined.
6127         Reported by Elbert Pol <e.pol@chello.nl>.
6128
6129 2008-04-13  Bruno Haible  <bruno@clisp.org>
6130
6131         * lib/binary-io.h [__EMX__]: Include <io.h>.
6132         Reported by Elbert Pol <e.pol@chello.nl>.
6133
6134 2008-04-12  Bruno Haible  <bruno@clisp.org>
6135
6136         * lib/fpucw.h: Enable the definitions also for x86_64.
6137         Needed for NetBSD/x86_64.
6138         Reported by Thomas Klausner <tk@giga.or.at>.
6139
6140 2008-04-12  Bruno Haible  <bruno@clisp.org>
6141
6142         * tests/test-strtod.c: Include isnand.h.
6143         (main): Use isnand instead of isnan.
6144         Reported by Jim Meyering.
6145
6146 2008-04-12  Bruno Haible  <bruno@clisp.org>
6147
6148         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6149         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6150
6151 2008-04-12  Jim Meyering  <meyering@redhat.com>
6152
6153         * m4/math_h.m4 (gl_MATH_H): Fix typos.
6154
6155 2008-04-12  Bruno Haible  <bruno@clisp.org>
6156
6157         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6158         Reported by Elbert Pol <e.pol@chello.nl>.
6159
6160 2008-04-12  Eric Blake  <ebb9@byu.net>
6161
6162         Work around Solaris 10 math.h bug.
6163         * m4/math_h.m4 (gl_MATH_H): Check for bug.
6164         (gl_MATH_H_DEFAULTS): Set up default.
6165         * modules/math (Makefile.am): Replace new indicators.
6166         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6167         * tests/test-math.c (main): Test this.
6168         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6169         * doc/posix-headers/math.texi (math.h): Mention bug.
6170         Reported by Nelson H. F. Beebe and Jim Meyering.
6171
6172 2008-04-11  Bruno Haible  <bruno@clisp.org>
6173
6174         Adapt to future versions of Apple GCC.
6175         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6176         Reported by Peter O'Gorman <peter@pogma.com>.
6177
6178 2008-04-11  Bruno Haible  <bruno@clisp.org>
6179
6180         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6181
6182 2008-04-11  Bruno Haible  <bruno@clisp.org>
6183
6184         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6185
6186         * modules/getaddrinfo-tests (Makefile.am): Define
6187         test_getaddrinfo_LDADD.
6188
6189 2008-04-11  Bruno Haible  <bruno@clisp.org>
6190
6191         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6192         (init): Fix syntax error.
6193         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6194         is declared.
6195
6196 2008-04-11  Bruno Haible  <bruno@clisp.org>
6197
6198         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6199         * modules/glob (Depends-on): Add stdbool.
6200
6201 2008-04-11  Bruno Haible  <bruno@clisp.org>
6202
6203         * lib/trim.c: Include <string.h>.
6204
6205 2008-04-11  Eric Blake  <ebb9@byu.net>
6206
6207         Avoid compile failure on OS/2.
6208         * lib/regex_internal.h (internal_function): Disable optimization
6209         on OS/2 (__EMX__), where it caused compiler error.
6210         Reported by Elbert Pol.
6211
6212 2008-04-11  Bruno Haible  <bruno@clisp.org>
6213
6214         Flush the standard error stream before aborting. Needed on mingw.
6215         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6216         * tests/test-array_list.c (ASSERT): Likewise.
6217         * tests/test-array_oset.c (ASSERT): Likewise.
6218         * tests/test-avltree_list.c (ASSERT): Likewise.
6219         * tests/test-avltree_oset.c (ASSERT): Likewise.
6220         * tests/test-avltreehash_list.c (ASSERT): Likewise.
6221         * tests/test-binary-io.c (ASSERT): Likewise.
6222         * tests/test-byteswap.c (ASSERT): Likewise.
6223         * tests/test-c-ctype.c (ASSERT): Likewise.
6224         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6225         * tests/test-c-strcasestr.c (ASSERT): Likewise.
6226         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6227         * tests/test-c-strstr.c (ASSERT): Likewise.
6228         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6229         * tests/test-canonicalize.c (ASSERT): Likewise.
6230         * tests/test-carray_list.c (ASSERT): Likewise.
6231         * tests/test-ceilf1.c (ASSERT): Likewise.
6232         * tests/test-ceilf2.c (ASSERT): Likewise.
6233         * tests/test-ceill.c (ASSERT): Likewise.
6234         * tests/test-count-one-bits.c (ASSERT): Likewise.
6235         * tests/test-fbufmode.c (ASSERT): Likewise.
6236         * tests/test-fflush2.c (ASSERT): Likewise.
6237         * tests/test-floorf1.c (ASSERT): Likewise.
6238         * tests/test-floorf2.c (ASSERT): Likewise.
6239         * tests/test-floorl.c (ASSERT): Likewise.
6240         * tests/test-fopen.c (ASSERT): Likewise.
6241         * tests/test-fpending.c (ASSERT): Likewise.
6242         * tests/test-fprintf-posix.c (ASSERT): Likewise.
6243         * tests/test-fpurge.c (ASSERT): Likewise.
6244         * tests/test-freadable.c (ASSERT): Likewise.
6245         * tests/test-freadahead.c (ASSERT): Likewise.
6246         * tests/test-freading.c (ASSERT): Likewise.
6247         * tests/test-freadptr.c (ASSERT): Likewise.
6248         * tests/test-freadptr2.c (ASSERT): Likewise.
6249         * tests/test-freadseek.c (ASSERT): Likewise.
6250         * tests/test-freopen.c (ASSERT): Likewise.
6251         * tests/test-frexp.c (ASSERT): Likewise.
6252         * tests/test-frexpl.c (ASSERT): Likewise.
6253         * tests/test-fseek.c (ASSERT): Likewise.
6254         * tests/test-fseeko.c (ASSERT): Likewise.
6255         * tests/test-fstrcmp.c (ASSERT): Likewise.
6256         * tests/test-ftell.c (ASSERT): Likewise.
6257         * tests/test-ftello.c (ASSERT): Likewise.
6258         * tests/test-func.c (ASSERT): Likewise.
6259         * tests/test-fwritable.c (ASSERT): Likewise.
6260         * tests/test-fwriting.c (ASSERT): Likewise.
6261         * tests/test-getdelim.c (ASSERT): Likewise.
6262         * tests/test-getline.c (ASSERT): Likewise.
6263         * tests/test-i-ring.c (ASSERT): Likewise.
6264         * tests/test-iconv-utf.c (ASSERT): Likewise.
6265         * tests/test-iconv.c (ASSERT): Likewise.
6266         * tests/test-isfinite.c (ASSERT): Likewise.
6267         * tests/test-isnand.c (ASSERT): Likewise.
6268         * tests/test-isnanf.c (ASSERT): Likewise.
6269         * tests/test-isnanl.h (ASSERT): Likewise.
6270         * tests/test-ldexpl.c (ASSERT): Likewise.
6271         * tests/test-linked_list.c (ASSERT): Likewise.
6272         * tests/test-linkedhash_list.c (ASSERT): Likewise.
6273         * tests/test-localename.c (ASSERT): Likewise.
6274         * tests/test-lseek.c (ASSERT): Likewise.
6275         * tests/test-mbscasecmp.c (ASSERT): Likewise.
6276         * tests/test-mbscasestr1.c (ASSERT): Likewise.
6277         * tests/test-mbscasestr2.c (ASSERT): Likewise.
6278         * tests/test-mbscasestr3.c (ASSERT): Likewise.
6279         * tests/test-mbscasestr4.c (ASSERT): Likewise.
6280         * tests/test-mbschr.c (ASSERT): Likewise.
6281         * tests/test-mbscspn.c (ASSERT): Likewise.
6282         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6283         * tests/test-mbspbrk.c (ASSERT): Likewise.
6284         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6285         * tests/test-mbsrchr.c (ASSERT): Likewise.
6286         * tests/test-mbsspn.c (ASSERT): Likewise.
6287         * tests/test-mbsstr1.c (ASSERT): Likewise.
6288         * tests/test-mbsstr2.c (ASSERT): Likewise.
6289         * tests/test-mbsstr3.c (ASSERT): Likewise.
6290         * tests/test-memchr2.c (ASSERT): Likewise.
6291         * tests/test-memmem.c (ASSERT): Likewise.
6292         * tests/test-open.c (ASSERT): Likewise.
6293         * tests/test-printf-frexp.c (ASSERT): Likewise.
6294         * tests/test-printf-frexpl.c (ASSERT): Likewise.
6295         * tests/test-printf-posix.c (ASSERT): Likewise.
6296         * tests/test-quotearg.c (ASSERT): Likewise.
6297         * tests/test-rbtree_list.c (ASSERT): Likewise.
6298         * tests/test-rbtree_oset.c (ASSERT): Likewise.
6299         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6300         * tests/test-round1.c (ASSERT): Likewise.
6301         * tests/test-roundf1.c (ASSERT): Likewise.
6302         * tests/test-roundl.c (ASSERT): Likewise.
6303         * tests/test-signbit.c (ASSERT): Likewise.
6304         * tests/test-sleep.c (ASSERT): Likewise.
6305         * tests/test-snprintf-posix.c (ASSERT): Likewise.
6306         * tests/test-snprintf.c (ASSERT): Likewise.
6307         * tests/test-sprintf-posix.c (ASSERT): Likewise.
6308         * tests/test-stat-time.c (ASSERT): Likewise.
6309         * tests/test-strcasestr.c (ASSERT): Likewise.
6310         * tests/test-strerror.c (ASSERT): Likewise.
6311         * tests/test-striconv.c (ASSERT): Likewise.
6312         * tests/test-striconveh.c (ASSERT): Likewise.
6313         * tests/test-striconveha.c (ASSERT): Likewise.
6314         * tests/test-strsignal.c (ASSERT): Likewise.
6315         * tests/test-strstr.c (ASSERT): Likewise.
6316         * tests/test-strtod.c (ASSERT): Likewise.
6317         * tests/test-trunc1.c (ASSERT): Likewise.
6318         * tests/test-trunc2.c (ASSERT): Likewise.
6319         * tests/test-truncf1.c (ASSERT): Likewise.
6320         * tests/test-truncf2.c (ASSERT): Likewise.
6321         * tests/test-truncl.c (ASSERT): Likewise.
6322         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6323         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6324         * tests/test-vasnprintf.c (ASSERT): Likewise.
6325         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6326         * tests/test-vasprintf.c (ASSERT): Likewise.
6327         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6328         * tests/test-vprintf-posix.c (ASSERT): Likewise.
6329         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6330         * tests/test-vsnprintf.c (ASSERT): Likewise.
6331         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6332         * tests/test-wcwidth.c (ASSERT): Likewise.
6333         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6334         * tests/test-xprintf-posix.c (ASSERT): Likewise.
6335         * tests/test-xvasprintf.c (ASSERT): Likewise.
6336         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6337         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6338         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6339         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6340         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6341         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6342         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6343         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6344         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6345         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6346         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6347         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6348         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6349         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6350         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6351         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6352         * tests/unictype/test-block_list.c (ASSERT): Likewise.
6353         * tests/unictype/test-block_of.c (ASSERT): Likewise.
6354         * tests/unictype/test-block_test.c (ASSERT): Likewise.
6355         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6356         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6357         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6358         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6359         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6360         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6361         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6362         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6363         * tests/unictype/test-combining.c (ASSERT): Likewise.
6364         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6365         * tests/unictype/test-digit.c (ASSERT): Likewise.
6366         * tests/unictype/test-mirror.c (ASSERT): Likewise.
6367         * tests/unictype/test-numeric.c (ASSERT): Likewise.
6368         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6369         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6370         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6371         * tests/unictype/test-scripts.c (ASSERT): Likewise.
6372         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6373         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6374         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6375         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6376         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6377         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6378         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6379         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6380         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6381         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6382         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6383         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6384         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6385         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6386         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6387         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6388         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6389         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6390         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6391         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6392         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6393         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6394         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6395         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6396         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6397         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6398         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6399         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6400         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6401         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6402         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6403         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6404         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6405         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6406         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6407         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6408         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6409         Reported by Eric Blake.
6410
6411 2008-04-11  Bruno Haible  <bruno@clisp.org>
6412
6413         * lib/wchar.in.h: Tweak comment.
6414
6415 2008-04-11  Bruno Haible  <bruno@clisp.org>
6416
6417         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6418         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6419         gl_COMMON.
6420         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6421
6422 2008-04-11  Bruno Haible  <bruno@clisp.org>
6423
6424         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6425
6426 2008-04-11  Simon Josefsson  <simon@josefsson.org>
6427
6428         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6429         of attempting to use non-existing /dev/*random.  Based on patch
6430         from Adam Strzelecki <ono@java.pl> in
6431         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6432
6433 2008-04-08  Bruno Haible  <bruno@clisp.org>
6434
6435         Add tentative support for emx+gcc.
6436         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6437         * lib/fpurge.c (fpurge): Likewise.
6438         * lib/freadable.c (freadable): Likewise.
6439         * lib/freadahead.c (freadahead): Likewise.
6440         * lib/freading.c (freading): Likewise.
6441         * lib/freadptr.c (freadptr): Likewise.
6442         * lib/freadseek.c (freadptrinc): Likewise.
6443         * lib/fseeko.c (rpl_fseeko): Likewise.
6444         * lib/fseterr.c (fseterr): Likewise.
6445         * lib/fwritable.c (fwritable): Likewise.
6446         * lib/fwriting.c (fwriting): Likewise.
6447         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6448
6449 2008-04-09  Eric Blake  <ebb9@byu.net>
6450
6451         Avoid some autoconf warnings.
6452         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6453         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6454         * m4/afs.m4 (gl_AFS): Likewise.
6455         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6456         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6458         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6459         (gl_INTEGER_TYPE_SUFFIX): Likewise.
6460         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6461         (AC_CHECK_DECLS_ONCE): Likewise.
6462         Rename file...
6463         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6464         gnulib-tool requires autoconf 2.59 or better.
6465         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6466
6467 2008-04-08  Eric Blake  <ebb9@byu.net>
6468
6469         Use 'git describe --match' if present (added in git 1.5.5).
6470         * build-aux/git-version-gen: Limit result to tags that match 'v*'
6471         if possible.
6472
6473 2008-04-08  Bruno Haible  <bruno@clisp.org>
6474
6475         Add tentative support for OpenServer.
6476         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6477         _ptr, _cnt.
6478         * lib/fpurge.c (fpurge): Likewise.
6479         * lib/freadable.c (freadable): Likewise.
6480         * lib/freadahead.c (freadahead): Likewise.
6481         * lib/freading.c (freading): Likewise.
6482         * lib/freadptr.c (freadptr): Likewise.
6483         * lib/freadseek.c (freadptrinc): Likewise.
6484         * lib/fseeko.c (rpl_fseeko): Likewise.
6485         * lib/fseterr.c (fseterr): Likewise.
6486         * lib/fwritable.c (fwritable): Likewise.
6487         * lib/fwriting.c (fwriting): Likewise.
6488         Reported by Roger Cornelius <rac@tenzing.org> and
6489         Brian K. White <brian@aljex.com>.
6490
6491 2008-04-06  Jim Meyering  <meyering@redhat.com>
6492
6493         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6494
6495 2008-04-06  Bruno Haible  <bruno@clisp.org>
6496
6497         Avoid possible error with non-ASCII bytes in UTF-8 locales.
6498         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6499         * tests/test-printf-posix.sh: Likewise.
6500         * tests/test-vfprintf-posix.sh: Likewise.
6501         * tests/test-vprintf-posix.sh: Likewise.
6502         * tests/test-xprintf-posix.sh: Likewise.
6503
6504 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6505
6506         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6507         hide error from 'ls', needed on OS/2.
6508         Report by Elbert Pol <elbert.pol@gmail.com>.
6509
6510 2008-04-04  Eric Blake  <ebb9@byu.net>
6511
6512         Make test-fseeko.c failures meaningful.
6513         * tests/test-fseeko.c: Print line number on failure.
6514         * tests/test-fseek.c: Likewise.
6515         Reported by Nelson H. F. Beebe.
6516
6517         Improve strtod bug detection check.
6518         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6519         required for Solaris 10.
6520         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6521
6522 2008-04-04  Bruno Haible  <bruno@clisp.org>
6523
6524         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6525         by m4/setenv.m4.
6526
6527 2008-04-03  Eric Blake  <ebb9@byu.net>
6528
6529         Ensure sane .version contents.
6530         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6531         version string.
6532         * build-aux/git-version-gen: Improve documentation.
6533
6534         Make GNU make output nicer.
6535         * top/GNUmakefile [!_have-Makefile]: Add dependency on
6536         MAKECMDGOALS to enforce message for all command line targets.  Set
6537         srcdir for use in maint.mk.
6538
6539         Another maintainer tweak.
6540         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6541         a target that regenerates version.
6542
6543 2008-04-03  Jim Meyering  <meyering@redhat.com>
6544
6545         vc-list-files: don't cause coreutils "make po-check" failure
6546         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6547
6548 2008-04-03  Eric Blake  <ebb9@byu.net>
6549
6550         Allow VPATH usage of vc-list-files.
6551         * build-aux/vc-list-files (scriptversion): Add timestamp.
6552         (options): Add --help, --version, -C.
6553         (CVS): Support installed cvsu.
6554
6555 2008-04-02  Bruno Haible  <bruno@clisp.org>
6556
6557         Avoid some "statement with no effect" warnings from gcc.
6558         * tests/test-wctype.c (main): Explicitly ignore unused values.
6559         Reported by Jim Meyering.
6560
6561 2008-04-02  Jim Meyering  <meyering@redhat.com>
6562
6563         Avoid some warnings from "gcc -Wshadow".
6564         * tests/test-frexp.c (exp): Define to a different identifier.
6565         * tests/test-frexpl.c (exp): Likewise.
6566
6567 2008-04-03  Jim Meyering  <meyering@redhat.com>
6568
6569         bootstrap: remove dangling *.[ch] symlinks from lib
6570         * build-aux/bootstrap [dangling symlink removal]: Move find's
6571         -depth option to precede all others, to avoid a warning.
6572         Remove *.[ch] files too, and from "$source_base" (usually lib/).
6573
6574 2008-04-02  Bruno Haible  <bruno@clisp.org>
6575
6576         Avoid some warnings from "gcc -Wshadow".
6577         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6578         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6579         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6580         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6581         Reported by Jim Meyering.
6582
6583 2008-04-01  Bruno Haible  <bruno@clisp.org>
6584
6585         Fix test to work on IRIX 6.5 with cc.
6586         * tests/test-math.c (numeric_equal): New function.
6587         (main): Use it.
6588
6589 2008-04-01  Bruno Haible  <bruno@clisp.org>
6590
6591         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6592
6593 2008-04-01  Bruno Haible  <bruno@clisp.org>
6594
6595         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6596         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6597         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6598         (Depends-on): Remove math.
6599
6600         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6601         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6602         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6603         (Depends-on): Remove math.
6604
6605         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6606         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6607         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6608         (Depends-on): Remove math.
6609         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6610         (Depends-on): Remove math.
6611
6612         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6613         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6614         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6615         (Depends-on): Remove math.
6616         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6617         (Depends-on): Remove math.
6618
6619         * tests/test-round1.c: Include nan.h.
6620         (main): Use NaNd instead of NAN.
6621         * modules/round-tests (Files): Add tests/nan.h.
6622
6623         * tests/test-trunc1.c: Include nan.h.
6624         (main): Use NaNd instead of NAN.
6625         * modules/trunc-tests (Files): Add tests/nan.h.
6626
6627         * tests/test-roundf1.c: Include nan.h.
6628         (main): Use NaNf instead of NAN.
6629         * modules/roundf-tests (Files): Add tests/nan.h.
6630
6631         * tests/test-truncf1.c: Include nan.h.
6632         (main): Use NaNf instead of NAN.
6633         * modules/truncf-tests (Files): Add tests/nan.h.
6634
6635         * tests/test-ceilf1.c: Include nan.h.
6636         (main): Use NaNf instead of NAN.
6637         * modules/ceilf-tests (Files): Add tests/nan.h.
6638
6639         * tests/test-floorf1.c: Include nan.h.
6640         (main): Use NaNf instead of NAN.
6641         * modules/floorf-tests (Files): Add tests/nan.h.
6642
6643         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6644         (main): Use NaNf instead of NAN.
6645         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6646
6647         * tests/test-isnand.c: Include nan.h instead of <math.h>.
6648         (main): Use NaNd instead of NAN.
6649         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6650
6651         * tests/test-frexp.c: Include nan.h.
6652         (main): Use NaNd instead of NAN.
6653         * modules/frexp-tests (Files): Add tests/nan.h.
6654
6655         * lib/isnan.c: Don't include <math.h>.
6656         (FUNC): Don't use NAN macro.
6657         * modules/isnand-nolibm (Depends-on): Remove math.
6658         * modules/isnanf-nolibm (Depends-on): Remove math.
6659         * modules/isnanl (Depends-on): Remove math.
6660         * modules/isnanl-nolibm (Depends-on): Remove math.
6661
6662         * tests/nan.h: New file.
6663
6664 2008-04-01  Eric Blake  <ebb9@byu.net>
6665
6666         Fix typos.
6667         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6668         values to be the right type.
6669
6670         For now, cater to gnulib strtod inaccuracies.
6671         * tests/test-strtod.c (main): Allow 1-ulp error on expected
6672         fractional results.  While not as nice from a QoI perspective, it
6673         is a quicker patch than correctly implementing decimal to binary
6674         rounding.
6675
6676 2008-03-31  Eric Blake  <ebb9@byu.net>
6677
6678         Guarantee a definition of NAN.
6679         * lib/math.in.h (NAN): Define if missing.
6680         * tests/test-math.c (main): Test it.
6681         * doc/posix-headers/math.texi (math.h): Document this.
6682         * lib/isnan.c (rpl_isnand): Use it.
6683         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6684         * tests/test-floorf1.c (NaN): Likewise.
6685         * tests/test-frexp.c (NaN): Likewise.
6686         * tests/test-isnand.c (NaN): Likewise.
6687         * tests/test-isnanf.c (NaN): Likewise.
6688         * tests/test-round1.c (NaN): Likewise.
6689         * tests/test-roundf1.c (NaN): Likewise.
6690         * tests/test-snprintf-posix.h (NaN): Likewise.
6691         * tests/test-sprintf-posix.h (NaN): Likewise.
6692         * tests/test-trunc1.c (NaN): Likewise.
6693         * tests/test-truncf1.c (NaN): Likewise.
6694         * tests/test-vasnprintf-posix.c (NaN): Likewise.
6695         * tests/test-vasprintf-posix.c (NaN): Likewise.
6696         * modules/isnand-nolibm (Depends-on): Add math.
6697         * modules/isnanf-nolibm (Depends-on): Likewise.
6698         * modules/isnanl (Depends-on): Likewise.
6699         * modules/isnanl-nolibm (Depends-on): Likewise.
6700         * modules/snprintf-posix-tests (Depends-on): Likewise.
6701         * modules/sprintf-posix-tests (Depends-on): Likewise.
6702         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6703         * modules/vsprintf-posix-tests (Depends-on): Likewise.
6704         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6705         * modules/vasprintf-posix-tests (Depends-on): Likewise.
6706
6707 2008-03-31  Bruno Haible  <bruno@clisp.org>
6708
6709         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6710         * doc/posix-functions/strtod.texi: Likewise.
6711
6712 2008-03-31  Bruno Haible  <bruno@clisp.org>
6713
6714         * tests/test-strtod.c (main): Don't use C99 syntax.
6715
6716 2008-03-31  Bruno Haible  <bruno@clisp.org>
6717
6718         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6719         Reported by Eric Blake.
6720
6721 2008-03-31  Jim Meyering  <meyering@redhat.com>
6722
6723         Don't compare actual signbit return values.
6724         * tests/test-strtod.c (main): Rather, compare only their
6725         zero/non-zero nature.
6726
6727 2008-03-31  Eric Blake  <ebb9@byu.net>
6728
6729         More strtod documentation.
6730         * doc/posix-functions/strtod.texi (strtod): Interpret more test
6731         failures as distinct bugs.
6732
6733 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6734
6735         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6736         Problem reported by Erik Benada in
6737         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6738
6739 2008-03-30  Bruno Haible  <bruno@clisp.org>
6740
6741         * tests/test-strtod.c: Add comments about which assertion fails on which
6742         platform.
6743         * doc/posix-functions/strtod.texi: Add info about many more platforms.
6744
6745 2008-03-30  Eric Blake  <ebb9@byu.net>
6746
6747         Test signbit behavior on zeros.
6748         * tests/test-signbit.c (test_signbitf): Add tests for zero.
6749         (test_signbitd, test_signbitl): Likewise.
6750
6751         More strtod touchups.
6752         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6753         sign of negative underflow, for now.  Use .5, not .1.
6754         * doc/posix-functions/strtod.texi (strtod): Mention these
6755         limitations.
6756         Reported by Jim Meyering.
6757
6758 2008-03-30  Bruno Haible  <bruno@clisp.org>
6759
6760         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6761         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6762
6763 2008-03-30  Bruno Haible  <bruno@clisp.org>
6764
6765         Avoid failure when attempting to return empty iconv results on some
6766         platforms.
6767         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6768         allocation, don't report ENOMEM when the resulting string is empty.
6769
6770 2008-03-30  Bruno Haible  <bruno@clisp.org>
6771
6772         Fix buffer overrun.
6773         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6774         Don't consider the width for tmp_length. Check count against tmp_length
6775         before doing the padding. Ensure enough allocation during padding.
6776
6777 2008-03-30  Eric Blake  <ebb9@byu.net>
6778
6779         strtod touchups.
6780         * lib/strtod.c (strtod): Avoid compiler warnings.
6781         Reported by Jim Meyering.
6782
6783 2008-03-30  Bruno Haible  <bruno@clisp.org>
6784
6785         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6786         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6787         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6788         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6789         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6790         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6791         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6792         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6793
6794         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6795         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6796         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6797         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6798         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6799         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6800         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6801         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6802
6803         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6804         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6805         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6806         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6807         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6808         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6809         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6810         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6811
6812         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6813         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6814
6815         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6816         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6817
6818         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6819         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6820
6821         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6823         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6824
6825         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6827         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6828
6829         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6831         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6832
6833         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6835         * modules/vasprintf (Depends-on): Add EOVERFLOW.
6836
6837         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6838         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6840         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6841         (Depends-on): Add EOVERFLOW.
6842         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6843         (Depends-on): Add EOVERFLOW.
6844         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6845         (Depends-on): Add EOVERFLOW.
6846         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6847         (Depends-on): Add EOVERFLOW.
6848         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6849         (Depends-on): Add EOVERFLOW.
6850         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6851         (Depends-on): Add EOVERFLOW.
6852         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6853         (Depends-on): Add EOVERFLOW.
6854         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6855         (Depends-on): Add EOVERFLOW.
6856
6857         * lib/sprintf.c (EOVERFLOW): Remove fallback.
6858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6859         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6860
6861         * lib/snprintf.c (EOVERFLOW): Remove fallback.
6862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
6863         * modules/snprintf (Depends-on): Add EOVERFLOW.
6864
6865         * lib/poll.c (EOVERFLOW): Remove fallback.
6866         * modules/poll (Depends-on): Add EOVERFLOW.
6867
6868         * lib/getugroups.c (EOVERFLOW): Remove fallback.
6869         * modules/getugroups (Depends-on): Add EOVERFLOW.
6870
6871         * lib/getdelim.c (EOVERFLOW): Remove fallback.
6872         * modules/getdelim (Depends-on): Add EOVERFLOW.
6873
6874         * lib/ftell.c (EOVERFLOW): Remove fallback.
6875         * modules/ftell (Depends-on): Add EOVERFLOW.
6876
6877         * lib/fprintf.c (EOVERFLOW): Remove fallback.
6878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
6879         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
6880
6881         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
6882
6883         * modules/EOVERFLOW-tests: New file.
6884         * tests/test-EOVERFLOW.c: New file.
6885
6886         * modules/EOVERFLOW: New file.
6887         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
6888
6889 2008-03-30  Bruno Haible  <bruno@clisp.org>
6890
6891         Fix bug introduced on 2007-06-10.
6892         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
6893         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
6894
6895 2008-03-30  Bruno Haible  <bruno@clisp.org>
6896
6897         Improve freadseek's efficiency after ungetc.
6898         * lib/freadseek.c: Include freadahead.h.
6899         (freadptrinc): New function, extracted from freadseek.
6900         (freadseek): Use it in a loop. Use freadahead to determine the number
6901         of loop iterations.
6902         * modules/freadseek (Depends-on): Add freadahead.
6903         (configure.ac): Require AC_C_INLINE.
6904
6905 2008-03-30  Bruno Haible  <bruno@clisp.org>
6906
6907         * lib/freadseek.c (freadseek): Don't ignore the return value of
6908         freadptr.
6909
6910 2008-03-29  Eric Blake  <ebb9@byu.net>
6911
6912         Add hex float support.
6913         * modules/strtod (Depends-on): Add c-ctype.
6914         (Link): Mention POW_LIB.
6915         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
6916         whitespace between 'e' and exponent.
6917         * tests/test-strtod.c (main): Enable hex float tests.
6918         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
6919         now provides.
6920
6921         Document various strtod bugs, with some fixes.
6922         * doc/posix-functions/strtod.texi (strtod): Document bugs with
6923         "-0x", "inf", "nan", and hex constants.
6924         * doc/posix-functions/atof.texi (atof): Likewise.
6925         * modules/stdlib (Makefile.am): Support strtod.
6926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6927         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
6928         detect additional strtod bugs.
6929         * lib/stdlib.in.h (rpl_strtod): Add declarations.
6930         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
6931         bool where appropriate.  Parse 'inf' and 'nan'.
6932         * tests/test-strtod.c: New file.
6933         * modules/strtod (Depends-on): Add stdbool, stdlib.
6934         (configure.ac): Turn on module indicator.
6935         * modules/strtod-tests: New module.
6936
6937 2008-03-29  Eric Blake  <ebb9@byu.net>
6938
6939         Fix ftell on mingw.
6940         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
6941         * modules/ftell-tests (Depends-on): Add binary-io.
6942         * modules/ftello-tests (Depends-on): Likewise.
6943         * tests/test-ftell.c (main): Enhance test to cover behavior after
6944         ungetc.  Enforce binary mode.
6945         * tests/test-ftello.c (main): Likewise.
6946
6947         Pass test-freadseek on cygwin.
6948         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
6949         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
6950         ungetc buffer.
6951
6952         * tests/test-fflush2.c (main): Fix typo.
6953
6954 2008-03-29  Bruno Haible  <bruno@clisp.org>
6955
6956         * tests/test-fflush2.c (main): Temporarily disable the contents of
6957         this test.
6958         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
6959         Reported by Eric Blake.
6960
6961 2008-03-28  Simon Josefsson  <simon@josefsson.org>
6962
6963         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
6964         (GC_SHA224_DIGEST_SIZE): Add.
6965
6966         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
6967         (gc_hash_digest_length): Likewise.
6968         (gc_hash_buffer): Likewise.
6969
6970 2008-03-25  Bruno Haible  <bruno@clisp.org>
6971
6972         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
6973         detail which gettext release to use.
6974         Reported by Simon Josefsson.
6975
6976 2008-03-26  Jim Meyering  <meyering@redhat.com>
6977
6978         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
6979         * modules/gnumakefile (clean-GNUmakefile): Also, use
6980         test ... && ... || : syntax rather than if-then ... fi.
6981
6982         gnumakefile: Don't double-quote-expand $(VPATH) value.
6983         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
6984
6985 2008-03-24  Eric Blake  <ebb9@byu.net>
6986
6987         Alter GNUmakefile to install into top directory.
6988         * modules/maintainer-makefile: Split, and add dependency...
6989         * modules/gnumakefile: to this new module.
6990         * build-aux/GNUmakefile: Move...
6991         * top/GNUmakefile: ...here.
6992         * build-aux/maint.mk: Move...
6993         * top/maint.mk: ...here.
6994         * MODULES.html.sh (Support for maintaining...): Document new
6995         module.
6996
6997 2008-03-23  Bruno Haible  <bruno@clisp.org>
6998
6999         * gnulib-tool: New options --vc-files, --no-vc-files.
7000         (func_usage): Document them.
7001         (vc_files): New variable.
7002         (func_import): Consider vc_files.
7003         (func_create_testdir): Set vc_files to empty.
7004         Suggested by Jim Meyering and Karl Berry.
7005
7006 2008-03-23  Bruno Haible  <bruno@clisp.org>
7007
7008         Fix regex compilation error on HP-UX 11.
7009         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7010         * modules/regex (Files): Add m4/mbstate_t.m4.
7011         Reported by Ton Voon <ton.voon@altinity.com>.
7012
7013 2008-03-23  Bruno Haible  <bruno@clisp.org>
7014
7015         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7016
7017 2008-03-23  Eric Blake  <ebb9@byu.net>
7018             Bruno Haible  <bruno@clisp.org>
7019
7020         Install files from top/ in the destination directory.
7021         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7022         augmentation also for the files from top/.
7023         (func_import, func_create_testdir): Rewrite file names:
7024         top/filename -> filename.
7025
7026 2008-03-23  Bruno Haible  <bruno@clisp.org>
7027
7028         Tweak "gnulib --version" output.
7029         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7030
7031 2008-03-23  Bruno Haible  <bruno@clisp.org>
7032
7033         Tweak "gnulib --version" output.
7034         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7035         rather than contents of ChangeLog, when possible.
7036
7037 2008-03-21  Eric Blake  <ebb9@byu.net>
7038
7039         More --version tweaks.
7040         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
7041         date of last ChangeLog entry.
7042
7043 2008-03-21  Jim Meyering  <meyering@redhat.com>
7044
7045         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7046
7047 2008-03-20  Eric Blake  <ebb9@byu.net>
7048
7049         VPATH fix.
7050         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7051
7052 2008-03-20  Simon Josefsson  <simon@josefsson.org>
7053
7054         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
7055         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
7056
7057 2008-03-20  Eric Blake  <ebb9@byu.net>
7058
7059         Sync GNUmakefile with coreutils.
7060         * build-aux/GNUmakefile (have-Makefile): Rename...
7061         (_have-Makefile): ...to this, for namespace consideration.
7062         (GNUmakefile.cfg): Include, if present.
7063         (_autoreconf): Define a default.
7064         (_is-dist-target): New rule for rebuilds to pick up intra-release
7065         version.
7066         (maint-cfg.mk): Rename...
7067         (cfg.mk): ...to this.
7068
7069 2008-03-18  Jim Meyering  <meyering@redhat.com>
7070
7071         New script and module: mktempd
7072         * MODULES.html.sh (maint+release support): Add mktempd.
7073         * build-aux/mktempd: New file.
7074         * modules/mktempd: New file.
7075
7076 2008-03-15  Jim Meyering  <meyering@redhat.com>
7077
7078         Undo last change.
7079         * lib/sha1.c, lib/md5.c: 63 != ~63.
7080         Reported by Andreas Schwab.
7081
7082         sha1.c, md5.c: Hoist a redundant expression.
7083         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
7084         "ctx->buflen" only once, before calling *_process_block.
7085         * lib/md5.c (md5_process_bytes): Likewise.
7086
7087 2008-03-14  Eric Blake  <ebb9@byu.net>
7088
7089         Bump copyright year in files generated by gnulib-tool.
7090         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
7091         gnulib-tool, rather than hard-coding it.
7092
7093         Fix 'gnulib-tool --version' output to work with git.
7094         * gnulib-tool (func_gnulib_dir): New function, extracted from...
7095         (startup): ...here.
7096         (func_version): Use it to invoke git-version-gen, rather than
7097         relying on CVS keyword expansion.  Modernize wording.
7098         (cvsdatestamp, last_checkin_date, version): Kill unused
7099         variables.
7100
7101 2008-03-12  Jim Meyering  <meyering@redhat.com>
7102
7103         Recognize optional cast of the argument to free.
7104         * build-aux/useless-if-before-free: Update regexps.
7105
7106         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
7107
7108 2008-03-11  Bruno Haible  <bruno@clisp.org>
7109
7110         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
7111         by a single package.
7112         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
7113         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
7114         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
7115         Reported by Sam Steingold <sds@gnu.org>.
7116
7117 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7118
7119         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
7120         repositories.
7121
7122 2008-03-11  Bruno Haible  <bruno@clisp.org>
7123
7124         Avoid conflicts between local macro definitions.
7125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7126         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
7127
7128 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
7129             Bruno Haible  <bruno@clisp.org>
7130
7131         Make va_copy work with some version of xlc on AIX 5.1.
7132         * lib/stdarg.in.h: New file.
7133         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
7134         On AIX, use a <stdarg.h> file substitute.
7135         * modules/stdarg (Files): Add lib/stdarg.in.h.
7136         (Depends-on): Add include_next.
7137         (Makefile.am): Build a stdarg.h substitute if requested.
7138         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7139
7140 2008-03-10  Bruno Haible  <bruno@clisp.org>
7141
7142         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7144         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7145
7146 2008-03-10  Bruno Haible  <bruno@clisp.org>
7147
7148         * modules/stdlib (Depends-on): Add include_next, remove
7149         absolute-header.
7150
7151 2008-03-09  Bruno Haible  <bruno@clisp.org>
7152
7153         * lib/freadahead.h (freadahead): Document more precisely.
7154         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7155         the sum of both buffer sizes.
7156         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7157         * NEWS: Document the change.
7158
7159 2008-03-09  Bruno Haible  <bruno@clisp.org>
7160
7161         Extend freadptr to return also the buffer size.
7162         * lib/freadptr.h (freadptr): Add sizep argument.
7163         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7164         (freadptr): Add sizep argument. Determine buffer size like freadahead
7165         does.
7166         * tests/test-freadptr.c: Don't include freadahead.h.
7167         (main): Adapt for new calling convention of freadptr.
7168         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7169         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7170         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7171         tests/test-freadptr2.sh.
7172         (Depends): Remove freadahead.
7173         (TESTS): Add test-freadptr2.sh.
7174         (check_PROGRAMS): Add test-freadptr2.
7175
7176 2008-03-09  Bruno Haible  <bruno@clisp.org>
7177
7178         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7179         Report and solution by Simon Josefsson.
7180
7181 2008-03-06  Bruno Haible  <bruno@clisp.org>
7182
7183         Make fflush after ungetc work on BSD platforms.
7184         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7185         * tests/test-fflush2.c: New file.
7186         * tests/test-fflush2.sh: New file.
7187         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7188         tests/test-fflush2.c.
7189         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7190         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7191
7192 2008-03-06  Eric Blake  <ebb9@byu.net>
7193
7194         Likewise for ftello.
7195         * modules/ftello (Dependencies): Add extensions.
7196         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7197
7198 2008-03-06  Bruno Haible  <bruno@clisp.org>
7199
7200         * modules/fseeko (Dependencies): Add extensions.
7201         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7202         Needed on glibc systems.
7203
7204 2008-03-06  Bruno Haible  <bruno@clisp.org>
7205
7206         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7207         email address.
7208         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7209
7210 2008-03-06  Bruno Haible  <bruno@clisp.org>
7211
7212         * users.txt: Add libgnupdf.
7213
7214 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7215
7216         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7217         (Header File Substitutes, Function Substitutes,
7218         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7219         (Build robot for gnulib): Fix typo.
7220
7221 2008-03-06  Bruno Haible  <bruno@clisp.org>
7222
7223         * doc/gnulib-tool.texi (VCS Issues): Small updates.
7224         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7225
7226 2008-03-06  Bruno Haible  <bruno@clisp.org>
7227
7228         * doc/func.texi: New file, extracted from doc/gnulib.texi.
7229         * doc/gnulib.texi: Include it.
7230
7231 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7232
7233         * modules/func (License): Change license to unlimited; there was
7234         no LGPL parts in the module anyway.
7235
7236 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7237
7238         * modules/__func__: Renamed to modules/func.
7239         * modules/__func__-tests: Renamed to modules/func-tests.
7240         * tests/test-__func__.c: Renamed to tests/test-func.c.
7241         * m4/__func__.m4: Renamed to m4/func.m4.
7242         * doc/gnulib.texi (__func__): Section renamed to func.
7243         Suggested by Eric Blake <ebb9@byu.net>.
7244
7245 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7246
7247         * doc/gnulib.texi (__func__): Use C99 terminology when talking
7248         about __func__.  Make example self-contained.  Suggested by Eric
7249         Blake <ebb9@byu.net>.
7250
7251         * tests/test-__func__.c (main): Avoid extraneous () around __func.
7252         Suggested by Eric Blake <ebb9@byu.net>.
7253
7254 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7255
7256         * modules/__func__: New file.
7257         * modules/__func__-tests: New file.
7258         * tests/test-__func__.c: New file.
7259         * m4/__func__.m4: New file.
7260         * doc/gnulib.texi (__func__): Document __func__ module.
7261
7262 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7263
7264         * modules/byteswap (License): Re-license as LGPLv2+.
7265
7266 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7267
7268         * doc/Makefile: Add pdf target.
7269
7270 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7271
7272         * modules/inline (License): Use 'unlimited', since there are only
7273         *.m4 files in this module.
7274
7275 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7276             Bruno Haible  <bruno@clisp.org>
7277
7278         Add support for HP C 7.1 on OpenVMS 8.3.
7279         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7280
7281 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7282
7283         Update VMS specifics.
7284         * lib/getopt.c [VMS]: Remove include of unixlib.h.
7285
7286 2008-03-02  Jim Meyering  <meyering@redhat.com>
7287
7288         Remove the last dependency on the "free" module.
7289         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7290         Reported by Bob Proulx.
7291
7292         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7293
7294         Remove useless "if" tests before free.  Deprecate "free" module.
7295         * doc/posix-functions/free.texi: Mention that this
7296         module is no longer useful.
7297         * modules/free (Notice): Say this module is obsolete.
7298         * modules/readutmp (Depends-on): Remove free.
7299         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7300         * lib/putenv.c (putenv): Likewise.
7301         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7302         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7303         * tests/test-c-strcasestr.c (main): Likewise.
7304         * tests/test-c-strstr.c (main): Likewise.
7305         * tests/test-mbscasestr1.c (main): Likewise.
7306         * tests/test-mbscasestr2.c (main): Likewise.
7307         * tests/test-mbsstr1.c (main): Likewise.
7308         * tests/test-mbsstr2.c (main): Likewise.
7309         * tests/test-memmem.c (main): Likewise.
7310         * tests/test-strcasestr.c (main): Likewise.
7311         * tests/test-striconv.c (main): Likewise.
7312         * tests/test-striconveh.c (main): Likewise.
7313         * tests/test-striconveha.c (main): Likewise.
7314         * tests/test-strstr.c (main): Likewise.
7315
7316         * build-aux/git-version-gen: Adjust a comment and the Usage string.
7317
7318         bootstrap: sync from coreutils again
7319         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7320
7321 2008-03-01  Jim Meyering  <meyering@redhat.com>
7322
7323         bootstrap: sync from coreutils
7324         * build-aux/bootstrap (update_po_files): Copy a .po file into place
7325         also when the target doesn't exist.
7326
7327 2008-03-01  Eric Blake  <ebb9@byu.net>
7328
7329         Fix bugs in last patch.
7330         * lib/memchr2.c (memchr2): Fix typo.
7331         * tests/test-memchr2.c: Test previous bug, and don't use GNU
7332         extension.
7333         Reported by Bruce Korb.
7334
7335         New module 'memchr2'.
7336         * modules/memchr2: New file.
7337         * modules/memchr2-tests: Likewise.
7338         * lib/memchr2.h: Likewise.
7339         * lib/memchr2.c: Likewise, based on memchr.c.
7340         * tests/test-memchr2.c: New test.
7341         * MODULES.html.sh (String handling): Add memchr2.
7342
7343 2008-02-29  Bruno Haible  <bruno@clisp.org>
7344
7345         * modules/freadseek-tests: New file.
7346         * tests/test-freadseek.sh: New file.
7347         * tests/test-freadseek.c: New file.
7348
7349         New module 'freadseek'.
7350         * modules/freadseek: New file.
7351         * lib/freadseek.h: New file.
7352         * lib/freadseek.c: New file.
7353         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7354
7355 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7356
7357         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7358         wydawca.
7359
7360         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7361         program_invocation_name and program_invocation_short_name are
7362         present.
7363
7364 2008-02-28  Bruno Haible  <bruno@clisp.org>
7365
7366         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7367         * tests/test-freadptr.sh: Also test non-seekable stdin.
7368
7369 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
7370
7371         * build-aux/bootstrap (source_base, m4_base)
7372         (doc_base, tests_base): New variables.
7373         (gnulib_tool_options): Do not hardcode base directories, use
7374         the above variables instead.
7375
7376 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
7377
7378         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7379
7380 2008-02-28  Bruno Haible  <bruno@clisp.org>
7381
7382         * modules/freadptr-tests: New file.
7383         * tests/test-freadptr.sh: New file.
7384         * tests/test-freadptr.c: New file.
7385
7386         New module 'freadptr'.
7387         * modules/freadptr: New file.
7388         * lib/freadptr.h: New file.
7389         * lib/freadptr.c: New file.
7390         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7391
7392 2008-02-26  Karl Berry  <karl@freefriends.org>
7393
7394         Sync from Libtool:
7395         * libltdl/argz.c (argz_add, argz_count): New functions.
7396         * libltdl/argz.in.h: Declare them.
7397         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7398
7399 2008-02-22  Bruno Haible  <bruno@clisp.org>
7400
7401         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7402         is a pointer type.  Needed for HP-UX 10.
7403         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7404         * doc/posix-functions/gmtime_r.texi: Likewise.
7405         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7406
7407 2008-02-24  Bruno Haible  <bruno@clisp.org>
7408
7409         * modules/environ-tests: New file.
7410         * tests/test-environ.c: New file.
7411
7412         New module 'environ'.
7413         * modules/environ: New file.
7414         * lib/unistd.in.h (environ): New declaration.
7415         * m4/environ.m4: New file.
7416         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7417         after use.
7418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7419         HAVE_DECL_ENVIRON.
7420         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7421         HAVE_DECL_ENVIRON.
7422         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7423         wrong claim that 'environ' is missing on some systems.
7424         * modules/execute (Depends-on): Add environ.
7425         * lib/execute.c (environ): Remove fallback declaration.
7426         * modules/pipe (Depends-on): Add environ.
7427         * lib/pipe.c (environ): Remove fallback declaration.
7428         * modules/setenv (Depends-on): Add environ.
7429         * lib/setenv.c (environ): Remove fallback declaration.
7430         * modules/unsetenv (Depends-on): Add environ.
7431         * lib/unsetenv.c (environ): Remove fallback declaration.
7432         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7433         m4/environ.m4.
7434         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7435         (gl_PREREQ_UNSETENV): Likewise.
7436
7437 2008-02-24  Bruno Haible  <bruno@clisp.org>
7438
7439         * doc/posix-functions/environ.texi: Document the MacOS X problem.
7440
7441 2008-02-20  Bob Proulx  <bob@proulx.com>
7442
7443         Enable use of older two part flavor 'git describe'.
7444         * build-aux/git-version-gen: If using the older two part flavor of
7445         git version then recreate the third part now present in the
7446         newer three part flavor of git describe.
7447
7448 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
7449
7450         * lib/fts.c (fts_build): Typo correction to comment.
7451
7452 2008-02-17  Bruno Haible  <bruno@clisp.org>
7453
7454         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7455         generating no-op conflicts.
7456
7457 2008-02-17  Bruno Haible  <bruno@clisp.org>
7458
7459         Speed up by 10%.
7460         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7461         result_entries, rather than an index-based loop.
7462
7463 2008-02-17  Bruno Haible  <bruno@clisp.org>
7464
7465         Speed up by 25%.
7466         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7467         'hashcode_cached'.
7468         (entry_create): New function.
7469         (entry_hashcode): Use the cached hashcode if possible.
7470         (read_changelog_file, try_split_merged_entry): Use entry_create.
7471
7472 2008-02-17  Bruno Haible  <bruno@clisp.org>
7473
7474         Speed up from O(n^2) to O(n) for long ChangeLog files.
7475         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7476         (read_changelog_file): Change implementation of entries_reversed list
7477         to rbtreehash.
7478         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7479
7480 2008-02-17  Bruno Haible  <bruno@clisp.org>
7481
7482         New option --split-merged-entry.
7483         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7484         (find_paragraph_end, try_split_merged_entry): New functions.
7485         (long_options): Add option --split-merged-entry.
7486         (usage): Document option --split-merged-entry.
7487         (main): Implement option --split-merged-entry.
7488         Reported by Eric Blake.
7489
7490 2008-02-17  Bruno Haible  <bruno@clisp.org>
7491
7492         * lib/git-merge-changelog.c: Include c-strstr.h.
7493         (main): Support the "git pull --rebase" situation.
7494         * modules/git-merge-changelog (Depends-on): Add c-strstr.
7495         Reported by Eric Blake.
7496
7497 2008-02-16  Eric Blake  <ebb9@byu.net>
7498
7499         Avoid doubling \ in common case of "c-maybe" quoting style.
7500         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7501         eliding outer quotes.
7502         * lib/quotearg.h: Document this.
7503         * tests/test-quotearg.c (result_strings, inputs, results_g)
7504         (flag_results, locale_results): Test it by adding a new string to
7505         each test group.
7506         (compare_strings): Test new string.
7507
7508 2008-02-13  Eric Blake  <ebb9@byu.net>
7509
7510         Avoid trigraph quoting in default output.
7511         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7512         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7513         unless explicitly requested.
7514         * tests/test-quotearg.c (flag_results, main): Add additional tests.
7515
7516 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
7517
7518         Don't rely on signed integer overflowing to negative value.
7519         * lib/getugroups.c (getugroups): Include <limits.h>.
7520         Instead, compare against INT_MAX, and increment only if the test passes.
7521
7522 2008-02-13  Jim Meyering  <meyering@redhat.com>
7523         and Eric Blake  <ebb9@byu.net>
7524
7525         Avoid shadowing warning and compile errors on Linux.
7526         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7527         forwarding macros on Linux.
7528         (dcgettext): Define a stub, for Linux.
7529         (results_g, main): Avoid warnings.
7530
7531 2008-02-12  Eric Blake  <ebb9@byu.net>
7532
7533         Silence warning in last patch.
7534         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7535
7536         Quotearg part 4: add tests, fix c-maybe colon quoting.
7537         * lib/quotearg.h: Improve documentation.
7538         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7539         escapes when adding outer quotes.  When quoting trigraphs, use
7540         valid C notation.  When quoting NUL, omit extra characters if next
7541         character is not digit.  Alter prototype.
7542         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7543         callers.
7544         * modules/quotearg-tests: New module.
7545         * tests/test-quotearg.c: New test.
7546
7547 2008-02-07  Eric Blake  <ebb9@byu.net>
7548
7549         Quotearg part 3: add flag to control outer quote elision.
7550         * lib/quotearg.h (c_maybe_quoting_style): New style.
7551         (enum quoting_flags): Better documentation of flags.
7552         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7553         c-maybe style.
7554         (quotearg_buffer_restyled): Handle new flag to elide outer
7555         quotes.
7556
7557         Quotearg part 2: add flag that can control NUL elision.
7558         * lib/quotearg.h (set_quoting_flags): New prototype.
7559         * lib/quotearg.c (struct quoting_options): Add flag field.
7560         (set_quoting_flags): New function.
7561         (quotearg_buffer_restyled): Add flags parameter.
7562         (quotearg_alloc_mem): Set the flag if length cannot be returned.
7563         (quotearg_n_options): Set the flag, since length cannot be
7564         returned.
7565         (quoting_options_from_style): Default flags correctly.
7566
7567         Quotearg part 1: more wrappers, restore quotearg_char state.
7568         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7569         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7570         (quotearg_colon_mem): New wrappers.
7571         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7572         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7573         functions.
7574         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7575         (quotearg_colon_mem): New functions.
7576
7577 2008-02-11  Bruno Haible  <bruno@clisp.org>
7578
7579         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7580         library in the current directory: it does not work with parallel make.
7581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7582
7583 2008-02-11  Bruno Haible  <bruno@clisp.org>
7584
7585         * .gitattributes: New file.
7586
7587 2008-02-11  Jim Meyering  <meyering@redhat.com>
7588
7589         useless-if-before-free: Fix reversed exit values.
7590         * build-aux/useless-if-before-free: Use correct values
7591         for EXIT_MATCH and EXIT_NO_MATCH.
7592
7593         * build-aux/useless-if-before-free: Close stdout carefully.
7594
7595 2008-02-10  Bruno Haible  <bruno@clisp.org>
7596
7597         New module 'git-merge-changelog'.
7598         * modules/git-merge-changelog: New file.
7599         * lib/git-merge-changelog.c: New file.
7600
7601 2008-02-10  Jim Meyering  <meyering@redhat.com>
7602
7603         useless-if-before-free: New option: --list (-l).
7604
7605         useless-if-before-free: Don't exit immediately upon open failure.
7606         * build-aux/useless-if-before-free: Exit 2 for errors.
7607         Upon failure to open a file, don't exit immediately.
7608         Rather, just warn and continue with any remaining files.
7609
7610 2008-02-10  Bruno Haible  <bruno@clisp.org>
7611
7612         New abstract list operation 'node_set_value'.
7613         * lib/gl_list.h (gl_list_node_set_value): New function.
7614         (struct gl_list_implementation): New field node_set_value.
7615         * lib/gl_list.c (gl_list_node_set_value): New function.
7616         * lib/gl_array_list.c (gl_array_node_set_value): New function.
7617         (gl_array_list_implementation): Update.
7618         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7619         (gl_carray_list_implementation): Update.
7620         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7621         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7622         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7623         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7624         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7625         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7626         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7627         Update.
7628         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7629         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7630         (gl_sublist_list_implementation): Update.
7631
7632 2008-02-10  Bruno Haible  <bruno@clisp.org>
7633
7634         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7635         Needed when ELEMENT is #defined to 'some_type *'.
7636
7637 2008-02-10  Jim Meyering  <meyering@redhat.com>
7638
7639         New script and module: useless-if-before-free
7640         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7641         * build-aux/useless-if-before-free: New file.
7642         * modules/useless-if-before-free: New file.
7643
7644         * build-aux/gitlog-to-changelog: Use committer date, not author date.
7645
7646         xstrtol_error: Fix typo.
7647         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7648         s/exit_failure/exit_status/.
7649
7650 2008-02-09  Jim Meyering  <meyering@redhat.com>
7651
7652         New script and module: gitlog-to-changelog
7653         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7654         * modules/gitlog-to-changelog: New file.
7655         * build-aux/gitlog-to-changelog: New file.
7656
7657 2008-02-08  Jim Meyering  <meyering@redhat.com>
7658
7659         Avoid two "parameter unused" warnings.
7660         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7661         Mark "st" as used.
7662
7663         Use "git COMMAND", not "git-COMMAND".
7664         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7665         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7666         * build-aux/git-version-gen: Use "git status", not "git-status".
7667
7668 2008-02-07  Bruno Haible  <bruno@clisp.org>
7669
7670         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7671         Avoids a crash on Windows Vista.
7672         Reported by Adam Strzelecki <ono@java.pl> via
7673         Simon Josefsson <simon@josefsson.org>.
7674
7675 2008-02-06  Bruno Haible  <bruno@clisp.org>
7676
7677         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7678         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7679         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7681         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7682         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7683         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7684         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7687         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7689         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7691         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7692         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7693         left-adjust flag.
7694         * tests/test-snprintf-posix.h (test_function): Likewise.
7695         * tests/test-sprintf-posix.h (test_function): Likewise.
7696         * tests/test-vasprintf-posix.c (test_function): Likewise.
7697         * doc/posix-functions/fprintf.texi: Update.
7698         * doc/posix-functions/printf.texi: Update.
7699         * doc/posix-functions/snprintf.texi: Update.
7700         * doc/posix-functions/sprintf.texi: Update.
7701         * doc/posix-functions/vfprintf.texi: Update.
7702         * doc/posix-functions/vprintf.texi: Update.
7703         * doc/posix-functions/vsnprintf.texi: Update.
7704         * doc/posix-functions/vsprintf.texi: Update.
7705         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7706
7707 2008-02-06  Bruno Haible  <bruno@clisp.org>
7708
7709         Fix bug introduced on 2008-01-26.
7710         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7711
7712 2008-02-06  Bruno Haible  <bruno@clisp.org>
7713
7714         Fix bug introduced on 2007-06-10.
7715         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7716         !NEED_PRINTF_FLAG_ZERO.
7717
7718 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
7719
7720         getloadavg: use libperfstat on AIX5
7721         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7722
7723 2008-02-03  Bruno Haible  <bruno@clisp.org>
7724
7725         * lib/diffseq.h: Add comments about required #includes.
7726         Reported by Michael Biggs <gnulib@doubleplum.net>.
7727
7728 2008-02-01  Bruno Haible  <bruno@clisp.org>
7729
7730         * users.txt: Add gnuit.
7731
7732 2008-01-31  Bruno Haible  <bruno@clisp.org>
7733
7734         * lib/md4.c (set_uint32): Mark as inline.
7735         * lib/md5.c (set_uint32): Likewise.
7736         * lib/sha1.c (set_uint32): Likewise.
7737         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7738         * m4/md5.m4 (gl_MD5): Likewise.
7739         * m4/sha1.m4 (gl_SHA1): Likewise.
7740
7741 2008-01-31  Jim Meyering  <meyering@redhat.com>
7742
7743         Use "sizeof VAR", rather than a literal "4".
7744         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7745         * lib/md4.c (md4_read_ctx): Likewise.
7746         * lib/sha1.c (sha1_read_ctx): Likewise.
7747
7748 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7749
7750         * tests/test-sha1.c: New file, based on test-md5.c.
7751
7752         * modules/crypto/sha1-tests: New file.
7753
7754 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7755
7756         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7757
7758 2008-01-31  Jim Meyering  <meyering@redhat.com>
7759
7760         Prefer "sizeof v" over the equivalent "4".
7761         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7762         * lib/md5.c (set_uint32): Likewise.
7763         * lib/sha1.c (set_uint32): Likewise.
7764
7765 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7766
7767         * lib/sha1.c (set_uint32): Mark function as static.
7768
7769 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7770
7771         md2: clarify comments to say that alignment is not required.
7772         * lib/md2.h: Remove warning about alignment in comment.
7773         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7774         never been required.
7775
7776 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7777
7778         md4: adapt alignment constraint fix from sha1.
7779         * lib/md4.c (set_uint32): New function, from sha1.c
7780         (md4_read_ctx): Use it.
7781         (md4_finish_ctx): Doc fix.
7782         * lib/md4.h: Doc fix.
7783
7784 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7785
7786         md5: adapt alignment constraint fix from sha1.
7787         * lib/md5.c (set_uint32): New function, from sha1.c
7788         (md5_read_ctx): Use it.
7789         (md5_finish_ctx): Doc fix.
7790         * lib/md5.h: Doc fix.
7791
7792 2008-01-30  Peter Palfrader  <weasel@debian.org>
7793
7794         sha1: remove the result buffer alignment constraint
7795         * lib/sha1.c (set_uint32): New function.
7796         (sha1_read_ctx): Rewrite to remove the result buffer alignment
7797         constraint.
7798         (sha1_finish_ctx): Remove comment warning about alignment constraint.
7799         * lib/sha1.h: Likewise.
7800
7801 2008-01-30  Andreas Schwab  <schwab@suse.de>
7802             Bruno Haible  <bruno@clisp.org>
7803
7804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7805         correct definition of LDBL_MIN_EXP.
7806
7807 2008-01-30  Karl Berry  <karl@gnu.org>
7808
7809         * config/srclist-update: try to preserve x bit on updates.
7810         * config/srclistvars.sh: update for karl.
7811
7812 2008-01-29  Jim Meyering  <meyering@redhat.com>
7813
7814         vasnprintf.c: Avoid warning about unused label
7815         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7816         "overflow" label definition and associated code with the
7817         same cpp condition that guards the sole use of that label.
7818
7819 2008-01-26  Bruno Haible  <bruno@clisp.org>
7820
7821         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7822         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7823         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7824         * lib/isnanl-nolibm.h (isnanl): Likewise.
7825         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7826
7827 2008-01-26  Bruno Haible  <bruno@clisp.org>
7828
7829         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7830         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7831
7832 2008-01-26  Bruno Haible  <bruno@clisp.org>
7833
7834         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7835         GCC >= 4.0 built-in.
7836         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7837
7838 2008-01-26  Bruno Haible  <bruno@clisp.org>
7839
7840         Rename isnan, applicable to 'double' only, to isnand.
7841         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7842         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7843         (configure.ac): Update.
7844         (Include): Replace "isnan.h" with "isnand.h".
7845         * m4/isnand.m4: Renamed from m4/isnan.m4.
7846         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7847         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7848         instead of isnan.c.
7849         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7850         instead of HAVE_ISNAN_IN_LIBC.
7851         (isnand): Renamed from isnan.
7852         * lib/isnand.c: New file.
7853         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7854         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7855         (Makefile.am): Update.
7856         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7857         Include isnand.h instead of isnan.h.
7858         (main): Test isnand instead of isnan.
7859         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7860         isnan-nolibm.
7861         * modules/frexp (Depends-on): Likewise.
7862         * modules/frexp-tests (Depends-on): Likewise.
7863         * modules/frexp-nolibm (Depends-on): Likewise.
7864         * modules/frexp-nolibm-tests (Depends-on): Likewise.
7865         * modules/isfinite (Depends-on): Likewise.
7866         * modules/round-tests (Depends-on): Likewise.
7867         * modules/signbit (Depends-on): Likewise.
7868         * modules/signbit-tests (Depends-on): Likewise.
7869         * modules/snprintf-posix (Depends-on): Likewise.
7870         * modules/sprintf-posix (Depends-on): Likewise.
7871         * modules/trunc-tests (Depends-on): Likewise.
7872         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7873         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7874         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7875         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7876         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7877         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7878         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7879         * modules/vasnprintf-posix (Depends-on): Likewise.
7880         * modules/vasprintf-posix (Depends-on): Likewise.
7881         * modules/vfprintf-posix (Depends-on): Likewise.
7882         * modules/vsnprintf-posix (Depends-on): Likewise.
7883         * modules/vsprintf-posix (Depends-on): Likewise.
7884         * lib/frexp.c: Include isnand.h instead of isnan.h.
7885         (ISNAN): Set to isnand instead of isnan.
7886         * lib/isfinite.c: Include isnand.h instead of isnan.h.
7887         (gl_isfinited): Use isnand instead of isnan.
7888         * lib/signbitd.c: Include isnand.h instead of isnan.h.
7889         (gl_signbitd): Use isnand instead of isnan.
7890         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
7891         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
7892         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
7893         (main): Use isnand instead of isnan.
7894         * tests/test-round1.c: Include isnand.h.
7895         (main): Use isnand instead of isnan.
7896         * tests/test-round2.c: Include isnand.h instead of isnan.h.
7897         (ISNAN): Set to isnand instead of isnan.
7898         * tests/test-trunc1.c: Include isnand.h.
7899         (main): Use isnand instead of isnan.
7900         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
7901         (equal): Use isnand instead of isnan.
7902         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
7903         isnand-nolibm.
7904         * NEWS: Mention the change.
7905
7906 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7907             Bruno Haible  <bruno@clisp.org>
7908
7909         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
7910         the GCC builtins for signbits are present and set
7911         REPLACE_SIGNBIT_USING_GCC if so.
7912         * lib/math.in.h (signbit): Define using GCC builtins if
7913         REPLACE_SIGNBIT_USING_GCC is set.
7914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
7915         REPLACE_SIGNBIT_USING_GCC.
7916         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
7917
7918 2008-01-25  Jim Meyering  <meyering@redhat.com>
7919
7920         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
7921         * lib/poll.c: Include <config.h>, not "config.h".
7922         * tests/test-getaddrinfo.c: Likewise.
7923
7924 2008-01-25  Simon Josefsson  <simon@josefsson.org>
7925
7926         * modules/sockets-tests: New file.
7927
7928 2008-01-24  Simon Josefsson  <simon@josefsson.org>
7929
7930         * modules/sockets: New module, can be used to call WSA_Startup and
7931         WSA_Cleanup when needed.
7932
7933         * lib/sockets.h, lib/sockets.c: New files.
7934
7935         * m4/sockets.m4: New file.
7936
7937         * tests/test-sockets.c: New file.
7938
7939 2008-01-19  Bruno Haible  <bruno@clisp.org>
7940
7941         * doc/posix-headers: Renamed from doc/headers.
7942         * doc/posix-functions: Renamed from doc/functions.
7943         * doc/gnulib.texi: Update.
7944
7945 2008-01-19  Bruno Haible  <bruno@clisp.org>
7946
7947         * doc/glibc-functions/strcasestr.texi: Include contents of
7948         doc/functions/strcasestr.texi, fixing the list of platforms.
7949         * doc/functions/strcasestr.texi: Remove file.
7950
7951 2008-01-19  Bruno Haible  <bruno@clisp.org>
7952
7953         * doc/glibc-functions/memmem.texi: Include contents of
7954         doc/functions/memmem.texi.
7955         * doc/functions/memmem.texi: Remove file.
7956
7957 2008-01-18  Bruno Haible  <bruno@clisp.org>
7958
7959         * doc/glibc-functions/*.texi: New files.
7960         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
7961         to use the new files.
7962
7963 2008-01-17  Bruno Haible  <bruno@clisp.org>
7964
7965         * tests/test-gethostname.c (main): Fix printf statement.
7966
7967 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7968
7969         * modules/gethostname-tests: New file.
7970
7971         * tests/test-gethostname.c: New file.
7972
7973 2008-01-17  Simon Josefsson  <simon@josefsson.org>
7974
7975         * lib/gethostname.c: Include string.h unconditionally, strncpy is
7976         used by the UNAME case.  Reported by Bruno Haible
7977         <bruno@clisp.org>.
7978
7979 2008-01-17  Eric Blake  <ebb9@byu.net>
7980
7981         Convert c-strcasestr to be more efficient.
7982         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
7983         (Depends-on): Add c-strcase, remove malloca, strnlen.
7984         * tests/test-c-strcasestr.c (main): Enhance test.
7985         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
7986
7987 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
7988
7989         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
7990         Use it in creating po/Makevars.
7991
7992 2008-01-15  Simon Josefsson  <simon@josefsson.org>
7993
7994         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
7995         Applications that requires it should initialize libgcrypt
7996         manually.
7997
7998 2008-01-16  Simon Josefsson  <simon@josefsson.org>
7999
8000         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8001
8002 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8003
8004         Fix problem with getdate on mingw32 reported by Simon Josefsson
8005         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8006         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8007         tzname", when deciding whether to declare tzname.
8008         * lib/strftime.c (tzname): Likewise.
8009
8010 2008-01-15  Bruno Haible  <bruno@clisp.org>
8011
8012         Work around a MacOS X 10.5 bug in frexpl().
8013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8014         * doc/functions/frexpl.texi: Document the bug.
8015         Reported by Elias Pipping <pipping@gentoo.org>.
8016
8017 2008-01-14  Eric Blake  <ebb9@byu.net>
8018
8019         Touch up previous patch.
8020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8021         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8022
8023         Convert strcasestr module to use Two-Way algorithm.
8024         * modules/strcasestr-simple: New module, based on the old
8025         strcasestr, but with Two-Way rather than KMP.
8026         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8027         * lib/string.in.h (rpl_strcasestr): Declare.
8028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8029         performance.
8030         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8031         * modules/string (Makefile.am): Support strcasestr.
8032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8033         * modules/strcasestr-tests (Depends-on): Check for alarm.
8034         * tests/test-strcasestr.c: Augment test.
8035         * lib/str-two-way.h: Clean up stray macro.
8036         * NEWS: Document new module.
8037         * MODULES.html.sh (string handling): Likewise.
8038         * doc/functions/strcasestr.texi: New file.
8039         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
8040         here, since it is not a POSIX function.
8041
8042 2008-01-14  Colin Watson  <cjwatson@debian.org>
8043             Bruno Haible  <bruno@clisp.org>
8044
8045         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8046         works fine; if not, set REPLACE_STRSIGNAL.
8047         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8049         REPLACE_STRSIGNAL.
8050         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8051         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8052         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8053
8054 2008-01-14  Bruno Haible  <bruno@clisp.org>
8055
8056         * modules/strsignal (Include): Change to <string.h>.
8057
8058 2008-01-14  Colin Watson  <cjwatson@debian.org>
8059
8060         * modules/argp (Notice): Add a notice recommending to change
8061         XGETTEXT_OPTIONS.
8062         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
8063
8064 2008-01-13  Colin Watson  <cjwatson@debian.org>
8065
8066         * modules/strsignal-tests: New file.
8067         * tests/test-strsignal.c: New file.
8068
8069         * lib/strsignal.c: New file, from glibc with modifications.
8070         * lib/siglist.h: New file, from glibc with modifications.
8071         * lib/string.in.h (strsignal): New declaration.
8072         * m4/strsignal.m4: New file.
8073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8074         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
8075         * modules/strsignal: New file.
8076         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
8077         HAVE_DECL_STRSIGNAL.
8078
8079 2008-01-13  Bruno Haible  <bruno@clisp.org>
8080
8081         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
8082         locale encoding is not ASCII. Needed for OpenBSD 4.0.
8083         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8085
8086 2008-01-13  Bruno Haible  <bruno@clisp.org>
8087
8088         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
8089         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
8090         * lib/argp.h (__attribute__): Likewise.
8091         * lib/c-stack.c (__attribute__): Likewise.
8092         * lib/error.h (__attribute__): Likewise.
8093         * lib/fts.c (__attribute__): Likewise.
8094         * lib/openat.h (__attribute__): Likewise.
8095         * lib/stdio.in.h (__attribute__): Likewise.
8096         * lib/string.in.h (__attribute__): Likewise.
8097         * lib/utimens.c (__attribute__): Likewise.
8098         * lib/vasnprintf.h (__attribute__): Likewise.
8099         * lib/xalloc.h (__attribute__): Likewise.
8100         * lib/xprintf.h (__attribute__): Likewise.
8101         * lib/xstrtol.h (__attribute__): Likewise.
8102         * lib/xvasprintf.h (__attribute__): Likewise.
8103
8104 2008-01-12  Bruno Haible  <bruno@clisp.org>
8105
8106         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
8107         * doc/glibc-headers/a.out.texi: New file.
8108         * doc/glibc-headers/aliases.texi: New file.
8109         * doc/glibc-headers/alloca.texi: New file.
8110         * doc/glibc-headers/ar.texi: New file.
8111         * doc/glibc-headers/argp.texi: New file.
8112         * doc/glibc-headers/argz.texi: New file.
8113         * doc/glibc-headers/byteswap.texi: New file.
8114         * doc/glibc-headers/crypt.texi: New file.
8115         * doc/glibc-headers/endian.texi: New file.
8116         * doc/glibc-headers/envz.texi: New file.
8117         * doc/glibc-headers/err.texi: New file.
8118         * doc/glibc-headers/error.texi: New file.
8119         * doc/glibc-headers/execinfo.texi: New file.
8120         * doc/glibc-headers/fpu_control.texi: New file.
8121         * doc/glibc-headers/fstab.texi: New file.
8122         * doc/glibc-headers/fts.texi: New file.
8123         * doc/glibc-headers/getopt.texi: New file.
8124         * doc/glibc-headers/ieee754.texi: New file.
8125         * doc/glibc-headers/ifaddrs.texi: New file.
8126         * doc/glibc-headers/libintl.texi: New file.
8127         * doc/glibc-headers/mcheck.texi: New file.
8128         * doc/glibc-headers/mntent.texi: New file.
8129         * doc/glibc-headers/obstack.texi: New file.
8130         * doc/glibc-headers/paths.texi: New file.
8131         * doc/glibc-headers/printf.texi: New file.
8132         * doc/glibc-headers/pty.texi: New file.
8133         * doc/glibc-headers/resolv.texi: New file.
8134         * doc/glibc-headers/shadow.texi: New file.
8135         * doc/glibc-headers/sysexits.texi: New file.
8136         * doc/glibc-headers/ttyent.texi: New file.
8137
8138 2008-01-12  Jim Meyering  <meyering@redhat.com>
8139
8140         announce-gen: emit Gnulib's git-based version string.
8141         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8142         New option --gnulib-version=V, where V is expected to be
8143         the output of running git describe in the gnulib directory.
8144         (get_tool_versions): Request feedback on xdelta.  I suspect it's
8145         not useful, and plan to stop publishing an xdelta file with each
8146         coreutils release.
8147
8148         * build-aux/announce-gen: Also check for lzma-compressed files.
8149
8150 2008-01-11  Bruno Haible  <bruno@clisp.org>
8151
8152         * tests/test-memmem.c (main): Increase maximum allowed time.
8153         * tests/test-strstr.c (main): Likewise.
8154
8155 2008-01-11  Bruno Haible  <bruno@clisp.org>
8156
8157         * doc/functions/memmem.texi: Add more precisions about platforms.
8158         * doc/functions/strstr.texi: Likewise.
8159
8160 2008-01-10  Eric Blake  <ebb9@byu.net>
8161
8162         * m4/strstr.m4: Delete cruft from copy-n-paste.
8163         Reported by Bruno Haible.
8164
8165 2008-01-10  Bruno Haible  <bruno@clisp.org>
8166
8167         Make c-strstr rely on strstr.
8168         * lib/c-strstr.c: Don't include str-kmp.h.
8169         (c_strstr): Define in terms of strstr.
8170         * modules/c-strstr (Files): Remove lib/str-kmp.h.
8171         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8172
8173 2008-01-10  Bruno Haible  <bruno@clisp.org>
8174
8175         * doc/gnulib.texi (String Functions in C Locale): New section.
8176         * doc/c-ctype.texi: New file.
8177         * doc/c-strcase.texi: New file.
8178         * doc/c-strcaseeq.texi: New file.
8179         * doc/c-strcasestr.texi: New file.
8180         * doc/c-strstr.texi: New file.
8181         * doc/c-strtod.texi: New file.
8182         * doc/c-strtold.texi: New file.
8183
8184 2008-01-10  Eric Blake  <ebb9@byu.net>
8185
8186         * lib/relocatable.h: Fix a comment.
8187
8188 2008-01-10  Eric Blake  <ebb9@byu.net>
8189
8190         Share two-way algorithm.
8191         * lib/str-two-way.h: New file, merged from...
8192         * lib/memmem.c: ...here...
8193         * lib/strstr.c: ...and here.
8194         * modules/memmem (Files): Use it.
8195         * modules/strstr (Files): Likewise.
8196
8197         Avoid quadratic strstr implementations.
8198         * lib/strstr.c: New file.
8199         * m4/strstr.m4: Likewise.
8200         * modules/strstr: Likewise.
8201         * modules/strstr-tests: Likewise.
8202         * tests/test-strstr.c: Likewise.
8203         * lib/string.in.h (rpl_strstr): Declare.
8204         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8206         * modules/string (Makefile.am): Likewise.
8207         * MODULES.html.sh (string handling): Mention new module.
8208         * doc/functions/strstr.texi (strstr): Document the bug.
8209
8210 2008-01-10  Bruno Haible  <bruno@clisp.org>
8211
8212         * lib/relocatable.h (relocate): State whether result is freshly
8213         allocated or not.
8214         * lib/relocatable.c (relocate): Return a freshly allocated string
8215         instead of a pointer to a privately held string.
8216         Reported by Sylvain Beucler <beuc@gnu.org>.
8217
8218 2008-01-10  Colin Watson  <cjwatson@debian.org>
8219
8220         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8221         s/S_ISNLK/S_ISLNK/.
8222
8223 2008-01-09  Bruno Haible  <bruno@clisp.org>
8224
8225         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8226         and other files.
8227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8228         if it's only a guess.
8229         * modules/memmem: Simplify by depending on memmem-simple.
8230
8231 2008-01-09  Bruno Haible  <bruno@clisp.org>
8232
8233         Work around OpenBSD 4.0 tdelete() bug.
8234         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8235         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8236         macros and don't redefine the enum values.
8237         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8238         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8239         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8240
8241 2008-01-09  Bruno Haible  <bruno@clisp.org>
8242
8243         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8244         (main): Don't perform the tests if setlocale did not install a UTF-8
8245         locale. Needed on OpenBSD 4.0.
8246         * modules/wcwidth-tests (Depends-on): Add localcharset.
8247
8248 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8249
8250         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8251         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8252         * NEWS: announce this.
8253         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8254
8255 2008-01-09  Simon Josefsson  <simon@josefsson.org>
8256         and Eric Blake  <ebb9@byu.net>
8257
8258         Add memmem-simple module.
8259         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8260         (gl_FUNC_MEMMEM): Separate performance from presence checks.
8261         * modules/memmem-simple: New file.
8262         * modules/memmem (Description): Tweak.
8263         * MODULES.html.sh (string handling): Mention new module.
8264         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8265         addressed by memmem-simple.
8266         * NEWS: Document the difference.
8267
8268 2008-01-09  Eric Blake  <ebb9@byu.net>
8269
8270         Give gcc some memmem optimization hints.
8271         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8272         (strcasestr): Declare as pure.
8273         * modules/memmem (Maintainer): Claim my implementation.
8274
8275 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8276
8277         Support AIX 6.1 and higher.
8278         * build-aux/config.libpath: Likewise.
8279         * build-aux/config.rpath: Likewise.
8280
8281 2008-01-08  Jim Meyering  <meyering@redhat.com>
8282             Bruno Haible  <bruno@clisp.org>
8283
8284         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8285         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8286         Reported by Peter Fales in
8287         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8288
8289 2008-01-08  Bruno Haible  <bruno@clisp.org>
8290
8291         * modules/unictype/category-of (Depends-on): Add
8292         unictype/category-none.
8293         * modules/unictype/category-and-tests (Depends-on): Add
8294         unictype/category-{L,N,Lu,Nd}.
8295         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8296         * modules/unictype/category-or-tests (Depends-on): Add
8297         unictype/category-{L,N}.
8298         * modules/unictype/category-name-tests (Depends-on): Add
8299         unictype/category-{Z,Nl}.
8300         Reported by Simon Josefsson.
8301
8302 2008-01-08  Bruno Haible  <bruno@clisp.org>
8303
8304         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8305         convention better.
8306         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8307         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8308         Reported by Peter Miller <millerp@canb.auug.org.au>.
8309
8310 2008-01-08  Eric Blake  <ebb9@byu.net>
8311
8312         Rewrite memmem to guarantee linear complexity without malloc.
8313         * lib/memmem.c (memmem): Use Two-Way rather than
8314         Knuth-Morris-Pratt, to allow O(1) space usage.
8315         (critical_factorization, two_way_short_needle)
8316         (two_way_long_needle): New functions.
8317         (knuth_morris_pratt): Delete.
8318         * modules/memmem (Depends-on): No longer need malloca or stdbool.
8319         Add stdint.
8320         * tests/test-memmem.c (main): Add tests for periodic needle and
8321         sublinear performance.
8322         * doc/functions/memmem.texi (memmem): Document other deficiencies
8323         in cygwin and older glibc.
8324
8325 2008-01-08  Bruno Haible  <bruno@clisp.org>
8326
8327         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8328         augmentation.
8329
8330 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
8331
8332         Add a configure time option: --disable-acl.
8333         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8334         AC_ARG_ENABLE(acl).
8335
8336 2008-01-06  Simon Josefsson  <simon@josefsson.org>
8337
8338         * tests/test-localename.c: Don't include obsolete "setenv.h".
8339
8340         * modules/localename-tests (Depends-on): Need unsetenv.
8341
8342 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8343
8344         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8345
8346 2008-01-06  Colin Watson  <cjwatson@debian.org>
8347
8348         * users.txt: Add man-db.
8349
8350 2008-01-07  Bruno Haible  <bruno@clisp.org>
8351
8352         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8353         previous section name.
8354
8355 2008-01-07  Bruno Haible  <bruno@clisp.org>
8356
8357         * lib/progname.c (set_program_name): Don't strip off a leading
8358         "lt-" prefix outside a .libs directory.
8359         Suggested by Paul Eggert.
8360
8361 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
8362             Bruno Haible  <bruno@clisp.org>
8363
8364         Improve memory cleanup in 'relocatable' module.
8365         * lib/relocatable.h (compute_curr_prefix): Change return type to
8366         'char *'.
8367         * lib/relocatable.c (compute_curr_prefix): Change return type to
8368         'char *'. Free curr_installdir after use.
8369         (relocate): Free curr_prefix_better after use.
8370         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8371
8372 2008-01-01  Bruno Haible  <bruno@clisp.org>
8373
8374         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8375         failure on older glibc systems.
8376         Reported by Peter Fales <psfales@alcatel-lucent.com>.
8377
8378 2008-01-05  Eric Blake  <ebb9@byu.net>
8379
8380         Avoid quadratic system memmem.
8381         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8382         Reported by Ralf Wildenhues.
8383
8384         Fix memmem test for mingw.
8385         * modules/memmem-tests (configure.ac): Check for alarm.
8386         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8387         it.
8388         * doc/functions/memmem.texi: New file.
8389         * doc/gnulib.texi (Function Substitutes): Add memmem.
8390         Reported by Bruno Haible.
8391
8392 2008-01-04  Bruno Haible  <bruno@clisp.org>
8393
8394         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8395         Require gl_HEADER_STRINGS_H_DEFAULTS, not
8396         gl_HEADER_STRING_H_DEFAULTS.
8397
8398 2008-01-04  Eric Blake  <ebb9@byu.net>
8399
8400         Shorten duration of memmem test.
8401         * tests/test-memmem.c (main): Use alarm to declare failure if test
8402         is taking too long.
8403         Reported by Ralf Wildenhues.
8404
8405 2007-12-21  Simon Josefsson  <simon@josefsson.org>
8406
8407         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8408         string, needed by strerror.
8409
8410 2008-01-03  Colin Watson  <cjwatson@debian.org>
8411             Bruno Haible  <bruno@clisp.org>
8412
8413         * doc/gnulib-tool.texi (Localization): New section.
8414
8415 2008-01-02  Bruno Haible  <bruno@clisp.org>
8416
8417         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8418         variables to 'unsigned char *' type.
8419         Reported by Paul Eggert.
8420
8421 2008-01-02  Jim Meyering  <jim@meyering.net>
8422
8423         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8424
8425 2007-12-31  Jim Meyering  <jim@meyering.net>
8426
8427         Avoid use of private FTS type name.
8428         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8429
8430 2007-12-30  Karl Berry  <karl@gnu.org>
8431
8432         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8433         work around defect in Texinfo and/or the standalone Info browser.
8434
8435 2007-12-30  Bruno Haible  <bruno@clisp.org>
8436
8437         Unify 5 copies of the KMP code.
8438         * lib/str-kmp.h: New file.
8439         * lib/c-strcasestr.c: Include str-kmp.h.
8440         (knuth_morris_pratt): Remove function.
8441         (c_strcasestr): Update.
8442         * lib/c-strstr.c: Include str-kmp.h.
8443         (knuth_morris_pratt): Remove function.
8444         (c_strcasestr): Update.
8445         * lib/mbscasestr.c: Include str-kmp.h.
8446         (knuth_morris_pratt_unibyte): Remove function.
8447         * lib/mbsstr.c: Include str-kmp.h.
8448         (knuth_morris_pratt_unibyte): Remove function.
8449         * lib/strcasestr.c: Include str-kmp.h.
8450         (knuth_morris_pratt): Remove function.
8451         (strcasestr): Update.
8452         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8453         * modules/c-strstr (Files): Likewise.
8454         * modules/mbscasestr (Files): Likewise.
8455         * modules/mbsstr (Files): Likewise.
8456         * modules/strcasestr (Files): Likewise.
8457         Suggested by Paul Eggert.
8458
8459 2007-12-30  Bruno Haible  <bruno@clisp.org>
8460
8461         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8462         defined.
8463
8464 2007-12-30  Bruno Haible  <bruno@clisp.org>
8465
8466         * lib/xmalloca.h: Include xalloc.h.
8467         (xnmalloca): New macro.
8468
8469 2007-12-30  Bruno Haible  <bruno@clisp.org>
8470
8471         * lib/malloca.h (nmalloca): New macro.
8472         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8473         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8474         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8475         knuth_morris_pratt_multibyte): Likewise.
8476         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8477         knuth_morris_pratt_multibyte): Likewise.
8478         * lib/memmem.c (knuth_morris_pratt): Likewise.
8479         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8480
8481 2007-12-25  Bruno Haible  <bruno@clisp.org>
8482
8483         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8484         * lib/glob.c: Don't include openat.h.
8485         (link_exists2_p): Add back the code that deals with the
8486         !GLOB_ALTDIRFUNC case.
8487         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8488         let it do the filename concatenation.
8489         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8490         * modules/glob (Depends-on): Remove openat.
8491
8492 2007-12-31  Bruno Haible  <bruno@clisp.org>
8493
8494         * modules/dirfd (License): Change to LGPLv2+.
8495         Approved by Jim Meyering.
8496
8497 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8498
8499         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8500         when multiplying M by sizeof (size_t).
8501
8502 2007-12-10  Martin Lambers  <marlam@marlam.de>
8503
8504         Override getpagesize on mingw.
8505         * lib/getpagesize.c: New file.
8506         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8507         * modules/getpagesize (Files): Add lib/getpagesize.c.
8508         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8510         REPLACE_GETPAGESIZE.
8511         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8512
8513 2007-12-25  Bruno Haible  <bruno@clisp.org>
8514
8515         * modules/localcharset (Notice): New field.
8516         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8517         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8518
8519 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8520             Bruno Haible  <bruno@clisp.org>
8521
8522         Avoid using the syntax symbol() in formatted documentation.
8523         * MODULES.html.sh (func_module): When replacing symbol() with a
8524         hyperlink, remove the parentheses. Show an error if some remain.
8525         Recognize and render the '...' syntax.
8526         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8527         Rework. Add paragraph about GCC's inlining.
8528         * doc/alloca.texi: Likewise.
8529         * doc/error.texi: Remove parentheses from symbol reference.
8530         * doc/gnulib-intro.texi: Likewise.
8531         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8532         * modules/fnmatch (Description): Reword to say "the ... function".
8533         * modules/full-read (Description): Likewise.
8534         * modules/full-write (Description): Likewise.
8535         * modules/safe-read (Description): Likewise.
8536         * modules/safe-write (Description): Likewise.
8537         * modules/strchrnul (Description): Likewise.
8538         * modules/trim (Description): Likewise.
8539         * modules/error (Description): Remove parentheses from symbol
8540         references.
8541         * modules/verror (Description): Likewise.
8542         Reported by Karl Berry.
8543
8544 2007-12-25  Bruno Haible  <bruno@clisp.org>
8545
8546         Fixup after 2007-10-16 commit.
8547         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8548
8549 2007-12-24  Bruno Haible  <bruno@clisp.org>
8550
8551         Make --enable-relocatable work with DESTDIR.
8552         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8553         to compute installdir from destprog.
8554         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8555         also set the RELOC_DESTDIR variable.
8556         Reported by Левашев Иван <octagram@bluebottle.com>.
8557
8558 2007-12-24  Bruno Haible  <bruno@clisp.org>
8559
8560         Fix link error due to xalloc_die().
8561         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8562         of xreadlink.
8563         * lib/relocwrapper.c: Update comments.
8564         * build-aux/install-reloc: Remove xreadlink.c from file list.
8565         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8566         xreadlink.c.
8567         Reported by Левашев Иван <octagram@bluebottle.com>.
8568
8569 2007-12-24  Bruno Haible  <bruno@clisp.org>
8570
8571         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8572         * lib/setenv.h: Remove file.
8573         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8574         lib/setenv.h.
8575         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8576         (Depends-on): Add stdlib.
8577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8578         gl_FUNC_UNSETENV.
8579         (Include): Replace setenv.h with <stdlib.h>.
8580         * modules/unsetenv: New file.
8581         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8582         * lib/unsetenv.c: Include <stdlib.h> first.
8583         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8584         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8585         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8586         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8587         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8588         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8590         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8591         * doc/functions/unsetenv.texi: Update.
8592         * modules/xsetenv (Depends-on): Add unsetenv.
8593         * modules/getdate (Depends-on): Likewise.
8594         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8595         * lib/xsetenv.c: Don't include setenv.h.
8596         * lib/getdate.y: Likewise.
8597         * lib/relocwrapper.c: Likewise.
8598         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8599         (Depends-on): Add stdlib.
8600         * NEWS: Mention the changes.
8601         Reported by Левашев Иван <octagram@bluebottle.com>.
8602
8603 2007-12-23  Bruno Haible  <bruno@clisp.org>
8604
8605         * lib/memmem.c (memmem): Use lowercase variable names. Tab
8606         indentation.
8607
8608 2007-12-23  Bruno Haible  <bruno@clisp.org>
8609
8610         * lib/c-strcasestr.c: Add more comments.
8611         * lib/c-strstr.c: Likewise.
8612         * lib/mbscasestr.c: Likewise.
8613         * lib/mbsstr.c: Likewise.
8614         * lib/strcasestr.c: Likewise.
8615         * lib/memmem.c: Likewise.
8616
8617 2007-12-23  Bruno Haible  <bruno@clisp.org>
8618
8619         * tests/test-memmem.c: Include <string.h> first.
8620
8621 2007-12-22  Bruno Haible  <bruno@clisp.org>
8622
8623         * gnulib-tool (func_create_testdir): Change $auxdir while generating
8624         the contents of $testsbase.
8625         Reported by Ralf Wildenhues.
8626
8627 2007-12-22  Bruno Haible  <bruno@clisp.org>
8628
8629         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8630         two variables local_ldadd_before, local_ldadd_last.
8631
8632 2007-12-20  Eric Blake  <ebb9@byu.net>
8633
8634         Work around circular library issue when cross-compiling.
8635         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8636         that progname.o does not need to pull in rpl_memcmp.
8637
8638 2007-12-19  Eric Blake  <ebb9@byu.net>
8639
8640         Fix memmem to avoid O(n^2) worst-case complexity.
8641         * lib/memmem.c (knuth_morris_pratt): New function.
8642         (memmem): Use it if first few naive iterations fail.
8643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8644         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8645         * modules/memchr (License): Likewise.
8646         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8647         malloca.
8648         * tests/test-memmem.c: Rewrite, borrowing ideas from
8649         test-mbsstr1.c; the old version wouldn't even compile!
8650         * modules/memmem-tests: New file.
8651         * lib/string.in.h (rpl_memmem): Add declaration.
8652         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8654         REPLACE_MEMMEM.
8655
8656 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8657
8658         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8659         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8660         before any system include files, and undef after them all.  This
8661         should fix a problem on VMS reported by John E. Malmberg in
8662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8663
8664 2007-12-17  Eric Blake  <ebb9@byu.net>
8665
8666         Revert addition of verify, for BSD/OS.
8667         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8668         can't handle large files, for the sake of obsolete platforms.
8669         * modules/fseeko (Depends-on): Remove verify.
8670         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8671         * doc/functions/ftello.texi (ftello): Likewise.
8672         * doc/functions/fgetpos.texi (fgetpos): Likewise.
8673         Reported by Larry Jones.
8674
8675 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
8676
8677         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8678         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8679
8680 2007-12-17  Jim Meyering  <meyering@redhat.com>
8681
8682         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8683         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8684         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8685         * modules/getcwd (Depends-on): Add openat.
8686         Reported by Petr Salinger.
8687
8688 2007-12-17  Bruno Haible  <bruno@clisp.org>
8689
8690         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8691         avoid a segmentation fault of the configure test on x86_64 systems.
8692
8693 2007-12-15  Jim Meyering  <meyering@redhat.com>
8694
8695         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8696
8697 2007-12-13  Eric Blake  <ebb9@byu.net>
8698
8699         Another fseek test.
8700         * tests/test-fseek.c (main): Also test ungetc handling.
8701         * tests/test-fseeko.c (main): Likewise.
8702         * modules/fseeko (Depends-on): Add verify.
8703         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8704         large.
8705         Reported by Larry Jones.
8706
8707         Fix fseeko on mingw.
8708         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8709         seek.
8710
8711         Beef up fseek tests.
8712         * tests/test-fseek.c (main): Also test eof handling.
8713         * tests/test-fseeko.c (main): Likewise.
8714         Reported by Larry Jones.
8715
8716 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
8717
8718         Fix fseeko on BSD-based platforms.
8719         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8720         successful seek.
8721
8722 2007-12-12  Eric Blake  <ebb9@byu.net>
8723
8724         Allow circular dependency of separate libtests.a
8725         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8726         when use_libtests.
8727
8728 2007-12-11  Eric Blake  <ebb9@byu.net>
8729
8730         Fix bug with -0.0L in previous patch.
8731         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8732         * tests/test-isnan.c (main): Also test on zeroes.
8733         * tests/test-isnanf.c (main): Likewise.
8734         * tests/test-isnanl.h (main): Likewise.
8735
8736         Detect pseudo-denormals on x86 even when cross-compiling.
8737         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8738         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8739         invalid bit patterns that happen to satisfy ==.
8740
8741         Avoid link failures with separate libtests.a.
8742         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8743         last, to satisfy circular dependencies.
8744
8745 2007-12-11  Eric Blake  <ebb9@byu.net>
8746         and Bruno Haible  <bruno@clisp.org>
8747
8748         Fix OpenBSD 4.0 <float.h> handling of long double.
8749         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8750         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8751         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8752
8753 2007-12-11  Jim Meyering  <meyering@redhat.com>
8754
8755         * users.txt: Add libvirt.
8756
8757         Support versions of autoconf prior to 2.59c.
8758         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8759         if it is not already defined.
8760
8761 2007-12-09  Bruno Haible  <bruno@clisp.org>
8762
8763         Let 'gnulib-tool --import' collect sources needed for the tests in
8764         tests/ rather than in lib/.
8765         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8766         argument. If true, add rules to generate libtests.a, and put libtests.a
8767         into $(LDADD). Consider source files in subdirectories and set
8768         uses_subdirs.
8769         (func_emit_initmacro_start, func_emit_initmacro_end,
8770         func_emit_initmacro_done): Pass all arguments explicitly.
8771         (func_import): Determine two module lists main_modules,
8772         testsrelated_modules. Determine use_libtests. Determine two variables
8773         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8774         instead of just sed_transform_lib_file. Determine two variables
8775         main_files and testsrelated_files. Compute 'files' as the union of
8776         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8777         func_add_or_update. In the generated gnulib-comp.m4, collect the
8778         object files for tests/ in different variables than those for lib/.
8779         Substitute LIBTESTS_LIBDEPS.
8780         (func_create_testdir): Combine the uses_subdirs results from
8781         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8782
8783 2007-12-09  Bruno Haible  <bruno@clisp.org>
8784
8785         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8786         the build-aux directory.
8787
8788 2007-12-09  Bruno Haible  <bruno@clisp.org>
8789
8790         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8791         introduced on 2006-09-09.
8792
8793 2007-12-07  Jim Meyering  <meyering@redhat.com>
8794
8795         Let these macros work also with autoconf-2.59.
8796         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
8797         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8799
8800 2007-12-06  Jim Meyering  <meyering@redhat.com>
8801
8802         Avoid a configure-time syntax error in gl_FUNC_ACL.
8803         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8804         function in each branch, before testing the cache variable.
8805
8806 2007-12-04  Eric Blake  <ebb9@byu.net>
8807
8808         Make scripts executable.
8809         * build-aux/config.guess: Add execute permissions.
8810         * build-aux/config.sub: Likewise.
8811         * build-aux/gendocs.sh: Likewise.
8812
8813         Fix frexp on mingw.
8814         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8815         cross-compiling.
8816         * doc/functions/frexp.texi (frexp): Document the bug.
8817
8818         Make cygwin fseeko check more reliable.
8819         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8820         version numbers, rather than unrelated feature check.
8821         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8822         * doc/functions/ftello.texi (ftello): Likewise.
8823         Reported by Bruno Haible.
8824
8825         * m4/strerror.m4: Bump version number.
8826
8827 2007-12-03  Bruno Haible  <bruno@clisp.org>
8828
8829         * doc/functions/mprotect.texi: Mention the mingw problem.
8830
8831 2007-12-03  Eric Blake  <ebb9@byu.net>
8832
8833         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8834         REPLACE_STRERROR is initialized before this macro.
8835
8836 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
8837
8838         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
8839         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8840         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
8841         put -lsec in even for programs other than 'ls'.  This fixes a problem
8842         for gettext reported by Bruno Haible in
8843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8844         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8845         Add support for Solaris 10.  This isn't efficient, but should get the
8846         job done for now.
8847
8848 2007-12-03  James Youngman  <jay@gnu.org>
8849
8850         * doc/regexprops-generic.texi: change "an close-group" to "a
8851         close-group" and "illegal" to "not allowed".
8852
8853 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8854
8855         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8856         pr_byname.h. Needed for the rare case when the maintainer has done
8857         "make maintainer-clean" in the source directory and then attempts a
8858         build outside the source directory.
8859         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8860         scripts_byname.h.
8861
8862 2007-12-02  Martin Lambers <marlam@marlam.de>
8863             Bruno Haible  <bruno@clisp.org>
8864
8865         * lib/getpagesize.h: Remove file.
8866         * lib/unistd.in.h: Include declaration of getpagesize here.
8867         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
8868         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
8869         HAVE_SYS_PARAM_H.
8870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
8871         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8872         * modules/getpagesize (Files): Remove lib/getpagesize.h.
8873         (Depends-on): Add unistd.
8874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8875         (Include): Use <unistd.h> instead of getpagesize.h.
8876         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
8877         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
8878         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
8879         gl_GETPAGESIZE invocation, already handled by module dependency.
8880         * lib/pagealign_alloc.c: Don't include getpagesize.h.
8881
8882 2007-12-02  Bruno Haible  <bruno@clisp.org>
8883
8884         * modules/strings-tests: New file.
8885         * tests/test-strings.c: New file.
8886
8887         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
8888         * lib/strings.in.h: New file.
8889         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
8890         * m4/strings_h.m4: New file.
8891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
8892         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
8893         * modules/strings: New file.
8894         * modules/string (Makefile.am): Update.
8895         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
8896         Reported by Karl Berry.
8897
8898 2007-12-01  Eric Blake  <ebb9@byu.net>
8899
8900         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
8901         accomodate fix in cygwin 1.5.25.
8902
8903 2007-12-01  Jim Meyering  <meyering@redhat.com>
8904
8905         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
8906         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
8907         that would inhibit utf8-optimization of a regexp containing line-
8908         or buffer-anchors, e.g., `^', `$'.
8909
8910 2007-11-30  Bruno Haible  <bruno@clisp.org>
8911
8912         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
8913         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
8914         glthread_recursive_lock_init.
8915         * lib/lock.c (glthread_recursive_lock_init)
8916         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
8917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8918
8919 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8920
8921         New function qset_acl, like set_acl but with syscall semantics.
8922         * lib/acl.h (qset_acl): New decl.
8923         * lib/acl.c (qset_acl): New function.
8924         (set_acl): Use new function.  Use more-consistent diagnostics.
8925
8926 2007-11-28  Jim Meyering  <meyering@redhat.com>
8927
8928         * modules/physmem (License): Change from GPL to LGPLv2+.
8929
8930 2007-11-26  Bruno Haible  <bruno@clisp.org>
8931
8932         * lib/vasnprintf.c (decode_long_double): Don't abort if the
8933         'long double' type has excess precision.
8934         Reported by Jim Meyering in
8935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
8936
8937 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8938
8939         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
8940         Sync from <http://gnu.org/licenses>.
8941         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
8942         with license text from same location.
8943         * doc/maintain.texi, doc/standards.texi:  Sync from
8944         <http://savannah.gnu.org/projects/gnustandards>.
8945
8946 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
8947         and Jim Meyering  <meyering@redhat.com>
8948
8949         Adjust getdate' grammar to accept a slightly more regular language.
8950         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
8951         Before, the former was rejected.
8952         * lib/getdate.y (digits_to_date_time): New function, factored
8953         out of ...
8954         (number): ...here.  Just call digits_to_date_time.
8955         (hybrid): New non-terminal to handle an <unsigned number,
8956         signed relative offset> sequence consistently.
8957
8958 2007-11-18  Jim Meyering  <meyering@redhat.com>
8959
8960         Pull my changes from coreutils:
8961         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
8962         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
8963         use of $gnulib_tool_option_extras, so that it's separated from the
8964         preceding argument.
8965
8966         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
8967         * build-aux/bootstrap (cp_mark_as_generated): Create any required
8968         parent destination directories before copying a file into place.
8969
8970 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8971
8972         bootstrap: work also with 4-argument variant of AC_INIT
8973         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
8974
8975 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8976
8977         Port test-getaddrinfo to Solaris.
8978         Problem reported by Bruno Haible in
8979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
8980         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
8981         explanation of setting 'hints'.
8982         Don't reject an implementation merely because it returns EAI_SERVICE.
8983         (EAI_SERVICE): Define to 0 if not defined.
8984
8985 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8986
8987         The license of gnu-make and posix-shell is now "GPLed build tool".
8988         * modules/gnu-make (License): Likewise.
8989         * modules/posix-shell (License): Likewise.
8990
8991         New module posix-shell, for determining a POSIX shell
8992         or perhaps something that is close enough to a POSIX shell.
8993         * m4/posix-shell.m4: New file.
8994         * modules/posix-shell: New file.
8995
8996         * MODULES.html.sh: Mention new module.
8997
8998         New module gnu-make, for determining whether we're using GNU Make.
8999         * m4/gnu-make.m4: New file.
9000         * modules/gnu-make: New file.
9001         * MODULES.html.sh: Mention new module.
9002
9003 2007-11-14  Jim Meyering  <meyering@redhat.com>
9004
9005         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9006         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9007         use this macro to create a function _definition_.
9008         Remove useless "#undef ARGMATCH_DIE".
9009
9010 2007-11-14  Bruno Haible  <bruno@clisp.org>
9011
9012         * lib/config.charset: Update for OpenBSD 4.1.
9013         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9014
9015 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9016
9017         Document 64-bit #if problems in stdint.texi.
9018         * doc/headers/stdint.texi (stdint.h): Mention problems with
9019         64-bit-#if, and how to work around them.
9020
9021         Don't insist on 'long long int' support in the preprocessor.  It
9022         breaks too many things.  For example, PRIdMAX still uses a 'long
9023         long int' format with the latest Sun compiler, even though
9024         HAVE_LONG_LONG_INT isn't defined due to that compiler's
9025         preprocessor problem.  This causes the latest coreutils to dump
9026         core on Solaris 10 sparc with the Sun C compiler.
9027         Instead, fix the 2007-10-16 problem in a different way, by evaluating
9028         the troublesome expressions at configure-time, not at #if-time.
9029         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9030         preprocessor.
9031         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9032         compile-time C checks, done at 'configure'-time.
9033         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9034         * modules/inttypes (Makefile): Substitute the new symbols that
9035         gl_INTTYPES_H now generates.
9036         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9037
9038 2007-11-12  Bruno Haible  <bruno@clisp.org>
9039
9040         Tests for Unicode character classification functions.
9041
9042         * modules/unictype/bidicategory-byname-tests: New file.
9043         * modules/unictype/bidicategory-name-tests: New file.
9044         * modules/unictype/bidicategory-of-tests: New file.
9045         * modules/unictype/bidicategory-test-tests: New file.
9046         * modules/unictype/block-list-tests: New file.
9047         * modules/unictype/block-of-tests: New file.
9048         * modules/unictype/block-test-tests: New file.
9049         * modules/unictype/category-C-tests: New file.
9050         * modules/unictype/category-Cc-tests: New file.
9051         * modules/unictype/category-Cf-tests: New file.
9052         * modules/unictype/category-Cn-tests: New file.
9053         * modules/unictype/category-Co-tests: New file.
9054         * modules/unictype/category-Cs-tests: New file.
9055         * modules/unictype/category-L-tests: New file.
9056         * modules/unictype/category-Ll-tests: New file.
9057         * modules/unictype/category-Lm-tests: New file.
9058         * modules/unictype/category-Lo-tests: New file.
9059         * modules/unictype/category-Lt-tests: New file.
9060         * modules/unictype/category-Lu-tests: New file.
9061         * modules/unictype/category-M-tests: New file.
9062         * modules/unictype/category-Mc-tests: New file.
9063         * modules/unictype/category-Me-tests: New file.
9064         * modules/unictype/category-Mn-tests: New file.
9065         * modules/unictype/category-N-tests: New file.
9066         * modules/unictype/category-Nd-tests: New file.
9067         * modules/unictype/category-Nl-tests: New file.
9068         * modules/unictype/category-No-tests: New file.
9069         * modules/unictype/category-P-tests: New file.
9070         * modules/unictype/category-Pc-tests: New file.
9071         * modules/unictype/category-Pd-tests: New file.
9072         * modules/unictype/category-Pe-tests: New file.
9073         * modules/unictype/category-Pf-tests: New file.
9074         * modules/unictype/category-Pi-tests: New file.
9075         * modules/unictype/category-Po-tests: New file.
9076         * modules/unictype/category-Ps-tests: New file.
9077         * modules/unictype/category-S-tests: New file.
9078         * modules/unictype/category-Sc-tests: New file.
9079         * modules/unictype/category-Sk-tests: New file.
9080         * modules/unictype/category-Sm-tests: New file.
9081         * modules/unictype/category-So-tests: New file.
9082         * modules/unictype/category-Z-tests: New file.
9083         * modules/unictype/category-Zl-tests: New file.
9084         * modules/unictype/category-Zp-tests: New file.
9085         * modules/unictype/category-Zs-tests: New file.
9086         * modules/unictype/category-and-not-tests: New file.
9087         * modules/unictype/category-and-tests: New file.
9088         * modules/unictype/category-byname-tests: New file.
9089         * modules/unictype/category-name-tests: New file.
9090         * modules/unictype/category-none-tests: New file.
9091         * modules/unictype/category-of-tests: New file.
9092         * modules/unictype/category-or-tests: New file.
9093         * modules/unictype/category-test-withtable-tests: New file.
9094         * modules/unictype/combining-class-tests: New file.
9095         * modules/unictype/ctype-alnum-tests: New file.
9096         * modules/unictype/ctype-alpha-tests: New file.
9097         * modules/unictype/ctype-blank-tests: New file.
9098         * modules/unictype/ctype-cntrl-tests: New file.
9099         * modules/unictype/ctype-digit-tests: New file.
9100         * modules/unictype/ctype-graph-tests: New file.
9101         * modules/unictype/ctype-lower-tests: New file.
9102         * modules/unictype/ctype-print-tests: New file.
9103         * modules/unictype/ctype-punct-tests: New file.
9104         * modules/unictype/ctype-space-tests: New file.
9105         * modules/unictype/ctype-upper-tests: New file.
9106         * modules/unictype/ctype-xdigit-tests: New file.
9107         * modules/unictype/decimal-digit-tests: New file.
9108         * modules/unictype/digit-tests: New file.
9109         * modules/unictype/mirror-tests: New file.
9110         * modules/unictype/numeric-tests: New file.
9111         * modules/unictype/property-alphabetic-tests: New file.
9112         * modules/unictype/property-ascii-hex-digit-tests: New file.
9113         * modules/unictype/property-bidi-arabic-digit-tests: New file.
9114         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
9115         * modules/unictype/property-bidi-block-separator-tests: New file.
9116         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
9117         * modules/unictype/property-bidi-common-separator-tests: New file.
9118         * modules/unictype/property-bidi-control-tests: New file.
9119         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
9120         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
9121         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
9122         * modules/unictype/property-bidi-european-digit-tests: New file.
9123         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
9124         * modules/unictype/property-bidi-left-to-right-tests: New file.
9125         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
9126         * modules/unictype/property-bidi-other-neutral-tests: New file.
9127         * modules/unictype/property-bidi-pdf-tests: New file.
9128         * modules/unictype/property-bidi-segment-separator-tests: New file.
9129         * modules/unictype/property-bidi-whitespace-tests: New file.
9130         * modules/unictype/property-byname-tests: New file.
9131         * modules/unictype/property-combining-tests: New file.
9132         * modules/unictype/property-composite-tests: New file.
9133         * modules/unictype/property-currency-symbol-tests: New file.
9134         * modules/unictype/property-dash-tests: New file.
9135         * modules/unictype/property-decimal-digit-tests: New file.
9136         * modules/unictype/property-default-ignorable-code-point-tests: New file.
9137         * modules/unictype/property-deprecated-tests: New file.
9138         * modules/unictype/property-diacritic-tests: New file.
9139         * modules/unictype/property-extender-tests: New file.
9140         * modules/unictype/property-format-control-tests: New file.
9141         * modules/unictype/property-grapheme-base-tests: New file.
9142         * modules/unictype/property-grapheme-extend-tests: New file.
9143         * modules/unictype/property-grapheme-link-tests: New file.
9144         * modules/unictype/property-hex-digit-tests: New file.
9145         * modules/unictype/property-hyphen-tests: New file.
9146         * modules/unictype/property-id-continue-tests: New file.
9147         * modules/unictype/property-id-start-tests: New file.
9148         * modules/unictype/property-ideographic-tests: New file.
9149         * modules/unictype/property-ids-binary-operator-tests: New file.
9150         * modules/unictype/property-ids-trinary-operator-tests: New file.
9151         * modules/unictype/property-ignorable-control-tests: New file.
9152         * modules/unictype/property-iso-control-tests: New file.
9153         * modules/unictype/property-join-control-tests: New file.
9154         * modules/unictype/property-left-of-pair-tests: New file.
9155         * modules/unictype/property-line-separator-tests: New file.
9156         * modules/unictype/property-logical-order-exception-tests: New file.
9157         * modules/unictype/property-lowercase-tests: New file.
9158         * modules/unictype/property-math-tests: New file.
9159         * modules/unictype/property-non-break-tests: New file.
9160         * modules/unictype/property-not-a-character-tests: New file.
9161         * modules/unictype/property-numeric-tests: New file.
9162         * modules/unictype/property-other-alphabetic-tests: New file.
9163         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9164         * modules/unictype/property-other-grapheme-extend-tests: New file.
9165         * modules/unictype/property-other-id-continue-tests: New file.
9166         * modules/unictype/property-other-id-start-tests: New file.
9167         * modules/unictype/property-other-lowercase-tests: New file.
9168         * modules/unictype/property-other-math-tests: New file.
9169         * modules/unictype/property-other-uppercase-tests: New file.
9170         * modules/unictype/property-paired-punctuation-tests: New file.
9171         * modules/unictype/property-paragraph-separator-tests: New file.
9172         * modules/unictype/property-pattern-syntax-tests: New file.
9173         * modules/unictype/property-pattern-white-space-tests: New file.
9174         * modules/unictype/property-private-use-tests: New file.
9175         * modules/unictype/property-punctuation-tests: New file.
9176         * modules/unictype/property-quotation-mark-tests: New file.
9177         * modules/unictype/property-radical-tests: New file.
9178         * modules/unictype/property-sentence-terminal-tests: New file.
9179         * modules/unictype/property-soft-dotted-tests: New file.
9180         * modules/unictype/property-space-tests: New file.
9181         * modules/unictype/property-terminal-punctuation-tests: New file.
9182         * modules/unictype/property-test-tests: New file.
9183         * modules/unictype/property-titlecase-tests: New file.
9184         * modules/unictype/property-unassigned-code-value-tests: New file.
9185         * modules/unictype/property-unified-ideograph-tests: New file.
9186         * modules/unictype/property-uppercase-tests: New file.
9187         * modules/unictype/property-variation-selector-tests: New file.
9188         * modules/unictype/property-white-space-tests: New file.
9189         * modules/unictype/property-xid-continue-tests: New file.
9190         * modules/unictype/property-xid-start-tests: New file.
9191         * modules/unictype/property-zero-width-tests: New file.
9192         * modules/unictype/scripts-tests: New file.
9193         * modules/unictype/syntax-c-ident-tests: New file.
9194         * modules/unictype/syntax-c-whitespace-tests: New file.
9195         * modules/unictype/syntax-java-ident-tests: New file.
9196         * modules/unictype/syntax-java-whitespace-tests: New file.
9197         * tests/unictype/test-bidi_byname.c: New file.
9198         * tests/unictype/test-bidi_name.c: New file.
9199         * tests/unictype/test-bidi_of.c: New file.
9200         * tests/unictype/test-bidi_test.c: New file.
9201         * tests/unictype/test-block_list.c: New file.
9202         * tests/unictype/test-block_of.c: New file.
9203         * tests/unictype/test-block_test.c: New file.
9204         * tests/unictype/test-categ_and.c: New file.
9205         * tests/unictype/test-categ_and_not.c: New file.
9206         * tests/unictype/test-categ_byname.c: New file.
9207         * tests/unictype/test-categ_name.c: New file.
9208         * tests/unictype/test-categ_none.c: New file.
9209         * tests/unictype/test-categ_of.c: New file.
9210         * tests/unictype/test-categ_or.c: New file.
9211         * tests/unictype/test-categ_test_withtable.c: New file.
9212         * tests/unictype/test-combining.c: New file.
9213         * tests/unictype/test-decdigit.c: New file.
9214         * tests/unictype/test-digit.c: New file.
9215         * tests/unictype/test-mirror.c: New file.
9216         * tests/unictype/test-numeric.c: New file.
9217         * tests/unictype/test-pr_byname.c: New file.
9218         * tests/unictype/test-pr_test.c: New file.
9219         * tests/unictype/test-predicate-part1.h: New file.
9220         * tests/unictype/test-predicate-part2.h: New file.
9221         * tests/unictype/test-scripts.c: New file.
9222         * tests/unictype/test-sy_c_ident.c: New file.
9223         * tests/unictype/test-sy_java_ident.c: New file.
9224
9225         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9226         for Unicode 5.0.0.
9227         * tests/unictype/test-categ_Cc.c: Likewise.
9228         * tests/unictype/test-categ_Cf.c: Likewise.
9229         * tests/unictype/test-categ_Cn.c: Likewise.
9230         * tests/unictype/test-categ_Co.c: Likewise.
9231         * tests/unictype/test-categ_Cs.c: Likewise.
9232         * tests/unictype/test-categ_L.c: Likewise.
9233         * tests/unictype/test-categ_Ll.c: Likewise.
9234         * tests/unictype/test-categ_Lm.c: Likewise.
9235         * tests/unictype/test-categ_Lo.c: Likewise.
9236         * tests/unictype/test-categ_Lt.c: Likewise.
9237         * tests/unictype/test-categ_Lu.c: Likewise.
9238         * tests/unictype/test-categ_M.c: Likewise.
9239         * tests/unictype/test-categ_Mc.c: Likewise.
9240         * tests/unictype/test-categ_Me.c: Likewise.
9241         * tests/unictype/test-categ_Mn.c: Likewise.
9242         * tests/unictype/test-categ_N.c: Likewise.
9243         * tests/unictype/test-categ_Nd.c: Likewise.
9244         * tests/unictype/test-categ_Nl.c: Likewise.
9245         * tests/unictype/test-categ_No.c: Likewise.
9246         * tests/unictype/test-categ_P.c: Likewise.
9247         * tests/unictype/test-categ_Pc.c: Likewise.
9248         * tests/unictype/test-categ_Pd.c: Likewise.
9249         * tests/unictype/test-categ_Pe.c: Likewise.
9250         * tests/unictype/test-categ_Pf.c: Likewise.
9251         * tests/unictype/test-categ_Pi.c: Likewise.
9252         * tests/unictype/test-categ_Po.c: Likewise.
9253         * tests/unictype/test-categ_Ps.c: Likewise.
9254         * tests/unictype/test-categ_S.c: Likewise.
9255         * tests/unictype/test-categ_Sc.c: Likewise.
9256         * tests/unictype/test-categ_Sk.c: Likewise.
9257         * tests/unictype/test-categ_Sm.c: Likewise.
9258         * tests/unictype/test-categ_So.c: Likewise.
9259         * tests/unictype/test-categ_Z.c: Likewise.
9260         * tests/unictype/test-categ_Zl.c: Likewise.
9261         * tests/unictype/test-categ_Zp.c: Likewise.
9262         * tests/unictype/test-categ_Zs.c: Likewise.
9263         * tests/unictype/test-ctype_alnum.c: Likewise.
9264         * tests/unictype/test-ctype_alpha.c: Likewise.
9265         * tests/unictype/test-ctype_blank.c: Likewise.
9266         * tests/unictype/test-ctype_cntrl.c: Likewise.
9267         * tests/unictype/test-ctype_digit.c: Likewise.
9268         * tests/unictype/test-ctype_graph.c: Likewise.
9269         * tests/unictype/test-ctype_lower.c: Likewise.
9270         * tests/unictype/test-ctype_print.c: Likewise.
9271         * tests/unictype/test-ctype_punct.c: Likewise.
9272         * tests/unictype/test-ctype_space.c: Likewise.
9273         * tests/unictype/test-ctype_upper.c: Likewise.
9274         * tests/unictype/test-ctype_xdigit.c: Likewise.
9275         * tests/unictype/test-decdigit.h: Likewise.
9276         * tests/unictype/test-digit.h: Likewise.
9277         * tests/unictype/test-numeric.h: Likewise.
9278         * tests/unictype/test-pr_alphabetic.c: Likewise.
9279         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9280         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9281         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9282         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9283         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9284         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9285         * tests/unictype/test-pr_bidi_control.c: Likewise.
9286         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9287         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9288         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9289         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9290         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9291         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9292         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9293         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9294         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9295         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9296         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9297         * tests/unictype/test-pr_combining.c: Likewise.
9298         * tests/unictype/test-pr_composite.c: Likewise.
9299         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9300         * tests/unictype/test-pr_dash.c: Likewise.
9301         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9302         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9303         * tests/unictype/test-pr_deprecated.c: Likewise.
9304         * tests/unictype/test-pr_diacritic.c: Likewise.
9305         * tests/unictype/test-pr_extender.c: Likewise.
9306         * tests/unictype/test-pr_format_control.c: Likewise.
9307         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9308         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9309         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9310         * tests/unictype/test-pr_hex_digit.c: Likewise.
9311         * tests/unictype/test-pr_hyphen.c: Likewise.
9312         * tests/unictype/test-pr_id_continue.c: Likewise.
9313         * tests/unictype/test-pr_id_start.c: Likewise.
9314         * tests/unictype/test-pr_ideographic.c: Likewise.
9315         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9316         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9317         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9318         * tests/unictype/test-pr_iso_control.c: Likewise.
9319         * tests/unictype/test-pr_join_control.c: Likewise.
9320         * tests/unictype/test-pr_left_of_pair.c: Likewise.
9321         * tests/unictype/test-pr_line_separator.c: Likewise.
9322         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9323         * tests/unictype/test-pr_lowercase.c: Likewise.
9324         * tests/unictype/test-pr_math.c: Likewise.
9325         * tests/unictype/test-pr_non_break.c: Likewise.
9326         * tests/unictype/test-pr_not_a_character.c: Likewise.
9327         * tests/unictype/test-pr_numeric.c: Likewise.
9328         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9329         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9330         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9331         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9332         * tests/unictype/test-pr_other_id_start.c: Likewise.
9333         * tests/unictype/test-pr_other_lowercase.c: Likewise.
9334         * tests/unictype/test-pr_other_math.c: Likewise.
9335         * tests/unictype/test-pr_other_uppercase.c: Likewise.
9336         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9337         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9338         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9339         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9340         * tests/unictype/test-pr_private_use.c: Likewise.
9341         * tests/unictype/test-pr_punctuation.c: Likewise.
9342         * tests/unictype/test-pr_quotation_mark.c: Likewise.
9343         * tests/unictype/test-pr_radical.c: Likewise.
9344         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9345         * tests/unictype/test-pr_soft_dotted.c: Likewise.
9346         * tests/unictype/test-pr_space.c: Likewise.
9347         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9348         * tests/unictype/test-pr_titlecase.c: Likewise.
9349         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9350         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9351         * tests/unictype/test-pr_uppercase.c: Likewise.
9352         * tests/unictype/test-pr_variation_selector.c: Likewise.
9353         * tests/unictype/test-pr_white_space.c: Likewise.
9354         * tests/unictype/test-pr_xid_continue.c: Likewise.
9355         * tests/unictype/test-pr_xid_start.c: Likewise.
9356         * tests/unictype/test-pr_zero_width.c: Likewise.
9357         * tests/unictype/test-sy_c_whitespace.c: Likewise.
9358         * tests/unictype/test-sy_java_whitespace.c: Likewise.
9359
9360 2007-11-12  Bruno Haible  <bruno@clisp.org>
9361
9362         Unicode character classification functions.
9363         * lib/unictype.h: New file.
9364         * modules/unictype/base: New file.
9365         * modules/unictype/category-L: New file.
9366         * modules/unictype/category-Lu: New file.
9367         * modules/unictype/category-Ll: New file.
9368         * modules/unictype/category-Lt: New file.
9369         * modules/unictype/category-Lm: New file.
9370         * modules/unictype/category-Lo: New file.
9371         * modules/unictype/category-M: New file.
9372         * modules/unictype/category-Mn: New file.
9373         * modules/unictype/category-Mc: New file.
9374         * modules/unictype/category-Me: New file.
9375         * modules/unictype/category-N: New file.
9376         * modules/unictype/category-Nd: New file.
9377         * modules/unictype/category-Nl: New file.
9378         * modules/unictype/category-No: New file.
9379         * modules/unictype/category-P: New file.
9380         * modules/unictype/category-Pc: New file.
9381         * modules/unictype/category-Pd: New file.
9382         * modules/unictype/category-Ps: New file.
9383         * modules/unictype/category-Pe: New file.
9384         * modules/unictype/category-Pi: New file.
9385         * modules/unictype/category-Pf: New file.
9386         * modules/unictype/category-Po: New file.
9387         * modules/unictype/category-S: New file.
9388         * modules/unictype/category-Sm: New file.
9389         * modules/unictype/category-Sc: New file.
9390         * modules/unictype/category-Sk: New file.
9391         * modules/unictype/category-So: New file.
9392         * modules/unictype/category-Z: New file.
9393         * modules/unictype/category-Zs: New file.
9394         * modules/unictype/category-Zl: New file.
9395         * modules/unictype/category-Zp: New file.
9396         * modules/unictype/category-C: New file.
9397         * modules/unictype/category-Cc: New file.
9398         * modules/unictype/category-Cf: New file.
9399         * modules/unictype/category-Cs: New file.
9400         * modules/unictype/category-Co: New file.
9401         * modules/unictype/category-Cn: New file.
9402         * modules/unictype/category-or: New file.
9403         * modules/unictype/category-of: New file.
9404         * modules/unictype/category-test: New file.
9405         * modules/unictype/category-test-withtable: New file.
9406         * modules/unictype/category-byname: New file.
9407         * modules/unictype/category-none: New file.
9408         * modules/unictype/category-and: New file.
9409         * modules/unictype/category-and-not: New file.
9410         * modules/unictype/category-name: New file.
9411         * modules/unictype/combining-class: New file.
9412         * modules/unictype/category-all: New file.
9413         * modules/unictype/bidicategory-all: New file.
9414         * modules/unictype/bidicategory-byname: New file.
9415         * modules/unictype/bidicategory-name: New file.
9416         * modules/unictype/bidicategory-of: New file.
9417         * modules/unictype/bidicategory-test: New file.
9418         * modules/unictype/decimal-digit: New file.
9419         * modules/unictype/digit: New file.
9420         * modules/unictype/numeric: New file.
9421         * modules/unictype/mirror: New file.
9422         * modules/unictype/property-white-space: New file.
9423         * modules/unictype/property-alphabetic: New file.
9424         * modules/unictype/property-other-alphabetic: New file.
9425         * modules/unictype/property-not-a-character: New file.
9426         * modules/unictype/property-default-ignorable-code-point: New file.
9427         * modules/unictype/property-other-default-ignorable-code-point: New
9428         file.
9429         * modules/unictype/property-deprecated: New file.
9430         * modules/unictype/property-logical-order-exception: New file.
9431         * modules/unictype/property-variation-selector: New file.
9432         * modules/unictype/property-private-use: New file.
9433         * modules/unictype/property-unassigned-code-value: New file.
9434         * modules/unictype/property-uppercase: New file.
9435         * modules/unictype/property-other-uppercase: New file.
9436         * modules/unictype/property-lowercase: New file.
9437         * modules/unictype/property-other-lowercase: New file.
9438         * modules/unictype/property-titlecase: New file.
9439         * modules/unictype/property-soft-dotted: New file.
9440         * modules/unictype/property-id-start: New file.
9441         * modules/unictype/property-other-id-start: New file.
9442         * modules/unictype/property-id-continue: New file.
9443         * modules/unictype/property-other-id-continue: New file.
9444         * modules/unictype/property-xid-start: New file.
9445         * modules/unictype/property-xid-continue: New file.
9446         * modules/unictype/property-pattern-white-space: New file.
9447         * modules/unictype/property-pattern-syntax: New file.
9448         * modules/unictype/property-join-control: New file.
9449         * modules/unictype/property-grapheme-base: New file.
9450         * modules/unictype/property-grapheme-extend: New file.
9451         * modules/unictype/property-other-grapheme-extend: New file.
9452         * modules/unictype/property-grapheme-link: New file.
9453         * modules/unictype/property-bidi-control: New file.
9454         * modules/unictype/property-bidi-left-to-right: New file.
9455         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9456         * modules/unictype/property-bidi-arabic-right-to-left: New file.
9457         * modules/unictype/property-bidi-european-digit: New file.
9458         * modules/unictype/property-bidi-eur-num-separator: New file.
9459         * modules/unictype/property-bidi-eur-num-terminator: New file.
9460         * modules/unictype/property-bidi-arabic-digit: New file.
9461         * modules/unictype/property-bidi-common-separator: New file.
9462         * modules/unictype/property-bidi-block-separator: New file.
9463         * modules/unictype/property-bidi-segment-separator: New file.
9464         * modules/unictype/property-bidi-whitespace: New file.
9465         * modules/unictype/property-bidi-non-spacing-mark: New file.
9466         * modules/unictype/property-bidi-boundary-neutral: New file.
9467         * modules/unictype/property-bidi-pdf: New file.
9468         * modules/unictype/property-bidi-embedding-or-override: New file.
9469         * modules/unictype/property-bidi-other-neutral: New file.
9470         * modules/unictype/property-hex-digit: New file.
9471         * modules/unictype/property-ascii-hex-digit: New file.
9472         * modules/unictype/property-ideographic: New file.
9473         * modules/unictype/property-unified-ideograph: New file.
9474         * modules/unictype/property-radical: New file.
9475         * modules/unictype/property-ids-binary-operator: New file.
9476         * modules/unictype/property-ids-trinary-operator: New file.
9477         * modules/unictype/property-zero-width: New file.
9478         * modules/unictype/property-space: New file.
9479         * modules/unictype/property-non-break: New file.
9480         * modules/unictype/property-iso-control: New file.
9481         * modules/unictype/property-format-control: New file.
9482         * modules/unictype/property-dash: New file.
9483         * modules/unictype/property-hyphen: New file.
9484         * modules/unictype/property-punctuation: New file.
9485         * modules/unictype/property-line-separator: New file.
9486         * modules/unictype/property-paragraph-separator: New file.
9487         * modules/unictype/property-quotation-mark: New file.
9488         * modules/unictype/property-sentence-terminal: New file.
9489         * modules/unictype/property-terminal-punctuation: New file.
9490         * modules/unictype/property-currency-symbol: New file.
9491         * modules/unictype/property-math: New file.
9492         * modules/unictype/property-other-math: New file.
9493         * modules/unictype/property-paired-punctuation: New file.
9494         * modules/unictype/property-left-of-pair: New file.
9495         * modules/unictype/property-combining: New file.
9496         * modules/unictype/property-composite: New file.
9497         * modules/unictype/property-decimal-digit: New file.
9498         * modules/unictype/property-numeric: New file.
9499         * modules/unictype/property-diacritic: New file.
9500         * modules/unictype/property-extender: New file.
9501         * modules/unictype/property-ignorable-control: New file.
9502         * modules/unictype/property-test: New file.
9503         * modules/unictype/property-byname: New file.
9504         * modules/unictype/property-all: New file.
9505         * modules/unictype/scripts: New file.
9506         * modules/unictype/scripts-all: New file.
9507         * modules/unictype/block-of: New file.
9508         * modules/unictype/block-test: New file.
9509         * modules/unictype/block-list: New file.
9510         * modules/unictype/block-all: New file.
9511         * modules/unictype/syntax-c-whitespace: New file.
9512         * modules/unictype/syntax-java-whitespace: New file.
9513         * modules/unictype/syntax-c-ident: New file.
9514         * modules/unictype/syntax-java-ident: New file.
9515         * modules/unictype/ctype-alnum: New file.
9516         * modules/unictype/ctype-alpha: New file.
9517         * modules/unictype/ctype-cntrl: New file.
9518         * modules/unictype/ctype-digit: New file.
9519         * modules/unictype/ctype-graph: New file.
9520         * modules/unictype/ctype-lower: New file.
9521         * modules/unictype/ctype-print: New file.
9522         * modules/unictype/ctype-punct: New file.
9523         * modules/unictype/ctype-space: New file.
9524         * modules/unictype/ctype-upper: New file.
9525         * modules/unictype/ctype-xdigit: New file.
9526         * modules/unictype/ctype-blank: New file.
9527         * lib/unictype/bidi_byname.c: New file.
9528         * lib/unictype/bidi_name.c: New file.
9529         * lib/unictype/bidi_of.c: New file.
9530         * lib/unictype/bidi_test.c: New file.
9531         * lib/unictype/bitmap.h: New file.
9532         * lib/unictype/block_test.c: New file.
9533         * lib/unictype/blocks.c: New file.
9534         * lib/unictype/categ_C.c: New file.
9535         * lib/unictype/categ_Cc.c: New file.
9536         * lib/unictype/categ_Cf.c: New file.
9537         * lib/unictype/categ_Cn.c: New file.
9538         * lib/unictype/categ_Co.c: New file.
9539         * lib/unictype/categ_Cs.c: New file.
9540         * lib/unictype/categ_L.c: New file.
9541         * lib/unictype/categ_Ll.c: New file.
9542         * lib/unictype/categ_Lm.c: New file.
9543         * lib/unictype/categ_Lo.c: New file.
9544         * lib/unictype/categ_Lt.c: New file.
9545         * lib/unictype/categ_Lu.c: New file.
9546         * lib/unictype/categ_M.c: New file.
9547         * lib/unictype/categ_Mc.c: New file.
9548         * lib/unictype/categ_Me.c: New file.
9549         * lib/unictype/categ_Mn.c: New file.
9550         * lib/unictype/categ_N.c: New file.
9551         * lib/unictype/categ_Nd.c: New file.
9552         * lib/unictype/categ_Nl.c: New file.
9553         * lib/unictype/categ_No.c: New file.
9554         * lib/unictype/categ_P.c: New file.
9555         * lib/unictype/categ_Pc.c: New file.
9556         * lib/unictype/categ_Pd.c: New file.
9557         * lib/unictype/categ_Pe.c: New file.
9558         * lib/unictype/categ_Pf.c: New file.
9559         * lib/unictype/categ_Pi.c: New file.
9560         * lib/unictype/categ_Po.c: New file.
9561         * lib/unictype/categ_Ps.c: New file.
9562         * lib/unictype/categ_S.c: New file.
9563         * lib/unictype/categ_Sc.c: New file.
9564         * lib/unictype/categ_Sk.c: New file.
9565         * lib/unictype/categ_Sm.c: New file.
9566         * lib/unictype/categ_So.c: New file.
9567         * lib/unictype/categ_Z.c: New file.
9568         * lib/unictype/categ_Zl.c: New file.
9569         * lib/unictype/categ_Zp.c: New file.
9570         * lib/unictype/categ_Zs.c: New file.
9571         * lib/unictype/categ_and.c: New file.
9572         * lib/unictype/categ_and_not.c: New file.
9573         * lib/unictype/categ_byname.c: New file.
9574         * lib/unictype/categ_name.c: New file.
9575         * lib/unictype/categ_none.c: New file.
9576         * lib/unictype/categ_of.c: New file.
9577         * lib/unictype/categ_or.c: New file.
9578         * lib/unictype/categ_test.c: New file.
9579         * lib/unictype/combining.c: New file.
9580         * lib/unictype/ctype_alnum.c: New file.
9581         * lib/unictype/ctype_alpha.c: New file.
9582         * lib/unictype/ctype_blank.c: New file.
9583         * lib/unictype/ctype_cntrl.c: New file.
9584         * lib/unictype/ctype_digit.c: New file.
9585         * lib/unictype/ctype_graph.c: New file.
9586         * lib/unictype/ctype_lower.c: New file.
9587         * lib/unictype/ctype_print.c: New file.
9588         * lib/unictype/ctype_punct.c: New file.
9589         * lib/unictype/ctype_space.c: New file.
9590         * lib/unictype/ctype_upper.c: New file.
9591         * lib/unictype/ctype_xdigit.c: New file.
9592         * lib/unictype/decdigit.c: New file.
9593         * lib/unictype/digit.c: New file.
9594         * lib/unictype/identsyntaxmap.h: New file.
9595         * lib/unictype/mirror.c: New file.
9596         * lib/unictype/numeric.c: New file.
9597         * lib/unictype/pr_alphabetic.c: New file.
9598         * lib/unictype/pr_ascii_hex_digit.c: New file.
9599         * lib/unictype/pr_bidi_arabic_digit.c: New file.
9600         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9601         * lib/unictype/pr_bidi_block_separator.c: New file.
9602         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9603         * lib/unictype/pr_bidi_common_separator.c: New file.
9604         * lib/unictype/pr_bidi_control.c: New file.
9605         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9606         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9607         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9608         * lib/unictype/pr_bidi_european_digit.c: New file.
9609         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9610         * lib/unictype/pr_bidi_left_to_right.c: New file.
9611         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9612         * lib/unictype/pr_bidi_other_neutral.c: New file.
9613         * lib/unictype/pr_bidi_pdf.c: New file.
9614         * lib/unictype/pr_bidi_segment_separator.c: New file.
9615         * lib/unictype/pr_bidi_whitespace.c: New file.
9616         * lib/unictype/pr_byname.c: New file.
9617         * lib/unictype/pr_byname.gperf: New file.
9618         * lib/unictype/pr_combining.c: New file.
9619         * lib/unictype/pr_composite.c: New file.
9620         * lib/unictype/pr_currency_symbol.c: New file.
9621         * lib/unictype/pr_dash.c: New file.
9622         * lib/unictype/pr_decimal_digit.c: New file.
9623         * lib/unictype/pr_default_ignorable_code_point.c: New file.
9624         * lib/unictype/pr_deprecated.c: New file.
9625         * lib/unictype/pr_diacritic.c: New file.
9626         * lib/unictype/pr_extender.c: New file.
9627         * lib/unictype/pr_format_control.c: New file.
9628         * lib/unictype/pr_grapheme_base.c: New file.
9629         * lib/unictype/pr_grapheme_extend.c: New file.
9630         * lib/unictype/pr_grapheme_link.c: New file.
9631         * lib/unictype/pr_hex_digit.c: New file.
9632         * lib/unictype/pr_hyphen.c: New file.
9633         * lib/unictype/pr_id_continue.c: New file.
9634         * lib/unictype/pr_id_start.c: New file.
9635         * lib/unictype/pr_ideographic.c: New file.
9636         * lib/unictype/pr_ids_binary_operator.c: New file.
9637         * lib/unictype/pr_ids_trinary_operator.c: New file.
9638         * lib/unictype/pr_ignorable_control.c: New file.
9639         * lib/unictype/pr_iso_control.c: New file.
9640         * lib/unictype/pr_join_control.c: New file.
9641         * lib/unictype/pr_left_of_pair.c: New file.
9642         * lib/unictype/pr_line_separator.c: New file.
9643         * lib/unictype/pr_logical_order_exception.c: New file.
9644         * lib/unictype/pr_lowercase.c: New file.
9645         * lib/unictype/pr_math.c: New file.
9646         * lib/unictype/pr_non_break.c: New file.
9647         * lib/unictype/pr_not_a_character.c: New file.
9648         * lib/unictype/pr_numeric.c: New file.
9649         * lib/unictype/pr_other_alphabetic.c: New file.
9650         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9651         * lib/unictype/pr_other_grapheme_extend.c: New file.
9652         * lib/unictype/pr_other_id_continue.c: New file.
9653         * lib/unictype/pr_other_id_start.c: New file.
9654         * lib/unictype/pr_other_lowercase.c: New file.
9655         * lib/unictype/pr_other_math.c: New file.
9656         * lib/unictype/pr_other_uppercase.c: New file.
9657         * lib/unictype/pr_paired_punctuation.c: New file.
9658         * lib/unictype/pr_paragraph_separator.c: New file.
9659         * lib/unictype/pr_pattern_syntax.c: New file.
9660         * lib/unictype/pr_pattern_white_space.c: New file.
9661         * lib/unictype/pr_private_use.c: New file.
9662         * lib/unictype/pr_punctuation.c: New file.
9663         * lib/unictype/pr_quotation_mark.c: New file.
9664         * lib/unictype/pr_radical.c: New file.
9665         * lib/unictype/pr_sentence_terminal.c: New file.
9666         * lib/unictype/pr_soft_dotted.c: New file.
9667         * lib/unictype/pr_space.c: New file.
9668         * lib/unictype/pr_terminal_punctuation.c: New file.
9669         * lib/unictype/pr_test.c: New file.
9670         * lib/unictype/pr_titlecase.c: New file.
9671         * lib/unictype/pr_unassigned_code_value.c: New file.
9672         * lib/unictype/pr_unified_ideograph.c: New file.
9673         * lib/unictype/pr_uppercase.c: New file.
9674         * lib/unictype/pr_variation_selector.c: New file.
9675         * lib/unictype/pr_white_space.c: New file.
9676         * lib/unictype/pr_xid_continue.c: New file.
9677         * lib/unictype/pr_xid_start.c: New file.
9678         * lib/unictype/pr_zero_width.c: New file.
9679         * lib/unictype/scripts.c: New file.
9680         * lib/unictype/sy_c_ident.c: New file.
9681         * lib/unictype/sy_c_whitespace.c: New file.
9682         * lib/unictype/sy_java_ident.c: New file.
9683         * lib/unictype/sy_java_whitespace.c: New file.
9684
9685         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9686         Unicode 5.0.0.
9687         * lib/unictype/blocks.h: Likewise.
9688         * lib/unictype/categ_C.h: Likewise.
9689         * lib/unictype/categ_Cc.h: Likewise.
9690         * lib/unictype/categ_Cf.h: Likewise.
9691         * lib/unictype/categ_Cn.h: Likewise.
9692         * lib/unictype/categ_Co.h: Likewise.
9693         * lib/unictype/categ_Cs.h: Likewise.
9694         * lib/unictype/categ_L.h: Likewise.
9695         * lib/unictype/categ_Ll.h: Likewise.
9696         * lib/unictype/categ_Lm.h: Likewise.
9697         * lib/unictype/categ_Lo.h: Likewise.
9698         * lib/unictype/categ_Lt.h: Likewise.
9699         * lib/unictype/categ_Lu.h: Likewise.
9700         * lib/unictype/categ_M.h: Likewise.
9701         * lib/unictype/categ_Mc.h: Likewise.
9702         * lib/unictype/categ_Me.h: Likewise.
9703         * lib/unictype/categ_Mn.h: Likewise.
9704         * lib/unictype/categ_N.h: Likewise.
9705         * lib/unictype/categ_Nd.h: Likewise.
9706         * lib/unictype/categ_Nl.h: Likewise.
9707         * lib/unictype/categ_No.h: Likewise.
9708         * lib/unictype/categ_P.h: Likewise.
9709         * lib/unictype/categ_Pc.h: Likewise.
9710         * lib/unictype/categ_Pd.h: Likewise.
9711         * lib/unictype/categ_Pe.h: Likewise.
9712         * lib/unictype/categ_Pf.h: Likewise.
9713         * lib/unictype/categ_Pi.h: Likewise.
9714         * lib/unictype/categ_Po.h: Likewise.
9715         * lib/unictype/categ_Ps.h: Likewise.
9716         * lib/unictype/categ_S.h: Likewise.
9717         * lib/unictype/categ_Sc.h: Likewise.
9718         * lib/unictype/categ_Sk.h: Likewise.
9719         * lib/unictype/categ_Sm.h: Likewise.
9720         * lib/unictype/categ_So.h: Likewise.
9721         * lib/unictype/categ_Z.h: Likewise.
9722         * lib/unictype/categ_Zl.h: Likewise.
9723         * lib/unictype/categ_Zp.h: Likewise.
9724         * lib/unictype/categ_Zs.h: Likewise.
9725         * lib/unictype/categ_of.h: Likewise.
9726         * lib/unictype/combining.h: Likewise.
9727         * lib/unictype/ctype_alnum.h: Likewise.
9728         * lib/unictype/ctype_alpha.h: Likewise.
9729         * lib/unictype/ctype_blank.h: Likewise.
9730         * lib/unictype/ctype_cntrl.h: Likewise.
9731         * lib/unictype/ctype_digit.h: Likewise.
9732         * lib/unictype/ctype_graph.h: Likewise.
9733         * lib/unictype/ctype_lower.h: Likewise.
9734         * lib/unictype/ctype_print.h: Likewise.
9735         * lib/unictype/ctype_punct.h: Likewise.
9736         * lib/unictype/ctype_space.h: Likewise.
9737         * lib/unictype/ctype_upper.h: Likewise.
9738         * lib/unictype/ctype_xdigit.h: Likewise.
9739         * lib/unictype/decdigit.h: Likewise.
9740         * lib/unictype/digit.h: Likewise.
9741         * lib/unictype/mirror.h: Likewise.
9742         * lib/unictype/numeric.h: Likewise.
9743         * lib/unictype/pr_alphabetic.h: Likewise.
9744         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9745         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9746         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9747         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9748         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9749         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9750         * lib/unictype/pr_bidi_control.h: Likewise.
9751         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9752         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9753         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9754         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9755         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9756         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9757         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9758         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9759         * lib/unictype/pr_bidi_pdf.h: Likewise.
9760         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9761         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9762         * lib/unictype/pr_combining.h: Likewise.
9763         * lib/unictype/pr_composite.h: Likewise.
9764         * lib/unictype/pr_currency_symbol.h: Likewise.
9765         * lib/unictype/pr_dash.h: Likewise.
9766         * lib/unictype/pr_decimal_digit.h: Likewise.
9767         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9768         * lib/unictype/pr_deprecated.h: Likewise.
9769         * lib/unictype/pr_diacritic.h: Likewise.
9770         * lib/unictype/pr_extender.h: Likewise.
9771         * lib/unictype/pr_format_control.h: Likewise.
9772         * lib/unictype/pr_grapheme_base.h: Likewise.
9773         * lib/unictype/pr_grapheme_extend.h: Likewise.
9774         * lib/unictype/pr_grapheme_link.h: Likewise.
9775         * lib/unictype/pr_hex_digit.h: Likewise.
9776         * lib/unictype/pr_hyphen.h: Likewise.
9777         * lib/unictype/pr_id_continue.h: Likewise.
9778         * lib/unictype/pr_id_start.h: Likewise.
9779         * lib/unictype/pr_ideographic.h: Likewise.
9780         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9781         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9782         * lib/unictype/pr_ignorable_control.h: Likewise.
9783         * lib/unictype/pr_iso_control.h: Likewise.
9784         * lib/unictype/pr_join_control.h: Likewise.
9785         * lib/unictype/pr_left_of_pair.h: Likewise.
9786         * lib/unictype/pr_line_separator.h: Likewise.
9787         * lib/unictype/pr_logical_order_exception.h: Likewise.
9788         * lib/unictype/pr_lowercase.h: Likewise.
9789         * lib/unictype/pr_math.h: Likewise.
9790         * lib/unictype/pr_non_break.h: Likewise.
9791         * lib/unictype/pr_not_a_character.h: Likewise.
9792         * lib/unictype/pr_numeric.h: Likewise.
9793         * lib/unictype/pr_other_alphabetic.h: Likewise.
9794         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9795         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9796         * lib/unictype/pr_other_id_continue.h: Likewise.
9797         * lib/unictype/pr_other_id_start.h: Likewise.
9798         * lib/unictype/pr_other_lowercase.h: Likewise.
9799         * lib/unictype/pr_other_math.h: Likewise.
9800         * lib/unictype/pr_other_uppercase.h: Likewise.
9801         * lib/unictype/pr_paired_punctuation.h: Likewise.
9802         * lib/unictype/pr_paragraph_separator.h: Likewise.
9803         * lib/unictype/pr_pattern_syntax.h: Likewise.
9804         * lib/unictype/pr_pattern_white_space.h: Likewise.
9805         * lib/unictype/pr_private_use.h: Likewise.
9806         * lib/unictype/pr_punctuation.h: Likewise.
9807         * lib/unictype/pr_quotation_mark.h: Likewise.
9808         * lib/unictype/pr_radical.h: Likewise.
9809         * lib/unictype/pr_sentence_terminal.h: Likewise.
9810         * lib/unictype/pr_soft_dotted.h: Likewise.
9811         * lib/unictype/pr_space.h: Likewise.
9812         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9813         * lib/unictype/pr_titlecase.h: Likewise.
9814         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9815         * lib/unictype/pr_unified_ideograph.h: Likewise.
9816         * lib/unictype/pr_uppercase.h: Likewise.
9817         * lib/unictype/pr_variation_selector.h: Likewise.
9818         * lib/unictype/pr_white_space.h: Likewise.
9819         * lib/unictype/pr_xid_continue.h: Likewise.
9820         * lib/unictype/pr_xid_start.h: Likewise.
9821         * lib/unictype/pr_zero_width.h: Likewise.
9822         * lib/unictype/scripts.h: Likewise.
9823         * lib/unictype/scripts_byname.gperf: Likewise.
9824         * lib/unictype/sy_c_ident.h: Likewise.
9825         * lib/unictype/sy_c_whitespace.h: Likewise.
9826         * lib/unictype/sy_java_ident.h: Likewise.
9827         * lib/unictype/sy_java_whitespace.h: Likewise.
9828
9829         * lib/unictype/Makefile: New file.
9830         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9831         glibc.
9832         * lib/unictype/3level.h: New file, copied from glibc.
9833         * lib/unictype/3levelbit.h: New file.
9834
9835 2007-11-11  Bruno Haible  <bruno@clisp.org>
9836
9837         * modules/gperf: New file.
9838         * modules/iconv_open (Depends-on): Add it.
9839         (Makefile.am): Remove the GPERF definition.
9840
9841 2007-11-11  Bruno Haible  <bruno@clisp.org>
9842
9843         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9844         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9845
9846 2007-11-11  Bruno Haible  <bruno@clisp.org>
9847
9848         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9849         (usage): Remove function.
9850
9851 2007-11-11  Bruno Haible  <bruno@clisp.org>
9852
9853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9854         gl_FUNC_CEILF_LIBS.
9855         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9856         gl_FUNC_CEIL_LIBS.
9857         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9858         gl_FUNC_CEILL_LIBS.
9859         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9860         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9861         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
9862
9863 2007-11-11  Bruno Haible  <bruno@clisp.org>
9864
9865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
9866         roundf were declared but do not exist on functions.
9867         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
9868         roundl were declared but do not exist on functions.
9869         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
9870         HAVE_FLOORL_AND_CEILL, respectively.
9871         Needed for Sun C on Solaris 10.
9872
9873 2007-11-11  Bruno Haible  <bruno@clisp.org>
9874
9875         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
9876         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
9877         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
9878         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
9879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
9880         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
9881         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
9882         HAVE_DECL_ROUNDF.
9883         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
9884         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
9885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
9886         of HAVE_DECL_ROUND*.
9887         * modules/math (Makefile.am): Update.
9888
9889 2007-11-10  Bruno Haible  <bruno@clisp.org>
9890
9891         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
9892         ptrdiff_t as m4/intl.m4.
9893
9894 2007-11-10  Jim Meyering  <meyering@redhat.com>
9895
9896         Avoid link failure for the argmatch test.
9897         * tests/test-argmatch.c (usage): Define function to avoid a link
9898         failure: argmatch_die requires a usage function.
9899
9900 2007-11-09  Bruno Haible  <bruno@clisp.org>
9901
9902         * doc/functions/snprintf.texi: Mention BeOS deficiency.
9903         * doc/functions/vsnprintf.texi: Likewise.
9904         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
9905         with a size argument < 2.
9906
9907 2007-11-09  Bruno Haible  <bruno@clisp.org>
9908
9909         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
9910         buffer. Fixes an inefficiency introduced on 2007-11-03.
9911
9912 2007-11-09  Bruno Haible  <bruno@clisp.org>
9913
9914         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
9915         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
9916
9917 2007-11-08  Jim Meyering  <meyering@redhat.com>
9918
9919         Change cache variable name prefix "jm_" to "gl_" everywhere.
9920         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
9921         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
9922         * m4/uptime.m4: s/gl_/jm_/
9923
9924 2007-11-07  Bruno Haible  <bruno@clisp.org>
9925
9926         Update to GNU gettext 0.17.
9927         * m4/intl.m4: Update to GNU gettext 0.17.
9928         * m4/po.m4: Likewise.
9929         * modules/gettext (Files): Remove m4/ulonglong.m4.
9930         (configure.ac): Require gettext infrastructure from version 0.17.
9931
9932 2007-11-06  Bruno Haible  <bruno@clisp.org>
9933
9934         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
9935         symbolic values are not defined in a public header.
9936         * lib/freadable.c (freadable) [QNX]: Likewise.
9937         * lib/freadahead.c (freadahead) [QNX]: Likewise.
9938         * lib/freading.c (freading) [QNX]: Likewise.
9939         * lib/fseterr.c (fseterr) [QNX]: Likewise.
9940         * lib/fwritable.c (fwritable) [QNX]: Likewise.
9941         * lib/fwriting.c (fwriting) [QNX]: Likewise.
9942         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
9943         Reported by Alain Magloire.
9944
9945         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
9946
9947 2007-11-05  Bruno Haible  <bruno@clisp.org>
9948
9949         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
9950         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
9951         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
9952         Reported by Eric Blake.
9953
9954 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9955             Bruno Haible  <bruno@clisp.org>
9956
9957         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
9958         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
9959         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
9960         (malloc): Undefine also before including <stdlib.h>.
9961         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
9962         Needed on OSF/1 4.0.
9963
9964 2007-11-05  Jim Meyering  <meyering@redhat.com>
9965
9966         git-version-gen: sync from coreutils.
9967         * build-aux/git-version-gen: Add comments.
9968         Change the first '-' to '.' in the snapshot version string,
9969         e.g., 6.9-377-08144 -> 6.9.377-08144
9970         Remove first parameter.
9971         Don't declare a version "-dirty" merely because a time
9972         stamp has changed.
9973
9974 2007-11-04  Bruno Haible  <bruno@clisp.org>
9975
9976         * lib/lock.h: Protect all macro definitions containing an 'if'
9977         statement through a "do { ... } while (0)".
9978         * lib/tls.h: Likewise.
9979
9980 2007-11-04  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
9983
9984 2007-11-04  Bruno Haible  <bruno@clisp.org>
9985
9986         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
9987         * modules/fprintf-posix (Depends-on): Add nocrash.
9988         * modules/snprintf-posix (Depends-on): Likewise.
9989         * modules/sprintf-posix (Depends-on): Likewise.
9990         * modules/vasnprintf-posix (Depends-on): Likewise.
9991         * modules/vasprintf-posix (Depends-on): Likewise.
9992         * modules/vfprintf-posix (Depends-on): Likewise.
9993         * modules/vsnprintf-posix (Depends-on): Likewise.
9994         * modules/vsprintf-posix (Depends-on): Likewise.
9995         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9996         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9997         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9998         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9999         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10000         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10001         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10002
10003 2007-11-04  Bruno Haible  <bruno@clisp.org>
10004
10005         * modules/nocrash: New file.
10006         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10007         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10008
10009 2007-11-04  Bruno Haible  <bruno@clisp.org>
10010
10011         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10012         precision handling.
10013         * tests/test-vasprintf-posix.c (test_function): Likewise.
10014         * tests/test-snprintf-posix.h (test_function): Likewise.
10015         * tests/test-sprintf-posix.h (test_function): Likewise.
10016
10017         Fix *printf behaviour for large precisions on mingw and BeOS.
10018         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10019         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10021         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10023         gl_PRINTF_PRECISION and test its result. Invoke
10024         gl_PREREQ_VASNPRINTF_PRECISION.
10025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10032         * doc/functions/fprintf.texi: Update.
10033         * doc/functions/printf.texi: Update.
10034         * doc/functions/snprintf.texi: Update.
10035         * doc/functions/sprintf.texi: Update.
10036         * doc/functions/vfprintf.texi: Update.
10037         * doc/functions/vprintf.texi: Update.
10038         * doc/functions/vsnprintf.texi: Update.
10039         * doc/functions/vsprintf.texi: Update.
10040
10041 2007-11-04  Bruno Haible  <bruno@clisp.org>
10042
10043         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10044
10045 2007-11-04  Bruno Haible  <bruno@clisp.org>
10046
10047         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10048         Reported by Sylvain Beucler <beuc@gnu.org>.
10049
10050 2007-11-03  Bruno Haible  <bruno@clisp.org>
10051
10052         * tests/test-fprintf-posix2.sh: New file.
10053         * tests/test-fprintf-posix2.c: New file.
10054         * modules/fprintf-posix-tests (Files): Add them.
10055         (TESTS): Add test-fprintf-posix2.sh.
10056         (configure.ac): Check for getrlimit and setrlimit.
10057         (check_PROGRAMS): Add test-fprintf-posix2.
10058
10059         * tests/test-printf-posix2.sh: New file.
10060         * tests/test-printf-posix2.c: New file.
10061         * modules/printf-posix-tests (Files): Add them.
10062         (TESTS): Add test-printf-posix2.sh.
10063         (configure.ac): Check for getrlimit and setrlimit.
10064         (check_PROGRAMS): Add test-printf-posix2.
10065
10066         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
10067         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
10068         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
10069         (decode_double): New function, copied from decode_long_double.
10070         (scale10_round_decimal_decoded): New function, extracted from
10071         scale10_round_decimal_long_double.
10072         (scale10_round_decimal_long_double): Use it.
10073         (scale10_round_decimal_double): New function.
10074         (floorlog10): New function.
10075         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
10076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
10077         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10078         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10079         gl_PRINTF_ENOMEM and test its result. Invoke
10080         gl_PREREQ_VASNPRINTF_ENOMEM.
10081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10082         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10088         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
10089         * modules/snprintf-posix (Depends-on): Likewise.
10090         * modules/sprintf-posix (Depends-on): Likewise.
10091         * modules/vasnprintf-posix (Depends-on): Likewise.
10092         * modules/vasprintf-posix (Depends-on): Likewise.
10093         * modules/vfprintf-posix (Depends-on): Likewise.
10094         * modules/vsnprintf-posix (Depends-on): Likewise.
10095         * modules/vsprintf-posix (Depends-on): Likewise.
10096         * doc/functions/fprintf.texi: Update.
10097         * doc/functions/printf.texi: Update.
10098         * doc/functions/snprintf.texi: Update.
10099         * doc/functions/sprintf.texi: Update.
10100         * doc/functions/vfprintf.texi: Update.
10101         * doc/functions/vprintf.texi: Update.
10102         * doc/functions/vsnprintf.texi: Update.
10103         * doc/functions/vsprintf.texi: Update.
10104
10105 2007-11-03  Bruno Haible  <bruno@clisp.org>
10106
10107         * modules/frexp-nolibm-tests: New file.
10108
10109         * modules/frexp-nolibm: New file.
10110         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
10111
10112 2007-11-03  Bruno Haible  <bruno@clisp.org>
10113
10114         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
10115         value is C99 compliant.
10116         Needed for OSF/1 5.1.
10117
10118 2007-11-03  Bruno Haible  <bruno@clisp.org>
10119
10120         Fix out-of-memory handling of vasnprintf.
10121         * lib/printf-parse.c: Include <errno.h>.
10122         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
10123         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
10124         is already set.
10125
10126 2007-11-02  Eric Blake  <ebb9@byu.net>
10127
10128         Fix tests on cygwin.
10129         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
10130
10131 2007-11-01  Bruno Haible  <bruno@clisp.org>
10132
10133         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
10134         warning.
10135         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
10136         needed for POSIX compatibility.
10137
10138 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10139
10140         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10141         for compatibility with GNU.
10142
10143 2007-11-01  Bruno Haible  <bruno@clisp.org>
10144
10145         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10146         (putenv): Renamed from rpl_putenv. Change argument type from
10147         'const char *' to 'char *'.
10148         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10149         of defining putenv in config.h, just set REPLACE_PUTENV.
10150         * modules/putenv (Depends-on): Add stdlib.
10151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10152         (Include): Use <stdlib.h>.
10153         * lib/stdlib.in.h (putenv): New declaration.
10154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10155         REPLACE_PUTENV.
10156         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10157         REPLACE_PUTENV.
10158         Needed for MacOS X 10.5.0.
10159         Reported by Peter O'Gorman <peter@pogma.com>.
10160
10161 2007-11-01  Jim Meyering  <meyering@redhat.com>
10162
10163         Treat an empty date string exactly like "0".
10164         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10165         if the remaining date string (to be parsed) is empty, use "0".
10166         Reported by Mischa Molhoek and discussed in this thread:
10167         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10168
10169 2007-10-31  Bruno Haible  <bruno@clisp.org>
10170
10171         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10172         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10173         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10174         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10175         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10176         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10177
10178 2007-10-31  Bruno Haible  <bruno@clisp.org>
10179
10180         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10181         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10182         (AC_TYPE_LONG_LONG_INT): Use it.
10183         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10184         it as well.
10185         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10186         to m4/longlong.m4.
10187         * modules/stdint (Files): Remove m4/ulonglong.m4.
10188         * modules/strtoull (Files): Use m4/longlong.m4 instead of
10189         m4/ulonglong.m4.
10190         * modules/strtoumax (Files): Likewise.
10191
10192 2007-10-30  Bruno Haible  <bruno@clisp.org>
10193
10194         * modules/xvasprintf-posix: New file.
10195         Suggested by Eric Blake.
10196
10197 2007-10-30  Bruno Haible  <bruno@clisp.org>
10198
10199         * modules/xprintf-posix-tests: New file.
10200         * tests/test-xprintf-posix.sh: New file.
10201         * tests/test-xprintf-posix.c: New file.
10202         * tests/test-xfprintf-posix.c: New file.
10203
10204         * modules/xprintf-posix: New file.
10205
10206 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10207
10208         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10209         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10210         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10211
10212 2007-10-29  Bruno Haible  <bruno@clisp.org>
10213
10214         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10215         contain the special marker '_cv_'.
10216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10217         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10218         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10219         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10220         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10221         Reported by Ralf Wildenhues.
10222
10223 2007-10-29  Bruno Haible  <bruno@clisp.org>
10224
10225         * gnulib-tool (func_import): When --lgpl is not specified, set
10226         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10227         GPLv3.
10228         Reported by Simon Josefsson.
10229
10230 2007-10-28  Bruno Haible  <bruno@clisp.org>
10231
10232         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10233         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10234         HAVE_DECL_ISFINITE.
10235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10236         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10237         HAVE_DECL_ISFINITE.
10238
10239 2007-10-28  Bruno Haible  <bruno@clisp.org>
10240
10241         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10242         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10243
10244 2007-10-28  Bruno Haible  <bruno@clisp.org>
10245
10246         Fix link errors with Sun C 5.0 on Solaris 10.
10247         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10248         function is declared but not present in the compiler's libm.
10249         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10250         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10251         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10252         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10253         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10254         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10255         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10257         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10258         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10259         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10260         HAVE_DECL_FLOORL.
10261
10262 2007-10-28  Bruno Haible  <bruno@clisp.org>
10263
10264         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10265         gl_FUNC_FLOORL. Cache the result.
10266         (gl_FUNC_FLOORL): Use it.
10267         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10268         gl_FUNC_CEILL. Cache the result.
10269         (gl_FUNC_CEILL): Use it.
10270
10271         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10272         gl_FUNC_FLOOR. Cache the result.
10273         (gl_FUNC_FLOOR): Use it.
10274         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10275         gl_FUNC_CEIL. Cache the result.
10276         (gl_FUNC_CEIL): Use it.
10277
10278         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10279         gl_FUNC_FLOORF. Cache the result.
10280         (gl_FUNC_FLOORF): Use it.
10281         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10282         gl_FUNC_CEILF. Cache the result.
10283         (gl_FUNC_CEILF): Use it.
10284
10285 2007-10-28  Bruno Haible  <bruno@clisp.org>
10286
10287         * gnulib-tool: Allow specifying the LGPL version number through
10288         --lgpl=2 or --lgpl=3.
10289         (func_usage): Document --lgpl with argument.
10290         Handle --lgpl=... arguments.
10291         (func_import): Recognize also gl_LGPL calls with an argument. When
10292         --lgpl=2 is used and the module's license is just LGPL, report an
10293         error. Set sed_transform_lib_file according to the lgpl variable. In
10294         the generated files, use --lgpl or gl_LGPL invocations with argument,
10295         if necessary.
10296         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10297         an LGPv2+ license.
10298         * doc/gnulib-tool.texi (Modified imports): Update explanation of
10299         gl_LGPL macro.
10300
10301 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10302             Bruno Haible  <bruno@clisp.org>
10303
10304         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10305         (u16_uctomb_aux): Likewise.
10306         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10307         !HAVE_INLINE.
10308         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10309
10310 2007-10-28  Bruno Haible  <bruno@clisp.org>
10311
10312         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10313         Invoke AM_GETTEXT_OPTION if it exists.
10314         * modules/vasprintf: Likewise.
10315         * modules/verror: Likewise.
10316         * modules/xprintf: Likewise.
10317         * modules/xvasprintf: Likewise.
10318
10319 2007-10-27  Ben Pfaff  <blp@gnu.org>
10320
10321         * lib/math.in.h: Define isfinite macro and prototypes for
10322         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10323         implementations.
10324         * m4/math_h.m4: New substitutions for isfinite module.
10325         * lib/isfinite.c: New file.
10326         * m4/isfinite.m4: New file.
10327         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10328         * modules/isfinite: New file.
10329         * modules/isfinite-tests: New file.
10330         * tests/tests-isfinite.c: New file.
10331         * doc/functions/isfinite.texi: Mention isfinite module.
10332         * MODULES.html.sh: Mention new module.
10333
10334 2007-10-27  Ben Pfaff  <blp@gnu.org>
10335
10336         Ralf Wildenhues reported that Tru64 4.0D declares the round
10337         functions but does not have definitions.
10338         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10339         cannot be found in any library, set the output variable to
10340         "missing" instead of "".
10341         * m4/round.m4: Also use our substitute if we cannot find round in
10342         any library, even if it is declared.
10343         * m4/roundf.m4: Likewise for roundf.
10344         * m4/roundl.m4: Likewise for roundl.
10345         * lib/math.in.h: Undefine roundf, round, roundl before defining
10346         their replacements, to allow for hypothetical systems where these
10347         may be defined as macros but not available in libraries.
10348
10349 2007-10-27  Bruno Haible  <bruno@clisp.org>
10350
10351         * doc/gnulib.texi: Invoke @firstparagraphindent.
10352         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10353         changes in gnulib.
10354         (Source changes): New section.
10355
10356 2007-10-26  Bruno Haible  <bruno@clisp.org>
10357
10358         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10359         borrowed from autoconf.
10360
10361 2007-10-26  Bruno Haible  <bruno@clisp.org>
10362
10363         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10364         strerror returned the empty string. Needed on HP-UX 11.00.
10365
10366 2007-10-24  Micah Cowan  <micah@cowan.name>
10367
10368         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
10369         * build-aux/bootstrap: Remove support for now-unnecessary option,
10370         --cvs-user, and envvars CVS_USER, CVS_RSH.
10371
10372 2007-10-24  Jim Meyering  <meyering@redhat.com>
10373
10374         Avoid diagnostics from sha1sum when there is no cached checksum.
10375         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10376         if the po.s1 file hasn't been created yet.
10377
10378         * build-aux/bootstrap: Sync from coreutils:
10379         2007-10-24  Jim Meyering  <meyering@redhat.com>
10380         Get gnulib from the git repository, not from an obsolete cvs one.
10381         * build-aux/bootstrap: Suggestion from Micah Cowan.
10382         2007-10-04  Jim Meyering  <jim@meyering.net>
10383         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10384         (update_po_files): Work also when there are no .po files in po/.
10385
10386 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10387
10388         * README: Append ".git" to git and cg examples.
10389         Problem reported by Benoit Sigoure.
10390
10391 2007-10-23  Micah Cowan  <micah@cowan.name>
10392
10393         * users.txt: Add wget.
10394
10395 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10396
10397         Fix linking of some unistdio tests on FreeBSD.
10398         * modules/unistdio/u16-vsnprintf-tests
10399         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10400         * modules/unistdio/u16-vsprintf-tests
10401         (test_u16_vsnprintf1_LDADD): Likewise.
10402         * modules/unistdio/u32-vsnprintf-tests
10403         (test_u32_vsnprintf1_LDADD): Likewise.
10404         * modules/unistdio/u32-vsprintf-tests
10405         (test_u32_vsprintf1_LDADD): Likewise.
10406         * modules/unistdio/u8-vsnprintf-tests
10407         (test_u8_vsnprintf1_LDADD): Likewise.
10408         * modules/unistdio/u8-vsprintf-tests
10409         (test_u8_vsprintf1_LDADD): Likewise.
10410         * modules/unistdio/ulc-vsnprintf-tests
10411         (test_ulc_vsnprintf1_LDADD): Likewise.
10412         * modules/unistdio/ulc-vsprintf-tests
10413         (test_ulc_vsprintf1_LDADD): Likewise.
10414
10415         Fix linking of some uniconv tests on FreeBSD.
10416         * modules/uniconv/u16-conv-from-enc-tests
10417         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10418         * modules/uniconv/u16-conv-to-enc-tests
10419         (test_u16_conv_to_enc_LDADD): Likewise.
10420         * modules/uniconv/u16-strconv-from-enc-tests
10421         (test_u16_strconv_from_enc_LDADD): Likewise.
10422         * modules/uniconv/u16-strconv-to-enc-tests
10423         (test_u16_strconv_to_enc_LDADD): Likewise.
10424         * modules/uniconv/u32-conv-from-enc-tests
10425         (test_u32_conv_from_enc_LDADD): Likewise.
10426         * modules/uniconv/u32-conv-to-enc-tests
10427         (test_u32_conv_to_enc_LDADD): Likewise.
10428         * modules/uniconv/u32-strconv-from-enc-tests
10429         (test_u32_strconv_from_enc_LDADD): Likewise.
10430         * modules/uniconv/u32-strconv-to-enc-tests
10431         (test_u32_strconv_to_enc_LDADD): Likewise.
10432         * modules/uniconv/u8-conv-from-enc-tests
10433         (test_u8_conv_from_enc_LDADD): Likewise.
10434         * modules/uniconv/u8-conv-to-enc-tests
10435         (test_u8_conv_to_enc_LDADD): Likewise.
10436         * modules/uniconv/u8-strconv-from-enc-tests
10437         (test_u8_strconv_from_enc_LDADD): Likewise.
10438         * modules/uniconv/u8-strconv-to-enc-tests
10439         (test_u8_strconv_to_enc_LDADD): Likewise.
10440
10441 2007-10-22  Bruno Haible  <bruno@clisp.org>
10442
10443         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10444         size.
10445
10446 2007-10-22  Eric Blake  <ebb9@byu.net>
10447
10448         Tweak x*printf documentation.
10449         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10450         variable name and comments.
10451         Suggested by Bruno Haible.
10452
10453 2007-10-22  Bruno Haible  <bruno@clisp.org>
10454
10455         * lib/acl.c (copy_acl): Fix file name in comment.
10456
10457 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10458
10459         Fix Tru64 problem with stdbool.h.
10460         * lib/stdbool.in.h (false, true):
10461         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10462         Don't declare as an enum in this situation; it runs afoul of Tru64.
10463         Problem reported by Steven M. Schweda in
10464         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10465
10466 2007-10-22  Eric Blake  <ebb9@byu.net>
10467
10468         Also wrap vf?printf.
10469         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10470         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10471         (xvprintf, xvfprintf): New functions.
10472
10473 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10474
10475         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10476         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10477
10478         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10479         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10480
10481 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
10484         by Bruno Haible.
10485
10486 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10487
10488         * lib/getloadavg.c
10489         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10490         Undef `sys' after including sys/table.h, for Tru64 4.0D.
10491
10492         * tests/test-i-ring.c: Work for C89.
10493
10494 2007-10-22  Bruno Haible  <bruno@clisp.org>
10495
10496         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10497         -1u, in preprocessor expression, so that we don't test for the bug
10498         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
10499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10500
10501 2007-10-22  Eric Blake  <ebb9@byu.net>
10502
10503         * tests/test-yesno.sh: Silence stderr during test.
10504
10505 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10506
10507         * modules/crypto/gc-camellia: New file.
10508
10509         * m4/gc-camellia.m4: New file.
10510
10511         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10512
10513         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10514
10515 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10516
10517         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10518         --help to stdout.  Reported by sms@antinode.org (Steven
10519         M. Schweda).
10520
10521 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10522
10523         * users.txt: Fix link to libksba.
10524
10525 2007-10-21  Ben Pfaff  <blp@gnu.org>
10526
10527         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10528         round.c roundf implementation that depends on floorf and ceilf to
10529         be tested unconditionally.
10530
10531 2007-10-21  Ben Pfaff  <blp@gnu.org>
10532
10533         * m4/check-libm-func.m4: Removed.
10534         * m4/check-math-lib.m4: New file.
10535         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10536         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10537         definition and lack of AC_LIBOBJ([roundf]).
10538         * m4/roundl.m4: Ditto, and similarly for roundl.
10539         * modules/round: Reference new m4 file.
10540         * modules/roundf: Ditto.
10541         * modules/roundl: Ditto.
10542         * tests/test-round2.c (main): Use ROUND instead of round.
10543         Bug report from Bruno Haible.
10544
10545 2007-10-21  Bruno Haible  <bruno@clisp.org>
10546
10547         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10548         context.
10549
10550 2007-10-21  Bruno Haible  <bruno@clisp.org>
10551
10552         * tests/test-wcwidth.c (main): Allow negative result for some control
10553         characters.
10554
10555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10556         Needed on OSF/1 5.1.
10557
10558 2007-10-21  Bruno Haible  <bruno@clisp.org>
10559
10560         * tests/test-floorf1.c: Include isnanf.h.
10561         (main): Use isnanf() instead of isnan().
10562         * tests/test-ceilf1.c: Include isnanf.h.
10563         (main): Use isnanf() instead of isnan().
10564         * tests/test-truncf1.c: Include isnanf.h.
10565         (main): Use isnanf() instead of isnan().
10566         * tests/test-roundf1.c: Include isnanf.h.
10567         (main): Use isnanf() instead of isnan().
10568
10569 2007-10-21  Eric Blake  <ebb9@byu.net>
10570
10571         * users.txt: Update URL for m4.
10572
10573 2007-10-21  Bruno Haible  <bruno@clisp.org>
10574
10575         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10576
10577 2007-10-21  Bruno Haible  <bruno@clisp.org>
10578
10579         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10580         Git's management files if the CVS files are not present.
10581
10582 2007-10-20  Bruno Haible  <bruno@clisp.org>
10583
10584         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10585         gcc-3.4.x.
10586
10587 2007-10-20  Ben Pfaff  <blp@gnu.org>
10588
10589         * lib/math.in.h: Declare round, roundf, roundl if we are providing
10590         implementations.
10591         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10592         * lib/round.c: New file.
10593         * lib/roundf.c: New file.
10594         * lib/roundl.c: New file.
10595         * m4/round.m4: New file.
10596         * m4/roundf.m4: New file.
10597         * m4/roundl.m4: New file.
10598         * m4/check-libm-func-m4: New file.
10599         * modules/math: Replace round, roundf, roundl related @VARS@ in
10600         math.in.h.
10601         * modules/round: New file.
10602         * modules/round-tests: New file.
10603         * modules/roundf: New file.
10604         * modules/roundf-tests: New file.
10605         * modules/roundl: New file.
10606         * modules/roundl-tests: New file.
10607         * tests/test-round1.c: New file.
10608         * tests/test-round2.c: New file.
10609         * tests/test-roundf1.c: New file.
10610         * tests/test-roundf2.c: New file.
10611         * tests/test-roundl.c: New file.
10612         * doc/functions/round.texi: Mention round module.
10613         * doc/functions/roundf.texi: Mention roundf module.
10614         * doc/functions/roundl.texi: Mention roundl module.
10615         * MODULES.html.sh: Mention new modules.
10616         Thanks to Bruno Haible for suggestions.
10617
10618 2007-10-20  Jim Meyering  <meyering@redhat.com>
10619
10620         * lib/xprintf.c: Include <config.h> unconditionally.
10621
10622         Change xprintf's license to GPL.
10623         * modules/xprintf (License): s/LGPL/GPL/, since this module
10624         depends on modules (exit and exitfail) which are GPL.
10625         Suggestion from Bruno Haible.
10626
10627         xprintf fixes.
10628         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10629         Use a clearer diagnostic.
10630         Patch from Bruno Haible.
10631
10632 2007-10-20  Bruno Haible  <bruno@clisp.org>
10633
10634         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10635         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10637
10638 2007-10-20  Bruno Haible  <bruno@clisp.org>
10639
10640         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10641         precision in the comparison result > x - 1 or similar.
10642         * tests/test-ceilf2.c (correct_result_p): Likewise.
10643         * tests/test-truncf2.c (correct_result_p): Likewise.
10644         * tests/test-trunc2.c (correct_result_p): Likewise.
10645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10646
10647 2007-10-20  Bruno Haible  <bruno@clisp.org>
10648
10649         * modules/ceil: New file.
10650         * m4/ceil.m4: New file.
10651         * doc/functions/ceil.texi: Mention the 'ceil' module.
10652
10653 2007-10-20  Bruno Haible  <bruno@clisp.org>
10654
10655         * modules/floor: New file.
10656         * m4/floor.m4: New file.
10657         * doc/functions/floor.texi: Mention the 'floor' module.
10658
10659 2007-10-20  Bruno Haible  <bruno@clisp.org>
10660
10661         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10662         of %a.
10663         * modules/floorf-tests (Depends-on): Likewise.
10664         * modules/truncf-tests (Depends-on): Likewise.
10665         * modules/trunc-tests (Depends-on): Likewise.
10666         Reported by Ben Pfaff.
10667
10668 2007-10-19  Jim Meyering  <meyering@redhat.com>
10669
10670         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10671         Don't bother testing specific errno values.  Just test ferror.
10672
10673         New module: xprintf
10674         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10675
10676 2007-10-19  Bruno Haible  <bruno@clisp.org>
10677
10678         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10679         syntax.
10680         * modules/javaexec (Makefile.am): Likewise.
10681         * modules/relocatable-prog (Makefile.am): Likewise.
10682         Suggested by Jim Meyering.
10683
10684 2007-10-18  Bruno Haible  <bruno@clisp.org>
10685
10686         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10687         Reported by Jim Meyering.
10688
10689 2007-10-18  Eric Blake  <ebb9@byu.net>
10690
10691         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10692
10693 2007-10-18  Bruno Haible  <bruno@clisp.org>
10694
10695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10696         the format string into writable memory. Needed in Fortify conditions.
10697
10698 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
10699             Bruno Haible  <bruno@clisp.org>
10700
10701         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10702         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10703         * modules/trim (Depends-on): Add mbchar.
10704         (configure.ac): Add gl_FUNC_MBRTOWC.
10705         (Makefile.am): Augment lib_SOURCES.
10706
10707 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10708
10709         Modify glob.c to use fstatat and dirfd, to simplify it.
10710         Suggested by Eric Blake.
10711         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10712         Don't include <stdbool.h>; not used.
10713         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10714         (link_exists_p): Simplify implementation, since we can now assume
10715         dirfd and fstatat.
10716         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
10717
10718 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10719
10720         * gnulib-tool (func_get_dependencies): Fix sed script to
10721         match only tests.
10722
10723 2007-10-17  Bruno Haible  <bruno@clisp.org>
10724
10725         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10726         allow locale names without encoding suffix.
10727         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10728         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10729
10730 2007-10-16  Bruno Haible  <bruno@clisp.org>
10731
10732         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10733         * lib/getgroups.c (getgroups): Likewise.
10734         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10735
10736 2007-10-16  Bruno Haible  <bruno@clisp.org>
10737
10738         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10739         * modules/malloc-posix (License): Likewise.
10740         * modules/realloc-posix (License): Likewise.
10741         * modules/calloc-posix (License): Likewise.
10742         * modules/intprops (License): Change from GPL to LGPL, with
10743         Paul Eggert's approval.
10744
10745 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         Merge glibc changes into lib/glob.c.
10748
10749         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10750         2007-10-15 04:59:03 UTC.  Here are the changes:
10751
10752         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10753
10754         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10755
10756         * lib/glob.c: Add some branch prediction throughout.
10757
10758         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
10759
10760         [BZ #5103]
10761         * lib/glob.c (glob): Recognize patterns starting \/.
10762
10763         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10764
10765         [BZ #3996]
10766         * lib/glob.c (attribute_hidden): Define if not defined.
10767         (glob): Unescape dirname, filename or username when needed and not
10768         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10769         is NULL.  Handle unescaped [ in pattern without closing ].
10770         Don't pass GLOB_CHECK down to recursive glob for directories.
10771         (__glob_pattern_type): New function.
10772         (__glob_pattern_p): Implement using __glob_pattern_type.
10773         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10774         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10775         Remove unreachable code.
10776
10777         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10778
10779         * lib/glob.c (glob_in_dir): Add some comments and asserts to
10780         explain why there are no leaks.
10781
10782         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10783
10784         [BZ #3253]
10785         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10786         time, rather allocate increasingly bigger arrays of pointers, if
10787         possible with alloca, if too large with malloc.
10788
10789 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10790
10791         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10792         Problem reported by H.Merijn Brand in
10793         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10794         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10795         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10796
10797 2007-10-15  Bruno Haible  <bruno@clisp.org>
10798
10799         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10800         with explicit rpl_ prefix.
10801         * lib/fopen.c (fopen): Likewise.
10802         * lib/freopen.c (freopen): Likewise.
10803         * lib/iconv.c (iconv): Likewise.
10804         * lib/iconv_close.c (iconv_close): Likewise.
10805
10806 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10807
10808         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10809
10810 2007-10-15  Bruno Haible  <bruno@clisp.org>
10811
10812         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10813         <stddef.h> instead of <stdlib.h> since we only need NULL.
10814         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10815
10816 2007-10-15  Bruno Haible  <bruno@clisp.org>
10817
10818         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10819         Replace paragraph talking about LIBOBJS.
10820         Reported by Colin Watson <cjwatson@debian.org>.
10821
10822 2007-10-15  Bruno Haible  <bruno@clisp.org>
10823
10824         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10825         <stdlib.h> before using NULL.
10826
10827 2007-10-15  Simon Josefsson  <simon@josefsson.org>
10828
10829         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10830         Reported by Albert Chin <china@thewrittenword.com>.
10831
10832 2007-10-14  Bruno Haible  <bruno@clisp.org>
10833
10834         * modules/iconv_open-utf-tests: New file.
10835         * tests/test-iconv-utf.c: New file.
10836
10837         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10838         * modules/iconv_open-utf: New file.
10839         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10840         (iconv, iconv_close): New declarations.
10841         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10842         be defined.
10843         (iconv_open): Add special handling of conversion between UTF-8 and
10844         UTF-{16,32}{BE,LE}.
10845         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10846         * lib/iconv_close.c: New file.
10847         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10848         gl_FUNC_ICONV_OPEN.
10849         (gl_FUNC_ICONV_OPEN): Use it.
10850         (gl_FUNC_ICONV_OPEN_UTF): New macro.
10851         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10852         and REPLACE_ICONV_UTF.
10853         * modules/iconv_open (Depends-on): Add c-strcase.
10854         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10855         ICONV_CONST.
10856         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10857
10858 2007-10-13  Albert Chin  <china@thewrittenword.com>
10859             Bruno Haible  <bruno@clisp.org>
10860
10861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10862         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
10863
10864 2007-10-13  Bruno Haible  <bruno@clisp.org>
10865
10866         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
10867         defined, use the ISO C99 inline semantics.
10868         * lib/argp.h (ARGP_EI): Likewise.
10869
10870 2007-10-13  Bruno Haible  <bruno@clisp.org>
10871
10872         Handle 'inline' change in gcc 4.3.0.
10873         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
10874         argp_fmtstream_write, argp_fmtstream_set_lmargin,
10875         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
10876         argp_fmtstream_point): Disable 'extern' declaration if the function
10877         definition is going to be provided inline.
10878         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
10879         semantics, not the ISO C99 inline semantics.
10880         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
10881         'extern' declaration if the function definition is going to be provided
10882         inline.
10883         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
10884         the GNU C inline semantics, not the ISO C99 inline semantics. With
10885         GCC 4.2, avoid a warning.
10886
10887 2007-10-13  Bruno Haible  <bruno@clisp.org>
10888
10889         * lib/freading.h (freading): Enable the use of __freading for
10890         glibc >= 2.7.
10891         * lib/freading.c (freading): Likewise.
10892
10893 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10894
10895         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
10896         "warning: C99 inline functions are not supported; using GNU89".
10897
10898 2007-10-12  Bruno Haible  <bruno@clisp.org>
10899
10900         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
10901         of 2.
10902         * tests/test-ceilf2.c: New file.
10903         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
10904
10905         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
10906         * modules/ceilf-tests: Update.
10907
10908 2007-10-12  Bruno Haible  <bruno@clisp.org>
10909
10910         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
10911         of 2.
10912         * tests/test-floorf2.c: New file.
10913         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
10914
10915         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
10916         * modules/floorf-tests: Update.
10917
10918 2007-10-12  Bruno Haible  <bruno@clisp.org>
10919
10920         * tests/test-trunc2.c: New file.
10921         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
10922
10923         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
10924         * modules/trunc-tests: Update.
10925
10926 2007-10-12  Bruno Haible  <bruno@clisp.org>
10927
10928         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
10929         of 2.
10930         * tests/test-truncf2.c: New file.
10931         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
10932
10933         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
10934         * modules/truncf-tests: Update.
10935
10936 2007-10-11  Eric Blake  <ebb9@byu.net>
10937
10938         Don't claim strerror is broken on Interix.
10939         * doc/functions/strerror.texi (strerror): Known broken systems are
10940         now Solaris 8, and not Interix.
10941         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
10942         Interix on cross-compile.
10943         Reported by Martin Koeppe in
10944         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
10945
10946 2007-10-11  Bruno Haible  <bruno@clisp.org>
10947
10948         * modules/i-ring-tests: New file.
10949         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
10950         instead of assert.
10951
10952 2007-10-11  Bruno Haible  <bruno@clisp.org>
10953
10954         * modules/filenamecat-tests: New file.
10955         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
10956         * lib/filenamecat.c: Remove test code.
10957
10958 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10959
10960         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
10961
10962         * lib/strerror.c: Include <string.h> always, to test interface,
10963         and to remove the need for the dummy.
10964         Include intprops.h to compute width instead of doing it ourselves
10965         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
10966         (strerror): Define it to return NULL if there's no system strerror.
10967         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
10968         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
10969         ancient pre-strerror Unix systems well any more.  Saying "unknown
10970         system error" is enough.
10971         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
10972         simpler strerror.c implementation.
10973         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
10974         Simplify the tests to reflect the simpler strerror implementation.
10975         * modules/strerror (Depends-on): Add intprops.
10976
10977 2007-10-09  Eric Blake  <ebb9@byu.net>
10978
10979         Silence test-fpending.
10980         * modules/fpending-tests (Files): Add wrapper script.
10981         * tests/test-fpending.sh: New file.
10982
10983 2007-10-09  Bruno Haible  <bruno@clisp.org>
10984
10985         * MODULES.html.sh (func_module): Don't create a hyperlink for
10986         function names like 'printf_frexp'.
10987         (Misc): Add crc, memxor.
10988         (Characteristics of floating types): New section.
10989         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
10990         isnanf-nolibm, signbit, trunc, truncf, truncl.
10991         (Enhancements for ISO C 99 functions): New subsection Input/output.
10992         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
10993         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
10994         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
10995         (Compatibility checks for POSIX:2001 functions): Add clock-time.
10996         (Enhancements for POSIX:2001 functions): Add chdir-long.
10997         (File system functions): Add areadlink, chdir-safer, read-file.
10998         Remove cycle-check.
10999         (File system as inode set): New section.
11000         (Date and time): Add gethrxtime.
11001         (Multithreading): Add openmp.
11002         (Internationalization functions): Add localename.
11003         (Unicode string functions): Add unistr/u*-mbsnlen.
11004         (Support for maintaining and releasing projects): Add git-version-gen.
11005         (Lone files): Remove directories.
11006
11007 2007-10-08  Ben Pfaff  <blp@gnu.org>
11008
11009         * lib/xmalloca.h: Fix typo in comment.
11010
11011 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11012
11013         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11014         when avoiding problems with integer overflow.  Use a portable test
11015         instead.
11016
11017 2007-10-08  Simon Josefsson  <simon@josefsson.org>
11018
11019         * modules/dummy (License): Change to LGPLv2+.
11020         * modules/float (License): Likewise
11021         * modules/realloc (License): Likewise
11022         * modules/stdlib (License): Likewise
11023
11024 2007-10-07  Bruno Haible  <bruno@clisp.org>
11025
11026         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11027         * floor.c (TWO_MANT_DIG): Likewise.
11028         * ceil.c (TWO_MANT_DIG): Likewise.
11029         Reported by Ben Pfaff.
11030
11031 2007-10-07  Bruno Haible  <bruno@clisp.org>
11032
11033         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11034         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11035         * lib/frexp.c (FUNC): Likewise.
11036         * lib/printf-frexp.h (printf_frexp): Likewise.
11037         * lib/printf-frexpl.h (printf_frexpl): Likewise.
11038         * lib/printf-frexp.c (FUNC): Likewise.
11039         Suggested by Jim Meyering.
11040
11041 2007-10-07  Jim Meyering  <meyering@redhat.com>
11042
11043         Make xnanosleep's integer overflow test more robust.
11044         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11045         so that gcc-4.3.0 doesn't optimize away this test for overflow.
11046
11047 2007-10-07  Bruno Haible  <bruno@clisp.org>
11048
11049         * NEWS: Mention the license change.
11050
11051         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11052         abbreviations in the modules files.
11053
11054         Change copyright notice from GPLv2+ to GPLv3+.
11055         * README: Change copyright notice.
11056         * MODULES.html.sh: Likewise.
11057         * build-aux/bootstrap.conf: Likewise.
11058         * build-aux/config.libpath: Likewise.
11059         * build-aux/csharpcomp.sh.in: Likewise.
11060         * build-aux/csharpexec.sh.in: Likewise.
11061         * build-aux/install-reloc: Likewise.
11062         * build-aux/javacomp.sh.in: Likewise.
11063         * build-aux/javaexec.sh.in: Likewise.
11064         * build-aux/ldd.sh.in: Likewise.
11065         * build-aux/reloc-ldflags: Likewise.
11066         * build-aux/relocatable.sh.in: Likewise.
11067         * build-aux/x-to-1.in: Likewise.
11068         * check-module: Likewise.
11069         * config/srclistvars.sh: Likewise.
11070         * gnulib-tool: Likewise.
11071         * lib/acl-internal.h: Likewise.
11072         * lib/acl.c: Likewise.
11073         * lib/acl.h: Likewise.
11074         * lib/acl_entries.c: Likewise.
11075         * lib/areadlink-with-size.c: Likewise.
11076         * lib/areadlink.c: Likewise.
11077         * lib/areadlink.h: Likewise.
11078         * lib/argmatch.c: Likewise.
11079         * lib/argmatch.h: Likewise.
11080         * lib/argp-ba.c: Likewise.
11081         * lib/argp-eexst.c: Likewise.
11082         * lib/argp-fmtstream.c: Likewise.
11083         * lib/argp-fmtstream.h: Likewise.
11084         * lib/argp-fs-xinl.c: Likewise.
11085         * lib/argp-help.c: Likewise.
11086         * lib/argp-namefrob.h: Likewise.
11087         * lib/argp-parse.c: Likewise.
11088         * lib/argp-pin.c: Likewise.
11089         * lib/argp-pv.c: Likewise.
11090         * lib/argp-pvh.c: Likewise.
11091         * lib/argp-xinl.c: Likewise.
11092         * lib/argp.h: Likewise.
11093         * lib/at-func.c: Likewise.
11094         * lib/atanl.c: Likewise.
11095         * lib/backupfile.c: Likewise.
11096         * lib/backupfile.h: Likewise.
11097         * lib/basename.c: Likewise.
11098         * lib/binary-io.h: Likewise.
11099         * lib/byteswap.in.h: Likewise.
11100         * lib/c-stack.c: Likewise.
11101         * lib/c-stack.h: Likewise.
11102         * lib/c-strcasestr.c: Likewise.
11103         * lib/c-strcasestr.h: Likewise.
11104         * lib/c-strstr.c: Likewise.
11105         * lib/c-strstr.h: Likewise.
11106         * lib/c-strtod.c: Likewise.
11107         * lib/calloc.c: Likewise.
11108         * lib/canon-host.c: Likewise.
11109         * lib/canon-host.h: Likewise.
11110         * lib/canonicalize-lgpl.c: Likewise.
11111         * lib/canonicalize.c: Likewise.
11112         * lib/canonicalize.h: Likewise.
11113         * lib/ceil.c: Likewise.
11114         * lib/ceilf.c: Likewise.
11115         * lib/ceill.c: Likewise.
11116         * lib/chdir-long.c: Likewise.
11117         * lib/chdir-long.h: Likewise.
11118         * lib/chdir-safer.c: Likewise.
11119         * lib/chdir-safer.h: Likewise.
11120         * lib/chown.c: Likewise.
11121         * lib/classpath.c: Likewise.
11122         * lib/classpath.h: Likewise.
11123         * lib/clean-temp.c: Likewise.
11124         * lib/clean-temp.h: Likewise.
11125         * lib/cloexec.c: Likewise.
11126         * lib/close-stream.c: Likewise.
11127         * lib/closein.c: Likewise.
11128         * lib/closein.h: Likewise.
11129         * lib/closeout.c: Likewise.
11130         * lib/closeout.h: Likewise.
11131         * lib/concat-filename.c: Likewise.
11132         * lib/copy-file.c: Likewise.
11133         * lib/copy-file.h: Likewise.
11134         * lib/count-one-bits.h: Likewise.
11135         * lib/crc.c: Likewise.
11136         * lib/crc.h: Likewise.
11137         * lib/creat-safer.c: Likewise.
11138         * lib/csharpcomp.c: Likewise.
11139         * lib/csharpcomp.h: Likewise.
11140         * lib/csharpexec.c: Likewise.
11141         * lib/csharpexec.h: Likewise.
11142         * lib/cycle-check.c: Likewise.
11143         * lib/cycle-check.h: Likewise.
11144         * lib/diacrit.c: Likewise.
11145         * lib/diacrit.h: Likewise.
11146         * lib/diffseq.h: Likewise.
11147         * lib/dirchownmod.c: Likewise.
11148         * lib/dirent.in.h: Likewise.
11149         * lib/dirfd.c: Likewise.
11150         * lib/dirfd.h: Likewise.
11151         * lib/dirname.c: Likewise.
11152         * lib/dirname.h: Likewise.
11153         * lib/dummy.c: Likewise.
11154         * lib/dup-safer.c: Likewise.
11155         * lib/dup2.c: Likewise.
11156         * lib/eealloc.h: Likewise.
11157         * lib/error.c: Likewise.
11158         * lib/error.h: Likewise.
11159         * lib/euidaccess.c: Likewise.
11160         * lib/exclude.c: Likewise.
11161         * lib/exclude.h: Likewise.
11162         * lib/execute.c: Likewise.
11163         * lib/execute.h: Likewise.
11164         * lib/exitfail.c: Likewise.
11165         * lib/exitfail.h: Likewise.
11166         * lib/expl.c: Likewise.
11167         * lib/fatal-signal.c: Likewise.
11168         * lib/fatal-signal.h: Likewise.
11169         * lib/fbufmode.c: Likewise.
11170         * lib/fbufmode.h: Likewise.
11171         * lib/fchdir.c: Likewise.
11172         * lib/fchmodat.c: Likewise.
11173         * lib/fchownat.c: Likewise.
11174         * lib/fcntl--.h: Likewise.
11175         * lib/fcntl-safer.h: Likewise.
11176         * lib/fcntl.in.h: Likewise.
11177         * lib/fd-safer.c: Likewise.
11178         * lib/fflush.c: Likewise.
11179         * lib/file-has-acl.c: Likewise.
11180         * lib/file-set.c: Likewise.
11181         * lib/file-type.c: Likewise.
11182         * lib/file-type.h: Likewise.
11183         * lib/fileblocks.c: Likewise.
11184         * lib/filemode.c: Likewise.
11185         * lib/filemode.h: Likewise.
11186         * lib/filename.h: Likewise.
11187         * lib/filenamecat.c: Likewise.
11188         * lib/filenamecat.h: Likewise.
11189         * lib/findprog.c: Likewise.
11190         * lib/findprog.h: Likewise.
11191         * lib/float.in.h: Likewise.
11192         * lib/floor.c: Likewise.
11193         * lib/floorf.c: Likewise.
11194         * lib/floorl.c: Likewise.
11195         * lib/fopen-safer.c: Likewise.
11196         * lib/fopen.c: Likewise.
11197         * lib/fpending.c: Likewise.
11198         * lib/fpending.h: Likewise.
11199         * lib/fprintf.c: Likewise.
11200         * lib/fprintftime.h: Likewise.
11201         * lib/fpucw.h: Likewise.
11202         * lib/fpurge.c: Likewise.
11203         * lib/fpurge.h: Likewise.
11204         * lib/freadable.c: Likewise.
11205         * lib/freadable.h: Likewise.
11206         * lib/freadahead.c: Likewise.
11207         * lib/freadahead.h: Likewise.
11208         * lib/freading.c: Likewise.
11209         * lib/freading.h: Likewise.
11210         * lib/free.c: Likewise.
11211         * lib/freopen.c: Likewise.
11212         * lib/frexp.c: Likewise.
11213         * lib/frexpl.c: Likewise.
11214         * lib/fseek.c: Likewise.
11215         * lib/fseterr.c: Likewise.
11216         * lib/fseterr.h: Likewise.
11217         * lib/fstatat.c: Likewise.
11218         * lib/fstrcmp.c: Likewise.
11219         * lib/fstrcmp.h: Likewise.
11220         * lib/fsusage.c: Likewise.
11221         * lib/fsusage.h: Likewise.
11222         * lib/ftell.c: Likewise.
11223         * lib/ftello.c: Likewise.
11224         * lib/fts-cycle.c: Likewise.
11225         * lib/fts.c: Likewise.
11226         * lib/fts_.h: Likewise.
11227         * lib/full-read.c: Likewise.
11228         * lib/full-read.h: Likewise.
11229         * lib/full-write.c: Likewise.
11230         * lib/full-write.h: Likewise.
11231         * lib/fwritable.c: Likewise.
11232         * lib/fwritable.h: Likewise.
11233         * lib/fwriteerror.c: Likewise.
11234         * lib/fwriteerror.h: Likewise.
11235         * lib/fwriting.c: Likewise.
11236         * lib/fwriting.h: Likewise.
11237         * lib/gcd.c: Likewise.
11238         * lib/gcd.h: Likewise.
11239         * lib/getcwd.c: Likewise.
11240         * lib/getdate.h: Likewise.
11241         * lib/getdate.y: Likewise.
11242         * lib/getdomainname.c: Likewise.
11243         * lib/getdomainname.h: Likewise.
11244         * lib/getgroups.c: Likewise.
11245         * lib/gethostname.c: Likewise.
11246         * lib/gethrxtime.c: Likewise.
11247         * lib/gethrxtime.h: Likewise.
11248         * lib/getloadavg.c: Likewise.
11249         * lib/getndelim2.c: Likewise.
11250         * lib/getndelim2.h: Likewise.
11251         * lib/getnline.c: Likewise.
11252         * lib/getnline.h: Likewise.
11253         * lib/getopt.c: Likewise.
11254         * lib/getopt.in.h: Likewise.
11255         * lib/getopt1.c: Likewise.
11256         * lib/getopt_int.h: Likewise.
11257         * lib/getpagesize.h: Likewise.
11258         * lib/getsubopt.c: Likewise.
11259         * lib/gettime.c: Likewise.
11260         * lib/getugroups.c: Likewise.
11261         * lib/getugroups.h: Likewise.
11262         * lib/getusershell.c: Likewise.
11263         * lib/gl_anyavltree_list1.h: Likewise.
11264         * lib/gl_anyavltree_list2.h: Likewise.
11265         * lib/gl_anyhash_list1.h: Likewise.
11266         * lib/gl_anyhash_list2.h: Likewise.
11267         * lib/gl_anylinked_list1.h: Likewise.
11268         * lib/gl_anylinked_list2.h: Likewise.
11269         * lib/gl_anyrbtree_list1.h: Likewise.
11270         * lib/gl_anyrbtree_list2.h: Likewise.
11271         * lib/gl_anytree_list1.h: Likewise.
11272         * lib/gl_anytree_list2.h: Likewise.
11273         * lib/gl_anytree_oset.h: Likewise.
11274         * lib/gl_anytreehash_list1.h: Likewise.
11275         * lib/gl_anytreehash_list2.h: Likewise.
11276         * lib/gl_array_list.c: Likewise.
11277         * lib/gl_array_list.h: Likewise.
11278         * lib/gl_array_oset.c: Likewise.
11279         * lib/gl_array_oset.h: Likewise.
11280         * lib/gl_avltree_list.c: Likewise.
11281         * lib/gl_avltree_list.h: Likewise.
11282         * lib/gl_avltree_oset.c: Likewise.
11283         * lib/gl_avltree_oset.h: Likewise.
11284         * lib/gl_avltreehash_list.c: Likewise.
11285         * lib/gl_avltreehash_list.h: Likewise.
11286         * lib/gl_carray_list.c: Likewise.
11287         * lib/gl_carray_list.h: Likewise.
11288         * lib/gl_linked_list.c: Likewise.
11289         * lib/gl_linked_list.h: Likewise.
11290         * lib/gl_linkedhash_list.c: Likewise.
11291         * lib/gl_linkedhash_list.h: Likewise.
11292         * lib/gl_list.c: Likewise.
11293         * lib/gl_list.h: Likewise.
11294         * lib/gl_oset.c: Likewise.
11295         * lib/gl_oset.h: Likewise.
11296         * lib/gl_rbtree_list.c: Likewise.
11297         * lib/gl_rbtree_list.h: Likewise.
11298         * lib/gl_rbtree_oset.c: Likewise.
11299         * lib/gl_rbtree_oset.h: Likewise.
11300         * lib/gl_rbtreehash_list.c: Likewise.
11301         * lib/gl_rbtreehash_list.h: Likewise.
11302         * lib/gl_sublist.c: Likewise.
11303         * lib/gl_sublist.h: Likewise.
11304         * lib/group-member.c: Likewise.
11305         * lib/group-member.h: Likewise.
11306         * lib/hard-locale.c: Likewise.
11307         * lib/hard-locale.h: Likewise.
11308         * lib/hash-pjw.c: Likewise.
11309         * lib/hash-pjw.h: Likewise.
11310         * lib/hash-triple.c: Likewise.
11311         * lib/hash.c: Likewise.
11312         * lib/hash.h: Likewise.
11313         * lib/human.c: Likewise.
11314         * lib/human.h: Likewise.
11315         * lib/i-ring.c: Likewise.
11316         * lib/i-ring.h: Likewise.
11317         * lib/idcache.c: Likewise.
11318         * lib/imaxabs.c: Likewise.
11319         * lib/imaxdiv.c: Likewise.
11320         * lib/inet_pton.c: Likewise.
11321         * lib/inet_pton.h: Likewise.
11322         * lib/intprops.h: Likewise.
11323         * lib/inttostr.c: Likewise.
11324         * lib/inttostr.h: Likewise.
11325         * lib/inttypes.in.h: Likewise.
11326         * lib/isapipe.c: Likewise.
11327         * lib/isdir.c: Likewise.
11328         * lib/isnan.c: Likewise.
11329         * lib/isnan.h: Likewise.
11330         * lib/isnanf.c: Likewise.
11331         * lib/isnanf.h: Likewise.
11332         * lib/isnanl-nolibm.h: Likewise.
11333         * lib/isnanl.c: Likewise.
11334         * lib/isnanl.h: Likewise.
11335         * lib/javacomp.c: Likewise.
11336         * lib/javacomp.h: Likewise.
11337         * lib/javaexec.c: Likewise.
11338         * lib/javaexec.h: Likewise.
11339         * lib/javaversion.c: Likewise.
11340         * lib/javaversion.h: Likewise.
11341         * lib/javaversion.java: Likewise.
11342         * lib/lbrkprop.h: Likewise.
11343         * lib/lchmod.h: Likewise.
11344         * lib/lchown.c: Likewise.
11345         * lib/ldexpl.c: Likewise.
11346         * lib/linebreak.c: Likewise.
11347         * lib/linebreak.h: Likewise.
11348         * lib/linebuffer.c: Likewise.
11349         * lib/linebuffer.h: Likewise.
11350         * lib/locale.in.h: Likewise.
11351         * lib/logl.c: Likewise.
11352         * lib/long-options.c: Likewise.
11353         * lib/long-options.h: Likewise.
11354         * lib/lstat.c: Likewise.
11355         * lib/lstat.h: Likewise.
11356         * lib/math.in.h: Likewise.
11357         * lib/mbchar.c: Likewise.
11358         * lib/mbchar.h: Likewise.
11359         * lib/mbfile.h: Likewise.
11360         * lib/mbiter.h: Likewise.
11361         * lib/mbscasecmp.c: Likewise.
11362         * lib/mbscasestr.c: Likewise.
11363         * lib/mbschr.c: Likewise.
11364         * lib/mbscspn.c: Likewise.
11365         * lib/mbslen.c: Likewise.
11366         * lib/mbsncasecmp.c: Likewise.
11367         * lib/mbsnlen.c: Likewise.
11368         * lib/mbspbrk.c: Likewise.
11369         * lib/mbspcasecmp.c: Likewise.
11370         * lib/mbsrchr.c: Likewise.
11371         * lib/mbssep.c: Likewise.
11372         * lib/mbsspn.c: Likewise.
11373         * lib/mbsstr.c: Likewise.
11374         * lib/mbstok_r.c: Likewise.
11375         * lib/mbswidth.c: Likewise.
11376         * lib/mbswidth.h: Likewise.
11377         * lib/mbuiter.h: Likewise.
11378         * lib/memcasecmp.c: Likewise.
11379         * lib/memcasecmp.h: Likewise.
11380         * lib/memchr.c: Likewise.
11381         * lib/memcmp.c: Likewise.
11382         * lib/memcoll.c: Likewise.
11383         * lib/memcoll.h: Likewise.
11384         * lib/memcpy.c: Likewise.
11385         * lib/memrchr.c: Likewise.
11386         * lib/mkancesdirs.c: Likewise.
11387         * lib/mkdir-p.c: Likewise.
11388         * lib/mkdir-p.h: Likewise.
11389         * lib/mkdir.c: Likewise.
11390         * lib/mkdirat.c: Likewise.
11391         * lib/mkdtemp.c: Likewise.
11392         * lib/mkstemp-safer.c: Likewise.
11393         * lib/mkstemp.c: Likewise.
11394         * lib/modechange.c: Likewise.
11395         * lib/modechange.h: Likewise.
11396         * lib/mountlist.c: Likewise.
11397         * lib/mountlist.h: Likewise.
11398         * lib/mpsort.c: Likewise.
11399         * lib/nanosleep.c: Likewise.
11400         * lib/obstack.c: Likewise.
11401         * lib/obstack.h: Likewise.
11402         * lib/open-safer.c: Likewise.
11403         * lib/open.c: Likewise.
11404         * lib/openat-die.c: Likewise.
11405         * lib/openat-priv.h: Likewise.
11406         * lib/openat-proc.c: Likewise.
11407         * lib/openat.c: Likewise.
11408         * lib/openat.h: Likewise.
11409         * lib/pagealign_alloc.c: Likewise.
11410         * lib/pagealign_alloc.h: Likewise.
11411         * lib/physmem.c: Likewise.
11412         * lib/physmem.h: Likewise.
11413         * lib/pipe-safer.c: Likewise.
11414         * lib/pipe.c: Likewise.
11415         * lib/pipe.h: Likewise.
11416         * lib/posixtm.c: Likewise.
11417         * lib/posixtm.h: Likewise.
11418         * lib/posixver.c: Likewise.
11419         * lib/printf-frexp.c: Likewise.
11420         * lib/printf-frexp.h: Likewise.
11421         * lib/printf-frexpl.c: Likewise.
11422         * lib/printf-frexpl.h: Likewise.
11423         * lib/printf.c: Likewise.
11424         * lib/progname.c: Likewise.
11425         * lib/progname.h: Likewise.
11426         * lib/progreloc.c: Likewise.
11427         * lib/putenv.c: Likewise.
11428         * lib/quote.c: Likewise.
11429         * lib/quote.h: Likewise.
11430         * lib/quotearg.c: Likewise.
11431         * lib/quotearg.h: Likewise.
11432         * lib/raise.c: Likewise.
11433         * lib/readline.c: Likewise.
11434         * lib/readline.h: Likewise.
11435         * lib/readlink.c: Likewise.
11436         * lib/readtokens.c: Likewise.
11437         * lib/readtokens.h: Likewise.
11438         * lib/readtokens0.c: Likewise.
11439         * lib/readtokens0.h: Likewise.
11440         * lib/readutmp.c: Likewise.
11441         * lib/readutmp.h: Likewise.
11442         * lib/realloc.c: Likewise.
11443         * lib/relocwrapper.c: Likewise.
11444         * lib/rename-dest-slash.c: Likewise.
11445         * lib/rename.c: Likewise.
11446         * lib/rmdir.c: Likewise.
11447         * lib/rpmatch.c: Likewise.
11448         * lib/safe-read.c: Likewise.
11449         * lib/safe-read.h: Likewise.
11450         * lib/safe-write.c: Likewise.
11451         * lib/safe-write.h: Likewise.
11452         * lib/same-inode.h: Likewise.
11453         * lib/same.c: Likewise.
11454         * lib/same.h: Likewise.
11455         * lib/save-cwd.c: Likewise.
11456         * lib/save-cwd.h: Likewise.
11457         * lib/savedir.c: Likewise.
11458         * lib/savedir.h: Likewise.
11459         * lib/savewd.c: Likewise.
11460         * lib/savewd.h: Likewise.
11461         * lib/search.in.h: Likewise.
11462         * lib/setenv.c: Likewise.
11463         * lib/setenv.h: Likewise.
11464         * lib/settime.c: Likewise.
11465         * lib/sh-quote.c: Likewise.
11466         * lib/sh-quote.h: Likewise.
11467         * lib/sig2str.c: Likewise.
11468         * lib/sig2str.h: Likewise.
11469         * lib/signal.in.h: Likewise.
11470         * lib/signbitd.c: Likewise.
11471         * lib/signbitf.c: Likewise.
11472         * lib/signbitl.c: Likewise.
11473         * lib/sigprocmask.c: Likewise.
11474         * lib/sincosl.c: Likewise.
11475         * lib/sleep.c: Likewise.
11476         * lib/sprintf.c: Likewise.
11477         * lib/sqrtl.c: Likewise.
11478         * lib/stat-time.h: Likewise.
11479         * lib/stdio--.h: Likewise.
11480         * lib/stdio-safer.h: Likewise.
11481         * lib/stdlib--.h: Likewise.
11482         * lib/stdlib-safer.h: Likewise.
11483         * lib/stdlib.in.h: Likewise.
11484         * lib/stpcpy.c: Likewise.
11485         * lib/stpncpy.c: Likewise.
11486         * lib/strchrnul.c: Likewise.
11487         * lib/strcspn.c: Likewise.
11488         * lib/strerror.c: Likewise.
11489         * lib/strftime.c: Likewise.
11490         * lib/strftime.h: Likewise.
11491         * lib/striconveh.c: Likewise.
11492         * lib/striconveh.h: Likewise.
11493         * lib/striconveha.c: Likewise.
11494         * lib/striconveha.h: Likewise.
11495         * lib/stripslash.c: Likewise.
11496         * lib/strnlen1.c: Likewise.
11497         * lib/strnlen1.h: Likewise.
11498         * lib/strtod.c: Likewise.
11499         * lib/strtoimax.c: Likewise.
11500         * lib/strtok_r.c: Likewise.
11501         * lib/strtol.c: Likewise.
11502         * lib/strtoll.c: Likewise.
11503         * lib/strtoul.c: Likewise.
11504         * lib/strtoull.c: Likewise.
11505         * lib/sysexits.in.h: Likewise.
11506         * lib/tempname.c: Likewise.
11507         * lib/tempname.h: Likewise.
11508         * lib/timespec.h: Likewise.
11509         * lib/tls.c: Likewise.
11510         * lib/tls.h: Likewise.
11511         * lib/tmpdir.c: Likewise.
11512         * lib/tmpdir.h: Likewise.
11513         * lib/tmpfile-safer.c: Likewise.
11514         * lib/tmpfile.c: Likewise.
11515         * lib/trigl.c: Likewise.
11516         * lib/trigl.h: Likewise.
11517         * lib/trim.c: Likewise.
11518         * lib/trim.h: Likewise.
11519         * lib/trunc.c: Likewise.
11520         * lib/truncf.c: Likewise.
11521         * lib/truncl.c: Likewise.
11522         * lib/tsearch.c: Likewise.
11523         * lib/unicodeio.c: Likewise.
11524         * lib/unicodeio.h: Likewise.
11525         * lib/unistd--.h: Likewise.
11526         * lib/unistd-safer.h: Likewise.
11527         * lib/unistdio/ulc-fprintf.c: Likewise.
11528         * lib/unistdio/ulc-vfprintf.c: Likewise.
11529         * lib/unlinkdir.c: Likewise.
11530         * lib/unlinkdir.h: Likewise.
11531         * lib/unlocked-io.h: Likewise.
11532         * lib/unsetenv.c: Likewise.
11533         * lib/userspec.c: Likewise.
11534         * lib/utime.c: Likewise.
11535         * lib/utimecmp.c: Likewise.
11536         * lib/utimecmp.h: Likewise.
11537         * lib/utimens.c: Likewise.
11538         * lib/verify.h: Likewise.
11539         * lib/verror.c: Likewise.
11540         * lib/verror.h: Likewise.
11541         * lib/version-etc-fsf.c: Likewise.
11542         * lib/version-etc.c: Likewise.
11543         * lib/version-etc.h: Likewise.
11544         * lib/vfprintf.c: Likewise.
11545         * lib/vprintf.c: Likewise.
11546         * lib/vsprintf.c: Likewise.
11547         * lib/w32spawn.h: Likewise.
11548         * lib/wait-process.c: Likewise.
11549         * lib/wait-process.h: Likewise.
11550         * lib/wcwidth.c: Likewise.
11551         * lib/write-any-file.c: Likewise.
11552         * lib/xalloc-die.c: Likewise.
11553         * lib/xalloc.h: Likewise.
11554         * lib/xasprintf.c: Likewise.
11555         * lib/xgetcwd.c: Likewise.
11556         * lib/xgetcwd.h: Likewise.
11557         * lib/xgetdomainname.c: Likewise.
11558         * lib/xgetdomainname.h: Likewise.
11559         * lib/xgethostname.c: Likewise.
11560         * lib/xmalloc.c: Likewise.
11561         * lib/xmalloca.c: Likewise.
11562         * lib/xmalloca.h: Likewise.
11563         * lib/xmemcoll.c: Likewise.
11564         * lib/xnanosleep.c: Likewise.
11565         * lib/xreadlink.c: Likewise.
11566         * lib/xreadlink.h: Likewise.
11567         * lib/xsetenv.c: Likewise.
11568         * lib/xsetenv.h: Likewise.
11569         * lib/xstriconv.c: Likewise.
11570         * lib/xstriconv.h: Likewise.
11571         * lib/xstrndup.c: Likewise.
11572         * lib/xstrndup.h: Likewise.
11573         * lib/xstrtod.c: Likewise.
11574         * lib/xstrtod.h: Likewise.
11575         * lib/xstrtol-error.c: Likewise.
11576         * lib/xstrtol.c: Likewise.
11577         * lib/xstrtol.h: Likewise.
11578         * lib/xtime.h: Likewise.
11579         * lib/xvasprintf.c: Likewise.
11580         * lib/xvasprintf.h: Likewise.
11581         * lib/yesno.c: Likewise.
11582         * lib/yesno.h: Likewise.
11583         * posix-modules: Likewise.
11584         * tests/test-alloca-opt.c: Likewise.
11585         * tests/test-arcfour.c: Likewise.
11586         * tests/test-arctwo.c: Likewise.
11587         * tests/test-argmatch.c: Likewise.
11588         * tests/test-argp-2.sh: Likewise.
11589         * tests/test-argp.c: Likewise.
11590         * tests/test-arpa_inet.c: Likewise.
11591         * tests/test-array_list.c: Likewise.
11592         * tests/test-array_oset.c: Likewise.
11593         * tests/test-atexit.c: Likewise.
11594         * tests/test-avltree_list.c: Likewise.
11595         * tests/test-avltree_oset.c: Likewise.
11596         * tests/test-avltreehash_list.c: Likewise.
11597         * tests/test-base64.c: Likewise.
11598         * tests/test-binary-io.c: Likewise.
11599         * tests/test-byteswap.c: Likewise.
11600         * tests/test-c-ctype.c: Likewise.
11601         * tests/test-c-strcasecmp.c: Likewise.
11602         * tests/test-c-strcasestr.c: Likewise.
11603         * tests/test-c-strncasecmp.c: Likewise.
11604         * tests/test-c-strstr.c: Likewise.
11605         * tests/test-canonicalize-lgpl.c: Likewise.
11606         * tests/test-canonicalize.c: Likewise.
11607         * tests/test-carray_list.c: Likewise.
11608         * tests/test-ceilf.c: Likewise.
11609         * tests/test-ceill.c: Likewise.
11610         * tests/test-count-one-bits.c: Likewise.
11611         * tests/test-crc.c: Likewise.
11612         * tests/test-dirname.c: Likewise.
11613         * tests/test-fbufmode.c: Likewise.
11614         * tests/test-fcntl.c: Likewise.
11615         * tests/test-fflush.c: Likewise.
11616         * tests/test-floorf.c: Likewise.
11617         * tests/test-floorl.c: Likewise.
11618         * tests/test-fopen.c: Likewise.
11619         * tests/test-fprintf-posix.c: Likewise.
11620         * tests/test-fprintf-posix.h: Likewise.
11621         * tests/test-fpurge.c: Likewise.
11622         * tests/test-freadable.c: Likewise.
11623         * tests/test-freadahead.c: Likewise.
11624         * tests/test-freading.c: Likewise.
11625         * tests/test-freopen.c: Likewise.
11626         * tests/test-frexp.c: Likewise.
11627         * tests/test-frexpl.c: Likewise.
11628         * tests/test-fseek.c: Likewise.
11629         * tests/test-fseeko.c: Likewise.
11630         * tests/test-fseterr.c: Likewise.
11631         * tests/test-fstrcmp.c: Likewise.
11632         * tests/test-ftell.c: Likewise.
11633         * tests/test-ftello.c: Likewise.
11634         * tests/test-fwritable.c: Likewise.
11635         * tests/test-fwriting.c: Likewise.
11636         * tests/test-getaddrinfo.c: Likewise.
11637         * tests/test-getpass.c: Likewise.
11638         * tests/test-gettimeofday.c: Likewise.
11639         * tests/test-hmac-md5.c: Likewise.
11640         * tests/test-hmac-sha1.c: Likewise.
11641         * tests/test-iconv.c: Likewise.
11642         * tests/test-iconvme.c: Likewise.
11643         * tests/test-inttypes.c: Likewise.
11644         * tests/test-isnan.c: Likewise.
11645         * tests/test-isnanf.c: Likewise.
11646         * tests/test-isnanl-nolibm.c: Likewise.
11647         * tests/test-isnanl.c: Likewise.
11648         * tests/test-isnanl.h: Likewise.
11649         * tests/test-ldexpl.c: Likewise.
11650         * tests/test-linked_list.c: Likewise.
11651         * tests/test-linkedhash_list.c: Likewise.
11652         * tests/test-locale.c: Likewise.
11653         * tests/test-localename.c: Likewise.
11654         * tests/test-lock.c: Likewise.
11655         * tests/test-lseek.c: Likewise.
11656         * tests/test-malloca.c: Likewise.
11657         * tests/test-math.c: Likewise.
11658         * tests/test-mbscasecmp.c: Likewise.
11659         * tests/test-mbscasestr1.c: Likewise.
11660         * tests/test-mbscasestr2.c: Likewise.
11661         * tests/test-mbscasestr3.c: Likewise.
11662         * tests/test-mbscasestr4.c: Likewise.
11663         * tests/test-mbschr.c: Likewise.
11664         * tests/test-mbscspn.c: Likewise.
11665         * tests/test-mbsncasecmp.c: Likewise.
11666         * tests/test-mbspbrk.c: Likewise.
11667         * tests/test-mbspcasecmp.c: Likewise.
11668         * tests/test-mbsrchr.c: Likewise.
11669         * tests/test-mbsspn.c: Likewise.
11670         * tests/test-mbsstr1.c: Likewise.
11671         * tests/test-mbsstr2.c: Likewise.
11672         * tests/test-mbsstr3.c: Likewise.
11673         * tests/test-md5.c: Likewise.
11674         * tests/test-memmem.c: Likewise.
11675         * tests/test-netinet_in.c: Likewise.
11676         * tests/test-open.c: Likewise.
11677         * tests/test-printf-frexp.c: Likewise.
11678         * tests/test-printf-frexpl.c: Likewise.
11679         * tests/test-printf-posix.c: Likewise.
11680         * tests/test-printf-posix.h: Likewise.
11681         * tests/test-rbtree_list.c: Likewise.
11682         * tests/test-rbtree_oset.c: Likewise.
11683         * tests/test-rbtreehash_list.c: Likewise.
11684         * tests/test-read-file.c: Likewise.
11685         * tests/test-rijndael.c: Likewise.
11686         * tests/test-search.c: Likewise.
11687         * tests/test-signbit.c: Likewise.
11688         * tests/test-sleep.c: Likewise.
11689         * tests/test-snprintf-posix.c: Likewise.
11690         * tests/test-snprintf-posix.h: Likewise.
11691         * tests/test-snprintf.c: Likewise.
11692         * tests/test-sprintf-posix.c: Likewise.
11693         * tests/test-sprintf-posix.h: Likewise.
11694         * tests/test-stat-time.c: Likewise.
11695         * tests/test-stdbool.c: Likewise.
11696         * tests/test-stdint.c: Likewise.
11697         * tests/test-stdio.c: Likewise.
11698         * tests/test-stdlib.c: Likewise.
11699         * tests/test-stpncpy.c: Likewise.
11700         * tests/test-strcasestr.c: Likewise.
11701         * tests/test-striconv.c: Likewise.
11702         * tests/test-striconveh.c: Likewise.
11703         * tests/test-striconveha.c: Likewise.
11704         * tests/test-string.c: Likewise.
11705         * tests/test-sys_select.c: Likewise.
11706         * tests/test-sys_socket.c: Likewise.
11707         * tests/test-sys_stat.c: Likewise.
11708         * tests/test-sys_time.c: Likewise.
11709         * tests/test-sysexits.c: Likewise.
11710         * tests/test-time.c: Likewise.
11711         * tests/test-tls.c: Likewise.
11712         * tests/test-trunc.c: Likewise.
11713         * tests/test-truncf.c: Likewise.
11714         * tests/test-truncl.c: Likewise.
11715         * tests/test-unistd.c: Likewise.
11716         * tests/test-vasnprintf-posix.c: Likewise.
11717         * tests/test-vasnprintf-posix2.c: Likewise.
11718         * tests/test-vasnprintf.c: Likewise.
11719         * tests/test-vasprintf-posix.c: Likewise.
11720         * tests/test-vasprintf.c: Likewise.
11721         * tests/test-verify.c: Likewise.
11722         * tests/test-vfprintf-posix.c: Likewise.
11723         * tests/test-vprintf-posix.c: Likewise.
11724         * tests/test-vsnprintf-posix.c: Likewise.
11725         * tests/test-vsnprintf.c: Likewise.
11726         * tests/test-vsprintf-posix.c: Likewise.
11727         * tests/test-wchar.c: Likewise.
11728         * tests/test-wctype.c: Likewise.
11729         * tests/test-wcwidth.c: Likewise.
11730         * tests/test-xstrtol.c: Likewise.
11731         * tests/test-xvasprintf.c: Likewise.
11732         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11733         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11734         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11735         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11736         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11737         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11738         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11739         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11740         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11741         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11742         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11743         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11744         * tests/uniname/test-uninames.c: Likewise.
11745         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11746         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11747         * tests/unistdio/test-u16-printf1.h: Likewise.
11748         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11749         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11750         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11751         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11752         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11753         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11754         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11755         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11756         * tests/unistdio/test-u32-printf1.h: Likewise.
11757         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11758         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11759         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11760         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11761         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11762         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11763         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11764         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11765         * tests/unistdio/test-u8-printf1.h: Likewise.
11766         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11767         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11768         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11769         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11770         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11771         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11772         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11773         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11774         * tests/unistdio/test-ulc-printf1.h: Likewise.
11775         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11776         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11777         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11778         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11779         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11780         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11781         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11782         * tests/uniwidth/test-u16-width.c: Likewise.
11783         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11784         * tests/uniwidth/test-u32-width.c: Likewise.
11785         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11786         * tests/uniwidth/test-u8-width.c: Likewise.
11787         * tests/uniwidth/test-uc_width.c: Likewise.
11788         * config/srclist-update: Likewise.
11789         (fixlicense): Update to GPLv3+.
11790
11791         Change copyright notice from LGPLv2.1+ to LGPLv3+.
11792         * tests/test-tsearch.c: Change copyright notice.
11793
11794         Change copyright notice from LGPLv2.0+ to LGPLv3+.
11795         * lib/c-strcaseeq.h: Change copyright notice.
11796         * lib/streq.h: Likewise.
11797         * lib/uniconv.h: Likewise.
11798         * lib/uniconv/u-conv-from-enc.h: Likewise.
11799         * lib/uniconv/u-conv-to-enc.h: Likewise.
11800         * lib/uniconv/u-strconv-from-enc.h: Likewise.
11801         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11802         * lib/uniconv/u16-conv-from-enc.c: Likewise.
11803         * lib/uniconv/u16-conv-to-enc.c: Likewise.
11804         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11805         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11806         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11807         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11808         * lib/uniconv/u32-conv-from-enc.c: Likewise.
11809         * lib/uniconv/u32-conv-to-enc.c: Likewise.
11810         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11811         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11812         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11813         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11814         * lib/uniconv/u8-conv-from-enc.c: Likewise.
11815         * lib/uniconv/u8-conv-to-enc.c: Likewise.
11816         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11817         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11818         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11819         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11820         * lib/uniname.h: Likewise.
11821         * lib/uniname/uniname.c: Likewise.
11822         * lib/unistdio.h: Likewise.
11823         * lib/unistdio/u-asnprintf.h: Likewise.
11824         * lib/unistdio/u-asprintf.h: Likewise.
11825         * lib/unistdio/u-printf-args.c: Likewise.
11826         * lib/unistdio/u-printf-args.h: Likewise.
11827         * lib/unistdio/u-printf-parse.h: Likewise.
11828         * lib/unistdio/u-snprintf.h: Likewise.
11829         * lib/unistdio/u-sprintf.h: Likewise.
11830         * lib/unistdio/u-vasprintf.h: Likewise.
11831         * lib/unistdio/u-vsnprintf.h: Likewise.
11832         * lib/unistdio/u-vsprintf.h: Likewise.
11833         * lib/unistdio/u16-asnprintf.c: Likewise.
11834         * lib/unistdio/u16-asprintf.c: Likewise.
11835         * lib/unistdio/u16-printf-parse.c: Likewise.
11836         * lib/unistdio/u16-snprintf.c: Likewise.
11837         * lib/unistdio/u16-sprintf.c: Likewise.
11838         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11839         * lib/unistdio/u16-u16-asprintf.c: Likewise.
11840         * lib/unistdio/u16-u16-snprintf.c: Likewise.
11841         * lib/unistdio/u16-u16-sprintf.c: Likewise.
11842         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11843         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11844         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11845         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11846         * lib/unistdio/u16-vasnprintf.c: Likewise.
11847         * lib/unistdio/u16-vasprintf.c: Likewise.
11848         * lib/unistdio/u16-vsnprintf.c: Likewise.
11849         * lib/unistdio/u16-vsprintf.c: Likewise.
11850         * lib/unistdio/u32-asnprintf.c: Likewise.
11851         * lib/unistdio/u32-asprintf.c: Likewise.
11852         * lib/unistdio/u32-printf-parse.c: Likewise.
11853         * lib/unistdio/u32-snprintf.c: Likewise.
11854         * lib/unistdio/u32-sprintf.c: Likewise.
11855         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11856         * lib/unistdio/u32-u32-asprintf.c: Likewise.
11857         * lib/unistdio/u32-u32-snprintf.c: Likewise.
11858         * lib/unistdio/u32-u32-sprintf.c: Likewise.
11859         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11860         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11861         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11862         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
11863         * lib/unistdio/u32-vasnprintf.c: Likewise.
11864         * lib/unistdio/u32-vasprintf.c: Likewise.
11865         * lib/unistdio/u32-vsnprintf.c: Likewise.
11866         * lib/unistdio/u32-vsprintf.c: Likewise.
11867         * lib/unistdio/u8-asnprintf.c: Likewise.
11868         * lib/unistdio/u8-asprintf.c: Likewise.
11869         * lib/unistdio/u8-printf-parse.c: Likewise.
11870         * lib/unistdio/u8-snprintf.c: Likewise.
11871         * lib/unistdio/u8-sprintf.c: Likewise.
11872         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
11873         * lib/unistdio/u8-u8-asprintf.c: Likewise.
11874         * lib/unistdio/u8-u8-snprintf.c: Likewise.
11875         * lib/unistdio/u8-u8-sprintf.c: Likewise.
11876         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
11877         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
11878         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
11879         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
11880         * lib/unistdio/u8-vasnprintf.c: Likewise.
11881         * lib/unistdio/u8-vasprintf.c: Likewise.
11882         * lib/unistdio/u8-vsnprintf.c: Likewise.
11883         * lib/unistdio/u8-vsprintf.c: Likewise.
11884         * lib/unistdio/ulc-asnprintf.c: Likewise.
11885         * lib/unistdio/ulc-asprintf.c: Likewise.
11886         * lib/unistdio/ulc-printf-parse.c: Likewise.
11887         * lib/unistdio/ulc-snprintf.c: Likewise.
11888         * lib/unistdio/ulc-sprintf.c: Likewise.
11889         * lib/unistdio/ulc-vasnprintf.c: Likewise.
11890         * lib/unistdio/ulc-vasprintf.c: Likewise.
11891         * lib/unistdio/ulc-vsnprintf.c: Likewise.
11892         * lib/unistdio/ulc-vsprintf.c: Likewise.
11893         * lib/unistr.h: Likewise.
11894         * lib/unistr/u-cpy-alloc.h: Likewise.
11895         * lib/unistr/u-cpy.h: Likewise.
11896         * lib/unistr/u-endswith.h: Likewise.
11897         * lib/unistr/u-move.h: Likewise.
11898         * lib/unistr/u-set.h: Likewise.
11899         * lib/unistr/u-startswith.h: Likewise.
11900         * lib/unistr/u-stpcpy.h: Likewise.
11901         * lib/unistr/u-stpncpy.h: Likewise.
11902         * lib/unistr/u-strcat.h: Likewise.
11903         * lib/unistr/u-strcpy.h: Likewise.
11904         * lib/unistr/u-strcspn.h: Likewise.
11905         * lib/unistr/u-strdup.h: Likewise.
11906         * lib/unistr/u-strlen.h: Likewise.
11907         * lib/unistr/u-strncat.h: Likewise.
11908         * lib/unistr/u-strncpy.h: Likewise.
11909         * lib/unistr/u-strnlen.h: Likewise.
11910         * lib/unistr/u-strpbrk.h: Likewise.
11911         * lib/unistr/u-strspn.h: Likewise.
11912         * lib/unistr/u-strstr.h: Likewise.
11913         * lib/unistr/u-strtok.h: Likewise.
11914         * lib/unistr/u16-check.c: Likewise.
11915         * lib/unistr/u16-chr.c: Likewise.
11916         * lib/unistr/u16-cmp.c: Likewise.
11917         * lib/unistr/u16-cpy-alloc.c: Likewise.
11918         * lib/unistr/u16-cpy.c: Likewise.
11919         * lib/unistr/u16-endswith.c: Likewise.
11920         * lib/unistr/u16-mblen.c: Likewise.
11921         * lib/unistr/u16-mbsnlen.c: Likewise.
11922         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11923         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11924         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11925         * lib/unistr/u16-mbtouc.c: Likewise.
11926         * lib/unistr/u16-mbtoucr.c: Likewise.
11927         * lib/unistr/u16-move.c: Likewise.
11928         * lib/unistr/u16-next.c: Likewise.
11929         * lib/unistr/u16-prev.c: Likewise.
11930         * lib/unistr/u16-set.c: Likewise.
11931         * lib/unistr/u16-startswith.c: Likewise.
11932         * lib/unistr/u16-stpcpy.c: Likewise.
11933         * lib/unistr/u16-stpncpy.c: Likewise.
11934         * lib/unistr/u16-strcat.c: Likewise.
11935         * lib/unistr/u16-strchr.c: Likewise.
11936         * lib/unistr/u16-strcmp.c: Likewise.
11937         * lib/unistr/u16-strcpy.c: Likewise.
11938         * lib/unistr/u16-strcspn.c: Likewise.
11939         * lib/unistr/u16-strdup.c: Likewise.
11940         * lib/unistr/u16-strlen.c: Likewise.
11941         * lib/unistr/u16-strmblen.c: Likewise.
11942         * lib/unistr/u16-strmbtouc.c: Likewise.
11943         * lib/unistr/u16-strncat.c: Likewise.
11944         * lib/unistr/u16-strncmp.c: Likewise.
11945         * lib/unistr/u16-strncpy.c: Likewise.
11946         * lib/unistr/u16-strnlen.c: Likewise.
11947         * lib/unistr/u16-strpbrk.c: Likewise.
11948         * lib/unistr/u16-strrchr.c: Likewise.
11949         * lib/unistr/u16-strspn.c: Likewise.
11950         * lib/unistr/u16-strstr.c: Likewise.
11951         * lib/unistr/u16-strtok.c: Likewise.
11952         * lib/unistr/u16-to-u32.c: Likewise.
11953         * lib/unistr/u16-to-u8.c: Likewise.
11954         * lib/unistr/u16-uctomb-aux.c: Likewise.
11955         * lib/unistr/u16-uctomb.c: Likewise.
11956         * lib/unistr/u32-check.c: Likewise.
11957         * lib/unistr/u32-chr.c: Likewise.
11958         * lib/unistr/u32-cmp.c: Likewise.
11959         * lib/unistr/u32-cpy-alloc.c: Likewise.
11960         * lib/unistr/u32-cpy.c: Likewise.
11961         * lib/unistr/u32-endswith.c: Likewise.
11962         * lib/unistr/u32-mblen.c: Likewise.
11963         * lib/unistr/u32-mbsnlen.c: Likewise.
11964         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11965         * lib/unistr/u32-mbtouc.c: Likewise.
11966         * lib/unistr/u32-mbtoucr.c: Likewise.
11967         * lib/unistr/u32-move.c: Likewise.
11968         * lib/unistr/u32-next.c: Likewise.
11969         * lib/unistr/u32-prev.c: Likewise.
11970         * lib/unistr/u32-set.c: Likewise.
11971         * lib/unistr/u32-startswith.c: Likewise.
11972         * lib/unistr/u32-stpcpy.c: Likewise.
11973         * lib/unistr/u32-stpncpy.c: Likewise.
11974         * lib/unistr/u32-strcat.c: Likewise.
11975         * lib/unistr/u32-strchr.c: Likewise.
11976         * lib/unistr/u32-strcmp.c: Likewise.
11977         * lib/unistr/u32-strcpy.c: Likewise.
11978         * lib/unistr/u32-strcspn.c: Likewise.
11979         * lib/unistr/u32-strdup.c: Likewise.
11980         * lib/unistr/u32-strlen.c: Likewise.
11981         * lib/unistr/u32-strmblen.c: Likewise.
11982         * lib/unistr/u32-strmbtouc.c: Likewise.
11983         * lib/unistr/u32-strncat.c: Likewise.
11984         * lib/unistr/u32-strncmp.c: Likewise.
11985         * lib/unistr/u32-strncpy.c: Likewise.
11986         * lib/unistr/u32-strnlen.c: Likewise.
11987         * lib/unistr/u32-strpbrk.c: Likewise.
11988         * lib/unistr/u32-strrchr.c: Likewise.
11989         * lib/unistr/u32-strspn.c: Likewise.
11990         * lib/unistr/u32-strstr.c: Likewise.
11991         * lib/unistr/u32-strtok.c: Likewise.
11992         * lib/unistr/u32-to-u16.c: Likewise.
11993         * lib/unistr/u32-to-u8.c: Likewise.
11994         * lib/unistr/u32-uctomb.c: Likewise.
11995         * lib/unistr/u8-check.c: Likewise.
11996         * lib/unistr/u8-chr.c: Likewise.
11997         * lib/unistr/u8-cmp.c: Likewise.
11998         * lib/unistr/u8-cpy-alloc.c: Likewise.
11999         * lib/unistr/u8-cpy.c: Likewise.
12000         * lib/unistr/u8-endswith.c: Likewise.
12001         * lib/unistr/u8-mblen.c: Likewise.
12002         * lib/unistr/u8-mbsnlen.c: Likewise.
12003         * lib/unistr/u8-mbtouc-aux.c: Likewise.
12004         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12005         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12006         * lib/unistr/u8-mbtouc.c: Likewise.
12007         * lib/unistr/u8-mbtoucr.c: Likewise.
12008         * lib/unistr/u8-move.c: Likewise.
12009         * lib/unistr/u8-next.c: Likewise.
12010         * lib/unistr/u8-prev.c: Likewise.
12011         * lib/unistr/u8-set.c: Likewise.
12012         * lib/unistr/u8-startswith.c: Likewise.
12013         * lib/unistr/u8-stpcpy.c: Likewise.
12014         * lib/unistr/u8-stpncpy.c: Likewise.
12015         * lib/unistr/u8-strcat.c: Likewise.
12016         * lib/unistr/u8-strchr.c: Likewise.
12017         * lib/unistr/u8-strcmp.c: Likewise.
12018         * lib/unistr/u8-strcpy.c: Likewise.
12019         * lib/unistr/u8-strcspn.c: Likewise.
12020         * lib/unistr/u8-strdup.c: Likewise.
12021         * lib/unistr/u8-strlen.c: Likewise.
12022         * lib/unistr/u8-strmblen.c: Likewise.
12023         * lib/unistr/u8-strmbtouc.c: Likewise.
12024         * lib/unistr/u8-strncat.c: Likewise.
12025         * lib/unistr/u8-strncmp.c: Likewise.
12026         * lib/unistr/u8-strncpy.c: Likewise.
12027         * lib/unistr/u8-strnlen.c: Likewise.
12028         * lib/unistr/u8-strpbrk.c: Likewise.
12029         * lib/unistr/u8-strrchr.c: Likewise.
12030         * lib/unistr/u8-strspn.c: Likewise.
12031         * lib/unistr/u8-strstr.c: Likewise.
12032         * lib/unistr/u8-strtok.c: Likewise.
12033         * lib/unistr/u8-to-u16.c: Likewise.
12034         * lib/unistr/u8-to-u32.c: Likewise.
12035         * lib/unistr/u8-uctomb-aux.c: Likewise.
12036         * lib/unistr/u8-uctomb.c: Likewise.
12037         * lib/unitypes.h: Likewise.
12038         * lib/uniwidth.h: Likewise.
12039         * lib/uniwidth/cjk.h: Likewise.
12040         * lib/uniwidth/u16-strwidth.c: Likewise.
12041         * lib/uniwidth/u16-width.c: Likewise.
12042         * lib/uniwidth/u32-strwidth.c: Likewise.
12043         * lib/uniwidth/u32-width.c: Likewise.
12044         * lib/uniwidth/u8-strwidth.c: Likewise.
12045         * lib/uniwidth/u8-width.c: Likewise.
12046         * lib/uniwidth/width.c: Likewise.
12047
12048 2007-10-07  Bruno Haible  <bruno@clisp.org>
12049
12050         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12051         The file is still under LGPL (see modules/inttypes).
12052
12053 2007-10-06  Bruno Haible  <bruno@clisp.org>
12054
12055         * modules/trunc (Dependencies): Add 'extensions'.
12056         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12057         Reported by Ben Pfaff <blp@gnu.org>.
12058
12059 2007-10-06  Bruno Haible  <bruno@clisp.org>
12060
12061         * modules/freopen-tests: New file.
12062         * tests/test-freopen.c: New file.
12063
12064         * modules/fopen-tests: New file.
12065         * tests/test-fopen.c: New file.
12066
12067         * modules/fopen: New file.
12068         * lib/fopen.c: New file.
12069         * m4/fopen.m4: New file.
12070         * modules/freopen: New file.
12071         * lib/freopen.c: New file.
12072         * m4/freopen.m4: New file.
12073         * lib/stdio.in.h (fopen, freopen): New declarations.
12074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
12075         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12076         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
12077         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12078         * doc/functions/fopen.texi: Mention the 'fopen' module.
12079         * doc/functions/freopen.texi: Mention the 'freopen' module.
12080
12081 2007-10-06  Bruno Haible  <bruno@clisp.org>
12082
12083         * modules/open-tests: New file.
12084         * tests/test-open.c: New file.
12085
12086         * modules/open: New file.
12087         * lib/open.c: New file.
12088         * m4/open.m4: New file.
12089         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
12090         lib/open.c does.
12091         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
12092         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
12093         macros.
12094         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
12095         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
12096         REPLACE_OPEN.
12097         * doc/functions/open.texi: Mention the 'open' module.
12098
12099 2007-10-04  Bruno Haible  <bruno@clisp.org>
12100
12101         * modules/ceill-tests: New file.
12102         * tests/test-ceill.c: New file.
12103
12104         * modules/ceill: New file.
12105         * lib/ceill.c: Replace entire file.
12106         * m4/ceill.m4: New file.
12107         * lib/math.in.h (ceill): Replace declaration.
12108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
12109         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
12110         * doc/functions/ceill.texi: Mention the 'ceill' module.
12111         * modules/mathl (Files): Remove lib/ceill.c.
12112         (Depends-on): Add ceill.
12113
12114 2007-10-04  Bruno Haible  <bruno@clisp.org>
12115
12116         * modules/ceilf-tests: New file.
12117         * tests/test-ceilf.c: New file.
12118
12119         * modules/ceilf: New file.
12120         * lib/ceil.c: New file.
12121         * lib/ceilf.c: New file.
12122         * m4/ceilf.m4: New file.
12123         * lib/math.in.h (ceilf): New declaration.
12124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
12125         HAVE_DECL_CEILF.
12126         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
12127         HAVE_DECL_CEILF.
12128         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
12129
12130 2007-10-04  Bruno Haible  <bruno@clisp.org>
12131
12132         * modules/floorl-tests: New file.
12133         * tests/test-floorl.c: New file.
12134
12135         * modules/floorl: New file.
12136         * lib/floorl.c: Replace entire file.
12137         * m4/floorl.m4: New file.
12138         * lib/math.in.h (floorl): Replace declaration.
12139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12140         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12141         * doc/functions/floorl.texi: Mention the 'floorl' module.
12142         * modules/mathl (Files): Remove lib/floorl.c.
12143         (Depends-on): Add floorl.
12144
12145 2007-10-04  Bruno Haible  <bruno@clisp.org>
12146
12147         * modules/floorf-tests: New file.
12148         * tests/test-floorf.c: New file.
12149
12150         * modules/floorf: New file.
12151         * lib/floor.c: New file.
12152         * lib/floorf.c: New file.
12153         * m4/floorf.m4: New file.
12154         * lib/math.in.h (floorf): New declaration.
12155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12156         HAVE_DECL_FLOORF.
12157         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12158         HAVE_DECL_FLOORF.
12159         * doc/functions/floorf.texi: Mention the 'floorf' module.
12160
12161 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
12162             Bruno Haible  <bruno@clisp.org>
12163
12164         Advertise for the Git server instead of the CVS server.
12165         * doc/gnulib-intro.texi (Steady Development): Mention the Git
12166         repository instead of the CVS one.
12167         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12168         about all VCS systems generically.
12169         * doc/gnulib.texi (Introduction): Capitalize `Git'.
12170
12171 2007-10-04  Bruno Haible  <bruno@clisp.org>
12172
12173         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12174         means.
12175         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12176
12177 2007-10-04  Bruno Haible  <bruno@clisp.org>
12178
12179         * modules/truncl-tests: New file.
12180         * tests/test-truncl.c: New file.
12181
12182         * modules/truncl: New file.
12183         * lib/truncl.c: New file.
12184         * m4/truncl.m4: New file.
12185         * lib/math.in.h (truncl): New declaration.
12186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12187         HAVE_DECL_TRUNCL.
12188         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12189         HAVE_DECL_TRUNCL.
12190         * doc/functions/truncl.texi: Mention the 'truncl' module.
12191
12192 2007-10-04  Bruno Haible  <bruno@clisp.org>
12193
12194         * modules/truncf-tests: New file.
12195         * tests/test-truncf.c: New file.
12196
12197         * modules/truncf: New file.
12198         * lib/trunc.c: Make paramerizable through USE_* macros.
12199         * lib/truncf.c: New file.
12200         * m4/truncf.m4: New file.
12201         * lib/math.in.h (truncf): New declaration.
12202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12203         HAVE_DECL_TRUNCF.
12204         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12205         HAVE_DECL_TRUNCF.
12206         * doc/functions/truncf.texi: Mention the 'truncf' module.
12207
12208 2007-10-03  Bruno Haible  <bruno@clisp.org>
12209
12210         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12211         augmentation also for tests modules.
12212         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12213         * modules/atexit-tests (Makefile.am): Likewise.
12214         * modules/binary-io-tests (Makefile.am): Likewise.
12215         * modules/c-strcase-tests (Makefile.am): Likewise.
12216         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12217         * modules/canonicalize-tests (Makefile.am): Likewise.
12218         * modules/closein-tests (Makefile.am): Likewise.
12219         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12220         * modules/freadahead-tests (Makefile.am): Likewise.
12221         * modules/fseek-tests (Makefile.am): Likewise.
12222         * modules/fseeko-tests (Makefile.am): Likewise.
12223         * modules/ftell-tests (Makefile.am): Likewise.
12224         * modules/ftello-tests (Makefile.am): Likewise.
12225         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12226         * modules/isnanl-tests (Makefile.am): Likewise.
12227         * modules/lseek-tests (Makefile.am): Likewise.
12228         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12229         * modules/mbscasestr-tests (Makefile.am): Likewise.
12230         * modules/mbschr-tests (Makefile.am): Likewise.
12231         * modules/mbscspn-tests (Makefile.am): Likewise.
12232         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12233         * modules/mbspbrk-tests (Makefile.am): Likewise.
12234         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12235         * modules/mbsrchr-tests (Makefile.am): Likewise.
12236         * modules/mbsspn-tests (Makefile.am): Likewise.
12237         * modules/mbsstr-tests (Makefile.am): Likewise.
12238         * modules/printf-posix-tests (Makefile.am): Likewise.
12239         * modules/snprintf-posix-tests (Makefile.am): Likewise.
12240         * modules/sprintf-posix-tests (Makefile.am): Likewise.
12241         * modules/tsearch-tests (Makefile.am): Likewise.
12242         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12243         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12244         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12245         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12246         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12247         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12248         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12249         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12250         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12251         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12252         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12253         * modules/xstrtol-tests (Makefile.am): Likewise.
12254         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12255         * modules/yesno-tests (Makefile.am): Likewise.
12256
12257 2007-10-03  Bruno Haible  <bruno@clisp.org>
12258
12259         * modules/trunc-tests: New file.
12260         * tests/test-trunc.c: New file.
12261
12262         * modules/trunc: New file.
12263         * lib/trunc.c: New file.
12264         * m4/trunc.m4: New file.
12265         * lib/math.in.h (trunc): New declaration.
12266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12267         HAVE_DECL_TRUNC.
12268         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12269         HAVE_DECL_TRUNC.
12270         * doc/functions/trunc.texi: Mention the 'trunc' module.
12271
12272 2007-10-03  Bruno Haible  <bruno@clisp.org>
12273
12274         * tests/test-fpending.c: New file, mostly copied
12275         from coreutils/lib/t-fpending.c.
12276         * modules/fpending-tests: New file.
12277
12278 2007-10-03  Bruno Haible  <bruno@clisp.org>
12279
12280         Port the stdio extensions to QNX (untested).
12281         * lib/fseterr.c (fseterr): Add support for QNX.
12282         * lib/fbufmode.c (fbufmode): Likewise.
12283         * lib/freadable.c (freadable): Likewise.
12284         * lib/fwritable.c (fwritable): Likewise.
12285         * lib/freading.c (freading): Likewise.
12286         * lib/fwriting.c (fwriting): Likewise.
12287         * lib/freadahead.c (freadahed): Likewise.
12288         * lib/fpurge.c (fpurge): Likewise.
12289         * lib/fseeko.c (rpl_fseeko): Likewise.
12290
12291 2007-10-03  Bruno Haible  <bruno@clisp.org>
12292             Jim Meyering  <jim@meyering.net>
12293             Eric Blake  <ebb9@byu.net>
12294
12295         * doc/relocatable.texi: Use @command instead of @program.
12296
12297 2007-10-02  Jim Meyering  <jim@meyering.net>
12298
12299         Perform one more "_.h" -> ".in.h" substitution.
12300         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12301         instead of unistd_.h here, too.
12302
12303 2007-10-01  Bruno Haible  <bruno@clisp.org>
12304
12305         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12306         Needed for the alloca-opt module.
12307
12308 2007-09-30  Bruno Haible  <bruno@clisp.org>
12309
12310         * lib/alloca.in.h: Renamed from lib/alloca_.h.
12311         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12312         alloca_.h.
12313         * lib/argz.in.h: Renamed from lib/argz_.h.
12314         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12315         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12316         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12317         byteswap_.h.
12318         * lib/dirent.in.h: Renamed from lib/dirent_.h.
12319         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12320         dirent_.h.
12321         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12322         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12323         fcntl_.h.
12324         * lib/float.in.h: Renamed from lib/float_.h.
12325         * modules/float (Files, Makefile.am): Use float.in.h instead of
12326         float_.h.
12327         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12328         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12329         fnmatch_.h.
12330         * lib/getopt.in.h: Renamed from lib/getopt_.h.
12331         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12332         getopt_.h.
12333         * lib/glob.in.h: Renamed from lib/glob_.h.
12334         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12335         * lib/iconv.in.h: Renamed from lib/iconv_.h.
12336         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12337         iconv_.h.
12338         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12339         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12340         inttypes_.h.
12341         * lib/locale.in.h: Renamed from lib/locale_.h.
12342         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12343         locale_.h.
12344         * lib/math.in.h: Renamed from lib/math_.h.
12345         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12346         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12347         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12348         of netinet_in_.h. Add dependency.
12349         * lib/poll.in.h: Renamed from lib/poll_.h.
12350         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12351         * lib/search.in.h: Renamed from lib/search_.h.
12352         * modules/search (Files, Makefile.am): Use search.in.h instead of
12353         search_.h.
12354         * lib/signal.in.h: Renamed from lib/signal_.h.
12355         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12356         _signal.h.
12357         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12358         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12359         stdbool_.h.
12360         * lib/stdint.in.h: Renamed from lib/stdint_.h.
12361         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12362         stdint_.h.
12363         * lib/stdio.in.h: Renamed from lib/stdio_.h.
12364         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12365         stdio_.h.
12366         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12367         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12368         stdlib_.h.
12369         * lib/string.in.h: Renamed from lib/string_.h.
12370         * modules/string (Files, Makefile.am): Use string.in.h instead of
12371         string_.h.
12372         * doc/gnulib-tool.texi (Initial import): Update.
12373         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12374         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12375         of sys_select_.h. Add dependency.
12376         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12377         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12378         of sys_socket_.h.
12379         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12380         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12381         sys_stat_.h.
12382         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12383         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12384         sys_time_.h.
12385         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12386         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12387         sysexits_.h.
12388         * lib/time.in.h: Renamed from lib/time_.h.
12389         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12390         * lib/unistd.in.h: Renamed from lib/unistd_.h.
12391         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12392         unistd_.h.
12393         * lib/wchar.in.h: Renamed from lib/wchar_.h.
12394         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12395         wchar_.h.
12396         * lib/wctype.in.h: Renamed from lib/wctype_.h.
12397         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12398         wctype_.h.
12399         * build-aux/bootstrap (slurp): Update.
12400         * lib/.cppi-disable: Update.
12401
12402 2007-09-30  Bruno Haible  <bruno@clisp.org>
12403
12404         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12405         Needed on BeOS.
12406
12407 2007-09-30  Bruno Haible  <bruno@clisp.org>
12408
12409         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12410
12411 2007-09-29  Bruno Haible  <bruno@clisp.org>
12412
12413         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12414
12415 2007-09-29  Bruno Haible  <bruno@clisp.org>
12416
12417         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12418         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12419         * build-aux/install-reloc: Compile also areadlink.c.
12420         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12421
12422 2007-09-29  Bruno Haible  <bruno@clisp.org>
12423
12424         * gnulib-tool (func_emit_initmacro_done): Indentation.
12425
12426 2007-09-29  Bruno Haible  <bruno@clisp.org>
12427
12428         * README: Add CVS checkout update instructions.
12429         Info from Bob Proulx <bob@proulx.com>.
12430
12431 2007-09-28  Eric Blake  <ebb9@byu.net>
12432
12433         Provide move-if-change.
12434         * build-aux/move-if-change: New file, based on best practice
12435         rather than any canonical upstream location.
12436
12437 2007-09-28  Jim Meyering  <jim@meyering.net>
12438
12439         Fix canonicalize loop-detection corner case.
12440         Do not attempt to stat the symlink values stored via seen_triple.
12441         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12442         on linux-2.6.18, (but not 2.6.22).
12443         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12444         triple_compare.  The former compares dev,ino,filename, while the latter
12445         would actually stat dirname(filename) when dev and ino were equal.
12446         * lib/hash-triple.c: Install <string.h>.
12447         (STREQ): Define.
12448         (triple_compare_ino_str): New function.
12449         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12450
12451 2007-09-28  Eric Blake  <ebb9@byu.net>
12452
12453         Enforce that AC_REPLACE_FUNCS files exist.
12454         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12455         override check for typos.
12456
12457         Fix test-closein on Solaris 10.
12458         * tests/test-closein.c (main): Don't assume stdin can be inherited
12459         closed on all systems.
12460         * tests/test-closein.sh: Likewise.
12461         Reported by Piotr Tarnowski.
12462
12463 2007-09-28  Jim Meyering  <jim@meyering.net>
12464
12465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12466
12467 2007-09-27  Jim Meyering  <jim@meyering.net>
12468
12469         canonicalize: Avoid a false-positive cycle failure.
12470         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12471         Sort.  Remove cycle-check.
12472         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12473         not cycle-check.h.
12474         (seen_triple): New function.
12475         (canonicalize_filename_mode): Use it instead of cycle-check.
12476         * tests/test-canonicalize.c: Add a test for this bug.
12477         * tests/test-canonicalize.sh: Set up and run the test.
12478
12479         New module, file-set, from coreutils.
12480         * modules/file-set: Define it.
12481         * lib/file-set.c, lib/file-set.h: Implement.
12482
12483         New module, hash-triple, from coreutils.
12484         * modules/hash-triple: Define it.
12485         * lib/hash-triple.c, lib/hash-triple.h: Implement.
12486
12487 2007-09-25  Eric Blake  <ebb9@byu.net>
12488
12489         Fix strerror on Interix.
12490         * lib/string_.h (strerror): Declare replacement.
12491         * doc/functions/strerror.texi (strerror): Document the Interix
12492         shortcoming.
12493         * modules/string (Makefile.am): Support new hooks.
12494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12495         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12496         gl_FUNC_STRERROR_SEPARATE.
12497         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12498         * lib/strerror.c (rpl_strerror): Provide replacement.
12499         * modules/strerror (Depends-on): Add string.
12500         (configure.ac): Detect use of module.
12501         * tests/test-strerror.c: New file.
12502         * modules/strerror-tests: New test module.
12503         * modules/argp (Depends-on): Add strerror.
12504         * modules/error (Depends-on): Likewise.
12505         Reported by Martin Koeppe.
12506
12507 2007-09-24  Bruno Haible  <bruno@clisp.org>
12508
12509         * README: Update git instructions.
12510
12511 2007-09-24  Eric Blake  <ebb9@byu.net>
12512
12513         Revert fpending breakage from 2007-09-08.
12514         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12515         __fpending.c.
12516
12517 2007-09-24  Jim Meyering  <jim@meyering.net>
12518
12519         filenamecat.c: Add a test.
12520         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12521         showing how the function works when DIR is the empty string.
12522
12523 2007-09-21  Simon Josefsson  <simon@josefsson.org>
12524
12525         * tests/test-canonicalize.sh: Turn on executable bit.
12526
12527 2007-09-19  Eric Blake  <ebb9@byu.net>
12528
12529         * README: Update CVS instructions.
12530
12531 2007-09-18  Bruno Haible  <bruno@clisp.org>
12532
12533         * modules/areadlink: New file.
12534         * lib/areadlink.h (areadlink): New declaration.
12535         * lib/areadlink.c: New file, based on lib/xreadlink.c.
12536
12537 2007-09-17  Jim Meyering  <jim@meyering.net>
12538
12539         * lib/savewd.c (ESTALE) [!defined]: Define.
12540         Reported to be required on Interix by Martin Koeppe.
12541
12542 2007-09-17  Bruno Haible  <bruno@clisp.org>
12543
12544         * gnulib-tool (func_version): Use $version.
12545
12546 2007-09-16  Bruno Haible  <bruno@clisp.org>
12547
12548         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12549         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12550         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12551         Reported by Greg Schafer <gschafer@zip.com.au>.
12552
12553 2007-09-15  Bruno Haible  <bruno@clisp.org>
12554
12555         * gnulib-tool (sed): Try a little harder to make bash understand the
12556         alias.
12557         Reported by Bruce Korb <bruce.korb@gmail.com>.
12558
12559 2007-09-13  Eric Blake  <ebb9@byu.net>
12560
12561         * ChangeLog: Remove conflict markers.
12562
12563 2007-09-13  Simon Josefsson  <simon@josefsson.org>
12564
12565         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12566         Reported by Bruno Haible <bruno@clisp.org>.
12567
12568 2007-09-12  Bruno Haible  <bruno@clisp.org>
12569
12570         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12571         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12572         is not defined.
12573
12574 2007-09-12  Eric Blake  <ebb9@byu.net>
12575
12576         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12578         Autoconf definition.
12579         * modules/euidaccess (Depends-on): Add extensions, for
12580         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12581         * modules/fnmatch (Depends-on): Likewise.
12582         * modules/getaddrinfo (Depends-on): Likewise.
12583         * modules/getdelim (Depends-on): Likewise.
12584         * modules/getline (Depends-on): Likewise.
12585         * modules/getsubopt (Depends-on): Likewise.
12586         * modules/gettext (Depends-on): Likewise.
12587         * modules/group-member (Depends-on): Likewise.
12588         * modules/mbchar (Depends-on): Likewise.
12589         * modules/memmem (Depends-on): Likewise.
12590         * modules/mempcpy (Depends-on): Likewise.
12591         * modules/memrchr (Depends-on): Likewise.
12592         * modules/pagealign_alloc (Depends-on): Likewise.
12593         * modules/readutmp (Depends-on): Likewise.
12594         * modules/stpcpy (Depends-on): Likewise.
12595         * modules/stpncpy (Depends-on): Likewise.
12596         * modules/strchrnul (Depends-on): Likewise.
12597         * modules/strndup (Depends-on): Likewise.
12598         * modules/strsep (Depends-on): Likewise.
12599         * modules/strverscmp (Depends-on): Likewise.
12600         * modules/vasprintf (Depends-on): Likewise.
12601         * modules/wcwidth (Depends-on): Likewise.
12602         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12603         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12604         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12606         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12607         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12608         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12609         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12610         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12611         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12613         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12614         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12615         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12616         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12617         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12619         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12621         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12622         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12623         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12624         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12625         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12626         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12628         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12629         so that lock.m4 can be used in gettext without extensions module.
12630
12631 2007-09-11  Bruno Haible  <bruno@clisp.org>
12632
12633         * m4/isc-posix.m4: Remove file.
12634         Suggested by Eric Blake.
12635
12636 2007-09-11  Eric Blake  <ebb9@byu.net>
12637
12638         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12639
12640 2007-09-10  Bruno Haible  <bruno@clisp.org>
12641
12642         * posix-modules: Fix typo in error message.
12643         Reported by Matt <mkraai@beckman.com>.
12644
12645 2007-09-09  Bruno Haible  <bruno@clisp.org>
12646
12647         * doc/functions/getdelim.texi: Update list of platforms lacking the
12648         function.
12649         * doc/functions/getline.texi: Likewise.
12650
12651 2007-09-09  Jim Meyering  <jim@meyering.net>
12652
12653         * lib/hash.c (hash_initialize): Detect calloc failure.
12654         Reported by Bruno Haible.
12655
12656 2007-09-09  Bruno Haible  <bruno@clisp.org>
12657
12658         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12659         malloc or realloc fails.
12660
12661 2007-09-09  Bruno Haible  <bruno@clisp.org>
12662
12663         * modules/getcwd (Depends-on): Add malloc-posix.
12664         * modules/glob (Depends-on): Likewise.
12665         * modules/putenv (Depends-on): Likewise.
12666         * modules/strdup (Depends-on): Likewise.
12667         * modules/getdelim (Depends-on): Add realloc-posix.
12668         * modules/read-file (Depends-on): Likewise.
12669
12670 2007-09-09  Bruno Haible  <bruno@clisp.org>
12671
12672         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12673         (gl_FUNC_MALLOC_POSIX): Require it.
12674         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12675         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12676         * modules/realloc (Files): Add m4/malloc.m4.
12677         * modules/calloc (Files): Likewise.
12678
12679 2007-09-09  Bruno Haible  <bruno@clisp.org>
12680
12681         * modules/malloc-posix: New file.
12682         * modules/malloc (Depends-on): Add malloc-posix.
12683         * lib/malloc.c: Include errno.h.
12684         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12685         and a POSIX-compatible malloc into a single function. Set ENOMEM
12686         when returning NULL.
12687         * m4/malloc.m4: New file.
12688         * doc/functions/malloc.texi: Mention the malloc-posix module.
12689         * lib/stdlib_.h (malloc): New declaration.
12690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12691         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12692         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12693         and HAVE_MALLOC_POSIX.
12694
12695 2007-09-09  Bruno Haible  <bruno@clisp.org>
12696
12697         * modules/realloc-posix: New file.
12698         * modules/realloc (Depends-on): Add realloc-posix.
12699         * lib/realloc.c: Include errno.h.
12700         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12701         and a POSIX-compatible realloc into a single function. Set ENOMEM
12702         when returning NULL.
12703         * m4/realloc.m4: New file.
12704         * doc/functions/realloc.texi: Mention the realloc-posix module.
12705         * lib/stdlib_.h (realloc): New declaration.
12706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12707         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12708         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12709         and HAVE_REALLOC_POSIX.
12710
12711 2007-09-09  Bruno Haible  <bruno@clisp.org>
12712
12713         * modules/calloc-posix: New file.
12714         * modules/calloc (Depends-on): Add calloc-posix.
12715         * lib/calloc.c: Include errno.h.
12716         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12717         and a POSIX-compatible calloc into a single function. Set ENOMEM
12718         when returning NULL.
12719         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12720         * doc/functions/calloc.texi: Mention the calloc-posix module.
12721         * lib/stdlib_.h (calloc): New declaration.
12722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12723         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12724         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12725         and HAVE_CALLOC_POSIX.
12726
12727 2007-09-09  Bruno Haible  <bruno@clisp.org>
12728
12729         Allow for modules to show an arbitrary notice.
12730         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12731         * gnulib-tool: New option --extract-notice.
12732         (func_usage): Document it.
12733         (sed_extract_prog): Update.
12734         (func_get_notice): New function.
12735         (func_modules_notice): New function.
12736         (func_import, func_create_testdir): Invoke it.
12737         Suggested by Jim Meyering.
12738
12739 2007-09-09  Bruno Haible  <bruno@clisp.org>
12740
12741         * gnulib-tool: New options --verbose, --quiet.
12742         (func_usage): Document them.
12743         (verbose): New variable.
12744         (func_execute_command): New function.
12745         (func_import): Don't show the module list and the file list if
12746         $verbose < 0.
12747         (func_create_testdir): Likewise. Use func_execute_command.
12748         (func_create_megatestdir): Use func_execute_command.
12749
12750 2007-09-08  Bruno Haible  <bruno@clisp.org>
12751
12752         * gnulib-tool (func_import): Prefer rsync over wget when available,
12753         for fetching the PO files.
12754
12755 2007-09-08  Bruno Haible  <bruno@clisp.org>
12756
12757         * posix-modules: New file. Portions copied from gnulib-tool.
12758         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12759
12760 2007-09-08  Jim Meyering  <jim@meyering.net>
12761
12762         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12763         * lib/fpending.h: Rename from __fpending.h.
12764         * lib/fpending.c: Rename from __fpending.c.
12765         Include "fpending.h", not "__fpending.h".
12766         * lib/__fpending.h, lib/__fpending.c: Remove files.
12767         * modules/fpending (Files): Reflect new file names.
12768         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12769
12770 2007-09-08  Bruno Haible  <bruno@clisp.org>
12771
12772         * m4/inttypes-h.m4: Remove stub file.
12773
12774 2007-09-07  Simon Josefsson  <simon@josefsson.org>
12775
12776         * doc/headers/stdint.texi: Discuss #include_next issue.
12777
12778 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12779
12780         * build-aux/bootstrap: Remove obsolete comment about wget --help.
12781
12782 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12783
12784         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12785         in variable name.
12786
12787 2007-09-03  Jim Meyering  <jim@meyering.net>
12788
12789         New module: git-version-gen.
12790         * modules/git-version-gen: New file.
12791
12792         Import changes from coreutils for bootstrap script.
12793
12794         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12795
12796         bootstrap: uses rsync to download the .po files
12797         * build-aux/bootstrap (po_download_command_format): New global.
12798         (download_po_files): Use rsync.
12799         (update_po_files): Don't remove .po files after download,
12800         so future rsync runs can take advantage of the copies.
12801
12802         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12803
12804         Solve the unnecessary-.po-file-regeneration problem once and for all.
12805         * build-aux/bootstrap (download_po_files): New function, renamed from
12806         get_translations.  Now, downloads, but doesn't update LINGUAS.
12807         (update_po_files): New function.
12808
12809         bootstrap: Ignore more.
12810         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12811         uniwidth to e.g., lib/.gitignore.
12812         (slurp): Handle the sys_stat_.h -> sys mapping, too.
12813
12814         * build-aux/bootstrap: New setting: vc_ignore.
12815         (insert_sorted_if_absent): Create $file if absent.
12816         Adapt to new, possibly empty, list: $vc_ignore.
12817
12818         bootstrap: generate more ignorable names
12819         * build-aux/bootstrap (slurp): When generating ignorable names,
12820         also map .sin to .sed, .gperf to .c, and .y to .c.
12821
12822 2007-09-03  Jim Meyering  <jim@meyering.net>
12823
12824         * build-aux/git-version-gen: New file, from coreutils.  For details, see
12825         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12826
12827 2007-09-02  Bruno Haible  <bruno@clisp.org>
12828
12829         Fix mis-recognition of 'mcs' on QNX 6.
12830         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12831         output contains the string "Mono".
12832         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12833         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12834
12835 2007-09-01  Bruno Haible  <bruno@clisp.org>
12836
12837         Fix collision between uniwidth/* and linebreak modules.
12838         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12839         u32_width): Remove declarations.
12840         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12841         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12842         streq3, streq2, streq1, streq0): Remove functions.
12843         (STREQ): Remove macro.
12844         (is_cjk_encoding): Remove function.
12845         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12846         (uc_width, u8_width, u16_width, u32_width): Remove functions.
12847         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12848         * NEWS: Document the change.
12849
12850 2007-09-01  Bruno Haible  <bruno@clisp.org>
12851
12852         * lib/streq.h: Add double-inclusion guard.
12853
12854 2007-09-01  Karl Berry  <karl@gnu.org>
12855
12856         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12857
12858 2007-08-28  Jim Meyering  <jim@meyering.net>
12859
12860         Rename mreadlink_with_size to areadlink_with_size.
12861         * NEWS: Document the change.
12862         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
12863         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
12864         * lib/mreadlink.h: Rename this to...
12865         * lib/areadlink.h: ...this.
12866         * modules/mreadlink-with-size: Rename this to...
12867         * modules/areadlink-with-size: ...this.
12868         * lib/canonicalize.c: Reflect the renaming.
12869         * modules/canonicalize: Likewise.
12870
12871 2007-08-26  Bruno Haible  <bruno@clisp.org>
12872
12873         * gnulib-tool (func_import): When deciding which files to remove,
12874         consider also dangling symbolic links.
12875         Reported by Eric Blake.
12876
12877 2007-08-26  Bruno Haible  <bruno@clisp.org>
12878
12879         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
12880
12881 2007-08-23  Simon Josefsson  <simon@josefsson.org>
12882
12883         * lib/readline.c: Don't include getline.h, the prototype is now
12884         found in stdio.h.
12885
12886 2007-08-23  Jim Meyering  <jim@meyering.net>
12887
12888         Getdelim touchup.
12889         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
12890         around the funlockfile call, since funlockfile never sets errno.
12891         Don't set errno upon failed realloc.
12892
12893 2007-08-22  Eric Blake  <ebb9@byu.net>
12894
12895         Getline touchups.
12896         * lib/getdelim.c (getdelim): Revert regression that required *n to
12897         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
12898         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
12899         getdelim, rather than whether implementation is missing.
12900         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
12901         * lib/stdio_.h (getline): Also declare if replacement is
12902         required.
12903         * doc/functions/getdelim.texi: New file.
12904         * doc/functions/getline.texi: Likewise.
12905         * doc/gnulib.texi (Function Substitutes): Add new files.
12906         Reported by Bruno Haible.
12907
12908 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
12909
12910         * users.txt: Add Guile.
12911
12912 2007-08-22  Eric Blake  <ebb9@byu.net>
12913
12914         * tests/test-getdelim.c (main): Use remove, not unlink.
12915         * tests/test-getline.c (main): Likewise.
12916
12917         Move getline and getdelim into stdio.h, per POSIX 200x.
12918         * modules/getline (Files): Remove getline.h.
12919         (Depends-on): Add stdio.
12920         (configure.ac): Add module indicator.
12921         * modules/getdelim (Files): Remove getdelim.h.
12922         (Depends-on): Add stdio.
12923         (configure.ac): Add module indicator.
12924         * modules/stdio (Makefile.am): Work with new indicators.
12925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
12926         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
12927         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12928         * lib/getdelim.h: Delete.
12929         * lib/getline.h: Delete.
12930         * lib/stdio_.h (getdelim, getline): Declare.
12931         * modules/getdelim-tests: New module.
12932         * modules/getline-tests: Likewise.
12933         * tests/test-getdelim.c: New file.
12934         * tests/test-getline.c: Likewise.
12935         * NEWS: Document the change.
12936         * lib/getline.c: Update choice of header.
12937         * lib/csharpcomp.c: Likewise.
12938         * lib/getpass.c: Likewise.
12939         * lib/javacomp.c: Likewise.
12940         * lib/javaversion.c: Likewise.
12941         * lib/yesno.c: Likewise.
12942         * lib/getdelim.c: Likewise.
12943         (getdelim): Set errno on failure, and avoid memory leak.
12944
12945 2007-08-19  Bruno Haible  <bruno@clisp.org>
12946
12947         * modules/closein (Depends-on): Add freadahead.
12948         * lib/closein.c: Include freadahead.h.
12949         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
12950         is zero.
12951
12952 2007-08-19  Bruno Haible  <bruno@clisp.org>
12953
12954         * modules/freadahead-tests: New file.
12955         * tests/test-freadahead.sh: New file.
12956         * tests/test-freadahead.c: New file.
12957
12958         * modules/freadahead: New file.
12959         * lib/freadahead.h: New file.
12960         * lib/freadahead.c: New file.
12961         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
12962         fbufmode, fpurge, freadable, fwritable.
12963
12964 2007-08-19  Eric Blake  <ebb9@byu.net>
12965
12966         Test yesno in combination with closein.
12967         * lib/yesno.c (yesno): Document use of stdin.
12968         * modules/yesno-tests (Files): New module.
12969         * tests/test-yesno.c (main): New file.
12970         * tests/test-yesno.sh: Likewise.
12971
12972 2007-08-19  Bruno Haible  <bruno@clisp.org>
12973
12974         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
12975         * lib/fseeko.c (rpl_fseeko): Likewise.
12976         * lib/fseterr.c (fseterr): Likewise.
12977
12978 2007-08-19  Bruno Haible  <bruno@clisp.org>
12979
12980         * tests/test-lseek.c (main): Disable a test for BeOS.
12981         * doc/functions/lseek.texi: Document the BeOS bug.
12982
12983 2007-08-19  Bruno Haible  <bruno@clisp.org>
12984             Eric Blake  <ebb9@byu.net>
12985
12986         * lib/lseek.c: Include <sys/stat.h>.
12987         (rpl_lseek): Add workaround code also for Unix platforms.
12988         Needed for BeOS.
12989         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
12990         * doc/functions/lseek.texi: Document BeOS definiency.
12991
12992 2007-08-18  Bruno Haible  <bruno@clisp.org>
12993
12994         * modules/fstrcmp-tests: New file.
12995         * tests/test-fstrcmp.c: New file.
12996
12997 2007-08-18  Bruno Haible  <bruno@clisp.org>
12998
12999         * modules/fstrcmp: New file, from GNU gettext with modifications.
13000         * lib/fstrcmp.h: New file, from GNU gettext.
13001         * lib/fstrcmp.c: New file, from GNU gettext.
13002         * MODULES.html.sh (String handling): Add fstrcmp.
13003
13004 2007-08-18  Bruno Haible  <bruno@clisp.org>
13005
13006         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13007         'bool'.
13008         (diag, compareseq): Remove const from the ctxt argument.
13009         (USE_HEURISTIC): Undefine at the end.
13010
13011 2007-08-18  Jim Meyering  <jim@meyering.net>
13012
13013         New file: lib/idcache.h
13014         * NEWS: Mention the addition.
13015         * modules/idcache (Files): Add lib/idcache.h
13016         * lib/idcache.c: Include "idcache.h".
13017         Don't include <sys/types.h>.
13018         Add a FIXME comment.
13019         Move file-scoped "static" declarations to the top.
13020         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
13021
13022 2007-08-17  Bruno Haible  <bruno@clisp.org>
13023         and Paul Eggert  <eggert@cs.ucla.edu>
13024
13025         * MODULES.html.sh: Add diffseq.
13026         * modules/diffseq: New file.
13027         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13028         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13029
13030 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13031
13032         Import changes from coreutils for bootstrap script.
13033
13034         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
13035
13036         * build-aux/bootstrap (slurp): Work even in environments where
13037         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
13038         current code does not slurp files whose names start with ".", and
13039         this looks like it might be a troublesome area.
13040
13041         2007-07-11  Jim Meyering  <jim@meyering.net>
13042
13043         If there's a GPL vN copyright comment, require that N == 3.
13044
13045         2007-07-08  Jim Meyering  <jim@meyering.net>
13046
13047         Run the coreutils-specific code only if tests/Makefile.am.in exists.
13048         * build-aux/bootstrap (mam_template): Move definition out of loop.
13049
13050         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13051
13052         * build-aux/bootstrap (symlink_to_dir): Rename function from
13053         symlink_to_gnulib.  Add a directory parameter.  Update all
13054         callers.
13055         (cp_mark_as_generated): Also check for -- and link to -- files in
13056         gl/.
13057
13058         2007-07-08  Jim Meyering  <jim@meyering.net>
13059
13060         Adapt to deeper hierarchy in gnulib.
13061         * build-aux/bootstrap (symlink_to_dir): If the destination
13062         directory doesn't exist, create it. This is required at least for
13063         "lib/uniwidth/cjk.h".
13064
13065         2007-05-15  Jim Meyering  <jim@meyering.net>
13066
13067         * build-aux/bootstrap: Now that generated Makefile.am files
13068         are no longer under version control, they must be created at
13069         bootstrap time.
13070
13071 2007-08-14  Ben Pfaff  <blp@gnu.org>
13072
13073         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
13074
13075 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13076
13077         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
13078         given the changes below.
13079         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
13080         even on hosts that have padding bits beyond the supported 64.
13081
13082 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13083
13084         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
13085         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
13086         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
13087         depends on it.
13088         (xstrtol_error): Remove.
13089         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
13090         but with a different signature.
13091         (ATTRIBUTE_NORETURN, __attribute__): New macros.
13092         * lib/xstrtol-error.c: Include exitfail.h.
13093         (xstrtol_fatal): New function, with a different signature from the
13094         old xstrtol_error, so that the caller need not worry about passing
13095         in an exit status, or about storage management of the option argument.
13096         (xstrtol_error): Now a static function.  Redo signature to
13097         implement xstrtol_fatal.  Output the correct number of hyphens in
13098         front of the option so that the caller need not worry about
13099         storage management.
13100         (N_): New macro.
13101         (_): Remove; not used now.
13102         * modules/xstrtol: Depend on getopt.
13103         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
13104         of old STRTOL_FATAL_ERROR macro.
13105         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
13106         of test program.
13107         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
13108         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
13109
13110 2007-08-08  Eric Blake  <ebb9@byu.net>
13111
13112         * lib/xstrtol-error.c: Add missing include.
13113
13114         Move xstrtol messages into gnulib domain, when --pobase is used.
13115         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
13116         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
13117         * modules/xstrtol (Files): Distribute new file.
13118         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
13119         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
13120         * tests/test-xstrtol.c: ...into new file.
13121         * tests/test-xstrtoul.c: Also test xstrtoul.
13122         * tests/test-xstrtoimax.c: Also test xstrtoimax.
13123         * tests/test-xstrtoumax.c: Also test xstrtoumax.
13124         * tests/test-xstrtol.sh: Drive the tests.
13125         * tests/test-xstrtoimax.sh: Likewise.
13126         * tests/test-xstrtoumax.sh: Likewise.
13127         * modules/xstrtol-tests: New module.
13128         * modules/xstrtoimax-tests: Likewise.
13129         * modules/xstrtoumax-tests: Likewise.
13130
13131 2007-08-08  Jim Meyering  <jim@meyering.net>
13132
13133         New function: mfile_name_concat.
13134         * lib/filenamecat.c (mfile_name_concat): New function, just like
13135         file_name_concat, but return NULL upon failure rather than exiting
13136         with a diagnostic.
13137         * lib/filenamecat.h: Declare it.
13138
13139 2007-08-07  Bruno Haible  <bruno@clisp.org>
13140
13141         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13142         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13143         warning from gcc.
13144         Reported by Eric Blake.
13145
13146 2007-08-07  Simon Josefsson  <simon@josefsson.org>
13147
13148         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13149         * modules/crypto/arcfour (License): Likewise.
13150         * modules/crypto/des-tests (License): Likewise.
13151         * modules/crypto/gc-arctwo-tests (License): Likewise.
13152         * modules/crypto/gc-des-tests (License): Likewise.
13153         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13154         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13155         * modules/crypto/gc-md2-tests (License): Likewise.
13156         * modules/crypto/gc-md4-tests (License): Likewise.
13157         * modules/crypto/gc-md5-tests (License): Likewise.
13158         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13159         * modules/crypto/gc-rijndael-tests (License): Likewise.
13160         * modules/crypto/gc-sha1-tests (License): Likewise.
13161         * modules/crypto/gc-tests (License): Likewise.
13162         * modules/crypto/hmac-md5 (License): Likewise.
13163         * modules/crypto/hmac-sha1 (License): Likewise.
13164         * modules/crypto/md2-tests (License): Likewise.
13165         * modules/crypto/md4-tests (License): Likewise.
13166         * modules/crypto/md5 (License): Likewise.
13167         * modules/crypto/rijndael (License): Likewise.
13168         * modules/crypto/sha1 (License): Likewise.
13169         * modules/memxor (License): Likewise.
13170
13171 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13172         and Bruno Haible  <bruno@clisp.org>
13173
13174         * NEWS: Describe interface changes to human, xstrtol.
13175         * lib/human.h: Include <xstrtol.h>.
13176         (human_options): Return enum strtol_error, not int.  Remove
13177         bool arg; take int * instead.
13178         * lib/human.c: Don't include "gettext.h".
13179         (_): Remove; no longer used.
13180         Don't include <xstrtol.h>, since human.h does it.
13181         (human_options): Adjust to abovementioned interface changes.
13182         Do not report error to stderr; that's now the caller's
13183         responsibility.
13184         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13185         interface change.
13186         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13187         Str, Argument_type_string.  All uses changed.  Put " argument"
13188         in diagnostics to make them clearer.  Change wording of suffix
13189         message for clarity.
13190         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13191         Argument_type_string.
13192         (STRTOL_FATAL_WARN): Remove; no longer used.
13193         * modules/human (Depends-on): Remove gettext-h.
13194
13195 2007-08-06  Simon Josefsson  <simon@josefsson.org>
13196
13197         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13198
13199 2007-07-31  Bruno Haible  <bruno@clisp.org>
13200
13201         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13202         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13203         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13204
13205 2007-07-31  Bruno Haible  <bruno@clisp.org>
13206
13207         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13208         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13209
13210 2007-07-30  Bruno Haible  <bruno@clisp.org>
13211
13212         * modules/base64 (License): Use the synonymous term "LGPLv2+".
13213         * modules/c-ctype (License): Likewise.
13214         * modules/c-strcase (License): Likewise.
13215         * modules/check-version (License): Likewise.
13216         * modules/iconv (License): Likewise.
13217         * modules/iconv_open (License): Likewise.
13218         * modules/read-file (License): Likewise.
13219         * modules/striconv (License): Likewise.
13220         * modules/strverscmp (License): Likewise.
13221         * modules/vasprintf (License): Likewise.
13222         * modules/crypto/des (License): Likewise.
13223         * modules/crypto/gc (License): Likewise.
13224         * modules/crypto/gc-arcfour (License): Likewise.
13225         * modules/crypto/gc-arctwo (License): Likewise.
13226         * modules/crypto/gc-des (License): Likewise.
13227         * modules/crypto/gc-hmac-md5 (License): Likewise.
13228         * modules/crypto/gc-hmac-sha1 (License): Likewise.
13229         * modules/crypto/gc-md2 (License): Likewise.
13230         * modules/crypto/gc-md4 (License): Likewise.
13231         * modules/crypto/gc-md5 (License): Likewise.
13232         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13233         * modules/crypto/gc-random (License): Likewise.
13234         * modules/crypto/gc-rijndael (License): Likewise.
13235         * modules/crypto/gc-sha1 (License): Likewise.
13236         * modules/crypto/md2 (License): Likewise.
13237         * modules/crypto/md4 (License): Likewise.
13238
13239 2007-07-30  Jim Meyering  <jim@meyering.net>
13240
13241         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13242         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13243         it has valid stat data.  This bug would cause du not to count the
13244         sizes of inaccessible directories.
13245         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13246         in <http://bugzilla.redhat.com/250077>.
13247
13248 2007-07-25  Peter O'Gorman  <peter@pogma.com>
13249             Bruno Haible  <bruno@clisp.org>
13250
13251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13252         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13253         #include_next, gives a diagnostic about it, but reports no error in
13254         the exit code.
13255         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13256
13257 2007-07-24  Ben Pfaff  <blp@gnu.org>
13258
13259         Improve name: "count-one-bits" is better than "popcount".
13260         * MODULES.html.sh: Update name.
13261         * lib/popcount.h: Renamed lib/count-one-bits.h.
13262         (popcount): Renamed count_one_bits.
13263         (popcountl): Renamed count_one_bits_l.
13264         (popcountll): Renamed count_one_bits_ll.
13265         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13266         * modules/popcount: Renamed module/count-one-bits.
13267         * modules/popcount-tests: Renamed module/count-one-bits-tests.
13268         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13269
13270 2007-07-23  Ben Pfaff  <blp@gnu.org>
13271
13272         * lib/popcount.h (popcount32): Reduce size of constants, to allow
13273         better code generation, and add U to large constants to avoid
13274         warnings, in non-GCC case.
13275         Suggested by Bruno Haible.
13276
13277 2007-07-23  Ben Pfaff  <blp@gnu.org>
13278
13279         * lib/popcount.h: Use verify_true instead of if...abort.
13280         * modules/popcount: Depend on verify module.
13281         Suggested by Jim Meyering.
13282
13283 2007-07-23  Bruno Haible  <bruno@clisp.org>
13284
13285         * gnulib-tool (func_import): Create a .cvsignore file also when the
13286         directory is not yet in CVS but the toplevel directory is. When
13287         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13288         Reported by Karl Berry.
13289
13290 2007-07-22  Ben Pfaff  <blp@gnu.org>
13291
13292         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13293         case.
13294         Suggested by Eric Blake.
13295
13296 2007-07-22  Ben Pfaff  <blp@gnu.org>
13297
13298         New module: popcount.
13299         * MODULES.html.sh: Add popcount.
13300         * modules/popcount: New file.
13301         * modules/popcount-tests: New file.
13302         * tests/test-popcount.c: New file.
13303         * lib/popcount.h: New file.
13304         * m4/popcount.m4: New file.
13305
13306 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13307
13308         * build-aux/announce-gen: Update to GPLv3.
13309
13310         * build-aux/config.guess: Update from config.
13311
13312 2007-07-21  Bruno Haible  <bruno@clisp.org>
13313
13314         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13315         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13316
13317 2007-07-20  Jim Meyering  <jim@meyering.net>
13318
13319         * check-module: Diagnose a self-dependency.
13320
13321 2007-07-19  Bruno Haible  <bruno@clisp.org>
13322
13323         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13324         empty.
13325         Reported by Eric Blake.
13326
13327 2007-07-18  Bruno Haible  <bruno@clisp.org>
13328
13329         * gnulib-tool: New options --po-base, --po-domain.
13330         (func_usage): Document them.
13331         (pobase, po_domain): New variables.
13332         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13333         DEFAULT_TEXT_DOMAIN.
13334         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13335         (func_import): Consider pobase and po_domain. Create a po/ directory.
13336         (func_create_testdir): Set pobase and po_domain to empty.
13337         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13338         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13339
13340 2007-07-18  Bruno Haible  <bruno@clisp.org>
13341
13342         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13343         EXTRA_DIST augmentation for files in build-aux/.
13344
13345 2007-07-16  Bruno Haible  <bruno@clisp.org>
13346
13347         * modules/lseek (License): Use the synonymous term "LGPLv2+".
13348         * modules/getdelim (License): Likewise.
13349
13350 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13351
13352         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13353         * modules/d-type (License): Likewise.
13354         * modules/extensions (License): Likewise.
13355         * modules/fnmatch (License): Likewise.
13356         * modules/fseeko (License): Likewise.
13357         * modules/getaddrinfo (License): Likewise.
13358         * modules/getline (License): Likewise.
13359         * modules/getlogin_r (License): Likewise.
13360         * modules/getpass (License): Likewise.
13361         * modules/gettimeofday (License): Likewise.
13362         * modules/glob (License): Likewise.
13363         * modules/inet_ntop (License): Likewise.
13364         * modules/malloc (License): Likewise.
13365         * modules/malloca (License): Likewise.
13366         * modules/memmem (License): Likewise.
13367         * modules/mempcpy (License): Likewise.
13368         * modules/memset (License): Likewise.
13369         * modules/minmax (License): Likewise.
13370         * modules/mktime (License): Likewise.
13371         * modules/netinet_in (License): Likewise.
13372         * modules/pathmax (License): Likewise.
13373         * modules/poll (License): Likewise.
13374         * modules/regex (License): Likewise.
13375         * modules/snprintf (License): Likewise.
13376         * modules/stdbool (License): Likewise.
13377         * modules/stdint (License): Likewise.
13378         * modules/stdio (License): Likewise.
13379         * modules/strcase (License): Likewise.
13380         * modules/strcasestr (License): Likewise.
13381         * modules/strdup (License): Likewise.
13382         * modules/string (License): Likewise.
13383         * modules/strndup (License): Likewise.
13384         * modules/strnlen (License): Likewise.
13385         * modules/strpbrk (License): Likewise.
13386         * modules/strptime (License): Likewise.
13387         * modules/strsep (License): Likewise.
13388         * modules/sys_select (License): Likewise.
13389         * modules/sys_socket (License): Likewise.
13390         * modules/sys_stat (License): Likewise.
13391         * modules/sys_time (License): Likewise.
13392         * modules/time (License): Likewise.
13393         * modules/time_r (License): Likewise.
13394         * modules/timegm (License): Likewise.
13395         * modules/unistd (License): Likewise.
13396         * modules/vsnprintf (License): Likewise.
13397         * modules/wctype (License): Likewise.
13398
13399 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13400
13401         * modules/argz (License): LGPLv2+.
13402
13403 2007-07-15  Karl Berry  <karl@gnu.org>
13404
13405         * doc/gnulib.texi: revise node structure per new fdl.texi.
13406
13407 2007-07-14  Bruno Haible  <bruno@clisp.org>
13408
13409         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13410         the output file.
13411         * lib/uniname/uninames.h: Regenerated.
13412
13413 2007-07-14  Karl Berry  <karl@gnu.org>
13414
13415         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13416         omitting sectioning and index commands.
13417
13418 2007-07-13  Bruno Haible  <bruno@clisp.org>
13419
13420         New gnulib-tool option --more-symlinks.
13421         * gnulib-tool (func_usage): Document --more-symlinks.
13422         (do_copyrights): New variable.
13423         Recognize option --more-symlinks.
13424         (func_import): Don't add a copyright notice transform to
13425         sed_transform_lib_file if do_copyrights is empty.
13426
13427 2007-07-13  Bruno Haible  <bruno@clisp.org>
13428
13429         * lib/vasnprintf.c (decimal_point_char): Define also if
13430         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13431         && !NEED_PRINTF_DIRECTIVE_A.
13432         Reported by Clemens Koller <clemens.koller@anagramm.de> via
13433         Gary V. Vaughan <gary@gnu.org>.
13434
13435 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
13436
13437         * lib/inttypes_.h: Undo previous change, since it was fixed
13438         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13439
13440 2007-07-13  Bruno Haible  <bruno@clisp.org>
13441
13442         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13443         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13444
13445 2007-07-13  Jim Meyering  <jim@meyering.net>
13446
13447         df: Don't fail for Tru64's "file-on-file mount".
13448         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13449         so we fall through and use statfs instead.  Details here:
13450         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13451         Reported by Albert Chin.
13452
13453 2007-07-13  Bruno Haible  <bruno@clisp.org>
13454
13455         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13456         * modules/configmake (License): Likewise.
13457         * modules/gettext (License): Likewise.
13458         * modules/gettext-h (License): Likewise.
13459         * modules/include_next (License): Likewise.
13460         * modules/link-warning (License): Likewise.
13461         * modules/localcharset (License): Likewise.
13462         * modules/localename (License): Likewise.
13463         * modules/lock (License): Likewise.
13464         * modules/relocatable-lib-lgpl (License): Likewise.
13465         * modules/size_max (License): Likewise.
13466         * modules/vasnprintf (License): Likewise.
13467         * modules/wchar (License): Likewise.
13468         * modules/xsize (License): Likewise.
13469
13470 2007-07-13  Bruno Haible  <bruno@clisp.org>
13471
13472         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13473         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13474
13475 2007-07-12  Bruno Haible  <bruno@clisp.org>
13476
13477         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13478         in the modules files.
13479
13480 2007-07-11  Karl Berry  <karl@gnu.org>
13481
13482         * MODULES.html.sh (func_module): use
13483          sed -e '\|^'"${includefile}"'$|d'
13484          instead of /.../d, to avoid errors on $includefile's containing /.
13485
13486 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13487
13488         * gnulib-tool (func_import): Avoid duplication of --avoid
13489         statements
13490         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13491         names to `_' in variable names.
13492
13493 2007-07-10  Eric Blake  <ebb9@byu.net>
13494
13495         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13496         * NEWS: Document this change.
13497
13498 2007-07-08  Bruno Haible  <bruno@clisp.org>
13499
13500         Update to Unicode 5.0.
13501         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13502         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13503         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13504         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13505         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13506         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13507         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13508         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13509         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13510         U+10A3F, U+1D242..U+1D244.
13511         (nonspacing_table_ind): Update.
13512         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13513         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13514
13515 2007-07-08  Bruno Haible  <bruno@clisp.org>
13516
13517         Update to Unicode 5.0.
13518         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13519         code transform. Extend the name index field of unicode_name_to_code and
13520         unicode_code_to_name from 16 to 24 bits.
13521         * lib/uniname/uniname.c (unicode_character_name,
13522         unicode_name_character): Add the range 0x12xxx to the code transform.
13523         * lib/uniname/uninames.h: Regenerated.
13524         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13525
13526 2007-07-07  Bruno Haible  <bruno@clisp.org>
13527
13528         * modules/wcwidth-tests: New file.
13529         * tests/test-wcwidth.c: New file.
13530
13531         Work around MacOS X wcwidth() bug.
13532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13533         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13534         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13535         original wcwidth in non-UTF-8 locales.
13536         * modules/wcwidth (Depends-on): Add localcharset, streq,
13537         uniwidth/width.
13538         * doc/functions/wcwidth.texi: Update.
13539
13540 2007-07-07  Bruno Haible  <bruno@clisp.org>
13541
13542         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13543         (wcwidth): New declaration.
13544         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13545         macros.
13546         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13547         here. Prepare for creating <wchar.h> unconditionally.
13548         * modules/wchar (Depends-on): Add link-warning.
13549         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13550         REPLACE_WCWIDTH, and GL_LINK_WARNING.
13551         * lib/wcwidth.h: Remove file.
13552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13553         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13554         * modules/wcwidth (Files): Remove lib/wcwidth.h.
13555         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13556         (Include): Replace wcwidth.h with <wchar.h>.
13557         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13558         * lib/mbchar.h: Don't include wcwidth.h.
13559         * lib/mbswidth.c: Likewise.
13560         * NEWS: Mention the change.
13561
13562 2007-07-07  Bruno Haible  <bruno@clisp.org>
13563
13564         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13565         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13566         definition with an external declaration.
13567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13568         defined as a function. Remove AC_C_INLINE requirement.
13569         * modules/wcwidth (Files): Add lib/wcwidth.c.
13570         (Makefile.am): Remove redundant statement.
13571
13572 2007-07-07  Bruno Haible  <bruno@clisp.org>
13573
13574         * MODULES.html.sh (Unicode string functions): Add the new modules.
13575
13576         * tests/uniwidth/test-u32-strwidth.c: New file.
13577         * modules/uniwidth/u32-strwidth-tests: New file.
13578
13579         * lib/uniwidth/u32-strwidth.c: New file.
13580         * modules/uniwidth/u32-strwidth: New file.
13581
13582         * tests/uniwidth/test-u16-strwidth.c: New file.
13583         * modules/uniwidth/u16-strwidth-tests: New file.
13584
13585         * lib/uniwidth/u16-strwidth.c: New file.
13586         * modules/uniwidth/u16-strwidth: New file.
13587
13588         * tests/uniwidth/test-u8-strwidth.c: New file.
13589         * modules/uniwidth/u8-strwidth-tests: New file.
13590
13591         * lib/uniwidth/u8-strwidth.c: New file.
13592         * modules/uniwidth/u8-strwidth: New file.
13593
13594         * tests/uniwidth/test-u32-width.c: New file.
13595         * modules/uniwidth/u32-width-tests: New file.
13596
13597         * lib/uniwidth/u32-width.c: New file.
13598         * modules/uniwidth/u32-width: New file.
13599
13600         * tests/uniwidth/test-u16-width.c: New file.
13601         * modules/uniwidth/u16-width-tests: New file.
13602
13603         * lib/uniwidth/u16-width.c: New file.
13604         * modules/uniwidth/u16-width: New file.
13605
13606         * tests/uniwidth/test-u8-width.c: New file.
13607         * modules/uniwidth/u8-width-tests: New file.
13608
13609         * lib/uniwidth/u8-width.c: New file.
13610         * modules/uniwidth/u8-width: New file.
13611
13612         * tests/uniwidth/test-uc_width.c: New file.
13613         * modules/uniwidth/width-tests: New file.
13614
13615         * lib/uniwidth/width.c: New file, from GNU libiconv.
13616         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13617         * modules/uniwidth/width: New file.
13618
13619         * lib/uniwidth.h: New file, from GNU libiconv.
13620         * modules/uniwidth/base: New file.
13621
13622 2007-07-07  Bruno Haible  <bruno@clisp.org>
13623
13624         * lib/uniname.h: New file, from GNU gettext.
13625         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13626         * lib/uniname/uninames.h: New file, from GNU gettext.
13627         * lib/uniname/uniname.c: New file, from GNU gettext.
13628         * tests/uniname/test-uninames.sh: New file.
13629         * tests/uniname/test-uninames.c: New file, from GNU gettext.
13630         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13631         * modules/uniname/base: New file.
13632         * modules/uniname/uniname: New file.
13633         * modules/uniname/uniname-tests: New file.
13634         * MODULES.html.sh (Unicode string functions): Add the new modules.
13635
13636 2007-07-06  Bruno Haible  <bruno@clisp.org>
13637
13638         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13639
13640 2007-07-06  Bruno Haible  <bruno@clisp.org>
13641
13642         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13643         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13644         includes <cygwin/sys_time.h> which includes <sys/select.h> which
13645         include <sys/time.h>.
13646         Reported by Eric Blake.
13647
13648 2007-07-06  Eric Blake  <ebb9@byu.net>
13649
13650         Fix testing canonicalize on cygwin.
13651         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13652         Revert patch from 2007-06-19.
13653         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13654         canonicalize module is also in use.
13655         * tests/test-canonicalize.c: New file.
13656         * tests/test-canonicalize.sh: Likewise.
13657         * modules/canonicalize-tests: Likewise.
13658
13659 2007-07-06  Jim Meyering  <jim@meyering.net>
13660
13661         * lib/getugroups.c (getugroups): Detect getgrent failure.
13662         Adjust comment to reflect reality: this function may return -1.
13663
13664 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13665
13666         * build-aux/bootstrap (TP_URL,get_translations): Update to use
13667         the new TP address.
13668         (usage): Fix typo
13669         (gnulib_mk): New variable.
13670
13671 2007-07-05  Jim Meyering  <jim@meyering.net>
13672
13673         Don't let endgrent clobber errno, no matter how improbable.
13674         * lib/getugroups.c (getugroups): Save and restore errno around
13675         endgrent call.
13676
13677         Close the group DB even when failing with 2^31 or more members.
13678         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13679
13680 2007-07-04  Jim Meyering  <jim@meyering.net>
13681
13682         * lib/getugroups.h: New file.
13683         * lib/getugroups.c: Include "getugroups.h".
13684         Remove uses of "register" keyword.
13685         Move local variable, "cp", down into scope where used.
13686         Give "username" parameter the "const" attribute.
13687         * modules/getugroups (Files): Add lib/getugroups.h
13688
13689 2007-07-04  Karl Berry  <karl@gnu.org>
13690
13691         * MODULES.html.sh (func_all_modules): Complete rename of
13692         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13693
13694 2007-07-02  Bruno Haible  <bruno@clisp.org>
13695
13696         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13697         mode, when inttypes.h comes from gnulib.
13698         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13699
13700 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13701
13702         * NEWS: Mention lgpl module name change.
13703
13704         * modules/lgpl-2.1: Renamed from lgpl.
13705
13706         * NEWS: Mention gpl module name change.
13707
13708         * modules/gpl-3.0: New file, based on gpl-2.0.
13709
13710         * modules/gpl-2.0: Renamed from gpl.
13711
13712         * modules/gpl: Fix filename, doc/gpl.texi is now found at
13713         doc/gpl-2.0.texi.
13714
13715 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13718         #define __STDC_LIMIT_MACROS temporarily while including
13719         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13720         Problem reported by Joel E. Denny in
13721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13722
13723 2007-07-01  Bruno Haible  <bruno@clisp.org>
13724
13725         * lib/unistdio.h: New file.
13726         * lib/unistdio/u-asnprintf.h: New file.
13727         * lib/unistdio/u-asprintf.h: New file.
13728         * lib/unistdio/u-printf-args.c: New file.
13729         * lib/unistdio/u-printf-args.h: New file.
13730         * lib/unistdio/u-printf-parse.h: New file.
13731         * lib/unistdio/u-snprintf.h: New file.
13732         * lib/unistdio/u-sprintf.h: New file.
13733         * lib/unistdio/u-vasprintf.h: New file.
13734         * lib/unistdio/u-vsnprintf.h: New file.
13735         * lib/unistdio/u-vsprintf.h: New file.
13736         * lib/unistdio/ulc-asnprintf.c: New file.
13737         * lib/unistdio/ulc-asprintf.c: New file.
13738         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13739         * lib/unistdio/ulc-printf-parse.c: New file.
13740         * lib/unistdio/ulc-snprintf.c: New file.
13741         * lib/unistdio/ulc-sprintf.c: New file.
13742         * lib/unistdio/ulc-vasnprintf.c: New file.
13743         * lib/unistdio/ulc-vasprintf.c: New file.
13744         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13745         * lib/unistdio/ulc-vsnprintf.c: New file.
13746         * lib/unistdio/ulc-vsprintf.c: New file.
13747         * lib/unistdio/u8-asnprintf.c: New file.
13748         * lib/unistdio/u8-asprintf.c: New file.
13749         * lib/unistdio/u8-printf-parse.c: New file.
13750         * lib/unistdio/u8-snprintf.c: New file.
13751         * lib/unistdio/u8-sprintf.c: New file.
13752         * lib/unistdio/u8-vasnprintf.c: New file.
13753         * lib/unistdio/u8-vasprintf.c: New file.
13754         * lib/unistdio/u8-vsnprintf.c: New file.
13755         * lib/unistdio/u8-vsprintf.c: New file.
13756         * lib/unistdio/u8-u8-asnprintf.c: New file.
13757         * lib/unistdio/u8-u8-asprintf.c: New file.
13758         * lib/unistdio/u8-u8-snprintf.c: New file.
13759         * lib/unistdio/u8-u8-sprintf.c: New file.
13760         * lib/unistdio/u8-u8-vasnprintf.c: New file.
13761         * lib/unistdio/u8-u8-vasprintf.c: New file.
13762         * lib/unistdio/u8-u8-vsnprintf.c: New file.
13763         * lib/unistdio/u8-u8-vsprintf.c: New file.
13764         * lib/unistdio/u16-asnprintf.c: New file.
13765         * lib/unistdio/u16-asprintf.c: New file.
13766         * lib/unistdio/u16-printf-parse.c: New file.
13767         * lib/unistdio/u16-snprintf.c: New file.
13768         * lib/unistdio/u16-sprintf.c: New file.
13769         * lib/unistdio/u16-vasnprintf.c: New file.
13770         * lib/unistdio/u16-vasprintf.c: New file.
13771         * lib/unistdio/u16-vsnprintf.c: New file.
13772         * lib/unistdio/u16-vsprintf.c: New file.
13773         * lib/unistdio/u16-u16-asnprintf.c: New file.
13774         * lib/unistdio/u16-u16-asprintf.c: New file.
13775         * lib/unistdio/u16-u16-snprintf.c: New file.
13776         * lib/unistdio/u16-u16-sprintf.c: New file.
13777         * lib/unistdio/u16-u16-vasnprintf.c: New file.
13778         * lib/unistdio/u16-u16-vasprintf.c: New file.
13779         * lib/unistdio/u16-u16-vsnprintf.c: New file.
13780         * lib/unistdio/u16-u16-vsprintf.c: New file.
13781         * lib/unistdio/u32-asnprintf.c: New file.
13782         * lib/unistdio/u32-asprintf.c: New file.
13783         * lib/unistdio/u32-printf-parse.c: New file.
13784         * lib/unistdio/u32-snprintf.c: New file.
13785         * lib/unistdio/u32-sprintf.c: New file.
13786         * lib/unistdio/u32-vasnprintf.c: New file.
13787         * lib/unistdio/u32-vasprintf.c: New file.
13788         * lib/unistdio/u32-vsnprintf.c: New file.
13789         * lib/unistdio/u32-vsprintf.c: New file.
13790         * lib/unistdio/u32-u32-asnprintf.c: New file.
13791         * lib/unistdio/u32-u32-asprintf.c: New file.
13792         * lib/unistdio/u32-u32-snprintf.c: New file.
13793         * lib/unistdio/u32-u32-sprintf.c: New file.
13794         * lib/unistdio/u32-u32-vasnprintf.c: New file.
13795         * lib/unistdio/u32-u32-vasprintf.c: New file.
13796         * lib/unistdio/u32-u32-vsnprintf.c: New file.
13797         * lib/unistdio/u32-u32-vsprintf.c: New file.
13798         * tests/unistdio/test-ulc-asnprintf1.c: New file.
13799         * tests/unistdio/test-ulc-asnprintf1.h: New file.
13800         * tests/unistdio/test-ulc-printf1.h: New file.
13801         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13802         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13803         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13804         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13805         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13806         * tests/unistdio/test-ulc-vasprintf1.c: New file.
13807         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13808         * tests/unistdio/test-ulc-vsprintf1.c: New file.
13809         * tests/unistdio/test-u8-asnprintf1.c: New file.
13810         * tests/unistdio/test-u8-asnprintf1.h: New file.
13811         * tests/unistdio/test-u8-printf1.h: New file.
13812         * tests/unistdio/test-u8-vasnprintf1.c: New file.
13813         * tests/unistdio/test-u8-vasnprintf2.c: New file.
13814         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13815         * tests/unistdio/test-u8-vasnprintf3.c: New file.
13816         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13817         * tests/unistdio/test-u8-vasprintf1.c: New file.
13818         * tests/unistdio/test-u8-vsnprintf1.c: New file.
13819         * tests/unistdio/test-u8-vsprintf1.c: New file.
13820         * tests/unistdio/test-u16-asnprintf1.c: New file.
13821         * tests/unistdio/test-u16-asnprintf1.h: New file.
13822         * tests/unistdio/test-u16-printf1.h: New file.
13823         * tests/unistdio/test-u16-vasnprintf1.c: New file.
13824         * tests/unistdio/test-u16-vasnprintf2.c: New file.
13825         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13826         * tests/unistdio/test-u16-vasnprintf3.c: New file.
13827         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13828         * tests/unistdio/test-u16-vasprintf1.c: New file.
13829         * tests/unistdio/test-u16-vsnprintf1.c: New file.
13830         * tests/unistdio/test-u16-vsprintf1.c: New file.
13831         * tests/unistdio/test-u32-asnprintf1.c: New file.
13832         * tests/unistdio/test-u32-asnprintf1.h: New file.
13833         * tests/unistdio/test-u32-printf1.h: New file.
13834         * tests/unistdio/test-u32-vasnprintf1.c: New file.
13835         * tests/unistdio/test-u32-vasnprintf2.c: New file.
13836         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13837         * tests/unistdio/test-u32-vasnprintf3.c: New file.
13838         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13839         * tests/unistdio/test-u32-vasprintf1.c: New file.
13840         * tests/unistdio/test-u32-vsnprintf1.c: New file.
13841         * tests/unistdio/test-u32-vsprintf1.c: New file.
13842         * modules/unistdio/base: New file.
13843         * modules/unistdio/u-printf-args: New file.
13844         * modules/unistdio/ulc-asnprintf: New file.
13845         * modules/unistdio/ulc-asprintf: New file.
13846         * modules/unistdio/ulc-fprintf: New file.
13847         * modules/unistdio/ulc-printf-parse: New file.
13848         * modules/unistdio/ulc-snprintf: New file.
13849         * modules/unistdio/ulc-sprintf: New file.
13850         * modules/unistdio/ulc-vasnprintf: New file.
13851         * modules/unistdio/ulc-vasprintf: New file.
13852         * modules/unistdio/ulc-vfprintf: New file.
13853         * modules/unistdio/ulc-vsnprintf: New file.
13854         * modules/unistdio/ulc-vsprintf: New file.
13855         * modules/unistdio/u8-asnprintf: New file.
13856         * modules/unistdio/u8-asprintf: New file.
13857         * modules/unistdio/u8-printf-parse: New file.
13858         * modules/unistdio/u8-snprintf: New file.
13859         * modules/unistdio/u8-sprintf: New file.
13860         * modules/unistdio/u8-vasnprintf: New file.
13861         * modules/unistdio/u8-vasprintf: New file.
13862         * modules/unistdio/u8-vsnprintf: New file.
13863         * modules/unistdio/u8-vsprintf: New file.
13864         * modules/unistdio/u8-u8-asnprintf: New file.
13865         * modules/unistdio/u8-u8-asprintf: New file.
13866         * modules/unistdio/u8-u8-snprintf: New file.
13867         * modules/unistdio/u8-u8-sprintf: New file.
13868         * modules/unistdio/u8-u8-vasnprintf: New file.
13869         * modules/unistdio/u8-u8-vasprintf: New file.
13870         * modules/unistdio/u8-u8-vsnprintf: New file.
13871         * modules/unistdio/u8-u8-vsprintf: New file.
13872         * modules/unistdio/u16-asnprintf: New file.
13873         * modules/unistdio/u16-asprintf: New file.
13874         * modules/unistdio/u16-printf-parse: New file.
13875         * modules/unistdio/u16-snprintf: New file.
13876         * modules/unistdio/u16-sprintf: New file.
13877         * modules/unistdio/u16-vasnprintf: New file.
13878         * modules/unistdio/u16-vasprintf: New file.
13879         * modules/unistdio/u16-vsnprintf: New file.
13880         * modules/unistdio/u16-vsprintf: New file.
13881         * modules/unistdio/u16-u16-asnprintf: New file.
13882         * modules/unistdio/u16-u16-asprintf: New file.
13883         * modules/unistdio/u16-u16-snprintf: New file.
13884         * modules/unistdio/u16-u16-sprintf: New file.
13885         * modules/unistdio/u16-u16-vasnprintf: New file.
13886         * modules/unistdio/u16-u16-vasprintf: New file.
13887         * modules/unistdio/u16-u16-vsnprintf: New file.
13888         * modules/unistdio/u16-u16-vsprintf: New file.
13889         * modules/unistdio/u32-asnprintf: New file.
13890         * modules/unistdio/u32-asprintf: New file.
13891         * modules/unistdio/u32-printf-parse: New file.
13892         * modules/unistdio/u32-snprintf: New file.
13893         * modules/unistdio/u32-sprintf: New file.
13894         * modules/unistdio/u32-vasnprintf: New file.
13895         * modules/unistdio/u32-vasprintf: New file.
13896         * modules/unistdio/u32-vsnprintf: New file.
13897         * modules/unistdio/u32-vsprintf: New file.
13898         * modules/unistdio/u32-u32-asnprintf: New file.
13899         * modules/unistdio/u32-u32-asprintf: New file.
13900         * modules/unistdio/u32-u32-snprintf: New file.
13901         * modules/unistdio/u32-u32-sprintf: New file.
13902         * modules/unistdio/u32-u32-vasnprintf: New file.
13903         * modules/unistdio/u32-u32-vasprintf: New file.
13904         * modules/unistdio/u32-u32-vsnprintf: New file.
13905         * modules/unistdio/u32-u32-vsprintf: New file.
13906         * modules/unistdio/ulc-asnprintf-tests: New file.
13907         * modules/unistdio/ulc-vasnprintf-tests: New file.
13908         * modules/unistdio/ulc-vasprintf-tests: New file.
13909         * modules/unistdio/ulc-vsnprintf-tests: New file.
13910         * modules/unistdio/ulc-vsprintf-tests: New file.
13911         * modules/unistdio/u8-asnprintf-tests: New file.
13912         * modules/unistdio/u8-vasnprintf-tests: New file.
13913         * modules/unistdio/u8-vasprintf-tests: New file.
13914         * modules/unistdio/u8-vsnprintf-tests: New file.
13915         * modules/unistdio/u8-vsprintf-tests: New file.
13916         * modules/unistdio/u16-asnprintf-tests: New file.
13917         * modules/unistdio/u16-vasnprintf-tests: New file.
13918         * modules/unistdio/u16-vasprintf-tests: New file.
13919         * modules/unistdio/u16-vsnprintf-tests: New file.
13920         * modules/unistdio/u16-vsprintf-tests: New file.
13921         * modules/unistdio/u32-asnprintf-tests: New file.
13922         * modules/unistdio/u32-vasnprintf-tests: New file.
13923         * modules/unistdio/u32-vasprintf-tests: New file.
13924         * modules/unistdio/u32-vsnprintf-tests: New file.
13925         * modules/unistdio/u32-vsprintf-tests: New file.
13926         * MODULES.html.sh (Unicode string functions): Add the new modules.
13927
13928 2007-07-01  Bruno Haible  <bruno@clisp.org>
13929
13930         * lib/sprintf.c (sprintf): Limit the available length estimation,
13931         to avoid address wraparound.
13932         * lib/vsprintf.c (vsprintf): Likewise.
13933         * modules/sprintf-posix (Dependencies): Add stdint.
13934         * modules/vsprintf-posix (Dependencies): Likewise.
13935
13936 2007-07-01  Bruno Haible  <bruno@clisp.org>
13937
13938         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
13939         Windows PATH as well. Conservative double-quoting. Comments.
13940
13941 2007-07-01  Bruno Haible  <bruno@clisp.org>
13942             Eric Blake  <ebb9@byu.net>
13943             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13944
13945         * gnulib-tool (self_abspathname): Fix algorithm to cope with
13946         empty components in $PATH, denoting '.'.
13947
13948 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13949
13950         * gnulib-tool: Fix indentation.
13951         (func_create_megatestdir): Likewise.
13952         Report by Bruno Haible.
13953
13954 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13955
13956         Sync from Automake.
13957         * build-aux/gnupload: Fix shell portability issues with for loops.
13958         Report by Karl Berry.
13959
13960 2007-06-29  Simon Josefsson  <simon@josefsson.org>
13961
13962         * build-aux/maint.mk (POURL): Use translationproject.org.
13963
13964 2007-06-27  Simon Josefsson  <simon@josefsson.org>
13965             Bruno Haible  <bruno@clisp.org>
13966
13967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
13968         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
13969         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
13970         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
13971         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
13972
13973 2007-06-27  Bruno Haible  <bruno@clisp.org>
13974
13975         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
13976         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
13977
13978 2007-06-26  Karl Berry  <karl@gnu.org>
13979
13980         * MODULES.html.sh: remove xreadlink-with-size.
13981
13982 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
13985         method that I hope also handles the double-include problem noted
13986         by Bruno Haible in
13987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
13988
13989 2007-06-23  Bruno Haible  <bruno@clisp.org>
13990
13991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13992         Don't let the 'mostlyclean' target fail if the last subdirectory could
13993         not be removed.
13994         Reported by Karl Berry.
13995
13996 2007-06-23  Bruno Haible  <bruno@clisp.org>
13997
13998         * gnulib-tool (echo): Add a speedier workaround for ksh.
13999         * tests/test-echo.sh: Likewise.
14000
14001 2007-06-23  Bruno Haible  <bruno@clisp.org>
14002
14003         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14004         * tests/test-echo.sh: Likewise.
14005
14006 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14007
14008         * gnulib-tool (IFS): Initialize early, so we don't set it to
14009         empty later.
14010         (self_abspathname): Rewrite algorithm to set it, reindent.
14011         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14012         (func_create_megatestdir): Merge some sed scripts.
14013
14014 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14015
14016         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14017         exposed by Sun Studio 11 cc on Solaris 8.
14018
14019 2007-06-22  Bruno Haible  <bruno@clisp.org>
14020
14021         * gnulib-tool (echo): Ensure the echo primitive does not interpret
14022         backslashes.
14023         * tests/test-echo.sh: New file.
14024
14025 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14026
14027         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14028         simplify `sed_replace_build_aux' scripts, they are portable but
14029         echoing them with `echo' is not.
14030         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14031
14032 2007-06-21  Karl Berry  <karl@gnu.org>
14033
14034         * config/srclist.txt: guess we can't handle the licenses via
14035         srclist at the moment.
14036
14037 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14038
14039         * MODULES.html.sh: Add include_next.
14040         * modules/include_next: New file.
14041
14042 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14043
14044         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14045         INCLUDE_NEXT.
14046         (gl_CHECK_NEXT_HEADERS): New macro.
14047         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14048         the obsolescent gl_ABSOLUTE_HEADER.
14049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14050         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14051         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14052         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14053         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14054         * m4/math_h.m4 (gl_MATH_H): Likewise.
14055         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14056         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14057         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14058         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14059         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14060         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14061         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14065         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14066         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14067         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14068         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14069         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14070         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14071         * m4/inttypes.m4 (gl_INTTYPES_H): Define
14072         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
14073         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
14074         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
14075         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
14076         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
14077         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
14078         * lib/float_.h: Likewise.
14079         * lib/inttypes_.h: Likewise.
14080         * lib/math_.h: Likewise.
14081         * lib/search_.h: Likewise.
14082         * lib/signal_.h: Likewise.
14083         * lib/stdint_.h: Likewise.
14084         * lib/stdio_.h: Likewise.
14085         * lib/stdlib_.h: Likewise.
14086         * lib/string_.h: Likewise.
14087         * lib/sys_stat_.h: Likewise.
14088         * lib/sys_time_.h: Likewise.
14089         * lib/time_.h: Likewise.
14090         * lib/unistd_.h: Likewise.
14091         * lib/wchar_.h: Likewise.
14092         * lib/wctype_.h: Likewise.
14093         * lib/dirent_.h: Likewise.
14094         * lib/iconv_.h: Likewise.
14095         * lib/locale_.h: Likewise.
14096         * lib/netinet_in_.h: Likewise.
14097         * lib/sys_select_.h: Likewise.
14098         * lib/sys_socket_.h: Likewise.
14099         * lib/sysexits_.h: Likewise.
14100         * modules/fcntl (Depends-on): Depend on include_next, not
14101         absolute_header.
14102         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
14103         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
14104         * modules/fchdir: Likewise.
14105         * modules/float: Likewise.
14106         * modules/iconv_open: Likewise.
14107         * modules/inttypes: Likewise.
14108         * modules/locale: Likewise.
14109         * modules/math: Likewise.
14110         * modules/netinet_in: Likewise.
14111         * modules/search: Likewise.
14112         * modules/signal: Likewise.
14113         * modules/stdint: Likewise.
14114         * modules/stdio: Likewise.
14115         * modules/stdlib: Likewise.
14116         * modules/string: Likewise.
14117         * modules/sys_select: Likewise.
14118         * modules/sys_socket: Likewise.
14119         * modules/sys_stat: Likewise.
14120         * modules/sys_time: Likewise.
14121         * modules/sysexits: Likewise.
14122         * modules/time: Likewise.
14123         * modules/unistd: Likewise.
14124         * modules/wchar: Likewise.
14125         * modules/wctype: Likewise.
14126         * modules/sys_stat: Change maintainer to "all".
14127         * modules/unistd: Likewise.
14128
14129 2007-06-20  Karl Berry  <karl@gnu.org>
14130
14131         * config/srclist.txt: track www changes in license files.
14132
14133 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
14134
14135         * build-aux/bootstrap: Remove stray dot.
14136         Make sure build_aux settings are honored when linking
14137         gnulib_extra_files.
14138
14139 2007-06-19  Eric Blake  <ebb9@byu.net>
14140
14141         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14142         Allow compilation on cygwin.
14143
14144 2007-06-19  Jim Meyering  <jim@meyering.net>
14145
14146         xreadlink-with-size: Remove module.  No longer used.
14147         Ex-callers now use xreadlink or mreadlink-with-size.
14148         * modules/xreadlink-with-size: Remove module.
14149         * lib/xreadlink-with-size.c: Remove file.
14150         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14151         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
14152         just before the function definition *is* accurate.
14153
14154         Eliminate one way canonicalize_filename_mode could exit.
14155         * lib/canonicalize.c (canonicalize_filename_mode):
14156         Use mreadlink_with_size, not xreadlink_with_size.
14157
14158 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14159
14160         Detect porting problems to FreeBSD/arm, which has time_t wider than
14161         long int.  Original problem reported for GNU diff by Xin Li in
14162         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14163         * modules/getdate (Depends-on): Add intprops, verify.
14164         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
14165         is an integer type no wider than long int.
14166
14167 2007-06-18  Jim Meyering  <jim@meyering.net>
14168
14169         New module: mreadlink-with-size.
14170         * MODULES.html.sh: Add mreadlink-with-size.
14171         * modules/mreadlink-with-size: New module
14172         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14173         not xreadlink-with-size.
14174         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14175
14176 2007-06-16  Bruno Haible  <bruno@clisp.org>
14177
14178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14179         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14180         Reported by Gary V. Vaughan <gary@gnu.org>.
14181
14182 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14183
14184         Revamp lchown so that it lives in unistd.h where it belongs.
14185         * lib/lchown.h: Remove.
14186         * lib/dirchownmod.c: Don't include lib/lchown.h.
14187         * lib/fchownat.c: Likewise.
14188         * lib/openat.c: Likewise.
14189         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14190         does not follow symlinks.
14191         (EOPNOTSUPP): Define if not defined.
14192         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14193         is defined to 0.
14194         (lchown): New decl.
14195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14196         Do not check for lchown decl.
14197         Set REPLACE_LCHOWN.
14198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14199         REPLACE_LCHOWN.
14200         * modules/chown: Make it clear it follows symlinks.
14201         * modules/lchown: Make it clear it doesn't follow symlinks.
14202         (Files): Remove lib/lchown.h
14203         (Depends-on): Add unistd.
14204         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14205         (Include): Include <unistd.h>, not "lchown.h".
14206         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14207         REPLACE_LCHOWN.
14208
14209 2007-06-15  Jim Meyering  <jim@meyering.net>
14210
14211         Change license (GPL to LGPL) of fsusage and dependents.
14212         * modules/fsusage (License): Change to LGPL.
14213         * modules/full-read (License): Likewise.
14214         * modules/full-write (License): Likewise.
14215         * modules/safe-read (License): Likewise.
14216         * modules/safe-write (License): Likewise.
14217
14218 2007-06-14  Ben Pfaff  <blp@gnu.org>
14219
14220         Missing part of allocsa -> malloca transition.
14221         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14222         gl_MALLOCA.
14223
14224 2007-06-12  Bruno Haible  <bruno@clisp.org>
14225
14226         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14227         to ia64, x86_64, i386.
14228         Reported by Eric Blake.
14229
14230 2007-06-12  Bruno Haible  <bruno@clisp.org>
14231
14232         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14233         cross-compiling to x86_64.
14234
14235 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
14236
14237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14238         glitch reported by Ralf Wildenhues in
14239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14240
14241         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14242         Vin Shelton.
14243
14244 2007-06-11  Bruno Haible  <bruno@clisp.org>
14245
14246         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14247         replacement string.
14248         Reported by Eric Blake.
14249
14250 2007-06-10  Bruno Haible  <bruno@clisp.org>
14251
14252         Prepare vasnprintf code for use with Unicode strings.
14253         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14254         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14255         TYPE_U32_STRING.
14256         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14257         a_u32_string variants.
14258         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14259         * lib/printf-args.c: Don't include config.h and the specification
14260         header if PRINTF_FETCHARGS is already defined.
14261         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14262         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14263         TYPE_U16_STRING, TYPE_U32_STRING.
14264         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14265         u16_directive, u16_directives, u32_directive, u32_directives): New
14266         types.
14267         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14268         New declarations.
14269         * lib/printf-parse.c: Don't include config.h and the specification
14270         header if PRINTF_PARSE is already defined. Eliminate the set of
14271         parameters for WIDE_CHAR_VERSION; the user of this file must provide
14272         them now. Include c-ctype.h.
14273         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14274         directive and CHAR_T_ONLY_ASCII.
14275         * lib/vasnprintf.c: Don't include config.h and the specification header
14276         if VASNPRINTF is already defined.
14277         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14278         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14279         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14280         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14281         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14282         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14283         code accordingly.
14284         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14285         pad_ourselves also in this case, with the 'c' and 's' directives, and
14286         with a different notion of "width".
14287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14288
14289 2007-06-10  Bruno Haible  <bruno@clisp.org>
14290
14291         * modules/unistr/u32-mbsnlen: New file.
14292         * lib/unistr/u32-mbsnlen.c: New file.
14293
14294         * modules/unistr/u16-mbsnlen: New file.
14295         * lib/unistr/u16-mbsnlen.c: New file.
14296
14297         * modules/unistr/u8-mbsnlen: New file.
14298         * lib/unistr/u8-mbsnlen.c: New file.
14299
14300         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14301         declarations.
14302
14303 2007-06-10  Bruno Haible  <bruno@clisp.org>
14304
14305         * lib/string_.h (mbsnlen): New declaration.
14306         * lib/mbsnlen.c: New file.
14307         * m4/mbsnlen.m4: New file.
14308         * modules/mbsnlen: New file.
14309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14310         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14311         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14312
14313 2007-06-10  Bruno Haible  <bruno@clisp.org>
14314
14315         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14316
14317 2007-06-10  Bruno Haible  <bruno@clisp.org>
14318
14319         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14320         * lib/mbuiter.h: Likewise.
14321
14322 2007-06-10  Bruno Haible  <bruno@clisp.org>
14323
14324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14325         declaration.
14326
14327 2007-06-10  Karl Berry  <karl@gnu.org>
14328
14329         * config/srclist.txt: remove gettext entries, Bruno prefers
14330         to update individually.
14331
14332 2007-06-10  Bruno Haible  <bruno@clisp.org>
14333
14334         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14335         'maxlen'. Ensure only length + width bytes are allocated, not
14336         length + 1 + width.
14337
14338 2007-06-09  Bruno Haible  <bruno@clisp.org>
14339
14340         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14341         (CHAR_T): Remove macro.
14342         (VASNPRINTF): Update.
14343
14344 2007-06-09  Bruno Haible  <bruno@clisp.org>
14345
14346         * MODULES.html.sh (Unicode string functions): Add the new modules.
14347
14348         * modules/uniconv/u32-conv-to-enc: New file.
14349         * lib/uniconv/u32-conv-to-enc.c: New file.
14350         * modules/uniconv/u32-conv-to-enc-tests: New file.
14351         * tests/uniconv/test-u32-conv-to-enc.c: New file.
14352
14353         * modules/uniconv/u16-conv-to-enc: New file.
14354         * lib/uniconv/u16-conv-to-enc.c: New file.
14355         * lib/uniconv/u-conv-to-enc.h: New file.
14356         * modules/uniconv/u16-conv-to-enc-tests: New file.
14357         * tests/uniconv/test-u16-conv-to-enc.c: New file.
14358
14359         * modules/uniconv/u8-conv-to-enc: New file.
14360         * lib/uniconv/u8-conv-to-enc.c: New file.
14361         * modules/uniconv/u8-conv-to-enc-tests: New file.
14362         * tests/uniconv/test-u8-conv-to-enc.c: New file.
14363
14364         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14365         u32_conv_to_encoding): New declarations.
14366
14367 2007-06-09  Bruno Haible  <bruno@clisp.org>
14368
14369         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14370
14371 2007-06-09  Bruno Haible  <bruno@clisp.org>
14372
14373         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14374         * modules/malloca: Renamed from modules/allocsa, updated.
14375         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14376         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14377         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14378         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14379         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14380         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14381         * modules/xmalloca: Renamed from modules/xallocsa, updated.
14382         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14383         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14384         * modules/c-strcasestr (Depends-on): Update.
14385         * lib/c-strcasestr.c: Update.
14386         * modules/c-strstr (Depends-on): Update.
14387         * lib/c-strstr.c: Update.
14388         * modules/canonicalize-lgpl (Depends-on): Update.
14389         * lib/canonicalize-lgpl.c: Update.
14390         * modules/clean-temp (Depends-on): Update.
14391         * lib/clean-temp.c: Update.
14392         * modules/csharpcomp (Depends-on): Update.
14393         * lib/csharpcomp.c: Update.
14394         * modules/csharpexec (Depends-on): Update.
14395         * lib/csharpexec.c: Update.
14396         * modules/javacomp (Depends-on): Update.
14397         * lib/javacomp.c: Update.
14398         * modules/javaexec (Depends-on): Update.
14399         * lib/javaexec.c: Update.
14400         * modules/mbscasestr (Depends-on): Update.
14401         * lib/mbscasestr.c: Update.
14402         * modules/mbsstr (Depends-on): Update.
14403         * lib/mbsstr.c: Update.
14404         * modules/setenv (Depends-on): Update.
14405         * lib/setenv.c: Update.
14406         * modules/strcasestr (Depends-on): Update.
14407         * lib/strcasestr.c: Update.
14408         * modules/striconveha (Depends-on): Update.
14409         * lib/striconveha.c: Update.
14410         * modules/relocatable-prog-wrapper (Files): Update.
14411         * lib/relocwrapper.c: Update.
14412         * build-aux/install-reloc: Update.
14413         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14414
14415 2007-06-08  Bruno Haible  <bruno@clisp.org>
14416
14417         Port to uClibc.
14418         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14419         * lib/fpurge.c (fpurge): Likewise.
14420         * lib/freading.c (freading): Likewise.
14421         * lib/fseeko.c (rpl_fseeko): Likewise.
14422         * lib/fseterr.c (fseterr): Likewise.
14423         * lib/fwriting.c (fwriting): Likewise.
14424         * tests/test-fflush.c (main): Avoid a failure on uClibc.
14425
14426 2007-06-08  Bruno Haible  <bruno@clisp.org>
14427
14428         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14429         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14430         * modules/gettext (Files): Add m4/intlmacosx.m4.
14431
14432 2007-06-07  Bruno Haible  <bruno@clisp.org>
14433
14434         * modules/localename-tests: New file.
14435         * tests/test-localename.c: New file.
14436
14437         New module 'localename'.
14438         * lib/localename.h: New file.
14439         * lib/localename.c: New file, from GNU gettext.
14440         * m4/localename.m4: New file.
14441         * modules/localename: New file.
14442
14443 2007-06-07  Bruno Haible  <bruno@clisp.org>
14444
14445         Work around the lack of <wchar.h> on some builds of uClibc.
14446         * doc/headers/wchar.texi: Update.
14447         * lib/wchar_.h: Include <wchar.h> only if it exists.
14448         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14449         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14450         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14451         doesn't exist.
14452         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14453         * modules/mbfile (Depends-on): Add wchar.
14454         * modules/mbiter (Depends-on): Likewise.
14455         * modules/mbuiter (Depends-on): Likewise.
14456         Reported by Simon Josefsson.
14457
14458 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14459
14460         Work around problem reported by Steven M. Schweda in
14461         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14462         Tru64 5.1B with the Compaq compiler environment installed declares
14463         an 'isblank' function but does not define it in the C library.
14464         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14465         * lib/regex_internal.h (isblank): Likewise.
14466         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14467         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14468
14469 2007-06-05  Bruno Haible  <bruno@clisp.org>
14470
14471         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14472         ia64.
14473         * modules/printf-safe: New file.
14474         * modules/fprintf-posix (Depends-on): Add printf-safe.
14475         * modules/printf-posix (Depends-on): Likewise.
14476         * modules/snprintf-posix (Depends-on): Likewise.
14477         * modules/sprintf-posix (Depends-on): Likewise.
14478         * modules/vasnprintf-posix (Depends-on): Likewise.
14479         * modules/vasprintf-posix (Depends-on): Likewise.
14480         * modules/vfprintf-posix (Depends-on): Likewise.
14481         * modules/vprintf-posix (Depends-on): Likewise.
14482         * modules/vsnprintf-posix (Depends-on): Likewise.
14483         * modules/vsprintf-posix (Depends-on): Likewise.
14484         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14485         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14486         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14487         "no" on i386, x86_64, ia64.
14488         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14489         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14490         on i386, x86_64, ia64.
14491         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14492         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14493         on i386, x86_64, ia64.
14494         * tests/test-vasnprintf-posix.c: Include float.h.
14495         (LDBL80_WORDS): New macro.
14496         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14497         on i386, x86_64, ia64.
14498         * tests/test-vasprintf-posix.c: Include float.h.
14499         (LDBL80_WORDS): New macro.
14500         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14501         on i386, x86_64, ia64.
14502         * tests/test-snprintf-posix.c: Include float.h.
14503         * tests/test-sprintf-posix.c: Likewise.
14504         * tests/test-vsnprintf-posix.c: Likewise.
14505         * tests/test-vsprintf-posix.c: Likewise.
14506
14507 2007-06-05  Bruno Haible  <bruno@clisp.org>
14508
14509         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14511         non-IEEE numbers on i386, x86_64, ia64.
14512         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14513         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14514         * tests/test-isnanl.h: Include float.h.
14515         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14516
14517 2007-06-05  Bruno Haible  <bruno@clisp.org>
14518
14519         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14520         also the %a / %A. Handle the %a / %A code before this extra handling.
14521
14522 2007-06-05  Bruno Haible  <bruno@clisp.org>
14523
14524         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14525         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14526
14527 2007-06-05  Bruno Haible  <bruno@clisp.org>
14528
14529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14530         typo in variable name.
14531
14532 2007-06-05  Eric Blake  <ebb9@byu.net>
14533
14534         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14535         Reported by Simon Josefsson.
14536
14537 2007-06-04  Bruno Haible  <bruno@clisp.org>
14538
14539         Avoid test failures on some PowerPC platforms.
14540         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14541         Define differently for PowerPC.
14542         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14543         Reported by Gary V. Vaughan <gary@gnu.org>.
14544
14545 2007-06-02  Bruno Haible  <bruno@clisp.org>
14546
14547         Fix test-stdint failure on FreeBSD/ia64.
14548         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14549         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14550         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14551         * doc/headers/stdint.texi: Update.
14552
14553 2007-06-01  Bruno Haible  <bruno@clisp.org>
14554
14555         * tests/test-binary-io.c (main): Pass a third argument to open().
14556         Reported by Gary V. Vaughan <gary@gnu.org>.
14557
14558 2007-06-01  Bruno Haible  <bruno@clisp.org>
14559
14560         * doc/functions/frexpl.texi: Update for mingw.
14561
14562 2007-06-01  Bruno Haible  <bruno@clisp.org>
14563
14564         * tests/test-lseek.c (main): Disable test of errno for invalid third
14565         argument.
14566         * doc/functions/lseek.texi: Update.
14567         Reported by Gary V. Vaughan <gary@gnu.org>.
14568
14569 2007-05-28  Bruno Haible  <bruno@clisp.org>
14570
14571         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14572
14573 2007-05-31  Eric Blake  <ebb9@byu.net>
14574
14575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14576         cross compiling.
14577
14578 2007-05-30  Eric Blake  <ebb9@byu.net>
14579         and Bruno Haible  <bruno@clisp.org>
14580
14581         Work around mingw test failures exposed by m4-1.4.9b.
14582         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14583         * tests/test-unistd.c: Disable uid_t and git_t tests for the
14584         moment.
14585
14586 2007-05-30  Bruno Haible  <bruno@clisp.org>
14587
14588         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14589         assuming that they are closed. Needed on HP-UX 11.
14590
14591 2007-05-29  Bruno Haible  <bruno@clisp.org>
14592
14593         Fix a problem with #include_next.
14594         * lib/dirent_.h: Split the double-inclusion guard.
14595         * lib/fcntl_.h: Likewise.
14596         * lib/float_.h: Likewise.
14597         * lib/iconv_.h: Likewise.
14598         * lib/inttypes_.h: Likewise.
14599         * lib/locale_.h: Likewise.
14600         * lib/math_.h: Likewise.
14601         * lib/netinet_in_.h: Likewise.
14602         * lib/search_.h: Likewise.
14603         * lib/signal_.h: Likewise.
14604         * lib/stdint_.h: Likewise.
14605         * lib/stdio_.h: Likewise.
14606         * lib/stdlib_.h: Likewise.
14607         * lib/string_.h: Likewise.
14608         * lib/sys_select_.h: Likewise.
14609         * lib/sys_socket_.h: Likewise.
14610         * lib/sys_stat_.h: Likewise.
14611         * lib/sys_time_.h: Likewise.
14612         * lib/sysexits_.h: Likewise.
14613         * lib/time_.h: Likewise.
14614         * lib/unistd_.h: Likewise.
14615         * lib/wchar_.h: Likewise.
14616         * lib/wctype_.h: Likewise.
14617
14618 2007-05-29  Bruno Haible  <bruno@clisp.org>
14619
14620         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14621         for the moment.
14622
14623 2007-05-29  Bruno Haible  <bruno@clisp.org>
14624
14625         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14626         invocation.
14627         Reported by Eric Blake.
14628
14629 2007-05-29  Bruno Haible  <bruno@clisp.org>
14630
14631         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14632         compiling case.
14633
14634 2007-05-29  Eric Blake  <ebb9@byu.net>
14635             Bruno Haible  <bruno@clisp.org>
14636
14637         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14638         cross compiles.
14639
14640 2007-05-28  Eric Blake  <ebb9@byu.net>
14641
14642         * modules/closein-tests (test_closein_LDADD): Support test on
14643         cygwin with libtool.
14644
14645 2007-05-28  Bruno Haible  <bruno@clisp.org>
14646
14647         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14648         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14649         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14650         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14651         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14652         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14653         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14654         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14655         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14656
14657 2007-05-28  Eric Blake  <ebb9@byu.net>
14658
14659         Unconditionally include <config.h> in unit tests.
14660         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14661         * tests/test-allocsa.c, tests/test-arcfour.c,
14662         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14663         tests/test-array_list.c, tests/test-array_oset.c,
14664         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14665         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14666         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14667         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14668         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14669         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14670         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14671         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14672         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14673         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14674         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14675         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14676         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14677         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14678         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14679         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14680         test-md5.c, test-memmem.c, test-printf-posix.c,
14681         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14682         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14683         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14684         test-strcasestr.c, test-striconv.c, test-striconveh.c,
14685         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14686         test-vasnprintf-posix2.c, test-vasnprintf.c,
14687         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14688         test-vfprintf-posix.c, test-vprintf-posix.c,
14689         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14690         test-xvasprintf.c: Likewise.
14691
14692 2007-05-28  Bruno Haible  <bruno@clisp.org>
14693
14694         * gnulib-tool (func_import): Remember the --with-tests command-line
14695         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14696         Reported by Eric Blake.
14697
14698 2007-05-28  Bruno Haible  <bruno@clisp.org>
14699
14700         * modules/ftell-tests: New file.
14701         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14702         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14703
14704         * lib/ftell.c: New file.
14705         * modules/ftell: New file.
14706         * m4/ftell.m4: New file.
14707         * doc/functions/ftell.texi: Update.
14708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14709         REPLACE_FTELL.
14710         * lib/stdio_.h (rpl_ftell): New declaration.
14711         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14712         REPLACE_FTELL.
14713
14714 2007-05-28  Eric Blake  <ebb9@byu.net>
14715
14716         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14717
14718 2007-05-28  Bruno Haible  <bruno@clisp.org>
14719
14720         * modules/fseek-tests: New file.
14721         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14722         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14723
14724         * lib/fseek.c: New file.
14725         * modules/fseek: New file.
14726         * m4/fseek.m4: New file.
14727         * doc/functions/fseek.texi: Update.
14728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14729         REPLACE_FSEEK.
14730         * lib/stdio_.h (rpl_fseek): New declaration.
14731         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14732         REPLACE_FSEEK.
14733
14734 2007-05-28  Bruno Haible  <bruno@clisp.org>
14735
14736         * lib/stdio_.h (fflush): More comments.
14737
14738 2007-05-28  Bruno Haible  <bruno@clisp.org>
14739
14740         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14741         runtime test.
14742
14743 2007-05-28  Eric Blake  <ebb9@byu.net>
14744
14745         Improve lseek module.
14746         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14747         * lib/unistd_.h (lseek): Scale back link warning message.
14748         * tests/test-lseek.c: Beef up test.
14749         * tests/test-lseek.sh: Exercise more facets of lseek.
14750         Reported by Bruno Haible.
14751
14752 2007-05-28  Bruno Haible  <bruno@clisp.org>
14753
14754         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14755         to define.
14756
14757 2007-05-27  Bruno Haible  <bruno@clisp.org>
14758
14759         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14760
14761 2007-05-27  Bruno Haible  <bruno@clisp.org>
14762
14763         * modules/openmp: New file.
14764         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14765         Noah Misch.
14766
14767 2007-05-26  Bruno Haible  <bruno@clisp.org>
14768
14769         * modules/chdir-long (Depends-on): Add fchdir.
14770         * modules/chdir-safer (Depends-on): Likewise.
14771         * modules/fts (Depends-on): Likewise.
14772         * modules/fts-lgpl (Depends-on): Likewise.
14773         * modules/openat (Depends-on): Likewise.
14774         * modules/savewd (Depends-on): Likewise.
14775
14776 2007-05-24  Eric Blake  <ebb9@byu.net>
14777
14778         Fix lseek on mingw.
14779         * modules/lseek: New module.
14780         * m4/lseek.m4: New file.
14781         * lib/lseek.c: New file.
14782         * modules/lseek-tests: New file.
14783         * tests/test-lseek.c: New file.
14784         * tests/test-lseek.sh: New file.
14785         * MODULES.html.sh: Document lseek module.
14786         * modules/fflush (Depends-on): Add lseek, fseeko.
14787         * modules/fseeko (Depends-on): Likewise.
14788         * modules/ftello (Depends-on): Likewise.
14789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14790         broken.
14791         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14792         broken.
14793         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14794         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14795         * lib/ftello.c (rpl_ftello): Likewise.
14796         * tests/test-fseeko.c (main): Test this.
14797         * tests/test-fseeko.sh: Likewise.
14798         * tests/test-ftello.c (main): Likewise.
14799         * tests/test-ftello.sh: Likewise.
14800         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14801         implies replacing fseek.
14802         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14803         HAVE_FTELLO.
14804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14805         * modules/unistd (Makefile.am): Likewise.
14806         * lib/unistd_.h (lseek): Declare a replacement.
14807         * doc/functions/lseek.texi (lseek): Document this fix.
14808         * doc/functions/fseek.texi (fseek): Likewise.
14809         * doc/functions/ftell.texi (ftell): Likewise.
14810
14811 2007-05-24  Bruno Haible  <bruno@clisp.org>
14812
14813         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14814         in the printed representation of a NaN.
14815         * tests/test-vasprintf-posix.c (test_function): Likewise.
14816         * tests/test-snprintf-posix.h (test_function): Likewise.
14817         * tests/test-sprintf-posix.h (test_function): Likewise.
14818         Reported by Eric Blake.
14819
14820 2007-05-23  Eric Blake  <ebb9@byu.net>
14821
14822         Fix fseeko/ftello on cygwin 1.5.24.
14823         * doc/functions/fseeko.texi (fseeko): Document the fix.
14824         * doc/functions/ftello.texi (ftello): Document the fix.
14825         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14826         * doc/functions/stdout.text (stdout): New file.
14827         * doc/functions/stderr.text (stderr): New file.
14828         * doc/gnulib.texi (Function Substitutes): Use new files.
14829         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14830         prior to 1.7.0.
14831         * tests/test-ftello.c (main): Likewise for ftello.
14832         * tests/test-fseeko.sh: New file.
14833         * tests/test-ftello.sh: New file.
14834         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14835         with seekable stdin.
14836         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14837         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14838         (gl_REPLACE_FSEEKO): New macro.
14839         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14840         * modules/fseeko (Files): Distribute fseeko.c.
14841         * modules/ftello (Files): Distribute ftello.c.
14842         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14843         mode.
14844         * lib/ftello.c (rpl_ftello): New file.
14845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14846         fseeko, ftello.
14847         (gl_STDIN_LARGE_OFFSET): New macro.
14848         * modules/stdio (Makefile.am): Perform the replacement.
14849         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14850
14851 2007-05-23  Bruno Haible  <bruno@clisp.org>
14852
14853         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14854         GNULIB_POSIXCHECK is defined.
14855
14856 2007-05-21  Bruno Haible  <bruno@clisp.org>
14857
14858         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14859         Check also the output for NaN arguments. When cross-compiling, guess
14860         no on IRIX.
14861         * lib/vasnprintf.c: Update comments.
14862         * tests/test-vasnprintf-posix.c (strisnan): New function.
14863         (test_function): Use it.
14864         * tests/test-vasprintf-posix.c (strisnan): New function.
14865         (test_function): Use it.
14866         * tests/test-snprintf-posix.h (strisnan): New function.
14867         (test_function): Use it.
14868         * tests/test-sprintf-posix.h (strisnan): New function.
14869         (test_function): Use it.
14870         Reported by Eric Blake.
14871
14872 2007-05-20  Bruno Haible  <bruno@clisp.org>
14873
14874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
14875         numbers that fails on BeOS.
14876         * doc/functions/frexpl.texi: Update.
14877
14878 2007-05-20  Jim Meyering  <jim@meyering.net>
14879
14880         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
14881         forced upon us by glibc-2.6.
14882
14883 2007-05-20  Bruno Haible  <bruno@clisp.org>
14884
14885         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
14886         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
14887         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
14888         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
14889         NEED_PRINTF_INFINITE.
14890         (is_infinitel): New function.
14891         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
14892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
14893         gl_PREREQ_VASNPRINTF_INFINITE.
14894         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
14895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14896         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
14897         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
14898         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
14899         gl_PREREQ_VASNPRINTF_INFINITE.
14900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14904         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14905         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14906         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14907         * doc/functions/fprintf.texi: Update.
14908         * doc/functions/printf.texi: Update.
14909         * doc/functions/snprintf.texi: Update.
14910         * doc/functions/sprintf.texi: Update.
14911         * doc/functions/vfprintf.texi: Update.
14912         * doc/functions/vprintf.texi: Update.
14913         * doc/functions/vsnprintf.texi: Update.
14914         * doc/functions/vsprintf.texi: Update.
14915
14916 2007-05-20  Bruno Haible  <bruno@clisp.org>
14917
14918         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
14919         was not found in libc.
14920         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14921
14922 2007-05-20  Bruno Haible  <bruno@clisp.org>
14923
14924         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14925         printed as "-nan" instead of "nan".
14926         * tests/test-vasprintf-posix.c (test_function): Likewise.
14927         * tests/test-snprintf-posix.h (test_function): Likewise.
14928         * tests/test-sprintf-posix.h (test_function): Likewise.
14929         Needed for HP-UX 11.
14930
14931 2007-05-20  Jim Meyering  <jim@meyering.net>
14932
14933         Fix buggy test for the fchownat-deref bug.
14934         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
14935         symlink required for the run-test.  Without it, this test would
14936         always declare that fchownat doesn't work, and client code would
14937         unnecessarily use the replacement function with fixed libc.
14938         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
14939         Reported by Greg Schafer.
14940
14941 2007-05-19  Bruno Haible  <bruno@clisp.org>
14942
14943         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
14944         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
14945         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
14946         Needed for IRIX 6.5 and Solaris 2.5.1.
14947
14948 2007-05-19  Bruno Haible  <bruno@clisp.org>
14949
14950         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
14951         (test_function): Skip tests involving -0.0 on platforms where
14952         -0.0 = 0.0.
14953         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
14954         (test_function): Skip tests involving -0.0 on platforms where
14955         -0.0 = 0.0.
14956         * tests/test-snprintf-posix.h (have_minus_zero): New function.
14957         (test_function): Skip tests involving -0.0 on platforms where
14958         -0.0 = 0.0.
14959         * tests/test-sprintf-posix.h (have_minus_zero): New function.
14960         (test_function): Skip tests involving -0.0 on platforms where
14961         -0.0 = 0.0.
14962         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
14963         tests.
14964         * tests/test-printf-posix.h (test_function): Likewise.
14965         * tests/test-printf-posix.output: Remove all -0.0 related results.
14966         Needed for IRIX 6.5.
14967
14968 2007-05-19  Bruno Haible  <bruno@clisp.org>
14969
14970         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
14971         printed as "nan0x7fffffff" instead of "nan".
14972         * tests/test-vasprintf-posix.c (test_function): Likewise.
14973         * tests/test-snprintf-posix.h (test_function): Likewise.
14974         * tests/test-sprintf-posix.h (test_function): Likewise.
14975         * tests/test-fprintf-posix.h (NaN): Remove macro.
14976         (test_function): Remove all NaN related tests.
14977         * tests/test-printf-posix.h (NaN): Remove macro.
14978         (test_function): Remove all NaN related tests.
14979         * tests/test-printf-posix.output: Remove all NaN related results.
14980         Needed for IRIX 6.5.
14981
14982 2007-05-19  Bruno Haible  <bruno@clisp.org>
14983
14984         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
14985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14986
14987 2007-05-19  Bruno Haible  <bruno@clisp.org>
14988
14989         * lib/float_.h: New file.
14990         * m4/float_h.m4: New file.
14991         * modules/float: New file.
14992         * modules/isnanl (Dependencies): Add float.
14993         * modules/isnanl-nolibm (Dependencies): Likewise.
14994         * modules/mathl (Dependencies): Likewise.
14995         * modules/printf-frexpl (Dependencies): Likewise.
14996         * modules/signbit (Dependencies): Likewise.
14997         * modules/vasnprintf (Dependencies): Likewise.
14998         * doc/headers/float.texi: Update.
14999
15000 2007-05-19  Jim Meyering  <jim@meyering.net>
15001
15002         * lib/utimens.c (gl_futimens): Rename from futimens,
15003         now that glibc-2.6 declares futimens.
15004         * lib/utimens.h: Likewise.
15005
15006 2007-05-19  Bruno Haible  <bruno@clisp.org>
15007
15008         Avoid test failures on mingw.
15009         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15010         * tests/test-printf-posix.sh: Likewise.
15011         * tests/test-vfprintf-posix.sh: Likewise.
15012         * tests/test-vprintf-posix.sh: Likewise.
15013
15014 2007-05-19  Bruno Haible  <bruno@clisp.org>
15015
15016         Fix *printf result for NaN, Inf, -0.0 on mingw.
15017         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15018         * lib/vasnprintf.c: Include math.h and isnan.h.
15019         (is_infinite_or_zero): New function.
15020         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15021         values in the %f, %F, %e, %E, %g, %G directives.
15022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15024         gl_PRINTF_INFINITE and test its result. Invoke
15025         gl_PREREQ_VASNPRINTF_INFINITE.
15026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15030         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15033         * doc/functions/fprintf.texi: Update.
15034         * doc/functions/printf.texi: Update.
15035         * doc/functions/snprintf.texi: Update.
15036         * doc/functions/sprintf.texi: Update.
15037         * doc/functions/vfprintf.texi: Update.
15038         * doc/functions/vprintf.texi: Update.
15039         * doc/functions/vsnprintf.texi: Update.
15040         * doc/functions/vsprintf.texi: Update.
15041
15042 2007-05-19  Bruno Haible  <bruno@clisp.org>
15043
15044         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15045         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15046         Instead of multiplying with 10^k, set extra_zeroes to k.
15047         (scale10_round_long_double): Remove function.
15048
15049 2007-05-18  Bruno Haible  <bruno@clisp.org>
15050
15051         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15052         introduced on 2007-05-06.
15053
15054 2007-05-18  Bruno Haible  <bruno@clisp.org>
15055
15056         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15057         %g directives.
15058         * tests/test-vasprintf-posix.c (test_function): Likewise.
15059         * tests/test-snprintf-posix.h (test_function): Likewise.
15060         * tests/test-sprintf-posix.h (test_function): Likewise.
15061
15062 2007-05-18  Bruno Haible  <bruno@clisp.org>
15063
15064         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
15065         (strmatch): New function.
15066         (test_function): Test the %f directive on numbers of various exponents.
15067         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
15068         (strmatch): New function.
15069         (test_function): Test the %f directive on numbers of various exponents.
15070         * tests/test-snprintf-posix.h (strmatch): New function.
15071         (test_function): Test the %f directive on numbers of various exponents.
15072         * tests/test-sprintf-posix.h (strmatch): New function.
15073         (test_function): Test the %f directive on numbers of various exponents.
15074         * tests/test-snprintf-posix.c (SIZEOF): New macro.
15075         * tests/test-sprintf-posix.c (SIZEOF): New macro.
15076         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
15077         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
15078
15079 2007-05-18  Bruno Haible  <bruno@clisp.org>
15080
15081         Add support for 'long double' number output.
15082         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
15083         * lib/vasnprintf.c: Include math.h and float+.h.
15084         (mp_limb_t): New type.
15085         (GMP_LIMB_BITS): New macro.
15086         (mp_twolimb_t): New type.
15087         (GMP_TWOLIMB_BITS): New macro.
15088         (mpn_t): New type.
15089         (multiply, divide, convert_to_decimal, decode_long_double,
15090         scale10_round_long_double, scale10_round_decimal_long_double,
15091         floorlog10l): New functions.
15092         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
15093         for the %f, %F, %e, %E, %g, %G directives.
15094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
15095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15096         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
15097         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
15098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15099         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15105         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
15106         * modules/snprintf-posix (Depends-on): Likewise.
15107         * modules/sprintf-posix (Depends-on): Likewise.
15108         * modules/vasnprintf-posix (Depends-on): Likewise.
15109         * modules/vasprintf-posix (Depends-on): Likewise.
15110         * modules/vfprintf-posix (Depends-on): Likewise.
15111         * modules/vsnprintf-posix (Depends-on): Likewise.
15112         * modules/vsprintf-posix (Depends-on): Likewise.
15113         * modules/vasnprintf (Files): Add lib/float+.h.
15114         * doc/functions/fprintf.texi: Update.
15115         * doc/functions/printf.texi: Update.
15116         * doc/functions/snprintf.texi: Update.
15117         * doc/functions/sprintf.texi: Update.
15118         * doc/functions/vfprintf.texi: Update.
15119         * doc/functions/vprintf.texi: Update.
15120         * doc/functions/vsnprintf.texi: Update.
15121         * doc/functions/vsprintf.texi: Update.
15122
15123 2007-05-18  Bruno Haible  <bruno@clisp.org>
15124
15125         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
15126
15127 2007-05-18  Bruno Haible  <bruno@clisp.org>
15128
15129         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
15130         for printing 64-bit integers. Needed for mingw.
15131
15132 2007-05-18  Bruno Haible  <bruno@clisp.org>
15133
15134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15135         gl_FUNC_FREXPL_WORKS.
15136         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15137
15138 2007-05-18  Bruno Haible  <bruno@clisp.org>
15139
15140         * modules/frexpl-nolibm-tests: New file.
15141
15142         * modules/frexpl-nolibm: New file.
15143         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15144
15145 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15146
15147         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15148         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15149         GCC 4.2, which otherwise issues a lot of warnings.
15150         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15151         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15152         Likewise.
15153         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15154         * modules/iconv_open (iconv.h): Likewise.
15155         * modules/locale (locale.h): Likewise.
15156         * modules/netinet_in (netinet/in.h): Likewise.
15157         * modules/sys_select (sys_select.h): Likewise.
15158         * modules/sys_socket (sys/socket.h): Likewise.
15159         * modules/sys_stat (sys/stat.h): Likewise.
15160         * modules/sysexits (sysexits.h): Likewise.
15161         * modules/unistd (unistd.h): Likewise.
15162
15163 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15164
15165         * modules/closein-tests (Makefile.am): Distribute
15166         `test-closein.sh'.
15167
15168 2007-05-17  Bruno Haible  <bruno@clisp.org>
15169
15170         * tests/test-printf-posix.output: Renamed from
15171         tests/test-fprintf-posix.out.
15172         * modules/fprintf-posix-tests: Update.
15173         * modules/printf-posix-tests: Update.
15174         * modules/vfprintf-posix-tests: Update.
15175         * modules/vprintf-posix-tests: Update.
15176         * tests/test-fprintf-posix.sh: Update.
15177         * tests/test-printf-posix.sh: Update.
15178         * tests/test-vfprintf-posix.sh: Update.
15179         * tests/test-vprintf-posix.sh: Update.
15180         Reported by Ralf Wildenhues.
15181
15182 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15183
15184         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15185         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15186         GCC 4.2, which otherwise issues a lot of warnings.
15187         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15188         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15189         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15190         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15191         it should no longer be needed.
15192         * lib/string_.h: Likewise.
15193         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15194         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15195         * modules/inttypes (inttypes.h): Likewise.
15196         * modules/math (math.h): Likewise.
15197         * modules/search (search.h): Likewise.
15198         * modules/signal (signal.h): Likewise.
15199         * modules/stdint (stdint.h): Likewise.
15200         * modules/stdio (stdio.h): Likewise.
15201         * modules/stdlib (stdlib.h): Likewise.
15202         * modules/string (string.h): Likewise.
15203         * modules/sys_time (sys/time.h): Likewise.
15204         * modules/time (time.h): Likewise.
15205         * modules/wchar (wchar.h): Likewise.
15206         * modules/wctype (wtype.h): Likewise.
15207
15208 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15209
15210         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15211
15212 2007-05-13  Bruno Haible  <bruno@clisp.org>
15213
15214         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15215         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15216         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15217         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15218         (gl_PREREQ_STRTOK_R): Don't require it here.
15219
15220 2007-05-13  Bruno Haible  <bruno@clisp.org>
15221
15222         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15223         when used in C++ mode.
15224
15225 2007-05-12  Bruno Haible  <bruno@clisp.org>
15226
15227         * lib/linebuffer.h: Tweak doc.
15228         * lib/linebuffer.c: Likewise.
15229
15230 2007-05-12  James Youngman  <jay@gnu.org>
15231
15232         * lib/linebuffer.c (readlinebuffer_delim): New function,
15233         like readlinebuffer, but use a caller-specified delimiter.
15234         (readlinebuffer): Just call readlinebuffer_delim with '\n'
15235         as the delimiter.
15236         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15237
15238 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15239
15240         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15241         * modules/openat (Files): Remove openat-die.c.
15242         (Depends-on): Add openat-die.
15243         * modules/openat-die: New module.
15244
15245 2007-05-06  Bruno Haible  <bruno@clisp.org>
15246
15247         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15248         Update with info about Cygwin.
15249         * doc/functions/fprintf.texi: Update.
15250         * doc/functions/printf.texi: Update.
15251         * doc/functions/snprintf.texi: Update.
15252         * doc/functions/sprintf.texi: Update.
15253         * doc/functions/vfprintf.texi: Update.
15254         * doc/functions/vprintf.texi: Update.
15255         * doc/functions/vsnprintf.texi: Update.
15256         * doc/functions/vsprintf.texi: Update.
15257         Reported by Eric Blake.
15258
15259 2007-05-06  Bruno Haible  <bruno@clisp.org>
15260
15261         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15262         padding ourselves for the floating-point directives.
15263         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15266         gl_PRINTF_FLAG_ZERO and test its result. Invoke
15267         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15269         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15275         * tests/test-snprintf-posix.h (test_function): Also check the width
15276         and some flags in the %f directive.
15277         * tests/test-sprintf-posix.h (test_function): Likewise.
15278         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15279         * tests/test-vasprintf-posix.c (test_function): Likewise.
15280         * doc/functions/fprintf.texi: Update.
15281         * doc/functions/printf.texi: Update.
15282         * doc/functions/snprintf.texi: Update.
15283         * doc/functions/sprintf.texi: Update.
15284         * doc/functions/vfprintf.texi: Update.
15285         * doc/functions/vprintf.texi: Update.
15286         * doc/functions/vsnprintf.texi: Update.
15287         * doc/functions/vsprintf.texi: Update.
15288
15289 2007-05-06  Bruno Haible  <bruno@clisp.org>
15290
15291         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15292         pass the ' flag character to sprintf or snprintf.
15293         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15296         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15297         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15305         * tests/test-snprintf-posix.h (test_function): Also check the grouping
15306         flag.
15307         * tests/test-sprintf-posix.h (test_function): Likewise.
15308         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15309         * tests/test-vasprintf-posix.c (test_function): Likewise.
15310         * doc/functions/fprintf.texi: Update.
15311         * doc/functions/printf.texi: Update.
15312         * doc/functions/snprintf.texi: Update.
15313         * doc/functions/sprintf.texi: Update.
15314         * doc/functions/vfprintf.texi: Update.
15315         * doc/functions/vprintf.texi: Update.
15316         * doc/functions/vsnprintf.texi: Update.
15317         * doc/functions/vsprintf.texi: Update.
15318
15319 2007-05-01  Bruno Haible  <bruno@clisp.org>
15320
15321         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15322
15323 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15324
15325         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15326         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
15327
15328 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15329
15330         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15331         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
15332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15333
15334 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
15335
15336         * lib/argp-help.c (struct hol_entry): New member `ord'.
15337         (HOL_ENTRY_PTRCMP): Use ord for comparison
15338         (hol_sort): Initialize ord.
15339
15340 2007-05-01  Bruno Haible  <bruno@clisp.org>
15341
15342         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15343         Reported by Eric Blake.
15344         * doc/gnulib.texi (Function Substitutes): Update.
15345
15346 2007-05-01  Bruno Haible  <bruno@clisp.org>
15347
15348         * doc/functions.texi: Remove file, now redundant through
15349         doc/functions/*.texi.
15350
15351 2007-05-01  Bruno Haible  <bruno@clisp.org>
15352
15353         * modules/argp (Depends-on): Add sleep.
15354
15355 2007-05-01  Bruno Haible  <bruno@clisp.org>
15356
15357         * modules/sleep-tests: New file.
15358         * tests/test-sleep.c: New file.
15359
15360         * modules/sleep: New file.
15361         * lib/sleep.c: New file.
15362         * m4/sleep.m4: New file.
15363         * lib/unistd_.h (sleep): New declaration.
15364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15365         HAVE_SLEEP.
15366         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15367         * doc/functions/sleep.texi: Document the sleep module.
15368
15369 2007-05-01  Bruno Haible  <bruno@clisp.org>
15370
15371         * lib/sigprocmask.h: Remove file.
15372         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15373         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15374         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15375         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15376         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15377         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15378         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15379         HAVE_SIGSET_T as a shell variable.
15380         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15381         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15382         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15383         (Depends-on): Add signal. Remove verify.
15384         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15385         (Include): Mention <signal.h> instead of sigprocmask.h.
15386         * NEWS: Mention the change.
15387         * lib/fatal-signal.c: Don't include sigprocmask.h.
15388
15389 2007-05-01  Bruno Haible  <bruno@clisp.org>
15390
15391         * modules/signal: New file.
15392         * lib/signal_.h: New file.
15393         * m4/signal_h.m4: New file.
15394
15395 2007-05-01  Bruno Haible  <bruno@clisp.org>
15396
15397         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15398         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15399         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15400         HAVE_WCTYPE_CTMP_BUG into wctype.h.
15401
15402 2007-05-01  Bruno Haible  <bruno@clisp.org>
15403
15404         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15405         configure time.
15406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15407         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15408         * modules/sys_stat (Makefile.am): Substitute their values into
15409         sys/stat.h.
15410
15411 2007-05-01  Bruno Haible  <bruno@clisp.org>
15412
15413         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15414         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15415         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15416
15417 2007-05-01  Bruno Haible  <bruno@clisp.org>
15418
15419         * doc/header/assert.texi: Undo last change: don't mention the gnulib
15420         'assert' module here.
15421
15422 2007-05-01  Bruno Haible  <bruno@clisp.org>
15423
15424         * doc/functions/*.texi: New files.
15425         * doc/functions/google-ranking.txt: New file.
15426         * doc/gnulib.texi (Function Substitutes): New chapter.
15427         (ctime, inet_ntoa): Remove sections.
15428         * doc/ctime.texi: Remove file.
15429         * doc/inet_ntoa.texi: Remove file.
15430         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15431         dependencies.
15432         (%.info): New rule, specifying a --reference-limit.
15433
15434 2007-05-01  Bruno Haible  <bruno@clisp.org>
15435
15436         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15437
15438 2007-05-01  Bruno Haible  <bruno@clisp.org>
15439
15440         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15441         the portability of 'mkdir' to mingw systems.
15442
15443 2007-05-01  Bruno Haible  <bruno@clisp.org>
15444
15445         * doc/headers/google-ranking.txt: New file.
15446
15447 2007-04-30  Eric Blake  <ebb9@byu.net>
15448
15449         Prefer fseeko to fseek.
15450         * modules/getpass (Depends-on): Add fseeko.
15451         * lib/getpass.c (getpass): Use fseeko, not fseek.
15452
15453 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
15454
15455         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15456         assumes the sorting is stable, while most qsort implementations
15457         are not.  Use argument addresses to ensure they never compare as
15458         equal.
15459
15460         * tests/test-argp-2.sh (usage-indent test): Fix output
15461         (func_compare): Restore diff options
15462         * tests/test-argp.c: Restore #include "progname.h"
15463
15464 2007-04-29  Bruno Haible  <bruno@clisp.org>
15465
15466         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15468         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15470         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15471         (configure.ac): Define CHECK_SNPRINTF_POSIX.
15472         (TESTS, check_PROGRAMS): Add test-snprintf.
15473         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15474         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15475         (TESTS, check_PROGRAMS): Add test-vsnprintf.
15476         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15477         assertions that fail on HP-UX, OSF/1, or IRIX.
15478         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15479
15480 2007-04-29  Bruno Haible  <bruno@clisp.org>
15481
15482         * MODULES.html.sh (posix_functions): Remove 'contents'.
15483
15484 2007-04-29  Karl Berry  <karl@gnu.org>
15485
15486         * config/srclist.txt (gendocs_template_min): new entry.
15487
15488 2007-04-29  Bruno Haible  <bruno@clisp.org>
15489
15490         Work around fpurge bug on BSD systems.
15491         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15492         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15493         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15494         fpurge to rpl_fpurge if the system already has this function.
15495         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15496         the case where the system already has this function. Correct invariants
15497         on BSD systems.
15498         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15499         BSD systems.
15500
15501 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15502
15503         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
15504         proposed by Sven Verdoolaege.
15505
15506         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
15507         options.
15508         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15509         (usage and help tests): Update
15510
15511 2007-04-29  Bruno Haible  <bruno@clisp.org>
15512
15513         * tests/test-fflush.c (main): Use a file of size 17, not 10.
15514         Print more information in case of failure. Disable a test on BeOS.
15515
15516 2007-04-29  Bruno Haible  <bruno@clisp.org>
15517
15518         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15519         This helps debugging on systems on which no gdb is available.
15520
15521 2007-04-29  Bruno Haible  <bruno@clisp.org>
15522
15523         * lib/freading.h: Improve comments.
15524         * lib/fwriting.h: Likewise.
15525         * tests/test-freading.c (main): Don't check freading immediately after
15526         repositioning. Needed for glibc.
15527
15528 2007-04-29  Bruno Haible  <bruno@clisp.org>
15529
15530         * lib/freading.c (freading): Trivial simplification.
15531
15532 2007-04-28  Bruno Haible  <bruno@clisp.org>
15533
15534         * tests/test-fwriting.c (main): Also test the interaction between
15535         fflush and fwriting.
15536         * modules/fwriting-tests (Depends-on): Add fflush.
15537
15538         * tests/test-freading.c (main): Also test the interaction between
15539         fflush and freading.
15540         * modules/freading-tests (Depends-on): Add fflush.
15541
15542 2007-04-28  Bruno Haible  <bruno@clisp.org>
15543
15544         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15545         fseeko and ftello.
15546         Suggested by Eric Blake.
15547
15548 2007-04-28  Jim Meyering  <jim@meyering.net>
15549
15550         Avoid false-negative in gl_STDINT_H's C99 conformance test.
15551         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15552         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15553
15554 2007-04-27  Eric Blake  <ebb9@byu.net>
15555
15556         * doc/headers/assert.texi (assert.h): Document assert module use.
15557
15558 2007-04-27  Bruno Haible  <bruno@clisp.org>
15559
15560         * doc/headers/*.texi: New files.
15561         * doc/gnulib.texi (Header File Substitutes): New chapter.
15562         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15563         dependencies.
15564         (standards.info ,standards.html, standards.dvi): Update dependencies.
15565         (mostlyclean, clean): New targets.
15566
15567 2007-04-27  Bruno Haible  <bruno@clisp.org>
15568
15569         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15570         * modules/sysexits (Files, Makefile.am): Update.
15571
15572         * lib/sys_socket_.h: Renamed from lib/socket_.h.
15573         * modules/sys_socket (Files, Makefile.am): Update.
15574
15575         * lib/sys_stat_.h: Renamed from lib/stat_.h.
15576         * modules/sys_stat (Files, Makefile.am): Update.
15577
15578 2007-04-27  Eric Blake  <ebb9@byu.net>
15579
15580         * lib/freading.h: Improve comments.
15581         * lib/fwriting.h: Likewise.
15582         * lib/fflush.c: Likewise.
15583
15584         Fix closein for mingw.
15585         * modules/closein-tests: Add tests for closein.
15586         * tests/test-closein.c: New file.
15587         * tests/test-closein.sh: Likewise.
15588         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15589         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15590
15591 2007-04-27  Bruno Haible  <bruno@clisp.org>
15592
15593         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15594         version is < 6.
15595         * lib/math_.h [__DECC]: Likewise.
15596         * lib/stdio_.h [__DECC]: Likewise.
15597         * lib/stdlib_.h [__DECC]: Likewise.
15598         * lib/string_.h [__DECC]: Likewise.
15599         * lib/time_.h [__DECC]: Likewise.
15600         * lib/wchar_.h [__DECC]: Likewise.
15601         * lib/wctype_.h [__DECC]: Likewise.
15602
15603 2007-04-27  Bruno Haible  <bruno@clisp.org>
15604
15605         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15606
15607 2007-04-27  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/fflush.c: Add comments.
15610         * modules/fpurge-tests (Depends-on): Add fflush.
15611         * modules/freadable-tests (Depends-on): Likewise.
15612         * modules/fwritable-tests (Depends-on): Likewise.
15613
15614 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
15615
15616         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15617         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
15618         Report by Bruno Haible <bruno@clisp.org>.
15619
15620 2007-04-26  Eric Blake  <ebb9@byu.net>
15621
15622         Fix fflush on mingw.
15623         * modules/fflush (Depends-on): Add freading.
15624         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15625         but unread data.
15626
15627 2007-04-26  Eric Blake  <ebb9@byu.net>
15628         and Bruno Haible  <bruno@clisp.org>
15629
15630         Implement freading and fwriting.
15631         * lib/freading.c: New file.
15632         * lib/freading.h: Likewise.
15633         * m4/freading.m4: Likewise.
15634         * modules/freading: Likewise.
15635         * modules/freading-tests: Likewise.
15636         * tests/test-freading.c: Likewise.
15637         * lib/fwriting.c: New file.
15638         * lib/fwriting.h: Likewise.
15639         * m4/fwriting.m4: Likewise.
15640         * modules/fwriting: Likewise.
15641         * modules/fwriting-tests: Likewise.
15642         * tests/test-fwriting.c: Likewise.
15643         * MODULES.html.sh (File stream based Input/Output): Mention them.
15644
15645 2007-04-26  Bruno Haible  <bruno@clisp.org>
15646
15647         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15648         'long' when we assume it.
15649         Suggested by Eric Blake.
15650
15651 2007-04-26  Bruno Haible  <bruno@clisp.org>
15652
15653         Ensure fseeko, ftello are declared on glibc systems.
15654         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15655         * modules/fseeko (configure.ac-early): Likewise.
15656         * modules/ftello (configure.ac-early): Likewise.
15657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15658         AC_FUNC_FSEEKO for this.
15659         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15660         (gl_CHECK_FSEEKO): Remove macro.
15661
15662 2007-04-26  Bruno Haible  <bruno@clisp.org>
15663
15664         * tests/test-fflush.c (main): Also check the ftell result after
15665         fflush and fseek/fseeko.
15666         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15667         file descriptor position cache in the stream.
15668         * lib/fseeko.c (rpl_fseeko): Likewise.
15669
15670 2007-04-26  Bruno Haible  <bruno@clisp.org>
15671
15672         * modules/fflush-tests (Depends-on): Add fseeko.
15673
15674 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
15675             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15676
15677         * lib/argz_.h: ensure error_t definition is obtained in same
15678         mechanism system argz.h would have.
15679         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15680         argz facilities are known bad.  Err on the side of caution if
15681         cross-compiling.
15682
15683 2007-04-25  Eric Blake  <ebb9@byu.net>
15684
15685         * lib/fpurge.c (includes): Use stdlib.h for free.
15686         * tests/test-fflush.c (main): Also test fflush-fseeko.
15687
15688 2007-04-25  Bruno Haible  <bruno@clisp.org>
15689
15690         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15691         * lib/fseeko.c: New file.
15692         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15693         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15694         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15695         gl_FUNC_FSEEKO.
15696         (gl_FUNC_FSEEKO): Invoke it.
15697         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15698         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15699         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15700
15701 2007-04-25  Bruno Haible  <bruno@clisp.org>
15702
15703         * modules/fflush (Depends-on): Add ftello.
15704
15705 2007-04-25  Bruno Haible  <bruno@clisp.org>
15706
15707         * modules/ftello-tests: New file.
15708         * tests/test-ftello.c: New file.
15709
15710         * modules/ftello: New file.
15711         * m4/ftello.m4: New file.
15712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15713         HAVE_FTELLO.
15714         * lib/stdio_.h (ftello): New declaration.
15715         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15716         HAVE_FTELLO.
15717
15718 2007-04-25  Bruno Haible  <bruno@clisp.org>
15719
15720         * modules/fseeko-tests: New file.
15721         * tests/test-fseeko.c: New file.
15722
15723         * modules/fseeko: New file.
15724         * m4/fseeko.m4: New file.
15725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15726         HAVE_FSEEKO.
15727         * lib/stdio_.h (fseeko): New declaration.
15728         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15729         HAVE_FSEEKO.
15730
15731 2007-04-25  Bruno Haible  <bruno@clisp.org>
15732
15733         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15734
15735 2007-04-25  Bruno Haible  <bruno@clisp.org>
15736
15737         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15738         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15739         * tests/test-unistd.c: Likewise.
15740         * tests/test-fcntl.c: Likewise.
15741
15742 2007-04-23  Eric Blake  <ebb9@byu.net>
15743
15744         * lib/fflush.c: Fix missing include.
15745         Reported by Bruno Haible.
15746
15747 2007-04-23  Bruno Haible  <bruno@clisp.org>
15748
15749         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15750         Reported by Eric Blake.
15751
15752 2007-04-23  Bruno Haible  <bruno@clisp.org>
15753
15754         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15755
15756 2007-04-23  Bruno Haible  <bruno@clisp.org>
15757
15758         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15759
15760 2007-04-23  Bruno Haible  <bruno@clisp.org>
15761
15762         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15763         Needed on HP-UX 11.
15764
15765 2007-04-16  Eric Blake  <ebb9@byu.net>
15766
15767         Make fflush rely on fpurge.
15768         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15769         open coding all variants.
15770         * modules/fflush (Depends-on): Add fpurge and unistd.
15771         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15772         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15773
15774         Fix --with-tests compilation on cygwin.
15775         * modules/argmatch-tests (Makefile.am): List gnulib library first
15776         in LDADD.
15777         * modules/argp-tests (Makefile.am): Likewise.
15778         * modules/array-list-tests (Makefile.am): Likewise.
15779         * modules/array-oset-tests (Makefile.am): Likewise.
15780         * modules/avltree-list-tests (Makefile.am): Likewise.
15781         * modules/avltree-oset-tests (Makefile.am): Likewise.
15782         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15783         * modules/carray-list-tests (Makefile.am): Likewise.
15784         * modules/dirname-tests (Makefile.am): Likewise.
15785         * modules/frexp-tests (Makefile.am): Likewise.
15786         * modules/isnanl-tests (Makefile.am): Likewise.
15787         * modules/linked-list-tests (Makefile.am): Likewise.
15788         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15789         * modules/lock-tests (Makefile.am): Likewise.
15790         * modules/rbtree-list-tests (Makefile.am): Likewise.
15791         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15792         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15793         * modules/tls-tests (Makefile.am): Likewise.
15794         * modules/tsearch-tests (Makefile.am): Likewise.
15795         * modules/xvasprintf-tests (Makefile.am): Likewise.
15796
15797         Fix fpurge for cygwin.
15798         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15799         value.
15800         * modules/fpurge-tests (Depends-on): Clean up trash.
15801
15802 2007-04-16  Simon Josefsson  <simon@josefsson.org>
15803
15804         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15805
15806         * m4/autobuild.m4: Re-indent.
15807
15808 2007-04-13  Bruno Haible  <bruno@clisp.org>
15809
15810         * modules/fpurge-tests: New file.
15811         * tests/test-fpurge.c: New file.
15812
15813         * modules/fpurge: New file.
15814         * lib/fpurge.h: New file.
15815         * lib/fpurge.c: New file.
15816         * m4/fpurge.m4: New file.
15817
15818 2007-04-13  Bruno Haible  <bruno@clisp.org>
15819
15820         * modules/fbufmode-tests: New file.
15821         * tests/test-fbufmode.c: New file.
15822
15823         * modules/fbufmode: New file.
15824         * lib/fbufmode.h: New file.
15825         * lib/fbufmode.c: New file.
15826         * m4/fbufmode.m4: New file.
15827
15828 2007-04-13  Bruno Haible  <bruno@clisp.org>
15829
15830         * modules/fwritable-tests: New file.
15831         * tests/test-fwritable.c: New file.
15832
15833         * modules/fwritable: New file.
15834         * lib/fwritable.h: New file.
15835         * lib/fwritable.c: New file.
15836         * m4/fwritable.m4: New file.
15837
15838 2007-04-13  Bruno Haible  <bruno@clisp.org>
15839
15840         * modules/freadable-tests: New file.
15841         * tests/test-freadable.c: New file.
15842
15843         * modules/freadable: New file.
15844         * lib/freadable.h: New file.
15845         * lib/freadable.c: New file.
15846         * m4/freadable.m4: New file.
15847
15848 2007-04-13  Bruno Haible  <bruno@clisp.org>
15849
15850         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15851         MOSTLYCLEANFILES.
15852
15853 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15854
15855         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15856         gzip bootstrap.conf to avoid dragging in i18n machinery.
15857         (gnulib_tool_option): Use it.
15858
15859 2007-04-13  Bruno Haible  <bruno@clisp.org>
15860
15861         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
15862         %F directives.
15863         * tests/test-vasprintf-posix.c (test_function): Likewise.
15864         * tests/test-snprintf-posix.h (test_function): Likewise.
15865         * tests/test-sprintf-posix.h (test_function): Likewise.
15866         * tests/test-fprintf-posix.h (test_function): Likewise.
15867         * tests/test-printf-posix.h (test_function): Likewise.
15868         * tests/test-fprintf-posix.out: Likewise.
15869
15870 2007-04-13  Bruno Haible  <bruno@clisp.org>
15871
15872         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
15873         * modules/tls-tests (configure.ac): Likewise.
15874         Reported by Arto C. Nirkko <anirkko@insel.ch>.
15875
15876 2007-04-13  Bruno Haible  <bruno@clisp.org>
15877
15878         * lib/tls.c (glthread_tls_get): Fix return type.
15879         Patch by Arto C. Nirkko <anirkko@insel.ch>.
15880
15881 2007-04-12  Eric Blake  <ebb9@byu.net>
15882
15883         * modules/gettime (Depends-on): Remove gettime.
15884         Reported by Dmitry V. Levin.
15885
15886 2007-04-12  Bruno Haible  <bruno@clisp.org>
15887
15888         * modules/fflush (Include): Mention <stdio.h>.
15889         * modules/strtoimax (Include): Mention <inttypes.h>.
15890         * modules/strtoumax (Include): Likewise.
15891
15892 2007-04-12  Eric Blake  <ebb9@byu.net>
15893
15894         * .cvsignore: New file.
15895         * .gitignore: Likewise.
15896
15897 2007-04-12  Bruno Haible  <bruno@clisp.org>
15898
15899         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
15900         not before, since $(LDADD) often contains libgnu.a.
15901         * modules/striconv-tests (test_striconv_LDADD): Likewise.
15902         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
15903         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
15904         Needed on Cygwin.
15905
15906 2007-04-12  Eric Blake  <ebb9@byu.net>
15907
15908         Work around glibc's failure to flush stdin on fclose.
15909         * lib/closein.c (close_stdin): Flush stdin before closing.
15910
15911         Work around glibc's failure to reset seekable stdin on exit.
15912         * modules/closein: New module.
15913         * lib/closein.c: New file.
15914         * lib/closein.h: Likewise.
15915         * m4/closein.m4: Likewise.
15916         * MODULES.html.sh (File stream based Input/Output): Document it.
15917
15918 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15919
15920         * gnulib-tool: Rename generated 'autobuild' script to
15921         'do-autobuild' in --create-megatestdir output.
15922
15923         * doc/gnulib.texi (Build robot for gnulib): Fix.
15924
15925 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15926
15927         * modules/sysexits (Depends-on): Add absolute-header.
15928
15929 2007-04-12  Eric Blake  <ebb9@byu.net>
15930
15931         No need to preserve errno on success.
15932         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
15933         Reported by Bruno Haible.
15934
15935 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15936
15937         * MODULES.html.sh (Support for maintaining and releasing
15938         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
15939
15940 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15941
15942         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
15943
15944 2007-04-12  Simon Josefsson  <simon@josefsson.org>
15945
15946         * modules/autobuild: New module.
15947
15948         * m4/autobuild.m4: New file.
15949
15950 2007-04-11  Bruno Haible  <bruno@clisp.org>
15951
15952         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
15953         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
15954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
15955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
15956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15957         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15958         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15960         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15961         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
15963         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15964         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
15966         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15967         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
15969         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15970         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
15972         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15973         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
15975         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15976         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
15978         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
15979         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
15980         Reported by Eric Blake.
15981
15982 2007-04-11  Bruno Haible  <bruno@clisp.org>
15983
15984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
15985
15986 2007-04-10  Bruno Haible  <bruno@clisp.org>
15987
15988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
15989         for NaN and Infinity. Needed on FreeBSD 6.1.
15990         * tests/test-vasnprintf-posix.c (test_function): Undo last change
15991         regarding results for "%010a" of Infinity and NaN.
15992         * tests/test-vasprintf-posix.c (test_function): Likewise.
15993         * tests/test-snprintf-posix.h (test_function): Likewise.
15994         * tests/test-sprintf-posix.h (test_function): Likewise.
15995         * tests/test-fprintf-posix.h (test_function): Likewise.
15996         * tests/test-printf-posix.h (test_function): Likewise.
15997         * tests/test-fprintf-posix.out: Likewise.
15998
15999 2007-04-10  Bruno Haible  <bruno@clisp.org>
16000
16001         * modules/locale-tests: New file.
16002         * tests/test-locale.c: New file.
16003
16004         * modules/locale: New file.
16005         * lib/locale_.h: New file.
16006         * m4/locale_h.m4: New file.
16007
16008 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
16009             Bruno Haible  <bruno@clisp.org>
16010
16011         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16012         be determined, test for availability of the copysignf, copysign,
16013         copysignl functions.
16014         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16015         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16016         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16017
16018 2007-04-09  Eric Blake  <ebb9@byu.net>
16019
16020         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16021         * modules/stdio (Makefile.am): Support fflush.
16022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16023         * modules/fflush: New file.
16024         * lib/fflush.c: Likewise.
16025         * m4/fflush.m4: Likewise.
16026         * modules/fflush-tests: New test.
16027         * tests/test-fflush.c: Likewise.
16028         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16029
16030 2007-04-06  Bruno Haible  <bruno@clisp.org>
16031
16032         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16033         (VASNPRINTF): Use signbit for faster determination whether to print a
16034         minus sign.
16035         * modules/vasnprintf (Files): Remove lib/float+.h.
16036         * modules/fprintf-posix (Depends-on): Add signbit.
16037         * modules/snprintf-posix (Depends-on): Likewise.
16038         * modules/sprintf-posix (Depends-on): Likewise.
16039         * modules/vasnprintf-posix (Depends-on): Likewise.
16040         * modules/vasprintf-posix (Depends-on): Likewise.
16041         * modules/vfprintf-posix (Depends-on): Likewise.
16042         * modules/vsnprintf-posix (Depends-on): Likewise.
16043         * modules/vsprintf-posix (Depends-on): Likewise.
16044
16045 2007-04-06  Bruno Haible  <bruno@clisp.org>
16046
16047         * tests/test-frexp.c (main): Test also the sign bit of zero results.
16048         * tests/test-frexpl.c (main): Likewise.
16049         * tests/test-ldexpl.c (main): Likewise.
16050         * modules/frexp-tests (Depends-on): Add signbit.
16051         * modules/frexpl-tests (Depdends-on): Likewise.
16052         * modules/ldexpl-tests (Depdends-on): Likewise.
16053
16054 2007-04-06  Bruno Haible  <bruno@clisp.org>
16055
16056         * modules/signbit-tests: New file.
16057         * tests/test-signbit.c: New file.
16058
16059         * modules/signbit: New file.
16060         * lib/signbitf.c: New file.
16061         * lib/signbitd.c: New file.
16062         * lib/signbitl.c: New file.
16063         * m4/signbit.m4: New file.
16064         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
16065         (signbit): New macro.
16066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
16067         REPLACE_SIGNBIT.
16068         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
16069         REPLACE_FREXPL into math.h.
16070
16071 2007-04-06  Bruno Haible  <bruno@clisp.org>
16072
16073         * modules/isnanf-nolibm-tests: New file.
16074         * tests/test-isnanf.c: New file.
16075
16076         * modules/isnanf-nolibm: New file.
16077         * lib/isnanf.h: New file.
16078         * lib/isnanf.c: New file.
16079         * lib/isnan.c: Consider the USE_FLOAT macro.
16080         * m4/isnanf.m4: New file.
16081
16082 2007-04-06  Bruno Haible  <bruno@clisp.org>
16083
16084         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
16085         (Link): New section.
16086
16087         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
16088
16089 2007-04-06  Bruno Haible  <bruno@clisp.org>
16090
16091         Assume the 'long double' type.
16092         * m4/longdouble.m4: Remove file.
16093         * config/srclist.txt: Don't mention longdouble.m4.
16094         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
16095         * lib/float+.h: Likewise.
16096         * lib/frexp.c: Likewise.
16097         * lib/printf-args.h: Likewise.
16098         * lib/printf-args.c: Likewise.
16099         * lib/printf-frexp.c: Likewise.
16100         * lib/printf-parse.c: Likewise.
16101         * lib/vasnprintf.c: Likewise.
16102         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
16103         * m4/intl.m4: Likewise.
16104         * m4/isnanl.m4: Likewise.
16105         * m4/printf.m4: Likewise.
16106         * m4/printf-frexpl.m4: Likewise.
16107         * m4/vasnprintf.m4: Likewise.
16108         * modules/allocsa (Files): Remove m4/longdouble.m4.
16109         * modules/gettext (Files): Likewise.
16110         * modules/relocatable-prog-wrapper (Files): Likewise.
16111         * modules/vasnprintf (Files): Likewise.
16112         * modules/isnanl (Files): Likewise.
16113         (Include): Simplify.
16114         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
16115         (Include): Simplify.
16116         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
16117         (Include): Simplify.
16118         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
16119         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16120         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
16121         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16122         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16123         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16124         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
16125         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16126         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16127         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16128         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
16129         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16130         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
16131         * tests/test-isnanl.c: Likewise.
16132         * tests/test-snprintf-posix.h: Likewise.
16133         * tests/test-sprintf-posix.h: Likewise.
16134         * tests/test-vasnprintf-posix.c: Likewise.
16135         * tests/test-vasnprintf-posix2.c: Likewise.
16136         * tests/test-vasprintf-posix.c: Likewise.
16137
16138 2007-04-06  Bruno Haible  <bruno@clisp.org>
16139
16140         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16141         * lib/math_.h [__DECC]: Include the overridden include file through
16142         #include_next, outside the double-inclusion guard.
16143         * lib/stdio_.h [__DECC]: Likewise.
16144         * lib/stdlib_.h [__DECC]: Likewise.
16145         * lib/string_.h [__DECC]: Likewise.
16146         * lib/time_.h [__DECC]: Likewise.
16147         * lib/wchar_.h [__DECC]: Likewise.
16148         * lib/wctype_.h [__DECC]: Likewise.
16149         * lib/inttypes_.h [__DECC]: Likewise.
16150         Reported by Albert Chin <china@thewrittenword.com> in
16151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16152
16153 2007-04-04  Eric Blake  <ebb9@byu.net>
16154
16155         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16156         1.5.x.
16157
16158 2007-04-04  Bruno Haible  <bruno@clisp.org>
16159
16160         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16161         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16162
16163 2007-04-04  Bruno Haible  <bruno@clisp.org>
16164
16165         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16166         results for "%010a" of Infinity and NaN.
16167         * tests/test-vasprintf-posix.c (test_function): Likewise.
16168         * tests/test-snprintf-posix.h (test_function): Likewise.
16169         * tests/test-sprintf-posix.h (test_function): Likewise.
16170         * tests/test-fprintf-posix.h (test_function): Remove these tests.
16171         * tests/test-printf-posix.h (test_function): Likewise.
16172         * tests/test-fprintf-posix.out: Update.
16173         Needed for FreeBSD 6.1.
16174
16175 2007-04-04  Bruno Haible  <bruno@clisp.org>
16176
16177         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16178         directly used by the gnulib modules nor by gnulib-tool.
16179
16180 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
16181
16182         * DEPENDENCIES: Give overall description of version dependency
16183         desirability.  Use more-typical names for apps.
16184         Add shell, coreutils, diffutils, grep, tar, gzip.
16185
16186 2007-04-04  Simon Josefsson  <simon@josefsson.org>
16187
16188         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
16189
16190 2007-04-04  Karl Berry  <karl@gnu.org>
16191
16192         * MODULES.html.sh (func_module): missing '.
16193
16194 2007-04-03  Bruno Haible  <bruno@clisp.org>
16195
16196         * modules/argmatch-tests (Makefile.am): New variable
16197         test_argmatch_LDADD.
16198         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16199         * modules/array-list-tests (Makefile.am): New variable
16200         test_array_list_LDADD.
16201         * modules/array-oset-tests (Makefile.am): New variable
16202         test_array_oset_LDADD.
16203         * modules/avltree-list-tests (Makefile.am): New variable
16204         test_avltree_list_LDADD.
16205         * modules/avltree-oset-tests (Makefile.am): New variable
16206         test_avltree_oset_LDADD.
16207         * modules/avltreehash-list-tests (Makefile.am): New variable
16208         test_avltreehash_list_LDADD.
16209         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16210         test_canonicalize_lgpl_LDADD.
16211         * modules/carray-list-tests (Makefile.am): New variable
16212         test_carray_list_LDADD.
16213         * modules/dirname-tests (Makefile.am): New variable
16214         test_dirname_LDADD.
16215         * modules/linked-list-tests (Makefile.am): New variable
16216         test_linked_list_LDADD.
16217         * modules/linkedhash-list-tests (Makefile.am): New variable
16218         test_linkedhash_list_LDADD.
16219         * modules/rbtree-list-tests (Makefile.am): New variable
16220         test_rbtree_list_LDADD.
16221         * modules/rbtree-oset-tests (Makefile.am): New variable
16222         test_rbtree_oset_LDADD.
16223         * modules/rbtreehash-list-tests (Makefile.am): New variable
16224         test_rbtreehash_list_LDADD.
16225         * modules/xvasprintf-tests (Makefile.am): New variable
16226         test_xvasprintf_LDADD.
16227         Reported by Eric Blake.
16228
16229 2007-04-03  Eric Blake  <ebb9@byu.net>
16230
16231         * DEPENDENCIES: Weaken m4 requirements.
16232
16233 2007-04-03  Bruno Haible  <bruno@clisp.org>
16234
16235         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16236         * modules/isnanl-tests (configure.ac): Likewise.
16237
16238 2007-04-03  Ben Pfaff  <blp@gnu.org>
16239
16240         * modules/iconv_open: Add $(srcdir)/ to source directory
16241         references in Makefile fragments that call gperf, to fix VPATH
16242         builds.
16243
16244 2007-04-03  Bruno Haible  <bruno@clisp.org>
16245
16246         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16247         * lib/ldexpl.c: Undo last change.
16248
16249 2007-04-03  Bruno Haible  <bruno@clisp.org>
16250
16251         * modules/printf-frexpl (Depends-on): Undo last change.
16252         (Files): Add m4/ldexpl.m4.
16253
16254 2007-04-03  Bruno Haible  <bruno@clisp.org>
16255
16256         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16257         * modules/isnanl (Link): New section.
16258
16259         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16260         * modules/frexp (Link): New section.
16261
16262         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16263         * modules/frexpl (Link): New section.
16264
16265         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16266         * modules/ldexpl (Link): New section.
16267
16268 2007-04-03  Bruno Haible  <bruno@clisp.org>
16269
16270         * modules/TEMPLATE-EXTENDED: New file.
16271         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16272
16273 2007-04-03  Bruno Haible  <bruno@clisp.org>
16274
16275         * DEPENDENCIES: New file.
16276         Suggested by Simon Josefsson.
16277
16278 2007-04-03  Bruno Haible  <bruno@clisp.org>
16279
16280         * doc/gnulib.texi: Escape @.
16281
16282 2007-04-03  James Youngman  <jay@gnu.org>
16283         and Paul Eggert  <eggert@cs.ucla.edu>
16284
16285         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16286         birthtime on all systems that have birthtime, not just those which
16287         use st_birthtimensec rather than st_birthtim.  Putting zero in
16288         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16289         that the birth time is not available for files on an NFS mount.
16290
16291 2007-04-03  Simon Josefsson  <simon@josefsson.org>
16292
16293         * modules/memxor: Move back from crypto/, suggested by Bruno.
16294         * modules/crypto/hmac-sha1: Fix memxor dependency.
16295
16296         * modules/crypto/gc: Moved from ../.
16297
16298 2007-04-02  Eric Blake  <ebb9@byu.net>
16299
16300         * lib/ldexpl.c (includes): Avoid libm.
16301
16302         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16303
16304 2007-04-02  Bruno Haible  <bruno@clisp.org>
16305
16306         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16307         on IRIX.
16308
16309 2007-04-02  Bruno Haible  <bruno@clisp.org>
16310
16311         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16312         x86 or x86_64 platforms running MacOS X.
16313         Reported by Ryan Schmidt <@ryandesign.com>.
16314
16315 2007-04-02  Bruno Haible  <bruno@clisp.org>
16316
16317         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16318         i386.
16319
16320 2007-04-01  Simon Josefsson  <simon@josefsson.org>
16321
16322         * modules/crypto/arcfour: Moved from ../.
16323         * modules/crypto/arcfour-tests: Moved from ../.
16324         * modules/crypto/arctwo: Moved from ../.
16325         * modules/crypto/arctwo-tests: Moved from ../.
16326         * modules/crypto/des: Moved from ../.
16327         * modules/crypto/des-tests: Moved from ../.
16328         * modules/crypto/gc-arcfour: Moved from ../.
16329         * modules/crypto/gc-arcfour-tests: Moved from ../.
16330         * modules/crypto/gc-arctwo: Moved from ../.
16331         * modules/crypto/gc-arctwo-tests: Moved from ../.
16332         * modules/crypto/gc-des: Moved from ../.
16333         * modules/crypto/gc-des-tests: Moved from ../.
16334         * modules/crypto/gc-hmac-md5: Moved from ../.
16335         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16336         * modules/crypto/gc-hmac-sha1: Moved from ../.
16337         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16338         * modules/crypto/gc-md2: Moved from ../.
16339         * modules/crypto/gc-md2-tests: Moved from ../.
16340         * modules/crypto/gc-md4: Moved from ../.
16341         * modules/crypto/gc-md4-tests: Moved from ../.
16342         * modules/crypto/gc-md5: Moved from ../.
16343         * modules/crypto/gc-md5-tests: Moved from ../.
16344         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16345         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16346         * modules/crypto/gc-random: Moved from ../.
16347         * modules/crypto/gc-rijndael: Moved from ../.
16348         * modules/crypto/gc-rijndael-tests: Moved from ../.
16349         * modules/crypto/gc-sha1: Moved from ../.
16350         * modules/crypto/gc-sha1-tests: Moved from ../.
16351         * modules/crypto/gc-tests: Moved from ../.
16352         * modules/crypto/hmac-md5: Moved from ../.
16353         * modules/crypto/hmac-md5-tests: Moved from ../.
16354         * modules/crypto/hmac-sha1: Moved from ../.
16355         * modules/crypto/hmac-sha1-tests: Moved from ../.
16356         * modules/crypto/md2: Moved from ../.
16357         * modules/crypto/md2-tests: Moved from ../.
16358         * modules/crypto/md4: Moved from ../.
16359         * modules/crypto/md4-tests: Moved from ../.
16360         * modules/crypto/md5: Moved from ../.
16361         * modules/crypto/md5-tests: Moved from ../.
16362         * modules/crypto/memxor: Moved from ../.
16363         * modules/crypto/rijndael: Moved from ../.
16364         * modules/crypto/rijndael-tests: Moved from ../.
16365         * modules/crypto/sha1: Moved from ../.
16366
16367 2007-03-30  James Youngman  <jay@gnu.org>
16368
16369         * tests/test-stat-time.c (prepare_test): use chmod() rather than
16370         rename() to change the ctime of a file (because ctime is unaffected
16371         by rename on jfs2 on AIX 5.1).
16372         (main): Start by doing cleanup, in case a previous run failed leaving
16373         test files behind.
16374
16375 2007-03-31  Bruno Haible  <bruno@clisp.org>
16376
16377         Support old proprietary implementations of iconv.
16378         * modules/iconv_open: New file.
16379         * lib/iconv_.h: New file.
16380         * m4/iconv_h.m4: New file.
16381         * lib/iconv_open.c: New file.
16382         * lib/iconv_open-aix.gperf: New file.
16383         * lib/iconv_open-hpux.gperf: New file.
16384         * lib/iconv_open-irix.gperf: New file.
16385         * lib/iconv_open-osf.gperf: New file.
16386         * m4/iconv_open.m4: New file.
16387         * modules/linebreak (Depends-on): Add iconv_open.
16388         * modules/striconv (Depends-on): Likewise.
16389         * modules/striconveh (Depends-on): Likewise.
16390         * modules/unicodeio (Depends-on): Likewise.
16391         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16392         (iconv_t)(-1).
16393         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16394         conversion if cd is (iconv_t)(-1).
16395         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16396         is not possible.
16397
16398 2007-03-31  Bruno Haible  <bruno@clisp.org>
16399
16400         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16401         work on Solaris either. Protect also second use of "autodetect_jp".
16402
16403 2007-03-31  Bruno Haible  <bruno@clisp.org>
16404
16405         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16406         the function is not present.
16407
16408 2007-03-31  Bruno Haible  <bruno@clisp.org>
16409
16410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16411         the function is not present.
16412
16413 2007-03-31  Bruno Haible  <bruno@clisp.org>
16414
16415         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16416         a bug in HP-UX iconv_open().
16417
16418 2007-03-31  Bruno Haible  <bruno@clisp.org>
16419
16420         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16421         (Mathematics <math.h>): New section, add fpieee.
16422         (Input/output <stdio.h>): Add fseterr.
16423         (Mathematics <math.h>): New section, add printf-frexp.
16424         (Container data structures): Add sublist.
16425         (Core language properties): Add fpucw, inline.
16426         (Functions for greatest-width integer types <inttypes.h>): Add
16427         imaxabs, imaxdiv, inttypes.
16428         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16429         isnanl-nolibm, ldexp.
16430         (Mathematics <math.h>): New section, add printf-frexpl.
16431         (Support for systems lacking POSIX:2001): Add fprintf-posix,
16432         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16433         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16434         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16435         (Unicode string functions): Add unistr/u*-mbtoucr.
16436         (Java): Add javacomp-script, javaexec-script.
16437         (C#): Add csharpcomp-script, csharpexec-script.
16438         (Support for building libraries and executables): Add havelib,
16439         relocatable-*.
16440         (Support for maintaining and releasing projects): Renamed from
16441         'Support for maintaining and release projects'. Add announce-gen.
16442
16443 2007-03-31  Bruno Haible  <bruno@clisp.org>
16444
16445         * README: Talk primarily about git.
16446         (git and CVS): Renamed from CVS.
16447         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16448         gnulib is available through git.
16449         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16450
16451 2007-03-30  Bruno Haible  <bruno@clisp.org>
16452
16453         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16454         * lib/poll_.h: Likewise.
16455         * lib/stat_.h: Likewise.
16456         * lib/sys_time_.h: Likewise.
16457         * lib/sysexit_.h: Likewise.
16458         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16459         * lib/stdbool_.h: Likewise.
16460         * lib/byteswap_.h: Add double-inclusion guard.
16461
16462 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
16463
16464         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16465
16466 2007-03-30  Karl Berry  <karl@gnu.org>
16467
16468         * config/srclist-update: double space after USA in the license
16469         substitution, since that's how it's usually (?) written.
16470
16471 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16472
16473         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16474         reported by Bruno Haible.
16475
16476 2007-03-29  Bruno Haible  <bruno@clisp.org>
16477
16478         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16479         a bug in AIX iconv().
16480
16481 2007-03-29  Bruno Haible  <bruno@clisp.org>
16482
16483         * modules/ldexpl-tests: New file.
16484         * tests/test-ldexpl.c: New file.
16485
16486 2007-03-29  Bruno Haible  <bruno@clisp.org>
16487
16488         * lib/ldexpl.c: Include fpucw.h.
16489         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16490         multiplication.
16491         * modules/ldexpl (Depends-on): Add fpucw.
16492
16493 2007-03-29  Bruno Haible  <bruno@clisp.org>
16494
16495         * modules/ldexpl: New file.
16496         * m4/ldexpl.m4: New file.
16497         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16498         set.
16499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16500         REPLACE_LDEXPL.
16501         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16502         REPLACE_LDEXPL.
16503         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16504         gl_FUNC_LDEXPL_WORKS.
16505         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16506         * modules/mathl (Files): Remove lib/ldexpl.c.
16507         (Depends-on): Add ldexpl.
16508
16509 2007-03-29  Bruno Haible  <bruno@clisp.org>
16510
16511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16512
16513 2007-03-29  Bruno Haible  <bruno@clisp.org>
16514
16515         * tests/test-striconveh.c (main): Don't assume that a direct conversion
16516         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16517         and possibly also HP-UX.
16518         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16519         work on AIX, IRIX, HP-UX, OSF/1.
16520         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16521         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16522         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16523         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16524         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16525         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16526
16527 2007-03-29  Bruno Haible  <bruno@clisp.org>
16528
16529         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16530
16531 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16532
16533         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16534         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16535
16536 2007-03-29  Eric Blake  <ebb9@byu.net>
16537
16538         * lib/acl-internal.h: Remove redundant include.
16539         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16540         Cygwin when a file is locked.
16541
16542 2007-03-29  Bruno Haible  <bruno@clisp.org>
16543
16544         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16545         file.
16546         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16547
16548 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16551         try to remove a parent directory if the child couldn't be removed
16552         (except for the first rmdir, which could fail because the child
16553         doesn't exist).  Problem reported by Jeff Blaine in
16554         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16555
16556 2007-03-28  Bruno Haible  <bruno@clisp.org>
16557
16558         * lib/striconveh.c (utf8conv_carefully): New function.
16559         (mem_cd_iconveh_internal): Invoke it.
16560
16561 2007-03-28  Bruno Haible  <bruno@clisp.org>
16562
16563         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16564         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16565         input.
16566         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16567         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16568         unistr/u8-uctomb.
16569
16570 2007-03-28  Bruno Haible  <bruno@clisp.org>
16571
16572         * modules/unistr/u8-mbtoucr: New file.
16573         * lib/unistr/u8-mbtoucr.c: New file.
16574         * modules/unistr/u16-mbtoucr: New file.
16575         * lib/unistr/u16-mbtoucr.c: New file.
16576         * modules/unistr/u16-mbtoucr: New file.
16577         * lib/unistr/u16-mbtoucr.c: New file.
16578         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16579
16580 2007-03-27  Simon Josefsson  <simon@josefsson.org>
16581             Bruno Haible  <bruno@clisp.org>
16582
16583         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16584         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
16585         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16586
16587         * m4/stdio_h.m4: Add stubs for vasprintf too.
16588
16589         * modules/stdio: Support vasprintf in sed command.
16590
16591         * modules/vasprintf: Depend on stdio for prototypes.  Remove
16592         vasprintf.h.  Add stdio module indicator.
16593
16594         * lib/stdio_.h: Declare asprintf and vasprintf, based on
16595         vasprintf.h.
16596
16597         * lib/vasprintf.h: File removed.
16598
16599         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16600         * lib/vasprintf.c: Ditto.
16601         * lib/xvasprintf.c: Ditto.
16602         * tests/test-vasprintf-posix.c: Ditto.
16603         * tests/test-vasprintf.c: Ditto.
16604
16605 2007-03-27  Bruno Haible  <bruno@clisp.org>
16606
16607         Make vasnprintf multithread-safe.
16608         * lib/vasnprintf.c (decimal_point_char): New function.
16609         (VASNPRINTF): Use it.
16610         Suggested by Simon Josefsson.
16611
16612 2007-03-27  Eric Blake  <ebb9@byu.net>
16613
16614         Support sub-second birthtime on cygwin.
16615         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16616         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16617         (get_stat_birthtime): Also work with st_birthtim.
16618
16619 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16620
16621         * lib/stat-time.h (USE_BIRTHTIME): Remove.
16622         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16623         (get_stat_birthtime_ns): Do not try to use "spare" fields.
16624         (get_stat_birthtime_ns): Simplify compile-time tests.
16625         (get_stat_birthtime): Change the API to look like
16626         get_stat_mtime etc., except return a negative tv_nsec on error.
16627         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16628         Don't check for "spare" fields.
16629         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16630         or for struct stat.st_birthtime, as these tests aren't used.
16631         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16632
16633 2007-03-27  Bruno Haible  <bruno@clisp.org>
16634
16635         * lib/stat-time.h: Include <sys/stat.h>.
16636
16637 2007-03-27  James Youngman  <jay@gnu.org>
16638
16639         * lib/stat-time.h (get_stat_birthtime): New function for
16640           retrieving st_birthtime as provided by UFS2 (hence *BSD).
16641         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16642           and its variants.
16643         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16644         * modules/stat-time-test: New file.
16645         * tests/test-stat-time.c: New test, devised by Bruno Haible.
16646
16647 2007-03-26  Bruno Haible  <bruno@clisp.org>
16648
16649         Better support of signalling NaNs.
16650         * lib/atanl.c: Include isnanl.h.
16651         (atanl): Perform test for NaN at the beginning of the function and
16652         through a call to isnanl.
16653         * lib/cosl.c: Include isnanl.h.
16654         (cosl): Perform test for NaN at the beginning of the function and
16655         through a call to isnanl.
16656         * lib/ldexpl.c: Include isnanl.h.
16657         (ldexpl): Perform test for NaN through a call to isnanl.
16658         * lib/logl.c: Include isnanl.h.
16659         (logl): Perform test for NaN at the beginning of the function and
16660         through a call to isnanl.
16661         * lib/sinl.c: Include isnanl.h.
16662         (sinl): Perform test for NaN at the beginning of the function and
16663         through a call to isnanl.
16664         * lib/sqrtl.c: Include isnanl.h.
16665         (sqrtl): Perform test for NaN at the beginning of the function and
16666         through a call to isnanl.
16667         * lib/tanl.c: Include isnanl.h.
16668         (tanl): Perform test for NaN at the beginning of the function and
16669         through a call to isnanl.
16670         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16671         * modules/mathl (Depends-on): Add isnanl.
16672
16673 2007-03-26  Eric Blake  <ebb9@byu.net>
16674
16675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16676         regression in logic sense of previous patch.
16677
16678 2007-03-26  Bruno Haible  <bruno@clisp.org>
16679
16680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16681         unportable shell command "if ! ...".
16682         Reported by Ralf Wildenhues.
16683
16684 2007-03-25  Bruno Haible  <bruno@clisp.org>
16685
16686         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16687         <sysexits.h> file, and only add EX_CONFIG.
16688         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16689         absolute file name and whether it is sufficient. Substitute also
16690         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16691         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16692         ABSOLUTE_SYSEXITS_H into sysexits.h.
16693
16694 2007-03-25  Bruno Haible  <bruno@clisp.org>
16695
16696         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16697         hints is NULL.
16698
16699 2007-03-25  Bruno Haible  <bruno@clisp.org>
16700
16701         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16702         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16703
16704 2007-03-25  Bruno Haible  <bruno@clisp.org>
16705
16706         * lib/vasnprintf.c: Include langinfo.h.
16707         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16708         multithread-safe.
16709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16718         Reported by Simon Josefsson.
16719
16720 2007-03-25  Bruno Haible  <bruno@clisp.org>
16721
16722         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16723         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16724         * modules/vasnprintf (Depends-on): Add stdint.
16725
16726 2007-03-25  Bruno Haible  <bruno@clisp.org>
16727
16728         * modules/fpieee: New file.
16729         * m4/fpieee.m4: New file.
16730         * modules/isnan-nolibm (Depends-on): Add fpieee.
16731         * modules/isnanl-nolibm (Depends-on): Add fpieee.
16732         * modules/isnanl (Depends-on): Add fpieee.
16733
16734 2007-03-25  Bruno Haible  <bruno@clisp.org>
16735
16736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16737
16738 2007-03-25  Bruno Haible  <bruno@clisp.org>
16739
16740         Avoid test failures on IRIX 6.5.
16741         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16742         (main): Use it.
16743         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16744         macros.
16745         (main): Use them.
16746
16747 2007-03-25  Bruno Haible  <bruno@clisp.org>
16748
16749         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16750         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16751         exists but doesn't work.
16752         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16753         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16755         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16756
16757 2007-03-25  Bruno Haible  <bruno@clisp.org>
16758
16759         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16760         returns inf. Needed on IRIX 6.5.
16761
16762 2007-03-25  Bruno Haible  <bruno@clisp.org>
16763
16764         * tests/test-frexpl.c: Include isnanl-nolibm.h.
16765         (main): Use isnanl instead of x != x idiom.
16766         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16767
16768         * tests/test-frexp.c: Include isnan.h.
16769         (main): Use isnan instead of x != x idiom.
16770         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16771
16772 2007-03-25  Bruno Haible  <bruno@clisp.org>
16773
16774         * tests/test-frexp.c (NaN): New function/macro.
16775         (main): Use it instead of 0.0 / 0.0.
16776         * tests/test-isnan.c (NaN): New function/macro.
16777         (main): Use it instead of 0.0 / 0.0.
16778         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16779         (test_function): Use it instead of 0.0 / 0.0.
16780         * tests/test-vasprintf-posix.c (NaN): New function/macro.
16781         (test_function): Use it instead of 0.0 / 0.0.
16782         * tests/test-snprintf-posix.h (NaN): New function/macro.
16783         (test_function): Use it instead of 0.0 / 0.0.
16784         * tests/test-sprintf-posix.h (NaN): New function/macro.
16785         (test_function): Use it instead of 0.0 / 0.0.
16786         * tests/test-fprintf-posix.h (NaN): New function/macro.
16787         (test_function): Use it instead of 0.0 / 0.0.
16788         * tests/test-printf-posix.h (NaN): New function/macro.
16789         (test_function): Use it instead of 0.0 / 0.0.
16790
16791         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16792
16793 2007-03-25  Bruno Haible  <bruno@clisp.org>
16794
16795         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16796
16797 2007-03-25  Bruno Haible  <bruno@clisp.org>
16798
16799         * lib/regexec.c (merge_state_with_log): Make static.
16800
16801 2007-03-25  Bruno Haible  <bruno@clisp.org>
16802
16803         * lib/trigl.c (kernel_rem_pio2): Make static.
16804
16805 2007-03-25  Bruno Haible  <bruno@clisp.org>
16806
16807         * lib/sincosl.c (sincosl_table): Make static.
16808
16809 2007-03-25  Bruno Haible  <bruno@clisp.org>
16810
16811         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16812         if the compiler does not support C99.
16813
16814 2007-03-25  Bruno Haible  <bruno@clisp.org>
16815
16816         * modules/time (Makefile.am): Ensure all rule action lines start with a
16817         tab.
16818
16819 2007-03-24  Bruno Haible  <bruno@clisp.org>
16820
16821         * modules/tsearch-tests: New file.
16822         * tests/test-tsearch.sh: New file.
16823         * tests/test-tsearch.c: New file, mostly copied from glibc.
16824
16825         * modules/search-tests: New file.
16826         * tests/test-search.c: New file.
16827
16828         * modules/search: New file.
16829         * lib/search_.h: New file, incorporating lib/tsearch.h.
16830         * m4/search_h.m4: New file.
16831         * lib/tsearch.h: Remove file.
16832         * lib/tsearch.c: Include search.h instead of tsearch.h.
16833         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16834         HAVE_TSEARCH.
16835         * modules/tsearch (Files): Remove lib/tsearch.h.
16836         (Depends-on): Add search.
16837         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16838         (Include): Change tsearch.h into search.h.
16839
16840 2007-03-24  Bruno Haible  <bruno@clisp.org>
16841
16842         * modules/fpucw: New file.
16843         * lib/fpucw.h: New file.
16844         * lib/frexp.c: Include fpucw.h.
16845         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16846         (FUNC): Use them.
16847         * lib/printf-frexp.c: Include fpucw.h.
16848         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16849         (FUNC): Use them.
16850         * lib/vasnprintf.c: Include fpucw.h.
16851         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16852         'long double' calculations.
16853         * tests/test-frexpl.c: Include fpucw.h.
16854         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16855         * tests/test-printf-frexpl.c: Include fpucw.h.
16856         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16857         * modules/frexpl (Depends-on): Add fpucw.
16858         * modules/printf-frexpl (Depends-on): Likewise.
16859         * modules/fprintf-posix (Depends-on): Likewise.
16860         * modules/snprintf-posix (Depends-on): Likewise.
16861         * modules/sprintf-posix (Depends-on): Likewise.
16862         * modules/vasnprintf-posix (Depends-on): Likewise.
16863         * modules/vasprintf-posix (Depends-on): Likewise.
16864         * modules/vfprintf-posix (Depends-on): Likewise.
16865         * modules/vsnprintf-posix (Depends-on): Likewise.
16866         * modules/vsprintf-posix (Depends-on): Likewise.
16867         * modules/frexpl-tests (Depends-on): Likewise.
16868         * modules/printf-frexpl-tests (Depends-on): Likewise.
16869
16870 2007-03-24  Bruno Haible  <bruno@clisp.org>
16871
16872         * lib/float+.h: New file.
16873         * lib/isnan.c: Include float+.h.
16874         (SIZE): New macro.
16875         (FUNC): Compare only SIZE bytes of the value.
16876         * lib/vasnprintf.c: Include float+.h.
16877         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
16878         SIZEOF_LDBL or SIZEOF_DBL bytes.
16879         * modules/isnan-nolibm (Files): Add lib/float+.h.
16880         * modules/isnanl-nolibm (Files): Add lib/float+.h.
16881         * modules/isnanl (Files): Add lib/float+.h.
16882         * modules/vasnprintf (Files): Add lib/float+.h.
16883
16884 2007-03-24  Bruno Haible  <bruno@clisp.org>
16885
16886         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
16887         include isnanl-nolibm.h.
16888
16889 2007-03-24  Bruno Haible  <bruno@clisp.org>
16890
16891         * tests/test-read-file.c (main): Don't produce spurious output for
16892         expected situations. Make the test fail if it encountered unexpected
16893         results.
16894
16895 2007-03-24  Bruno Haible  <bruno@clisp.org>
16896
16897         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
16898         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
16899
16900 2007-03-24  Bruno Haible  <bruno@clisp.org>
16901
16902         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
16903
16904 2007-03-24  Bruno Haible  <bruno@clisp.org>
16905
16906         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
16907         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
16908
16909         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
16910         * modules/utf8-ucs4: Turn into a symbolic link to module
16911         unistr/u8-mbtouc.
16912
16913         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
16914         utf8-ucs4-unsafe.
16915         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
16916         unistr/u8-mbtouc-unsafe.
16917
16918         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
16919         * modules/utf16-ucs4: Turn into a symbolic link to module
16920         unistr/u16-mbtouc.
16921
16922         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
16923         utf16-ucs4-unsafe.
16924         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
16925         unistr/u16-mbtouc-unsafe.
16926
16927         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
16928         * modules/ucs4-utf8: Turn into a symbolic link to module
16929         unistr/u8-ubtomb.
16930
16931         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
16932         * modules/ucs4-utf16: Turn into a symbolic link to module
16933         unistr/u16-ubtomb.
16934
16935 2007-03-24  Bruno Haible  <bruno@clisp.org>
16936
16937         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
16938         Enable the function only if HAVE_INLINE.
16939         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
16940         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16941         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
16942         Enable the function only if HAVE_INLINE.
16943         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
16944         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
16945         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
16946         Enable the function only if HAVE_INLINE.
16947         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
16948         Enable the function only if HAVE_INLINE.
16949         * modules/utf8-ucs4: Update.
16950         * modules/utf8-ucs4-unsafe: Update.
16951         * modules/utf16-ucs4: Update.
16952         * modules/utf16-ucs4-unsafe: Update.
16953         * modules/ucs4-utf8: Update.
16954         * modules/ucs4-utf16: Update.
16955
16956 2007-03-24  Bruno Haible  <bruno@clisp.org>
16957
16958         * lib/utf8-ucs4.h: Remove file.
16959         * lib/utf8-ucs4-unsafe.h: Remove file.
16960         * lib/utf16-ucs4.h: Remove file.
16961         * lib/utf16-ucs4-unsafe.h: Remove file.
16962         * lib/ucs4-utf8.h: Remove file.
16963         * lib/ucs4-utf16.h: Remove file.
16964         * lib/unistr.h: Include their previous contents.
16965         * m4/utf-ucs4.m4: Remove file.
16966         * m4/ucs4-utf.m4: Remove file.
16967         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
16968         (Depends-on): Add unistr/base.
16969         (configure.ac): Remove gl_UTF_UCS4.
16970         (Makefile.am): Update.
16971         (Include): Change to unistr.h.
16972         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
16973         (Depends-on): Add unistr/base.
16974         (configure.ac): Remove gl_UTF_UCS4.
16975         (Makefile.am): Update.
16976         (Include): Change to unistr.h.
16977         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
16978         (Depends-on): Add unistr/base.
16979         (configure.ac): Remove gl_UTF_UCS4.
16980         (Makefile.am): Update.
16981         (Include): Change to unistr.h.
16982         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
16983         (Depends-on): Add unistr/base.
16984         (configure.ac): Remove gl_UTF_UCS4.
16985         (Makefile.am): Update.
16986         (Include): Change to unistr.h.
16987         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
16988         (Depends-on): Add unistr/base.
16989         (configure.ac): Remove gl_UCS4_UTF.
16990         (Makefile.am): Update.
16991         (Include): Change to unistr.h.
16992         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
16993         (Depends-on): Add unistr/base.
16994         (configure.ac): Remove gl_UCS4_UTF.
16995         (Makefile.am): Update.
16996         (Include): Change to unistr.h.
16997         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
16998         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
16999         utf8-ucs4-unsafe.h.
17000         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17001         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17002         utf16-ucs4-unsafe.h.
17003         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17004         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17005         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17006         * lib/unistr/u8-strchr.c: Likewise.
17007         * lib/unistr/u8-strrchr.c: Likewise.
17008         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17009         * lib/unistr/u16-strchr.c: Likewise.
17010         * lib/unistr/u16-strrchr.c: Likewise.
17011         * lib/striconveh.c: Update.
17012         * lib/linebreak.c: Update.
17013
17014 2007-03-24  Bruno Haible  <bruno@clisp.org>
17015
17016         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17017         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17018
17019 2007-03-22  Bruno Haible  <bruno@clisp.org>
17020
17021         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17022
17023 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17024
17025         * MODULES.html.sh (File system functions): New module write-any-file.
17026         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17027         * m4/write-any-file.m4: New files.
17028
17029 2007-03-23  Eric Blake  <ebb9@byu.net>
17030
17031         * gnulib-tool: Rearrange space-tab sequences, since some editors
17032         like to eat them.
17033
17034 2007-03-23  Eric Blake  <ebb9@byu.net>
17035
17036         * lib/version-etc.c (version_etc_va): Update license wording to
17037         be more concise.  Recommended by Richard Stallman.
17038
17039 2007-03-22  Bruno Haible  <bruno@clisp.org>
17040
17041         * lib/poll.c (MSG_PEEK): New fallback definition.
17042
17043 2007-03-22  Bruno Haible  <bruno@clisp.org>
17044
17045         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17046         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17047         (main): Update.
17048         Fixes a compilation error on BeOS.
17049
17050 2007-03-22  Bruno Haible  <bruno@clisp.org>
17051
17052         * modules/frexpl-tests: New file.
17053         * tests/test-frexpl.c: New file.
17054
17055         * modules/frexpl: New file.
17056         * m4/frexpl.m4: New file.
17057         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17058         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17060         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17061         (Depends-on): Add frexpl. Remove isnanl-nolibm.
17062         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
17063
17064 2007-03-22  Bruno Haible  <bruno@clisp.org>
17065
17066         * lib/frexpl.c: Share code with lib/frexp.c.
17067         * modules/mathl (Files): Add lib/frexp.c.
17068         (Depends-on): Add isnanl-nolibm.
17069
17070 2007-03-22  Bruno Haible  <bruno@clisp.org>
17071
17072         * modules/printf-frexp (Files): Add m4/frexp.m4.
17073         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
17074         only if the found frexp function actually works.
17075
17076 2007-03-22  Bruno Haible  <bruno@clisp.org>
17077
17078         * lib/frexp.c: Remove older implementation that uses divisions.
17079
17080 2007-03-21  Bruno Haible  <bruno@clisp.org>
17081
17082         * modules/frexp-tests: New file.
17083         * tests/test-frexp.c: New file.
17084
17085         * modules/frexp: New file.
17086         * lib/frexp.c: New file.
17087         * m4/frexp.m4: New file.
17088         * lib/math_.h (frexp): New declaration.
17089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
17090         REPLACE_FREXP.
17091         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
17092
17093 2007-03-21  Bruno Haible  <bruno@clisp.org>
17094
17095         * modules/isnanl-tests: New file.
17096         * tests/test-isnanl.c: New file.
17097
17098         * modules/isnanl: New file.
17099         * lib/isnanl.h: New file.
17100         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
17101         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
17102         gl_FUNC_ISNANL_WORKS.
17103         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
17104         New macros.
17105
17106 2007-03-21  Bruno Haible  <bruno@clisp.org>
17107
17108         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
17109         lib/isnanl.h.
17110         (Include): Update.
17111         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
17112         * lib/vasnprintf.c: Update.
17113         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
17114         tests/test-isnanl.h, remove tests/test-isnanl.c.
17115         (Makefile.am): Update.
17116         * tests/test-isnanl-nolibm.c: New file.
17117         * tests/test-isnanl.h: New file.
17118         * tests/test-isnanl.c: Remove file.
17119
17120 2007-03-21  Jim Meyering  <jim@meyering.net>
17121
17122         When trying to open ".", treat ESTALE like EACCES.
17123         * lib/savewd.c (savewd_save): Resort to forking not just upon
17124         failure with EACCES, but also when errno is ESTALE.
17125
17126 2007-03-20  Bruno Haible  <bruno@clisp.org>
17127
17128         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
17129         Needed on AIX 5.1. Reported by Matthew Woehlke.
17130
17131 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17132
17133         Suggestions by Bruno Haible:
17134         * lib/acl-internal.h: Include "gettext.h" rather than rolling
17135         our own.
17136         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17137         * modules/acl (Depends-on): Add gettext.
17138
17139 2007-03-19  Bruno Haible  <bruno@clisp.org>
17140
17141         * modules/iconvme: Remove file.
17142         * lib/iconvme.h: Remove file.
17143         * lib/iconvme.c: Remove file.
17144         * m4/iconvme.m4: Remove file.
17145
17146 2007-03-19  Bruno Haible  <bruno@clisp.org>
17147
17148         * doc/relocatable-maint.texi: Break long shell script line.
17149         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17150
17151 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17154         handle file_has_acl.
17155         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17156         * lib/acl.c: Move header inclusions and related macro defns into
17157         lib/acl-internal.h.
17158         (S_ISLNK): Remove defn, since that's now done for us.
17159         (file_has_acl): Move to lib/file-has-acl.c.
17160         Call acl_trivial if available.  This is the crucial part of the fix.
17161         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
17162         shared within the library.  Rewrite a bit, partly to make it compatible
17163         with the GNU coding style.
17164         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17165         Remove unnecessary double-quotes.
17166         Don't test for acl_to_text; the build will catch that.
17167         Replace acl_entries if it doesn't exist and it is needed.
17168         Check for -lsec and acl_trivial (as used on Solaris 10).
17169         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17170         lib/file-has-acl.c.
17171         (Depends-on): Add sys_stat, for S_ISLNK.
17172
17173 2007-03-19  Ben Pfaff  <blp@gnu.org>
17174
17175         * doc/gnulib.texi: Fix typos.
17176         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17177
17178 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17179
17180         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17181         If size is zero here, buf must be zero.
17182
17183 2007-03-19  Simon Josefsson  <simon@josefsson.org>
17184
17185         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
17186         <bruno@clisp.org>.
17187
17188 2007-03-18  Bruno Haible  <bruno@clisp.org>
17189
17190         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17191         Suggested by Eric Blake.
17192
17193 2007-03-18  Ben Pfaff  <blp@gnu.org>
17194
17195         * doc/relocatable.texi: Recommend using as prefix a directory
17196         that does not exist and will never be created.  Based on
17197         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17198         and others.
17199
17200 2007-03-17  Bruno Haible  <bruno@clisp.org>
17201
17202         * lib/fchownat.c: Include lchown.h.
17203
17204 2007-03-17  Bruno Haible  <bruno@clisp.org>
17205
17206         Fix endless loop when the given allocated size was > INT_MAX.
17207         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17208         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17209         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17210         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17211         * lib/sprintf.c (sprintf): Likewise.
17212
17213 2007-03-17  Bruno Haible  <bruno@clisp.org>
17214
17215         * tests/test-argp-2.sh (func_compare): Output a context diff.
17216
17217 2007-03-17  Bruno Haible  <bruno@clisp.org>
17218
17219         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17220         locale's decimal-point character.
17221
17222 2007-03-17  Bruno Haible  <bruno@clisp.org>
17223
17224         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17225         before comparing it. Needed because on some platforms (e.g. x86) a
17226         'long double' occupies less bytes than sizeof (long double).
17227
17228 2007-03-17  Bruno Haible  <bruno@clisp.org>
17229
17230         * tests/test-crc.c (main): Make printf statements 64-bit clean.
17231         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17232         * tests/test-getaddrinfo.c (simple): Likewise.
17233         * tests/test-read-file.c (main): Likewise.
17234
17235 2007-03-17  Bruno Haible  <bruno@clisp.org>
17236
17237         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17238
17239 2007-03-17  Bruno Haible  <bruno@clisp.org>
17240
17241         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17242         unused variable.
17243
17244 2007-03-17  Bruno Haible  <bruno@clisp.org>
17245
17246         * tests/test-c-strcasecmp.c: Include c-strcase.h.
17247         * tests/test-c-strncasecmp.c: Likewise.
17248
17249 2007-03-17  Bruno Haible  <bruno@clisp.org>
17250
17251         * modules/stdlib (Depends-on): Add unistd.
17252         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17253         Needed for MacOS X 10.3.
17254
17255 2007-03-17  Bruno Haible  <bruno@clisp.org>
17256
17257         * lib/unistr/u-strdup.h: Include <stdlib.h>.
17258
17259 2007-03-17  Bruno Haible  <bruno@clisp.org>
17260
17261         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17262
17263 2007-03-17  Bruno Haible  <bruno@clisp.org>
17264
17265         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17266         to reflect files copied from gnulib (with or without modifications).
17267         Suggested by Jim Meyering.
17268
17269 2007-03-17  Eric Blake  <ebb9@byu.net>
17270
17271         * NEWS: Document stdlib change from 2007-02-18.
17272
17273 2007-03-17  Jim Meyering  <jim@meyering.net>
17274
17275         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17276         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17277         someone uses a name containing shell meta-characters.
17278         Reported by Alfred M. Szmidt.
17279
17280         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
17281
17282 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17283
17284         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
17285         and copy gettext configuration files only if configure.ac contains
17286         a use of AM_GNU_GETTEXT_VERSION.
17287
17288 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17289
17290         * build-aux/bootstrap (gnulib_name): New variable.
17291         (gnulib_tool_options): Use it.
17292
17293 2007-03-13  Simon Josefsson  <simon@josefsson.org>
17294
17295         * tests/test-des.c: Use new namespace.
17296
17297 2007-03-15  Bruno Haible  <bruno@clisp.org>
17298
17299         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17300         Reported by James Youngman <jay@gnu.org>.
17301
17302 2007-03-15  Bruno Haible  <bruno@clisp.org>
17303
17304         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17305         declared prototype. Needed with cc on OSF/1 5.1.
17306
17307 2007-03-15  Bruno Haible  <bruno@clisp.org>
17308
17309         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17310         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17311         (struct gl_list_implementation): Add dispose_fn argument to the
17312         'create_empty', 'create' methods.
17313         (struct gl_list_impl_base): Add field 'dispose_fn'.
17314         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17315         argument.
17316         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17317         dispose_fn argument.
17318         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17319         dispose_fn on the dropped values.
17320         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17321         dispose_fn argument.
17322         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17323         dropped values.
17324         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17325         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17326         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17327         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17328         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17329         argument.
17330         (gl_tree_list_free): Call dispose_fn on the dropped values.
17331         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17332         the dropped values.
17333         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17334         Add dispose_fn argument.
17335         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17336         Call dispose_fn on the dropped values.
17337         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17338         Add dispose_fn argument.
17339         (gl_sublist_create): Initialize the 'dispose_fn' field.
17340         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17341         * tests/test-array_list.c (main): Update.
17342         * tests/test-carray_list.c (main): Update.
17343         * tests/test-avltree_list.c (main): Update.
17344         * tests/test-rbtree_list.c (main): Update.
17345         * tests/test-avltreehash_list.c (main): Update.
17346         * tests/test-rbtreehash_list.c (main): Update.
17347         * tests/test-linked_list.c (main): Update.
17348         * tests/test-linkedhash_list.c (main): Update.
17349         * tests/test-array_oset.c (main): Update.
17350
17351 2007-03-15  Bruno Haible  <bruno@clisp.org>
17352
17353         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17354         (gl_oset_create_empty): Add dispose_fn argument.
17355         (struct gl_oset_implementation): Add dispose_fn argument to
17356         'create_empty' method.
17357         (struct gl_oset_impl_base): Add dispose_fn field.
17358         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17359         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17360         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17361         values.
17362         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17363         (gl_tree_oset_free): Call dispose_fn on the dropped values.
17364         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17365         dropped value.
17366         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17367         dropped value.
17368         * tests/test-array_oset.c (main): Update.
17369         * tests/test-avltree_oset.c (main): Update.
17370         * tests/test-rbtree_oset.c (main): Update.
17371         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17372
17373 2007-03-13  Bruno Haible  <bruno@clisp.org>
17374
17375         * tests/test-stdbool.c (i): Update after last patch.
17376
17377 2007-03-12  Bruno Haible  <bruno@clisp.org>
17378
17379         * lib/quotearg.c: Include <wctype.h> early, before the definition of
17380         the iswprint macro. Needed on Solaris 2.5.1.
17381
17382 2007-03-12  Bruno Haible  <bruno@clisp.org>
17383
17384         * tests/test-printf-frexp.c (main): Declare x as volatile.
17385
17386 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17387
17388         * doc/gnulib.texi (Build robot for gnulib): New section.
17389
17390 2007-03-12  Jim Meyering  <jim@meyering.net>
17391
17392         * build-aux/bootstrap: New file.
17393         * build-aux/bootstrap.conf: New file, from coreutils.
17394
17395 2007-03-11  Bruno Haible  <bruno@clisp.org>
17396
17397         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17398
17399 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17400
17401         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17402         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
17403         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
17404
17405 2007-03-11  Bruno Haible  <bruno@clisp.org>
17406
17407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17408         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17409
17410 2007-03-11  Bruno Haible  <bruno@clisp.org>
17411
17412         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17413         formula. Needed for SunPRO C 5.0.
17414
17415 2007-03-11  Bruno Haible  <bruno@clisp.org>
17416
17417         * modules/long-options (Depends-on): Add getopt.
17418
17419 2007-03-11  Bruno Haible  <bruno@clisp.org>
17420
17421         * modules/modechange (Depends-on): Add stdbool.
17422
17423 2007-03-11  Bruno Haible  <bruno@clisp.org>
17424
17425         * modules/i-ring (Depends-on): Add stdbool.
17426
17427 2007-03-11  Bruno Haible  <bruno@clisp.org>
17428
17429         * modules/gc-des (Depends-on): Add stdbool.
17430
17431 2007-03-11  Bruno Haible  <bruno@clisp.org>
17432
17433         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17434
17435 2007-03-11  Bruno Haible  <bruno@clisp.org>
17436
17437         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17438
17439 2007-03-11  Bruno Haible  <bruno@clisp.org>
17440
17441         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17442
17443 2007-03-11  Bruno Haible  <bruno@clisp.org>
17444
17445         * lib/vasnprintf.c (sprintf): Undefine.
17446
17447 2007-03-11  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17450         initializers in SunPRO C and Compaq C compilers.
17451
17452 2007-03-11  Bruno Haible  <bruno@clisp.org>
17453
17454         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17455         decrementing code ANSI C compliant.
17456
17457 2007-03-11  Bruno Haible  <bruno@clisp.org>
17458
17459         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17460         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17461
17462 2007-03-11  Bruno Haible  <bruno@clisp.org>
17463
17464         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17465         <stdbool.h> substitute doesn't pass.
17466
17467 2007-03-11  Bruno Haible  <bruno@clisp.org>
17468
17469         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17470
17471 2007-03-11  Bruno Haible  <bruno@clisp.org>
17472
17473         * gnulib-tool (func_create_megatestdir): Create also an autobuild
17474         script, for submission to autobuild.josefsson.org.
17475
17476 2007-03-10  Bruno Haible  <bruno@clisp.org>
17477
17478         * modules/canonicalize-lgpl-tests: New file.
17479         * tests/test-canonicalize-lgpl.sh: New file.
17480         * tests/test-canonicalize-lgpl.c: New file.
17481
17482         * modules/c-strcase-tests: New file.
17483         * tests/test-c-strcase.sh: New file.
17484         * tests/test-c-strcasecmp.c: New file.
17485         * tests/test-c-strncasecmp.c: New file.
17486
17487         * modules/atexit-tests: New file.
17488         * tests/test-atexit.sh: New file.
17489         * tests/test-atexit.c: New file.
17490
17491 2007-03-10  Bruno Haible  <bruno@clisp.org>
17492
17493         * tests/test-binary-io.sh: Use temporary filenames that are not so
17494         likely to clash with those of other tests (in a parallel make).
17495         * tests/test-binary-io.c: Likewise.
17496
17497 2007-03-10  Bruno Haible  <bruno@clisp.org>
17498
17499         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17500         fallback; use #error instead.
17501         Suggested by Simon Josefsson.
17502
17503 2007-03-10  Bruno Haible  <bruno@clisp.org>
17504
17505         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17506         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17507         first and the last.
17508
17509 2007-03-10  Bruno Haible  <bruno@clisp.org>
17510
17511         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17512
17513 2007-03-10  Bruno Haible  <bruno@clisp.org>
17514
17515         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17516         "make distcheck".
17517         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17518         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17519         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17520
17521 2007-03-10  Bruno Haible  <bruno@clisp.org>
17522
17523         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17524         variable.
17525         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17526         variable.
17527
17528 2007-03-09  Eric Blake  <ebb9@byu.net>
17529         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
17530
17531         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17532         types are not being provided by gnulib.
17533         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17534         types are supported.
17535
17536 2007-03-10  Bruno Haible  <bruno@clisp.org>
17537
17538         * lib/stdio_.h (__attribute__): New macro.
17539         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17540         vsprintf): Specify __attribute__ __format__ for GCC.
17541         Suggested by Eric Blake.
17542
17543 2007-03-09  Bruno Haible  <bruno@clisp.org>
17544
17545         * modules/printf-posix-tests: New file.
17546         * tests/test-printf-posix.sh: New file.
17547         * tests/test-printf-posix.c: New file.
17548
17549         * modules/printf-posix: New file.
17550         * lib/printf.c: New file.
17551         * m4/printf-posix-rpl.m4: New file.
17552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17553         REPLACE_PRINTF.
17554         * lib/stdio_.h (printf): New declaration.
17555         (format, __format__, ____printf____, ____scanf____, ____strftime____,
17556         ____strfmon____): New macros.
17557         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17558         REPLACE_PRINTF.
17559
17560 2007-03-09  Bruno Haible  <bruno@clisp.org>
17561
17562         * tests/test-vasnprintf-posix2.sh: New file.
17563         * tests/test-vasnprintf-posix2.c: New file.
17564         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17565         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17566         (Makefile.am): Activate test-vasnprintf-posix2.sh.
17567
17568         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17569         a locale dependent decimal point, rather than always '.'.
17570
17571 2007-03-09  Eric Blake  <ebb9@byu.net>
17572
17573         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17574         spite of platforms like Tandem/NSK that define it to -1.
17575
17576 2007-03-08  Bruno Haible  <bruno@clisp.org>
17577
17578         * modules/vprintf-posix-tests: New file.
17579         * tests/test-vprintf-posix.sh: New file.
17580         * tests/test-vprintf-posix.c: New file.
17581         * tests/test-printf-posix.h: New file.
17582
17583         * modules/vprintf-posix: New file.
17584         * lib/vprintf.c: New file.
17585         * m4/vprintf-posix.m4: New file.
17586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17587         REPLACE_VPRINTF.
17588         * lib/stdio_.h (vprintf): New declaration.
17589         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17590         REPLACE_VPRINTF.
17591
17592 2007-03-08  Bruno Haible  <bruno@clisp.org>
17593
17594         * modules/fprintf-posix-tests: New file.
17595         * tests/test-fprintf-posix.sh: New file.
17596         * tests/test-fprintf-posix.c: New file.
17597
17598         * modules/fprintf-posix: New file.
17599         * lib/fprintf.c: New file.
17600         * m4/fprintf-posix.m4: New file.
17601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17602         REPLACE_FPRINTF.
17603         * lib/stdio_.h (fprintf): New declaration.
17604         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17605         REPLACE_FPRINTF.
17606
17607 2007-03-08  Bruno Haible  <bruno@clisp.org>
17608
17609         * modules/vfprintf-posix-tests: New file.
17610         * tests/test-vfprintf-posix.sh: New file.
17611         * tests/test-vfprintf-posix.c: New file.
17612         * tests/test-fprintf-posix.h: New file.
17613         * tests/test-fprintf-posix.out: New file.
17614
17615         * modules/vfprintf-posix: New file.
17616         * lib/vfprintf.c: New file.
17617         * m4/vfprintf-posix.m4: New file.
17618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17619         REPLACE_VFPRINTF.
17620         * lib/stdio_.h (vfprintf): New declaration.
17621         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17622         REPLACE_VFPRINTF.
17623
17624 2007-03-08  Bruno Haible  <bruno@clisp.org>
17625
17626         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17627
17628 2007-03-08  Bruno Haible  <bruno@clisp.org>
17629
17630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17631         instead of 'expr' invocations.
17632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17637         Suggested by Paul Eggert.
17638
17639 2007-03-08  Bruno Haible  <bruno@clisp.org>
17640
17641         * modules/fseterr-tests: New file.
17642         * tests/test-fseterr.c: New file.
17643
17644         * modules/fseterr: New file.
17645         * lib/fseterr.h: New file.
17646         * lib/fseterr.c: New file.
17647
17648 2007-03-08  Bruno Haible  <bruno@clisp.org>
17649
17650         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17651         * lib/getopt_.h: Likewise.
17652         * lib/mbswidth.h: Likewise.
17653         * lib/setenv.h: Likewise.
17654         * lib/vasnprintf.h: Likewise.
17655         * lib/vasprintf.h: Likewise.
17656         * lib/verror.h: Likewise.
17657         * lib/xsetenv.h: Likewise.
17658         * lib/xvasprintf.h: Likewise.
17659
17660 2007-03-08  Jim Meyering  <jim@meyering.net>
17661
17662         * users.txt: Add parted.
17663
17664         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17665
17666 2007-03-07  Bruno Haible  <bruno@clisp.org>
17667
17668         * m4/printf.m4: Make the shell script snippets copy&pastable.
17669
17670 2007-03-02  Bruno Haible  <bruno@clisp.org>
17671
17672         * lib/netinet_in_.h: New file.
17673         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17674         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17675         * modules/netinet_in (Files): Add lib/netinet_in_.h.
17676         (Depends-on): Add absolute-header.
17677         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17678         into netinet/in.h.
17679
17680 2007-03-03  Bruno Haible  <bruno@clisp.org>
17681
17682         * lib/sys_select_.h: New file.
17683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17684         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17685         * modules/sys_select (Files): Add lib/sys_select_.h.
17686         (Depends-on): Add absolute-header.
17687         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17688         into sys/select.h.
17689
17690 2007-03-02  Bruno Haible  <bruno@clisp.org>
17691
17692         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17693         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17694         values.
17695         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17696         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17697         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17698         * modules/sys_socket (Depends-on): Add absolute-header.
17699         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17700         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17701         (Include): Remove requirement of inclusion of <sys/types.h>.
17702
17703 2007-03-02  Bruno Haible  <bruno@clisp.org>
17704
17705         * lib/byteswap_.h (bswap_32): Fix formula.
17706
17707 2007-03-06  Bruno Haible  <bruno@clisp.org>
17708
17709         * modules/sprintf-posix-tests: New file.
17710         * tests/test-sprintf-posix.c: New file.
17711
17712         * modules/sprintf-posix: New file.
17713         * lib/sprintf.c: New file.
17714         * m4/sprintf-posix.m4: New file.
17715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17716         REPLACE_SPRINTF.
17717         * lib/stdio_.h (sprintf): New declaration.
17718         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17719         REPLACE_SPRINTF.
17720
17721 2007-03-06  Bruno Haible  <bruno@clisp.org>
17722
17723         * modules/vsprintf-posix-tests: New file.
17724         * tests/test-vsprintf-posix.c: New file.
17725         * tests/test-sprintf-posix.h: New file.
17726
17727         * modules/vsprintf-posix: New file.
17728         * lib/vsprintf.c: New file.
17729         * m4/vsprintf-posix.m4: New file.
17730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17731         REPLACE_VSPRINTF.
17732         * lib/stdio_.h (vsprintf): New declaration.
17733         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17734         REPLACE_VSPRINTF.
17735
17736 2007-03-06  Bruno Haible  <bruno@clisp.org>
17737
17738         * modules/vsnprintf (Depend-on): Remove minmax.
17739
17740 2007-03-06  Bruno Haible  <bruno@clisp.org>
17741
17742         * modules/snprintf-posix-tests: New file.
17743         * tests/test-snprintf-posix.c: New file.
17744
17745         * modules/snprintf-posix: New file.
17746         * m4/snprintf-posix.m4: New file.
17747         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17748         gl_FUNC_SNPRINTF.
17749         (gl_FUNC_SNPRINTF): Invoke it.
17750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17751         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17752         is set.
17753         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17754
17755 2007-03-06  Bruno Haible  <bruno@clisp.org>
17756
17757         * modules/vsnprintf-posix-tests: New file.
17758         * tests/test-vsnprintf-posix.c: New file.
17759         * tests/test-snprintf-posix.h: New file.
17760
17761         * modules/vsnprintf-posix: New file.
17762         * m4/vsnprintf-posix.m4: New file.
17763         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17764         gl_FUNC_VSNPRINTF.
17765         (gl_FUNC_VSNPRINTF): Invoke it.
17766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17767         * lib/stdio_.h (vsnprintf): Define as a replacement if
17768         REPLACE_VSNPRINTF is set.
17769         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17770
17771 2007-03-06  Bruno Haible  <bruno@clisp.org>
17772
17773         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17775
17776 2007-03-06  Bruno Haible  <bruno@clisp.org>
17777
17778         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17779         (asinl): Declare also if HAVE_DECL_ASINL is set.
17780         (atanl): Declare also if HAVE_DECL_ATANL is set.
17781         (ceill): Declare also if HAVE_DECL_CEILL is set.
17782         (cosl): Declare also if HAVE_DECL_COSL is set.
17783         (expl): Declare also if HAVE_DECL_EXPL is set.
17784         (floorl): Declare also if HAVE_DECL_FLOORL is set.
17785         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17786         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17787         (logl): Declare also if HAVE_DECL_LOGL is set.
17788         (sinl): Declare also if HAVE_DECL_SINL is set.
17789         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17790         (tanl): Declare also if HAVE_DECL_TANL is set.
17791         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17793         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17794         declaration of frexpl, ldexpl.
17795         * modules/printf-frexpl (Depends-on): Add math.
17796         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17797
17798 2007-03-05  Bruno Haible  <bruno@clisp.org>
17799
17800         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17801         frexpl and ldexpl are declared.
17802         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17803
17804 2007-03-05  Bruno Haible  <bruno@clisp.org>
17805
17806         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17807         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17808
17809 2007-03-05  Bruno Haible  <bruno@clisp.org>
17810
17811         * lib/stdio_.h: Include <stddef.h>.
17812
17813 2007-03-05  Bruno Haible  <bruno@clisp.org>
17814
17815         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17816
17817 2007-03-05  Bruno Haible  <bruno@clisp.org>
17818
17819         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17820         NetBSD 4, from Ralf Wildenhues.
17821
17822 2007-03-04  Bruno Haible  <bruno@clisp.org>
17823
17824         * lib/vasprintf.h: Update #if logic for the case when the functions
17825         exist but are overridden.
17826
17827 2007-03-04  Bruno Haible  <bruno@clisp.org>
17828
17829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17830         implementations: glibc-2.4 and MacOS X 10.3.
17831         * tests/test-vasnprintf-posix.c (test_function): Test also the case
17832         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17833         * tests/test-vasprintf-posix.c (test_function): Likewise.
17834
17835 2007-03-04  Bruno Haible  <bruno@clisp.org>
17836
17837         * modules/vasprintf-posix-tests: New file.
17838         * tests/test-vasprintf-posix.c: New file.
17839
17840         * modules/vasprintf-posix: New file.
17841         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17842         defined.
17843         * m4/vasprintf-posix.m4: New file.
17844         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17845         gl_FUNC_VASPRINTF.
17846         (gl_FUNC_VASPRINTF): Invoke it.
17847         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17848         here.
17849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17850
17851 2007-03-04  Bruno Haible  <bruno@clisp.org>
17852
17853         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17854         REPLACE_GETTIMEOFDAY.
17855         * modules/sys_time (Makefile.am): Likewise.
17856         * m4/sys_time_h.m4: Likewise.
17857         * m4/gettimeofday.m4: Likewise.
17858
17859 2007-03-04  Bruno Haible  <bruno@clisp.org>
17860
17861         * modules/vasnprintf-posix-tests: New file.
17862         * tests/test-vasnprintf-posix.c: New file.
17863
17864         * modules/vasnprintf-posix: New file.
17865         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
17866         printf-frexpl.h.
17867         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
17868         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
17869         REPLACE_VASNPRINTF is defined.
17870         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
17871         gl_FUNC_VASNPRINTF.
17872         (gl_FUNC_VASNPRINTF): Invoke it.
17873         * m4/vasnprintf-posix.m4: New file.
17874         * m4/printf.m4: New file.
17875
17876 2007-03-04  Bruno Haible  <bruno@clisp.org>
17877
17878         Compile progreloc.c only if --enable-relocatable is specified.
17879         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
17880         if --enable-relocatable was specified.
17881         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
17882         lib_SOURCES.
17883
17884 2007-03-04  Jim Meyering  <jim@meyering.net>
17885
17886         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
17887         Use it consistently, rather than enumerating errno constants.
17888
17889 2007-03-04  Bruno Haible  <bruno@clisp.org>
17890
17891         * modules/xvasprintf-tests: New file.
17892         * tests/test-xvasprintf.c: New file.
17893
17894         * modules/vasprintf-tests: New file.
17895         * tests/test-vasprintf.c: New file.
17896
17897         * modules/vasnprintf-tests: New file.
17898         * tests/test-vasnprintf.c: New file.
17899
17900         * modules/vsnprintf-tests: New file.
17901         * tests/test-vsnprintf.c: New file.
17902
17903         * modules/snprintf-tests: New file.
17904         * tests/test-snprintf.c: New file.
17905
17906 2007-03-04  Bruno Haible  <bruno@clisp.org>
17907
17908         Compile relocatable.c only if --enable-relocatable is specified.
17909         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
17910         gl_RELOCATABLE_LIBRARY.
17911         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
17912         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
17913         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
17914         gl_RELOCATABLE_LIBRARY.
17915         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
17916         (Makefile.am): Remove lib_SOURCES.
17917         * modules/relocatable-lib-lgpl (configure.ac): Invoke
17918         gl_RELOCATABLE_LIBRARY.
17919         (Makefile.am): Remove lib_SOURCES.
17920         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
17921         always.
17922         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17923         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
17924
17925 2007-03-04  Bruno Haible  <bruno@clisp.org>
17926
17927         * modules/argmatch-tests: New file.
17928         * tests/test-argmatch.c: New file.
17929
17930         * tests/test-allocsa.c (main): Halve the number of loop runs.
17931
17932         * modules/alloca-opt-tests: New file.
17933         * tests/test-alloca-opt.c: New file.
17934
17935 2007-03-04  Jim Meyering  <jim@meyering.net>
17936
17937         Work around difference between Linux ACLs and Solaris 10 ZFS.
17938         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
17939         for EINVAL.
17940
17941 2007-03-03  Bruno Haible  <bruno@clisp.org>
17942
17943         * modules/relocatable-prog (Depends-on): Add back progreloc's
17944         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
17945
17946 2007-03-03  Bruno Haible  <bruno@clisp.org>
17947
17948         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
17949         * modules/relocatable-lib: New file.
17950
17951 2007-03-03  Bruno Haible  <bruno@clisp.org>
17952
17953         * modules/relocatable-prog: Renamed from modules/relocatable.
17954         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
17955
17956 2007-03-03  Bruno Haible  <bruno@clisp.org>
17957
17958         * modules/relocatable-script (Files): Add doc/relocatable.texi,
17959         m4/relocatable-lib.m4.
17960         (Depends-on): Remove 'relocatable'.
17961         (configure.ac): Add gl_RELOCATABLE_NOP.
17962
17963 2007-03-03  Bruno Haible  <bruno@clisp.org>
17964
17965         * modules/relocatable-prog-wrapper: New file.
17966         * modules/relocatable (Depends-on): Add it. Remove all other
17967         dependencies except progname.
17968         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
17969
17970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
17971         (gl_FUNC_STRERROR): Nop.
17972         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
17973
17974         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
17975         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
17976
17977         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
17978         (gl_FUNC_READLINK): Update.
17979
17980         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
17981
17982 2007-03-03  Bruno Haible  <bruno@clisp.org>
17983
17984         * lib/xreadlink.c: Include <unistd.h> unconditionally.
17985         * modules/xreadlink (Depends-on): Add unistd.
17986         * modules/xreadlink-with-size (Depends-on): Likewise.
17987
17988 2007-03-03  Bruno Haible  <bruno@clisp.org>
17989
17990         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
17991         extracted from gt_FUNC_SETENV.
17992         (gt_FUNC_SETENV): Remove macro.
17993         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
17994         remove gt_FUNC_SETENV.
17995
17996 2007-03-03  Bruno Haible  <bruno@clisp.org>
17997
17998         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
17999         ENABLE_RELOCATABLE here.
18000         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18001
18002 2007-03-03  Bruno Haible  <bruno@clisp.org>
18003
18004         * modules/rbtreehash-list-tests (Depends-on): Add progname.
18005         * tests/test-rbtreehash_list.c: Include progname.h.
18006         (main): Call set_program_name.
18007
18008         * modules/rbtree-oset-tests (Depends-on): Add progname.
18009         * tests/test-rbtree_oset.c: Include progname.h.
18010         (main): Call set_program_name.
18011
18012         * modules/rbtree-list-tests (Depends-on): Add progname.
18013         * tests/test-rbtree_list.c: Include progname.h.
18014         (main): Call set_program_name.
18015
18016         * modules/linked-list-tests (Depends-on): Add progname.
18017         * tests/test-linked_list.c: Include progname.h.
18018         (main): Call set_program_name.
18019
18020 2007-03-03  Bruno Haible  <bruno@clisp.org>
18021
18022         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18023         All uses of __restrict changed to _Restrict_.
18024         * lib/glob_.h (__restrict): Remove macro.
18025
18026 2007-03-02  Bruno Haible  <bruno@clisp.org>
18027
18028         * modules/gettext (configure.ac): Require gettext infrastructure
18029         from version 0.16.1.
18030
18031 2007-03-02  Bruno Haible  <bruno@clisp.org>
18032
18033         * modules/linkedhash-list-tests (Depends-on): Add progname.
18034         * tests/test-linkedhash_list.c: Include progname.h.
18035         (main): Call set_program_name.
18036
18037         * modules/carray-list-tests (Depends-on): Add progname.
18038         * tests/test-carray_list.c: Include progname.h.
18039         (main): Call set_program_name.
18040
18041         * modules/avltreehash-list-tests (Depends-on): Add progname.
18042         * tests/test-avltreehash_list.c: Include progname.h.
18043         (main): Call set_program_name.
18044
18045         * modules/avltree-oset-tests (Depends-on): Add progname.
18046         * tests/test-avltree_oset.c: Include progname.h.
18047         (main): Call set_program_name.
18048
18049         * modules/avltree-list-tests (Depends-on): Add progname.
18050         * tests/test-avltree_list.c: Include progname.h.
18051         (main): Call set_program_name.
18052
18053         * modules/array-oset-tests (Depends-on): Add progname.
18054         * tests/test-array_oset.c: Include progname.h.
18055         (main): Call set_program_name.
18056
18057         * modules/array-list-tests (Depends-on): Add progname.
18058         * tests/test-array_list.c: Include progname.h.
18059         (main): Call set_program_name.
18060
18061         * modules/argp-tests (Depends-on): Add progname.
18062         * tests/test-argp.c: Include argp.h first. Include progname.h.
18063         (main): Call set_program_name.
18064
18065 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         * doc/gnulib-tool.texi (Initial import): Reword description of
18068         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
18069         limited effect even if defined after the first system include.
18070
18071 2007-03-01  Bruno Haible  <bruno@clisp.org>
18072
18073         * build-aux/config.libpath: Update to libtool-1.5.22.
18074         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18075
18076 2007-03-01  Bruno Haible  <bruno@clisp.org>
18077
18078         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
18079         foo_CFLAGS.
18080         Reported by Ralf Wildenhues.
18081
18082 2007-03-01  Bruno Haible  <bruno@clisp.org>
18083
18084         * build-aux/install-reloc: Remove object files left over by some
18085         compilers.
18086         Reported by Ralf Wildenhues.
18087
18088 2007-03-01  Bruno Haible  <bruno@clisp.org>
18089
18090         * build-aux/install-reloc: Break long lines.
18091
18092 2007-03-01  Bruno Haible  <bruno@clisp.org>
18093
18094         * doc/relocatable.texi: Document that it may not work on OpenBSD.
18095         Reported by Ralf Wildenhues.
18096
18097 2007-03-01  Bruno Haible  <bruno@clisp.org>
18098
18099         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
18100         include ordering constraints.
18101
18102 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18103
18104         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
18105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
18106         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
18107         as another example.
18108         * lib/time_.h: Fix misspelling.
18109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18110         Require gl_HEADER_TIME_H_DEFAULTS.
18111         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
18112         * m4/time_r.m4 (gl_TIME_R): Likewise.
18113         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
18114
18115 2007-03-01  Bruno Haible  <bruno@clisp.org>
18116
18117         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
18118         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18119
18120 2007-03-01  Jim Meyering  <jim@meyering.net>
18121
18122         * modules/xreadlink (Maintainer): Add my name.
18123         * modules/xreadlink-with-size (Depends-on): Alphabetize.
18124
18125 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
18126             Bruno Haible  <bruno@clisp.org>
18127
18128         * build-aux/install-reloc: Compile also c-ctype.c.
18129         * build-aux/relocatable.sh.in: New file.
18130         * doc/relocatable.texi: New file.
18131         * doc/relocatable-maint.texi: New file.
18132         * doc/gnulib.texi: Include relocatable-maint.texi.
18133         * lib/progreloc.c: Include unistd.h unconditionally.
18134         * lib/relocwrapper.c: Include unistd.h unconditionally.
18135         Include c-ctype.h.
18136         (add_dotbin): Use c_tolower.
18137         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18138         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18139         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18140         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18141         to m4/relocatable-lib.m4.
18142         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18143         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18144         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18145         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18146         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18147         * modules/relocatable: New file.
18148         * modules/relocatable-lib: New file.
18149         * modules/relocatable-script: New file.
18150
18151 2007-02-28  Bruno Haible  <bruno@clisp.org>
18152
18153         Import --enable-relocatable infrastructure.
18154         * build-aux/config.libpath: New file, from GNU gettext.
18155         * build-aux/install-reloc: New file, from GNU gettext.
18156         * build-aux/reloc-ldflags: New file, from GNU gettext.
18157         * lib/relocatable.h: New file, from GNU gettext.
18158         * lib/relocatable.c: New file, from GNU gettext.
18159         * lib/relocwrapper.c: New file, from GNU gettext.
18160         * m4/relocatable.m4: New file, from GNU gettext.
18161
18162 2007-02-28  Bruno Haible  <bruno@clisp.org>
18163
18164         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18165
18166         * modules/xreadlink: New file, from GNU gettext with modifications.
18167         * lib/xreadlink.c: New file, from GNU gettext.
18168         * lib/xreadlink.h: Add comments.
18169         (xreadlink): New declaration.
18170
18171         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18172         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18173         lib/xreadlink-with-size.c.
18174         (configure.ac): Remove gl_XREADLINK invocation.
18175         (Makefile.am): Augment lib_SOURCES.
18176         * m4/xreadlink.m4: Remove file.
18177         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18178         (xreadlink_with_size): Renamed from xreadink.
18179         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18180         * modules/canonicalize (Depends-on): Replace xreadlink with
18181         xreadlink-with-size.
18182         * lib/canonicalize.c (canonicalize_filename_mode): Update.
18183
18184 2007-02-25  Jim Meyering  <jim@meyering.net>
18185
18186         * build-aux/announce-gen: When complaining about excess arguments,
18187         list them.
18188
18189 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         * README: Document signed integer overflow situation more
18192         accurately.
18193
18194 2007-02-25  Bruno Haible  <bruno@clisp.org>
18195
18196         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18197         'a' or 'A' conversion.
18198
18199 2007-02-25  Bruno Haible  <bruno@clisp.org>
18200
18201         * modules/filename: Renamed from modules/pathname.
18202         (Files): Replace lib/pathname.h with lib/filename.h. Replace
18203         lib/concatpath.c with lib/concat-filename.c.
18204         (Makefile.am): Update.
18205         (Include): Replace pathname.h with filename.h.
18206         * lib/filename.h: Renamed from lib/pathname.h.
18207         (concatenated_filename): Renamed from concatenated_pathname.
18208         * lib/concat-filename.c: Renamed from lib/concatpath.c.
18209         (concatenated_filename): Renamed from concatenated_pathname.
18210         * lib/findprog.c: Include filename.h instead of pathname.h.
18211         (find_in_path): Update.
18212         * lib/javacomp.c: Include filename.h instead of pathname.h.
18213         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18214         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18215         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18216         is_oldgcj_14_13_usable, is_javac_usable): Update.
18217         * lib/javaexec.c: Include filename.h instead of pathname.h.
18218         (execute_java_class): Update.
18219         * modules/findprog: Update.
18220         * modules/javacomp: Update.
18221         * modules/javaexec: Update.
18222         * MODULES.html.sh (File system functions): Add 'filename', remove
18223         'pathname'.
18224
18225 2007-02-25  Bruno Haible  <bruno@clisp.org>
18226
18227         * modules/printf-frexpl-tests: New file.
18228         * tests/test-printf-frexpl.c: New file.
18229
18230         * modules/printf-frexpl: New file.
18231         * lib/printf-frexpl.h: New file.
18232         * lib/printf-frexpl.c: New file.
18233         * m4/printf-frexpl.m4: New file.
18234
18235 2007-02-25  Bruno Haible  <bruno@clisp.org>
18236
18237         * modules/printf-frexp-tests: New file.
18238         * tests/test-printf-frexp.c: New file.
18239
18240         * modules/printf-frexp: New file.
18241         * lib/printf-frexp.h: New file.
18242         * lib/printf-frexp.c: New file.
18243         * m4/printf-frexp.m4: New file.
18244
18245 2007-02-25  Bruno Haible  <bruno@clisp.org>
18246
18247         Assume automake >= 1.10 for the tests.
18248         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18249         * modules/arctwo-tests: Likewise.
18250         * modules/argp-tests: Likewise.
18251         * modules/avltree-list-tests: Likewise.
18252         * modules/avltree-oset-tests: Likewise.
18253         * modules/avltreehash-list-tests: Likewise.
18254         * modules/carray-list-tests: Likewise.
18255         * modules/crc-tests: Likewise.
18256         * modules/des-tests: Likewise.
18257         * modules/gc-arcfour-tests: Likewise.
18258         * modules/gc-arctwo-tests: Likewise.
18259         * modules/gc-des-tests: Likewise.
18260         * modules/gc-hmac-md5-tests: Likewise.
18261         * modules/gc-hmac-sha1-tests: Likewise.
18262         * modules/gc-md2-tests: Likewise.
18263         * modules/gc-md4-tests: Likewise.
18264         * modules/gc-md5-tests: Likewise.
18265         * modules/gc-pbkdf2-sha1-tests: Likewise.
18266         * modules/gc-rijndael-tests: Likewise.
18267         * modules/gc-sha1-tests: Likewise.
18268         * modules/gc-tests: Likewise.
18269         * modules/getaddrinfo-tests: Likewise.
18270         * modules/hmac-md5-tests: Likewise.
18271         * modules/hmac-sha1-tests: Likewise.
18272         * modules/linked-list-tests: Likewise.
18273         * modules/linkedhash-list-tests: Likewise.
18274         * modules/lock-tests: Likewise.
18275         * modules/md2-tests: Likewise.
18276         * modules/md4-tests: Likewise.
18277         * modules/md5-tests: Likewise.
18278         * modules/rbtree-list-tests: Likewise.
18279         * modules/rbtree-oset-tests: Likewise.
18280         * modules/rbtreehash-list-tests: Likewise.
18281         * modules/read-file-tests: Likewise.
18282         * modules/rijndael-tests: Likewise.
18283         * modules/stdint-tests: Likewise.
18284         * modules/tls-tests: Likewise.
18285
18286 2007-02-24  Bruno Haible  <bruno@clisp.org>
18287
18288         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18289         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18290         function; instead check whether isnan with a double argument links.
18291         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18292         function; instead check whether isnan with a 'long double' argument
18293         links.
18294         Reported by Eric Blake <ebb9@byu.net>.
18295
18296 2007-02-24  Bruno Haible  <bruno@clisp.org>
18297
18298         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18299         defined.
18300         * lib/isnanl.c: Remove all code. Just include isnan.c.
18301         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18302
18303 2007-02-25  Jim Meyering  <jim@meyering.net>
18304
18305         Avoid conflicting types for 'unsetenv' on FreeBSD.
18306         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18307         conflicting with FreeBSD's (5.0 and 6.1) function declaration
18308         in stdlib.h.
18309
18310 2007-02-24  Bruno Haible  <bruno@clisp.org>
18311
18312         * modules/isnanl-nolibm-tests: New file.
18313         * tests/test-isnanl.c: New file.
18314
18315         * modules/isnanl-nolibm: New file.
18316         * lib/isnanl.h: New file.
18317         * lib/isnanl.c: New file.
18318         * m4/isnanl.m4: New file.
18319
18320 2007-02-24  Bruno Haible  <bruno@clisp.org>
18321
18322         * modules/isnan-nolibm-tests: New file.
18323         * tests/test-isnan.c: New file.
18324
18325         * modules/isnan-nolibm: New file.
18326         * lib/isnan.h: New file.
18327         * lib/isnan.c: New file.
18328         * m4/isnan.m4: New file.
18329
18330 2007-02-24  Bruno Haible  <bruno@clisp.org>
18331
18332         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18333         assume that an exponent fits in 20 bits.
18334
18335 2007-02-24  Jim Meyering  <jim@meyering.net>
18336
18337         * m4/regex.m4: Update the description of the configure-time option,
18338         --without-included-regex, to state accurately what the defaults are,
18339         and perhaps to give people an idea why using this option is risky.
18340
18341 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18342
18343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18344         loops on small arguments.  This attempts to avoid the problem
18345         Bruno Haible reported for AIX 4.3.2 in
18346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18347
18348 2007-02-23  Bruno Haible  <bruno@clisp.org>
18349
18350         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18351         Needed for help2man.
18352
18353 2007-02-23  Karl Berry  <karl@gnu.org>
18354
18355         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18356         exists, foo.h should be cvs-ignored, not committed.
18357
18358 2007-02-23  Eric Blake  <ebb9@byu.net>
18359
18360         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
18361         * lib/stat-time.h (includes): Likewise.
18362         * lib/utimecmp.c (includes): Likewise.
18363         * lib/utimens.h (includes): Likewise.
18364         * lib/getdate.y (includes): Also include "timespec.h" for use
18365         internal to the module.
18366         * modules/utimens (Depends-on): Revert yesterday's patch.
18367         * modules/nanosleep (Depends-on): Add missing dependency.
18368
18369 2007-02-22  Bruno Haible  <bruno@clisp.org>
18370
18371         * lib/glob.c: Don't include getlogin_r.h.
18372
18373 2007-02-22  Jim Meyering  <jim@meyering.net>
18374
18375         * modules/utimens (Depends-on): Add timespec, required for
18376         utimens.h's inclusion of timespec.h.
18377
18378 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18381         long unreadable paths in GNU/Linux.  Problem reported by Andreas
18382         Schwab in
18383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18384         I'll try to think of a better way to fix the Solaris problem.
18385
18386         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18387         like glibc; on Solaris 10, it fails with errno == EINVAL.
18388         POSIX says the behavior is unspecified if the first argument is NULL,
18389         so play it safe and never pass NULL to the system getcwd.
18390
18391 2007-02-21  Jim Meyering  <jim@meyering.net>
18392
18393         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18394         of gettimeofday.  It would conflict with the one now always
18395         provided via sys_time_.h.  Reported by Matthew Woehlke, as
18396         an IRIX 6.5 build failure.
18397
18398 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18399
18400         Minor fixups to port to Solaris 10 with Sun C 5.8.
18401         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18402         * modules/getcwd (Depends-on): Add dirfd.
18403         * lib/putenv.c (putenv): #undef it.
18404         (rpl_putenv): New decl.
18405         (malloc, free): Include <stdlib.h> rather than prototyping separately.
18406
18407 2007-02-20  Bruno Haible  <bruno@clisp.org>
18408
18409         * modules/stdio-tests: New file.
18410         * tests/test-stdio.c: New file.
18411
18412         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18413         (Depends-on): Add stdio.
18414         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18415         (Include): Use <stdio.h> instead of vsnprintf.h.
18416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18417         HAVE_DECL_VSNPRINTF.
18418         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18419
18420         * modules/snprintf (Files): Remove lib/snprintf.h.
18421         (Depends-on): Add stdio.
18422         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18423         (Include): Use <stdio.h> instead of snprintf.h.
18424         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18425         HAVE_DECL_SNPRINTF.
18426         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18427         * lib/getaddrinfo.c: Likewise.
18428
18429         * modules/stdio: New file.
18430         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18431         * lib/snprintf.h: Remove file.
18432         * lib/vsnprintf.h: Remove file.
18433         * lib/.cppi-disable: Remove snprintf.h.
18434         * m4/stdio_h.m4: New file.
18435         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18436
18437 2007-02-20  Jim Meyering  <jim@meyering.net>
18438
18439         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18440         used by e.g., mingw.  From Bruno Haible.
18441
18442 2007-02-19  Bruno Haible  <bruno@clisp.org>
18443
18444         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18445         warnings.
18446         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18447
18448 2007-02-19  Bruno Haible  <bruno@clisp.org>
18449
18450         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18451         from mingw users.
18452
18453 2007-02-19  Bruno Haible  <bruno@clisp.org>
18454
18455         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18456         warnings.
18457         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18458
18459 2007-02-19  Jim Meyering  <jim@meyering.net>
18460
18461         Don't use FD after a successful "fdopendir (fd)".
18462         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18463         Reset it by calling dirfd on the just-obtained DIR*.
18464
18465         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18466         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18467
18468 2007-02-18  Bruno Haible  <bruno@clisp.org>
18469
18470         * lib/readlink.c: Include <unistd.h>.
18471         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18472         HAVE_READLINK.
18473         * modules/readlink (Depends-on): Add unistd.
18474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18475         (Include): Add <unistd.h>.
18476
18477         * lib/getlogin_r.h: Remove file.
18478         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18479         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18480         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18481         HAVE_DECL_GETLOGIN_R.
18482         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18484         (Include): Use <unistd.h> instead of getlogin_r.h.
18485
18486         * lib/getcwd.h: Remove file.
18487         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18488         * lib/xgetcwd.c: Likewise.
18489         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18490         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18491         * modules/getcwd (Files): Remove lib/getcwd.h.
18492         (Depends-on): Add unistd.
18493         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18494         (Include): Use <unistd.h> instad of getcwd.h.
18495
18496         * lib/ftruncate.c: Include <unistd.h> first.
18497         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18498         Set HAVE_FTRUNCATE.
18499         * modules/ftruncate (Depends-on): Add unistd.
18500         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18501
18502         * lib/fchdir.c: Include <unistd.h> first.
18503         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18505         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18506         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18507         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18508
18509         * lib/dup2.c: Include <unistd.h> first.
18510         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18511         HAVE_DUP2.
18512         * modules/dup2 (Depends-on): Add unistd.
18513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18514
18515         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18516         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18517         REPLACE_CHOWN. Don't define chown as a macro here.
18518         * modules/chown (Depends-on): Add unistd.
18519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18520
18521         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18522         Add definition for GL_LINK_WARNING.
18523         (chown, dup2): New declarations.
18524         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18525         link warning.
18526         (ftruncate): New declaration.
18527         (getcwd): New declaration, taken from old getcwd.h.
18528         (getlogin_r): New declaration, taken from old getlogin_r.h.
18529         (readlink): New declaration.
18530         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18531         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18532         (gl_PREREQ_UNISTD): Remove macro.
18533         (gl_UNISTD_MODULE_INDICATOR): New macro.
18534         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18535         many new variables. Don't set UNISTD_H.
18536         * modules/unistd (Description): Change.
18537         (Depends-on): Add link-warning.
18538         (configure.ac): Update.
18539         (Makefile.am): Create unistd.h always. Substitute many new variables
18540         into it.
18541
18542 2007-02-18  Bruno Haible  <bruno@clisp.org>
18543
18544         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18545         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18546         HAVE_GETSUBOPT.
18547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18548         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18549         * lib/getsubopt.h: Remove file.
18550         * modules/getsubopt (Files): Remove lib/getsubopt.h.
18551         (Depends-on): Add stdlib.
18552         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18553         (Includes): Use <stdlib.h> instead of getsubopt.h.
18554         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18555         Set HAVE_GETSUBOPT.
18556         * lib/getsubopt.c: Don't include getsubopt.h.
18557
18558 2007-02-18  Bruno Haible  <bruno@clisp.org>
18559
18560         * modules/fchdir (Depends-on): Add dup2.
18561
18562 2007-02-18  Bruno Haible  <bruno@clisp.org>
18563
18564         * lib/stdlib_.h: Handle glibc's special invocation convention
18565         specially.
18566
18567 2007-02-18  Bruno Haible  <bruno@clisp.org>
18568
18569         * modules/stdlib-tests: New file.
18570         * tests/test-stdlib.c: New file.
18571
18572         * modules/mkstemp (Files): Remove lib/mkstemp.h.
18573         (Depends-on): Add stdlib.
18574         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18575         (Includes): Use <stdlib.h> instead of mkstemp.h.
18576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18577         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18578         * lib/mkstemp.c: Don't include mkstemp.h.
18579         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18580         * lib/stdlib--.h: Don't include mkstemp.h.
18581
18582         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18583         (Depends-on): Add stdlib.
18584         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18585         (Includes): Use <stdlib.h> instead of mkdtemp.h.
18586         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18587         HAVE_MKDTEMP.
18588         * lib/mkdtemp.c: Don't include mkdtemp.h.
18589         * lib/clean-temp.c: Don't include mkdtemp.h.
18590
18591         * modules/exit (Files): Remove lib/exit.h.
18592         (Depends-on): Add stdlib.
18593         (Makefile.am): Remove lib_SOURCES.
18594         (Include): Use <stdlib.h> instead of exit.h.
18595         * lib/argmatch.c: Don't include exit.h.
18596         * lib/execute.c: Likewise.
18597         * lib/pagealign_alloc.c: Likewise.
18598         * lib/pipe.c: Likewise.
18599         * lib/wait-process.c: Likewise.
18600         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18601         * lib/exitfail.c: Likewise.
18602         * lib/savewd.c: Likewise.
18603         * lib/xsetenv.c: Likewise.
18604
18605         * modules/stdlib: New file.
18606         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18607         and extra comments about mkstemp().
18608         * lib/exit.h: Remove file.
18609         * lib/mkdtemp.h: Remove file.
18610         * lib/mkstemp.h: Remove file.
18611         * m4/stdlib_h.m4: New file.
18612         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18613
18614 2007-02-18  Bruno Haible  <bruno@clisp.org>
18615
18616         * modules/math-tests: New file.
18617         * tests/test-math.c: New file.
18618
18619         * modules/math: New file.
18620         * modules/mathl (Files): Remove lib/mathl.h.
18621         (Depends-on): Add math.
18622         (Makefile.am): Don't mention mathl.h.
18623         (Include): Use <math.h> instead of mathl.h.
18624         * lib/math_.h: New file.
18625         * lib/mathl.h: Remove file.
18626         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18627         mathl.h.
18628         * lib/asinl.c: Likewise.
18629         * lib/atanl.c: Likewise.
18630         * lib/ceill.c: Likewise.
18631         * lib/cosl.c: Likewise.
18632         * lib/expl.c: Likewise.
18633         * lib/floorl.c: Likewise.
18634         * lib/frexpl.c: Likewise.
18635         * lib/ldexpl.c: Likewise.
18636         * lib/logl.c: Likewise.
18637         * lib/sincosl.c: Likewise.
18638         * lib/sinl.c: Likewise.
18639         * lib/sqrtl.c: Likewise.
18640         * lib/tanl.c: Likewise.
18641         * lib/trigl.c: Likewise.
18642         * m4/math_h.m4: New file.
18643         * MODULES.html.sh (Mathematics): Add math.
18644
18645 2007-02-17  Bruno Haible  <bruno@clisp.org>
18646
18647         * modules/wctype-tests: New file.
18648         * tests/test-wctype.c: New file.
18649
18650         * modules/wchar-tests: New file.
18651         * tests/test-wchar.c: New file.
18652
18653         * modules/unistd-tests: New file.
18654         * tests/test-unistd.c: New file.
18655
18656         * modules/time-tests: New file.
18657         * tests/test-time.c: New file.
18658
18659         * modules/sysexits-tests: New file.
18660         * tests/test-sysexits.c: New file.
18661
18662         * modules/sys_time-tests: New file.
18663         * tests/test-sys_time.c: New file.
18664
18665         * modules/sys_stat-tests: New file.
18666         * tests/test-sys_stat.c: New file.
18667
18668         * modules/sys_socket-tests: New file.
18669         * tests/test-sys_socket.c: New file.
18670
18671         * modules/sys_select-tests: New file.
18672         * tests/test-sys_select.c: New file.
18673
18674         * modules/string-tests: New file.
18675         * tests/test-string.c: New file.
18676
18677         * modules/stdbool-tests: New file.
18678         * tests/test-stdbool.c: New file.
18679
18680         * modules/netinet_in-tests: New file.
18681         * tests/test-netinet_in.c: New file.
18682
18683         * modules/inttypes-tests: New file.
18684         * tests/test-inttypes.c: New file.
18685
18686         * modules/fcntl-tests: New file.
18687         * tests/test-fcntl.c: New file.
18688
18689         * modules/byteswap-tests: New file.
18690         * tests/test-byteswap.c: New file.
18691
18692         * modules/arpa_inet-tests: New file.
18693         * tests/test-arpa_inet.c: New file.
18694
18695 2007-02-17  Bruno Haible  <bruno@clisp.org>
18696
18697         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18698         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18699         if the corresponding module is not enabled. Emit link warnings if
18700         the function is used nevertheless.
18701         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18702         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18703         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18704         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18705         * modules/inttypes (Depends-on): Add link-warning.
18706         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18707         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18708         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18709         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18710         * modules/imaxdiv (configure.ac): Likewise.
18711         * modules/strtoimax (configure.ac): Likewise.
18712         * modules/strtoumax (configure.ac): Likewise.
18713
18714 2007-02-17  Bruno Haible  <bruno@clisp.org>
18715
18716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18717         gl_STRING_MODULE_INDICATOR_DEFAULTS.
18718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18719         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18720
18721 2007-02-17  Bruno Haible  <bruno@clisp.org>
18722
18723         * modules/link-warning: New file.
18724         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18725         * lib/string_.h (GL_LINK_WARNING): Remove definition.
18726         * modules/string (Depends-on): Add link-warning.
18727         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18728         string.h.
18729         * MODULES.html.sh (Support for building libraries and executables): Add
18730         link-warning.
18731
18732 2007-02-17  Bruno Haible  <bruno@clisp.org>
18733
18734         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18735         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18736         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18737         long lines.
18738
18739 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
18740             Bruno Haible  <bruno@clisp.org>
18741
18742         * modules/tmpfile: New file.
18743         * lib/tmpfile.c: New file.
18744         * m4/tmpfile.m4: New file.
18745         * MODULES.html.sh (func_all_modules): New section "Input/output".
18746
18747 2007-02-15  Bruno Haible  <bruno@clisp.org>
18748
18749         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18750         (supports_delete_on_close): New function.
18751         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18752
18753 2007-02-14  Bruno Haible  <bruno@clisp.org>
18754
18755         * modules/mbspcasecmp-tests: New file.
18756         * tests/test-mbspcasecmp.sh: New file.
18757         * tests/test-mbspcasecmp.c: New file.
18758
18759         New module mbspcasecmp.
18760         * modules/mbspcasecmp: New file.
18761         * lib/mbspcasecmp.c: New file.
18762         * lib/string_.h (strncasecmp): Change warning message.
18763         (mbspcasecmp): New declaration.
18764         * m4/mbspcasecmp.m4: New file.
18765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18766         GNULIB_MBSPCASECMP.
18767         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18768         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18769
18770 2007-02-14  Bruno Haible  <bruno@clisp.org>
18771
18772         * modules/mbsncasecmp-tests: New file.
18773         * tests/test-mbsncasecmp.sh: New file.
18774         * tests/test-mbsncasecmp.c: New file.
18775
18776         New module mbsncasecmp.
18777         * modules/mbsncasecmp: New file.
18778         * lib/mbsncasecmp.c: New file.
18779         * lib/string_.h (mbsncasecmp): New declaration.
18780         * m4/mbsncasecmp.m4: New file.
18781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18782         GNULIB_MBSNCASECMP.
18783         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18784         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18785
18786 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18787
18788         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18789         Verify that it doesn't overlap with our flags.
18790         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18791         do not have the desired effect in multibyte locales; instead, use
18792         mbscasecmp.
18793         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18794         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
18795         we don't require GNU fnmatch ourselves (if our users require it, they
18796         should do so explicitly).
18797
18798         Fix regex code so it doesn't rely on strcasecmp.
18799         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18800         Otherwise, include gnulib's langinfo.h.
18801         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18802         undesirable behavior in non-C locales.  Instead, rely on localecharset.
18803         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18804         * modules/regex (FILES): Remove m4/codeset.m4.
18805         (Depends-on): Add localcharset.  Remove strcase.
18806
18807 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18808
18809         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18810         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18811
18812 2007-02-13  Bruno Haible  <bruno@clisp.org>
18813
18814         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18815         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18816
18817 2007-02-12  Bruno Haible  <bruno@clisp.org>
18818
18819         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18820         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18821         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18822         time warning rather than a link error.
18823
18824 2007-02-12  Bruno Haible  <bruno@clisp.org>
18825
18826         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18829
18830 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18833         args, not 2.
18834
18835 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18836
18837         New module 'time', so that apps can include <time.h> as per
18838         POSIX and GNU instead of separate include files like time_r.h
18839         and timegm.h.  This implementation tries out a simpler approach
18840         for replacing decls in standard include files (as compared to
18841         the string module), somewhat as an experiment.
18842
18843         * config/srclist.txt: Comment out mktime.c for now.
18844         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18845         since it doesn't apply any more.  Use generic wording instead.
18846         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18847         'time'.
18848         * lib/time_.h, m4/time_h.m4, modules/time: New files.
18849         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18850         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18851         Don't include <sys/types.h>; no longer needed since we assume C89.
18852         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18853         * lib/strftime.c: Likewise.
18854         * lib/time_r.c: Likewise.
18855         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18856         * lib/nanosleep.c: Include <time.h> first, to check interface.
18857         * lib/strptime.c: Likewise.
18858         * lib/time_r.c: Likewise.
18859         * lib/timegm.c: Likewise.
18860         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18861         needed.
18862         * lib/timegm.c: Don't include timegm.h; no longer needed.
18863         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
18864         time.h now handles any problems in that area.
18865         (struct timespec, nanosleep): Remove; time.h now arranges for these.
18866         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
18867         that time.h defines struct timespec.
18868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
18869         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
18870         handles that.
18871         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
18872         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
18873         needed.  Set REPLACE_LOCALTIME.
18874         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
18875         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
18876         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
18877         nanosleep; time_h.m4 now does that.  Don't require
18878         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
18879         module handles this now.
18880         * modules/getdate (Depends-on): Remove timespec.  Add time.
18881         * modules/nanosleep (Depends-on): Likewise.
18882         * modules/stat-time (Depends-on): Likewise.
18883         * modules/nanosleep (Include): Include time.h, not timespec.h.
18884         * modules/strptime (Files): Remove lib/strptime.h.
18885         (Depends-on): Add extensions, time.
18886         (Include): Include time.h, not strptime.h.
18887         * modules/time_r (Files): Remove lib/time_r.h.
18888         (Depends-on): Add time.
18889         (Include): Include time.h, not time_r.h.
18890         * modules/timegm: Likewise.
18891         * modules/timespec (Description): Now does timespec-related decls
18892         of our own, instead of struct timespec itself.
18893         (Depends-on): Add time; remove extensions.
18894         (Maintainer): Add self.
18895         * modules/utimecmp (Depends-on): Add time; remove timespec.
18896         * modules/utimens (Depends-on): Likewise.
18897         * modules/xnanosleep (Depends-on): Likewise.
18898
18899 2007-02-11  Bruno Haible  <bruno@clisp.org>
18900
18901         * lib/c-strstr.c: Include allocsa.h.
18902         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18903         * lib/c-strcasestr.c: Include allocsa.h.
18904         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18905         * lib/strcasestr.c: Include allocsa.h.
18906         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
18907         * lib/mbsstr.c: Include allocsa.h.
18908         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18909         allocsa/freesa instead of malloc/free.
18910         * lib/mbscasestr.c: Include allocsa.h.
18911         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
18912         allocsa/freesa instead of malloc/free.
18913         * modules/c-strstr (Depends-on): Add allocsa.
18914         * modules/c-strcasestr (Depends-on): Likewise.
18915         * modules/strcasestr (Depends-on): Likewise.
18916         * modules/mbsstr (Depends-on): Likewise.
18917         * modules/mbscasestr (Depends-on): Likewise.
18918
18919 2007-02-11  Bruno Haible  <bruno@clisp.org>
18920
18921         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
18922
18923         * modules/mbsspn-tests: New file.
18924         * tests/test-mbsspn.sh: New file.
18925         * tests/test-mbsspn.c: New file.
18926
18927 2007-02-11  Bruno Haible  <bruno@clisp.org>
18928
18929         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
18930
18931         * modules/mbspbrk-tests: New file.
18932         * tests/test-mbspbrk.sh: New file.
18933         * tests/test-mbspbrk.c: New file.
18934
18935 2007-02-11  Bruno Haible  <bruno@clisp.org>
18936
18937         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
18938         unneeded cast.
18939
18940         * modules/mbscspn-tests: New file.
18941         * tests/test-mbscspn.sh: New file.
18942         * tests/test-mbscspn.c: New file.
18943
18944 2007-02-11  Bruno Haible  <bruno@clisp.org>
18945
18946         * modules/mbscasecmp-tests: New file.
18947         * tests/test-mbscasecmp.sh: New file.
18948         * tests/test-mbscasecmp.c: New file.
18949
18950 2007-02-11  Bruno Haible  <bruno@clisp.org>
18951
18952         Ensure O(n) worst-case complexity of mbscasestr.
18953         * lib/mbscasestr.c: Include stdbool.h.
18954         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18955         functions.
18956         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
18957         the bookkeeping indicates that it's worth it.
18958         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
18959
18960         * modules/mbscasestr-tests: New file.
18961         * tests/test-mbscasestr1.c: New file.
18962         * tests/test-mbscasestr2.sh: New file.
18963         * tests/test-mbscasestr2.c: New file.
18964         * tests/test-mbscasestr3.sh: New file.
18965         * tests/test-mbscasestr3.c: New file.
18966         * tests/test-mbscasestr4.sh: New file.
18967         * tests/test-mbscasestr4.c: New file.
18968         * m4/locale-tr.m4: New file.
18969
18970 2007-02-11  Bruno Haible  <bruno@clisp.org>
18971
18972         Ensure O(n) worst-case complexity of mbsstr.
18973         * lib/mbsstr.c: Include stdbool.h.
18974         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
18975         functions.
18976         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
18977         bookkeeping indicates that it's worth it.
18978         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
18979
18980         * modules/mbsstr-tests: New file.
18981         * tests/test-mbsstr1.c: New file.
18982         * tests/test-mbsstr2.sh: New file.
18983         * tests/test-mbsstr2.c: New file.
18984         * tests/test-mbsstr3.sh: New file.
18985         * tests/test-mbsstr3.c: New file.
18986         * m4/locale-fr.m4: New file.
18987
18988 2007-02-11  Bruno Haible  <bruno@clisp.org>
18989
18990         * lib/mbsrchr.c (mbsrchr): Fix bug.
18991
18992         * modules/mbsrchr-tests: New file.
18993         * tests/test-mbsrchr.sh: New file.
18994         * tests/test-mbsrchr.c: New file.
18995
18996 2007-02-11  Bruno Haible  <bruno@clisp.org>
18997
18998         * lib/mbschr.c (mbschr): Fix bug.
18999
19000         * modules/mbschr-tests: New file.
19001         * tests/test-mbschr.sh: New file.
19002         * tests/test-mbschr.c: New file.
19003         * m4/locale-zh.m4: New file.
19004
19005 2007-02-11  Bruno Haible  <bruno@clisp.org>
19006
19007         Support for copying multibyte string iterators.
19008         * lib/mbiter.h: Include <string.h>.
19009         (mbiter_multi_copy): New function.
19010         (mbi_copy): New macro.
19011         * lib/mbuiter.h: Include <string.h>.
19012         (mbuiter_multi_copy): New function.
19013         (mbui_copy): New macro.
19014
19015 2007-02-11  Bruno Haible  <bruno@clisp.org>
19016
19017         New module mbslen.
19018         * modules/mbslen: New file.
19019         * lib/mbslen.c: New file.
19020         * lib/string_.h (mbslen): New declaration.
19021         * m4/mbslen.m4: New file.
19022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19023         GNULIB_MBSLEN.
19024         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19025         * MODULES.html.sh (Internationalization functions): Add mbslen.
19026
19027 2007-02-11  Bruno Haible  <bruno@clisp.org>
19028
19029         Ensure O(n) worst-case complexity of strcasestr substitute.
19030         * lib/strcasestr.c: Include stdbool.h.
19031         (knuth_morris_pratt): New function.
19032         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19033         bookkeeping indicates that it's worth it.
19034         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19035
19036         * modules/strcasestr-tests: New file.
19037         * tests/test-strcasestr.c: New file.
19038
19039 2007-02-11  Bruno Haible  <bruno@clisp.org>
19040
19041         Ensure O(n) worst-case complexity of c_strcasestr.
19042         * lib/c-strcasestr.c: Include stdbool.h, string.h.
19043         (knuth_morris_pratt): New function.
19044         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19045         the bookkeeping indicates that it's worth it.
19046         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19047
19048         * modules/c-strcasestr-tests: New file.
19049         * tests/test-c-strcasestr.c: New file.
19050
19051 2007-02-11  Bruno Haible  <bruno@clisp.org>
19052
19053         Ensure O(n) worst-case complexity of c_strstr.
19054         * lib/c-strstr.c: Include stdbool.h, string.h.
19055         (knuth_morris_pratt): New function.
19056         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19057         bookkeeping indicates that it's worth it.
19058         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19059
19060         * lib/c-strstr.c: Complete rewrite for maintainability.
19061
19062         * modules/c-strstr-tests: New file.
19063         * tests/test-c-strstr.c: New file.
19064
19065 2007-02-11  Bruno Haible  <bruno@clisp.org>
19066
19067         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
19068         5.2.1 and earlier, whereby \055 was treated just like the range
19069         delimiter '-'.
19070         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19071
19072 2007-02-08  Bruno Haible  <bruno@clisp.org>
19073
19074         * modules/regex (Depends-on): Add stdbool.
19075         Reported by Dalibor Topic <robilad@kaffe.org>.
19076
19077 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
19080         Prefer returning from main to exiting from it.
19081         Remove unnecessary parens after sizeof.
19082
19083 2007-02-05  Bruno Haible  <bruno@clisp.org>
19084
19085         New module mbssep.
19086         * modules/mbssep: New file.
19087         * lib/mbssep.c: New file.
19088         * lib/string_.h (strsep): Add a conditional link warning.
19089         (mbssep): New declaration.
19090         * m4/mbssep.m4: New file.
19091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19092         GNULIB_MBSSEP.
19093         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
19094         * MODULES.html.sh (Internationalization functions): Add mbssep.
19095
19096 2007-02-05  Bruno Haible  <bruno@clisp.org>
19097
19098         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
19099         Optimize search in case of 1 delimiter.
19100
19101 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19102
19103         * lib/acl.h: Include sys/types.h before sys/acl.h.
19104
19105 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19106
19107         Merge upstream fix for glibc bugzilla #3957:
19108
19109         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
19110
19111         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
19112         bit for RE_HAT_LISTS_NOT_NEWLINE.
19113         (build_charclass_op): Remove bogus comment.
19114
19115 2007-02-05  Simon Josefsson  <simon@josefsson.org>
19116
19117         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
19118
19119 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19120
19121         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
19122         * lib/memmem.c [!defined _LIBC]: Include config.h.
19123
19124 2007-02-04  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
19127         warning message.
19128
19129 2007-02-04  Bruno Haible  <bruno@clisp.org>
19130
19131         New module mbstok_r.
19132         * modules/mbstok_r: New file.
19133         * lib/mbstok_r.c: New file.
19134         * lib/string_.h (strtok_r): Change argument names to match the
19135         comments. Add a conditional link warning.
19136         (mbstok_r): New declaration.
19137         * m4/mbstok_r.m4: New file.
19138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19139         GNULIB_MBSTOK_R.
19140         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19141         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19142
19143 2007-02-04  Bruno Haible  <bruno@clisp.org>
19144
19145         New module mbsspn.
19146         * modules/mbsspn: New file.
19147         * lib/mbsspn.c: New file.
19148         * lib/string_.h (strspn): Add a conditional link warning.
19149         (mbsspn): New declaration.
19150         * m4/mbsspn.m4: New file.
19151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19152         GNULIB_MBSSPN.
19153         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19154         * MODULES.html.sh (Internationalization functions): Add mbsspn.
19155
19156 2007-02-04  Bruno Haible  <bruno@clisp.org>
19157
19158         New module mbspbrk.
19159         * modules/mbspbrk: New file.
19160         * lib/mbspbrk.c: New file.
19161         * lib/string_.h (strpbrk): Add a conditional link warning.
19162         (mbspbrk): New declaration.
19163         * m4/mbspbrk.m4: New file.
19164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19165         GNULIB_MBSPBRK.
19166         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19167         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19168
19169 2007-02-04  Bruno Haible  <bruno@clisp.org>
19170
19171         New module mbscspn.
19172         * modules/mbscspn: New file.
19173         * lib/mbscspn.c: New file.
19174         * lib/string_.h (strcspn): Add a conditional link warning.
19175         (mbscspn): New declaration.
19176         * m4/mbscspn.m4: New file.
19177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19178         GNULIB_MBSCSPN.
19179         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19180         * MODULES.html.sh (Internationalization functions): Add mbscspn.
19181
19182 2007-02-04  Bruno Haible  <bruno@clisp.org>
19183
19184         New module mbscasestr, reduced goal of strcasestr.
19185         * modules/mbscasestr: New file.
19186         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19187         (mbscasestr): Renamed from strcasestr.
19188         * lib/strcasestr.c: Don't include mbuiter.h.
19189         (strcasestr): Remove support for multibyte locales.
19190         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19191         Change the conditional link warning.
19192         (mbscasestr): New declaration.
19193         * m4/mbscasestr.m4: New file.
19194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19195         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19196         REPLACE_STRCASESTR.
19197         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19199         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19200         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19201         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19202         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19203         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19204         (Depends-on): Remove mbuiter.
19205         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19206
19207 2007-02-04  Bruno Haible  <bruno@clisp.org>
19208
19209         Simplify handling of strncasecmp.
19210         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19211         the conditional link warning.
19212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19213         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19214         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19215         * modules/strcase (configure.ac): Don't invoke
19216         gl_STRING_MODULE_INDICATOR.
19217         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19218
19219 2007-02-04  Bruno Haible  <bruno@clisp.org>
19220
19221         New module mbscasecmp, reduced goal of strcasecmp.
19222         * modules/mbscasecmp: New file.
19223         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19224         (mbscasecmp): Renamed from strcasecmp.
19225         * lib/strcasecmp.c: Don't include mbuiter.h.
19226         (strcasecmp): Remove support for multibyte locales.
19227         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19228         Change the conditional link warning.
19229         (mbscasecmp): New declaration.
19230         * m4/mbscasecmp.m4: New file.
19231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19232         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19233         REPLACE_STRCASECMP.
19234         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19236         GNULIB_MBSCASECMP.
19237         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19238         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19239         * modules/strcase (Files): Remove m4/mbrtowc.m4.
19240         (Depends-on): Remove mbuiter.
19241         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19242
19243 2007-02-04  Bruno Haible  <bruno@clisp.org>
19244
19245         New module mbsstr. Remove module strstr.
19246         * modules/mbsstr: New file.
19247         * modules/strstr: Remove file.
19248         * lib/mbsstr.c: Renamed from lib/strstr.c.
19249         (mbsstr): Renamed from strstr.
19250         * lib/string_.h (strstr): Remove declaration. Change the conditional
19251         link warning.
19252         (mbsstr): New declaration.
19253         * m4/mbsstr.m4: New file.
19254         * m4/strstr.m4: Remove file.
19255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19256         REPLACE_STRSTR.
19257         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19258         Don't initialize GNULIB_STRSTR.
19259         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19260         substitute GNULIB_STRSTR and REPLACE_STRSTR.
19261         * MODULES.html.sh (Internationalization functions): Add mbsstr.
19262         (Support for systems lacking ANSI C 89): Remove strstr.
19263
19264 2007-02-04  Bruno Haible  <bruno@clisp.org>
19265
19266         New module mbsrchr.
19267         * modules/mbsrchr: New file.
19268         * lib/mbsrchr.c: New file.
19269         * lib/string_.h (strrchr): Add a conditional link warning.
19270         (mbsrchr): New declaration.
19271         * m4/mbsrchr.m4: New file.
19272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19273         GNULIB_MBSRCHR.
19274         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19275         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19276
19277 2007-02-04  Bruno Haible  <bruno@clisp.org>
19278
19279         New module mbschr.
19280         * modules/mbschr: New file.
19281         * lib/mbschr.c: New file.
19282         * lib/string_.h (strchr): Add a conditional link warning.
19283         (mbschr): New declaration.
19284         * m4/mbschr.m4: New file.
19285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19286         GNULIB_MBSCHR.
19287         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19288         * MODULES.html.sh (Internationalization functions): Add mbschr.
19289
19290 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19291
19292         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19293
19294         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19295
19296 2007-02-04  Bruno Haible  <bruno@clisp.org>
19297
19298         New module description section 'configure.ac-early'.
19299         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19300         (func_get_autoconf_early_snippet): New function.
19301         (func_import, func_create_testdir): Use it. Remove special cases for
19302         modules 'extensions' and 'lock'.
19303         * modules/extensions (configure.ac-early): Require
19304         gl_USE_SYSTEM_EXTENSIONS.
19305         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19306
19307 2007-02-04  Bruno Haible  <bruno@clisp.org>
19308
19309         Make use of gcj-4.3's -fsource and -ftarget option.
19310         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19311         and if so try the options -fsource and -ftarget.
19312         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19313         source_version, ftarget_option, target_version arguments.
19314         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19315         (is_envjavac_oldgcj_14_14_usable): Renamed from
19316         is_envjavac_gcj_14_14_usable.
19317         (is_envjavac_oldgcj_14_13_usable): Renamed from
19318         is_envjavac_gcj_14_13_usable.
19319         (is_gcj_present): Update.
19320         (is_gcj_43, is_gcj43_usable): New functions.
19321         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19322         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19323         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19324         try the options -fsource and -ftarget.
19325
19326 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19327
19328         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19329         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
19330         larger value.
19331
19332 2007-02-03  Jim Meyering  <jim@meyering.net>
19333
19334         Give tools a better chance to allocate space for very large buffers.
19335         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19336
19337         Make pwd and readlink work also when run with an unreadable parent dir
19338         on systems with openat support.
19339         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19340         provided getcwd function, even when we have openat support.
19341         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19342
19343 2007-02-02  Bruno Haible  <bruno@clisp.org>
19344
19345         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19346         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19347         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19348         portability problems if one of these functions is only used on specific
19349         platforms.
19350         Reported by Paul Eggert.
19351
19352 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19353
19354         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19355         is causing more trouble than it's curing.
19356         * lib/regex_internal.h (__mempcpy): Remove.
19357         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19358         (and make the code a tad smaller to boot).
19359         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19360
19361 2007-02-02  Jim Meyering  <jim@meyering.net>
19362
19363         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19364         section, not in the Makefile.am: one.
19365
19366 2007-02-02  Eric Blake  <ebb9@byu.net>
19367
19368         * lib/strchrnul.c: Always include config.h first.
19369
19370         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19371         gnulib strstr is not necessary here.
19372
19373 2007-02-02  Simon Josefsson  <simon@josefsson.org>
19374
19375         * m4/socklen.m4: Fix typo.
19376
19377 2007-02-02  Eric Blake  <ebb9@byu.net>
19378
19379         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19380         * modules/netinet_in (Makefile.am): Likewise.
19381
19382 2007-02-01  Bruno Haible  <bruno@clisp.org>
19383
19384         * lib/string_.h (GL_LINK_WARNING): New macro.
19385         (strcasecmp, strstr, strcasestr): If provided by the system,
19386         conditionally define as a macro that leads to a warning instead of to
19387         an error.
19388         (strncasecmp): Conditionally define as a macro that leads to a warning.
19389
19390 2007-02-01  Karl Berry  <karl@gnu.org>
19391
19392         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19393
19394 2007-02-01  Bruno Haible  <bruno@clisp.org>
19395
19396         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19397         renamings.
19398
19399 2007-02-01  Eric Blake  <ebb9@byu.net>
19400
19401         * modules/regex (Depends-on): Revert dependence on mempcpy.
19402         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19403         module's definition of mempcpy.
19404         Reported by Paul Eggert.
19405
19406 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19407
19408         * lib/string_.h: If the gnulib module XYZ is not present, undefine
19409         the symbol XYZ before redefining it.  This fixes a problem with
19410         programs that don't use XYZ, when compiled on systems that define
19411         XYZ to something else.
19412
19413 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19414
19415         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19416         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19417         writeable to group or other and (2) is intended to have a special
19418         mode bit that is set or cleared.  In such a case, the directory
19419         should be neither group- nor other-writeable until the special
19420         mode bits are right.
19421
19422 2007-01-31  Eric Blake  <ebb9@byu.net>
19423
19424         * modules/mountlist (Depends-on): Add strstr.
19425
19426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19427         bug.
19428         * modules/string (Makefile.am): Remove redundant replacement.
19429         * modules/regex (Depends-on): Add mempcpy.
19430
19431 2007-01-31  Bruno Haible  <bruno@clisp.org>
19432
19433         New module description field 'Link'.
19434         * gnulib-tool (func_usage): Document --extract-link-directive.
19435         (sed_extract_prog): Recognize 'Link' directive.
19436         (func_get_link_directive): New function.
19437         (func_import): Show summary of link directives.
19438         Handle --extract-link-directive option.
19439         * modules/acl (Link): New section.
19440         * modules/clock-time (Link): New section.
19441         * modules/euidaccess (Link): New section.
19442         * modules/gettext (Link): New section.
19443         * modules/iconv (Link): New section.
19444         * modules/lock (Link): New section.
19445         * modules/nanosleep (Link): New section.
19446         * modules/readline (Link): New section.
19447
19448 2007-01-27  Bruno Haible  <bruno@clisp.org>
19449
19450         Enforce the use of gnulib modules for unportable <string.h> functions.
19451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19452         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19453         (gl_HEADER_STRING_H_BODY): Require it.
19454         * lib/string_.h: If the gnulib module XYZ is not present, redefine
19455         the symbol XYZ to one that gives a link error.
19456         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19457         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19458         * modules/mempcpy (configure.ac): Likewise.
19459         * modules/memrchr (configure.ac): Likewise.
19460         * modules/stpcpy (configure.ac): Likewise.
19461         * modules/stpncpy (configure.ac): Likewise.
19462         * modules/strcase (configure.ac): Likewise.
19463         * modules/strcasestr (configure.ac): Likewise.
19464         * modules/strchrnul (configure.ac): Likewise.
19465         * modules/strdup (configure.ac): Likewise.
19466         * modules/strndup (configure.ac): Likewise.
19467         * modules/strnlen (configure.ac): Likewise.
19468         * modules/strpbrk (configure.ac): Likewise.
19469         * modules/strsep (configure.ac): Likewise.
19470         * modules/strstr (configure.ac): Likewise.
19471         * modules/strtok_r (configure.ac): Likewise.
19472
19473 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
19474
19475         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19476
19477 2007-01-30  Jim Meyering  <jim@meyering.net>
19478
19479         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19480
19481 2007-01-29  Bruno Haible  <bruno@clisp.org>
19482
19483         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19484         * lib/execute.c: Likewise.
19485         * lib/pipe.c: Likewise.
19486         * lib/printf-args.h: Likewise.
19487         * lib/printf-args.c: Likewise.
19488         * lib/printf-parse.c: Likewise.
19489         * lib/vasnprintf.c: Likewise.
19490
19491 2007-01-29  Eric Blake  <ebb9@byu.net>
19492
19493         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19494         declaration.
19495
19496 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19497
19498         * lib/strptime.h (strptime): Use 'restrict' for args where
19499         POSIX requires this.
19500         * lib/strptime.c (strptime): Likewise.
19501         Change license notice from LGPL to GPL, since gnulib-tool will
19502         change this as needed.
19503         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19504         defined.
19505         Include "strptime.h" first, to check interface.
19506         Do not #undef _LIBC and _NL_CURRENT.
19507         Do not include <stdlib.h>; no longer needed.
19508         Include "time_r.h" and declare ptime_locale_status
19509         only if _LIBC is not defined.
19510         (__P): Remove unused macro.
19511         (match_string): Bring back glibc version, but use it only if _LIBC
19512         is defined.
19513         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19514         Remove unnecessary assertion and abort() call.
19515         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19516         * m4/strptime.m4: Fix serial number comment.
19517         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19518         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19519         (Depends-on): Add time_r.
19520
19521 2007-01-29  Bruno Haible  <bruno@clisp.org>
19522
19523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19524         strptime.
19525         * modules/strptime (Depends-on): Add stdbool.
19526         * lib/strptime.h: Include <time.h> always. Add comments.
19527
19528 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19529
19530         * modules/strptime: New file.
19531         * lib/strptime.h: New file.
19532         * lib/strptime.c: New file.
19533         * m4/strptime.m4: New file.
19534
19535 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19536
19537         * MODULES.html.sh: New module mpsort.
19538         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19539
19540         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19541         a circularity problem with HP-UX ia64 reported by Bob Proulx in
19542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19543         All uses changed.
19544         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19545         All uses changed.
19546         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19547         to _Restrict_.
19548         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19549         the parameter matches the prototype.
19550
19551 2007-01-28  Jim Meyering  <jim@meyering.net>
19552
19553         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19554         sys/time.h here, reverting that part of the previous patch:
19555         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19556
19557 2007-01-28  Bruno Haible  <bruno@clisp.org>
19558
19559         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19560         value of $(SYS_TIME_H).
19561         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19562         remove it conditionally, too. [added by Jim Meyering]
19563         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19565         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19566         GETTIMEOFDAY_REPLACEMENT to 1.
19567
19568 2007-01-28  Bruno Haible  <bruno@clisp.org>
19569
19570         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19571         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19573         Set UNISTD_H instead of UNISTD_H2.
19574         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19575
19576 2007-01-28  Bruno Haible  <bruno@clisp.org>
19577
19578         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19579         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19580
19581 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19582
19583         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19584         (func_create_testdir): Ensure C locale for `grep' and `tr'
19585         character ranges.
19586         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
19587         ACLOCAL_AMFLAGS parsing state machine.
19588
19589 2007-01-27  Bruno Haible  <bruno@clisp.org>
19590
19591         * modules/unistr/base: Update.
19592
19593 2007-01-27  Bruno Haible  <bruno@clisp.org>
19594
19595         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19596         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19597         * modules/unistr/u32-mbtouc-unsafe: Renamed from
19598         modules/unistr/u32-mbtouc.
19599         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19600         * lib/unistr.h: Update.
19601         * lib/linebreak.c: Update.
19602         * modules/unistr/u32-mbtouc: Renamed from
19603         modules/unistr/u32-mbtouc-safe.
19604         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19605         * lib/unistr.h: Update.
19606         * lib/unistr/u32-to-u8.c: Update.
19607         * lib/unistr/u32-to-u16.c: Update.
19608
19609 2007-01-27  Bruno Haible  <bruno@clisp.org>
19610
19611         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19612         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19613         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19614         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19615         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19616         * modules/unistr/u16-mbtouc-unsafe: Renamed from
19617         modules/unistr/u16-mbtouc.
19618         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19619         * lib/unistr.h: Update.
19620         * lib/linebreak.c: Update.
19621         * modules/linebreak: Update.
19622         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19623         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19624         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19625         * modules/unistr/u16-mbtouc: Renamed from
19626         modules/unistr/u16-mbtouc-safe.
19627         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19628         * lib/unistr.h: Update.
19629         * lib/unistr/u16-to-u8.c: Update.
19630         * modules/unistr/u16-to-u8: Update.
19631         * lib/unistr/u16-to-u32.c: Update.
19632         * modules/unistr/u16-to-u32: Update.
19633
19634 2007-01-27  Bruno Haible  <bruno@clisp.org>
19635
19636         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19637         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19638         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19639         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19640         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19641         * modules/unistr/u8-mbtouc-unsafe: Renamed from
19642         modules/unistr/u8-mbtouc.
19643         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19644         * lib/unistr.h: Update.
19645         * lib/striconveh.c: Update.
19646         * modules/striconveh: Update.
19647         * lib/linebreak.c: Update.
19648         * modules/linebreak: Update.
19649         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19650         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19651         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19652         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19653         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19654         * lib/unistr.h: Update.
19655         * lib/striconveh.c: Update.
19656         * modules/striconveh: Update.
19657         * lib/unistr/u8-to-u16.c: Update.
19658         * modules/unistr/u8-to-u16: Update.
19659         * lib/unistr/u8-to-u32.c: Update.
19660         * modules/unistr/u8-to-u32: Update.
19661
19662 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19663
19664         Sync from Libtool.
19665         * lib/argz.c: Do not include strings.h nor memory.h, include
19666         string.h unconditionally.  Patch by Simon Josefsson.
19667
19668 2007-01-27  Bruno Haible  <bruno@clisp.org>
19669
19670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19671         from gl_HEADER_STRING_H_BODY.
19672         (gl_HEADER_STRING_H_BODY): Require it.
19673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19675         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19676         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19678         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19680         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19681         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19683         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19684         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19685         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19688
19689 2007-01-27  Bruno Haible  <bruno@clisp.org>
19690
19691         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19692         check_PROGRAMS into noinst_PROGRAMS.
19693         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19694         check_PROGRAMS in this case.
19695         (func_import): Set for_test to false.
19696         (func_create_testdir): Set for_test to true.
19697
19698 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19699             Bruno Haible  <bruno@clisp.org>
19700
19701         * modules/strcasestr (Files): Remove lib/strcasestr.h.
19702         (Depends-on): Add string.
19703         (Includes): Use <string.h> instead of strcasestr.h.
19704         * modules/string (Makefile.am): Also substitute the value of
19705         REPLACE_STRCASESTR.
19706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19707         assume strcasestr is declared in <string.h> not <strings.h>. Also
19708         set REPLACE_STRCASESTR.
19709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19710         REPLACE_STRCASESTR.
19711         * lib/strcasestr.h: Remove file.
19712         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19713         * lib/string_.h (strcasestr): New declaration.
19714
19715 2007-01-27  Bruno Haible  <bruno@clisp.org>
19716
19717         * lib/string_.h: Use 'extern'.
19718
19719 2007-01-27  Jim Meyering  <jim@meyering.net>
19720
19721         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19722         of set-but-not-used local, "q".
19723
19724         * lib/mempcpy.c: Include <config.h> before <string.h>.
19725         This fixes a compilation error on HP-UX, due to the system's
19726         "restrict"-using mempcpy prototype.
19727
19728 2007-01-26  Bruno Haible  <bruno@clisp.org>
19729
19730         Small optimization.
19731         * lib/javacomp.c: Include c-strstr.h.
19732          (is_envjavac_gcj): Use c_strstr instead of strstr.
19733         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19734
19735 2007-01-26  Bruno Haible  <bruno@clisp.org>
19736
19737         * MODULES.html.sh (Unicode string functions): Add the new modules.
19738
19739         * modules/uniconv/u32-strconv-to-locale: New file.
19740         * lib/uniconv/u32-strconv-to-locale.c: New file.
19741
19742         * modules/uniconv/u16-strconv-to-locale: New file.
19743         * lib/uniconv/u16-strconv-to-locale.c: New file.
19744
19745         * modules/uniconv/u8-strconv-to-locale: New file.
19746         * lib/uniconv/u8-strconv-to-locale.c: New file.
19747
19748         * modules/uniconv/u32-strconv-from-locale: New file.
19749         * lib/uniconv/u32-strconv-from-locale.c: New file.
19750
19751         * modules/uniconv/u16-strconv-from-locale: New file.
19752         * lib/uniconv/u16-strconv-from-locale.c: New file.
19753
19754         * modules/uniconv/u8-strconv-from-locale: New file.
19755         * lib/uniconv/u8-strconv-from-locale.c: New file.
19756
19757         * modules/uniconv/u32-strconv-to-enc: New file.
19758         * lib/uniconv/u32-strconv-to-enc.c: New file.
19759         * modules/uniconv/u32-strconv-to-enc-tests: New file.
19760         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19761
19762         * modules/uniconv/u16-strconv-to-enc: New file.
19763         * lib/uniconv/u16-strconv-to-enc.c: New file.
19764         * lib/uniconv/u-strconv-to-enc.h: New file.
19765         * modules/uniconv/u16-strconv-to-enc-tests: New file.
19766         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19767
19768         * modules/uniconv/u8-strconv-to-enc: New file.
19769         * lib/uniconv/u8-strconv-to-enc.c: New file.
19770         * modules/uniconv/u8-strconv-to-enc-tests: New file.
19771         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19772
19773         * modules/uniconv/u32-strconv-from-enc: New file.
19774         * lib/uniconv/u32-strconv-from-enc.c: New file.
19775         * modules/uniconv/u32-strconv-from-enc-tests: New file.
19776         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19777
19778         * modules/uniconv/u16-strconv-from-enc: New file.
19779         * lib/uniconv/u16-strconv-from-enc.c: New file.
19780         * modules/uniconv/u16-strconv-from-enc-tests: New file.
19781         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19782
19783         * modules/uniconv/u8-strconv-from-enc: New file.
19784         * lib/uniconv/u8-strconv-from-enc.c: New file.
19785         * lib/uniconv/u-strconv-from-enc.h: New file.
19786         * modules/uniconv/u8-strconv-from-enc-tests: New file.
19787         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19788
19789         * modules/uniconv/u32-conv-from-enc: New file.
19790         * lib/uniconv/u32-conv-from-enc.c: New file.
19791         * modules/uniconv/u32-conv-from-enc-tests: New file.
19792         * tests/uniconv/test-u32-conv-from-enc.c: New file.
19793
19794         * modules/uniconv/u16-conv-from-enc: New file.
19795         * lib/uniconv/u16-conv-from-enc.c: New file.
19796         * lib/uniconv/u-conv-from-enc.h: New file.
19797         * modules/uniconv/u16-conv-from-enc-tests: New file.
19798         * tests/uniconv/test-u16-conv-from-enc.c: New file.
19799
19800         * modules/uniconv/u8-conv-from-enc: New file.
19801         * lib/uniconv/u8-conv-from-enc.c: New file.
19802         * modules/uniconv/u8-conv-from-enc-tests: New file.
19803         * tests/uniconv/test-u8-conv-from-enc.c: New file.
19804
19805         * modules/uniconv/base: New file.
19806         * lib/uniconv.h: New file.
19807
19808 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19809
19810         * doc/gnulib-tool.texi (Initial import): Update to match current
19811         behavior with strdup module.
19812         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19813         * lib/memmem.h: Remove; all uses removed.  This is now done
19814         by <string.h>.
19815         * lib/mempcpy.h: Likewise.
19816         * lib/memrchr.h: Likewise.
19817         * lib/stpcpy.h: Likewise.
19818         * lib/stpncpy.h: Likewise.
19819         * lib/strcase.h: Likewise.
19820         * lib/strchrnul.h: Likewise.
19821         * lib/strdup.h: Likewise.
19822         * lib/strndup.h: Likewise.
19823         * lib/strnlen.h: Likewise.
19824         * lib/strpbrk.h: Likewise.
19825         * lib/strsep.h: Likewise.
19826         * lib/strstr.h: Likewise.
19827         * lib/strtok_r.h: Likewise.
19828         * lib/string_.h: New file.
19829         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19830         Rely on <string.h> instead.
19831         * lib/canon-host.c: Likewise.
19832         * lib/chdir-long.c: Likewise.
19833         * lib/concatpath.c: Likewise.
19834         * lib/exclude.c: Likewise.
19835         * lib/fchdir.c: Likewise.
19836         * lib/getaddrinfo.c: Likewise.
19837         * lib/getcwd.c: Likewise.
19838         * lib/getsubopt.c: Likewise.
19839         * lib/glob.c: Likewise.
19840         * lib/hard-locale.c: Likewise.
19841         * lib/iconvme.c: Likewise.
19842         * lib/javacomp.c: Likewise.
19843         * lib/mempcpy.c: Likewise.
19844         * lib/memrchr.c: Likewise.
19845         * lib/regex_internal.h: Likewise.
19846         * lib/stpncpy.c: Likewise.
19847         * lib/strcasecmp.c: Likewise.
19848         * lib/strchrnul.c: Likewise.
19849         * lib/strdup.c: Likewise.
19850         * lib/striconv.c: Likewise.
19851         * lib/striconveh.c: Likewise.
19852         * lib/striconveha.c: Likewise.
19853         * lib/strncasecmp.c: Likewise.
19854         * lib/strndup.c: Likewise.
19855         * lib/strnlen.c: Likewise.
19856         * lib/strsep.c: Likewise.
19857         * lib/strstr.c: Likewise.
19858         * lib/strtok_r.c: Likewise.
19859         * lib/userspec.c: Likewise.
19860         * lib/w32spawn.h: Likewise.
19861         * lib/xstrndup.c: Likewise.
19862         * lib/mountlist.c (strstr): Remove decl.
19863         * m4/string_h.m4: New file.
19864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
19865         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
19866         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
19867         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
19868         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
19869         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
19870         Set REPLACE_STRCASECMP if necessary.
19871         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
19872         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
19873         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
19874         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
19875         HAVE_DECL_STRDUP if necessary.
19876         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
19877         since gl_FUNC_STRNDUP does that now.
19878         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
19879         Check for decl here...
19880         (gl_PREREQ_STRNLEN): ... not here.
19881         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
19882         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
19883         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
19884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
19885         necessary.
19886         * modules/string: New file.
19887         * modules/memmem (Files): Remove special-purpose include file.
19888         (Depends-on): Add string.
19889         (Include): Include <string.h>, not the removed file.
19890         * modules/mempcpy: Likewise.
19891         * modules/memrchr: Likewise.
19892         * modules/stpcpy: Likewise.
19893         * modules/stpncpy: Likewise.
19894         * modules/strcase: Likewise.
19895         * modules/strchrnul: Likewise.
19896         * modules/strdup: Likewise.
19897         * modules/strndup: Likewise.
19898         * modules/strnlen: Likewise.
19899         * modules/strpbrk: Likewise.
19900         * modules/strsep: Likewise.
19901         * modules/strstr: Likewise.
19902         * modules/strtok_r: Likewise.
19903         * tests/test-dirname.c: Don't include "strdup.h", since
19904         <string.h> now suffices.
19905         * tests/test-memmem.c: Don't include "memmem.h", since
19906         <string.h> now suffices.
19907
19908 2007-01-25  Bruno Haible  <bruno@clisp.org>
19909
19910         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
19911         *resultp is 0.
19912
19913         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
19914         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
19915         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
19916         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
19917
19918         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
19919         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
19920         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
19921         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
19922         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
19923         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
19924
19925 2007-01-24  Bruno Haible  <bruno@clisp.org>
19926
19927         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
19928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
19929         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
19930         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
19931         gl_FUNC_FTS_CORE.
19932         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
19933         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
19934         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19935         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
19936         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
19937         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
19938         gl_FUNC_FCHOWNAT.
19939         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
19940         gl_FUNC_STRFTIME.
19941         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
19942         Reported by Ralf Wildenhues.
19943
19944 2007-01-24  Bruno Haible  <bruno@clisp.org>
19945
19946         Drop AC_REQUIRE calls that are redundant with the module dependencies.
19947         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
19948         gl_GETADDRINFO.
19949         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
19950         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
19951         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
19952
19953 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
19954
19955         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
19956         Don't use 'exit'; just return from 'main'.
19957         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
19958
19959         * lib/fnmatch_.h: Readjust white space and comments to match
19960         glibc, to avoid spurious diffs.
19961
19962 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19963
19964         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
19965         2004-12-01 change by Jakub Jelinek, since this code won't compile
19966         if !LIBC.  Problem reported by Bob Proulx.
19967
19968 2007-01-23  Bruno Haible  <bruno@clisp.org>
19969
19970         * lib/striconveh.c: Include c-strcaseeq.h.
19971         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
19972         * modules/striconveh (Depends-on): Add c-strcaseeq.
19973
19974 2007-01-23  Bruno Haible  <bruno@clisp.org>
19975
19976         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
19977
19978         * modules/c-strcaseeq: New file.
19979         * lib/c-strcaseeq.h: New file.
19980
19981         * modules/streq: New file.
19982         * lib/streq.h: New file.
19983
19984 2007-01-23  Bruno Haible  <bruno@clisp.org>
19985
19986         * modules/striconveha-tests: New file.
19987         * tests/test-striconveha.c: New file.
19988
19989         * lib/striconveha.h: Include <stdbool.h>.
19990         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
19991         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
19992         (mem_iconveha_notranslit): Renamed from mem_iconveha.
19993         (mem_iconveha): New function.
19994         (str_iconveha_notranslit): Renamed from str_iconveha.
19995         (str_iconveha): New function.
19996         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
19997         c-strcase.
19998
19999 2007-01-23  Bruno Haible  <bruno@clisp.org>
20000
20001         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20002         encodings without forgiving before trying any encoding with handler.
20003         (str_iconveha): Try all encodings without forgiving before trying any
20004         encoding with handler.
20005
20006 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20007
20008         Import the following changes from libc.
20009
20010         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20011
20012         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20013
20014         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20015
20016         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20017         normal_bracket label.
20018
20019         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
20020
20021         [BZ #361]
20022         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20023         to normal_bracket after fetching the next character.
20024
20025 2007-01-22  Bruno Haible  <bruno@clisp.org>
20026
20027         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20028         argument.
20029         * lib/striconveh.c (iconv_carefully_1): New function.
20030         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20031         argument.
20032         (str_cd_iconveh): Update.
20033         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20034         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20035         * tests/test-striconveh.c (MAGIC): New macro.
20036         (new_offsets): New function.
20037         (main): Test call with and without offsets.
20038
20039 2007-01-22  Bruno Haible  <bruno@clisp.org>
20040
20041         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20042         * modules/sys_select (Makefile.am): Likewise.
20043         * modules/sys_socket (Makefile.am): Likewise.
20044         * modules/sys_time (Makefile.am): Likewise.
20045
20046 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20047
20048         * modules/gettimeofday (License): Change from GPL to LGPL, since
20049         gettimeofday is a library function.
20050
20051 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20052
20053         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20054
20055 2007-01-21  Bruno Haible  <bruno@clisp.org>
20056
20057         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20058
20059 2007-01-21  Bruno Haible  <bruno@clisp.org>
20060
20061         * modules/striconveha: New file.
20062         * lib/striconveha.h: New file.
20063         * lib/striconveha.c: New file.
20064         * MODULES.html.sh (Internationalization functions): Add striconveha.
20065         * lib/striconv.c (str_iconv): Optimize the case of an empty input
20066         string.
20067         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
20068
20069 2007-01-21  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
20072         * lib/striconveh.c (str_iconveh): Likewise.
20073
20074 2007-01-21  Bruno Haible  <bruno@clisp.org>
20075
20076         * lib/striconveh.h (mem_iconveh): New declaration.
20077         * lib/striconveh.c (mem_iconveh): New function.
20078         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
20079
20080 2007-01-21  Bruno Haible  <bruno@clisp.org>
20081
20082         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
20083
20084         * lib/striconveh.h (mem_cd_iconveh): Change specification.
20085         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
20086         original result buffer.
20087         (str_cd_iconveh): Update.
20088         * tests/test-striconveh.c (main): Update.
20089
20090         * lib/striconv.h (mem_cd_iconv): Change specification.
20091         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
20092         result buffer.
20093         (str_cd_iconv): Update.
20094         * tests/test-striconv.c (main): Update.
20095
20096 2007-01-21  Bruno Haible  <bruno@clisp.org>
20097
20098         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
20099
20100 2007-01-20  Jim Meyering  <jim@meyering.net>
20101
20102         * lib/userspec.c (parse_with_separator): If a user or group string
20103         starts with "+", skip the corresponding name-to-ID look-up, since
20104         such a look-up must fail: user and group names may not include "+".
20105
20106 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20107
20108         * lib/poll.c: Include sys/time.h and time.h unconditionally,
20109         since we now assume the sys_time module.
20110         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
20111         check for sys/time.h; no longer needed.
20112         * modules/poll (Depends-on): Depend on sys_time.
20113
20114 2007-01-18  Bruno Haible  <bruno@clisp.org>
20115
20116         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
20117         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20118
20119         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
20120         gettimeofday.
20121
20122         * tests/test-gettimeofday.c: Include <time.h>.
20123         (dummy): Remove variable.
20124
20125         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
20126         gl_HEADER_SYS_TIME_H.
20127         (gl_HEADER_SYS_TIME_H): New macro.
20128
20129         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
20130         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20131         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20132         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20133         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
20135         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
20136         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20137         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20138         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20139         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20140
20141         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20142         last change; it caused a compilation error when cross-compiling to
20143         Cygwin.
20144
20145 2007-01-18  Jim Meyering  <jim@meyering.net>
20146
20147         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20148         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20149         than the race-prone "test -d sys || mkdir sys".
20150         (configure.ac): Use AC_PROG_MKDIR_P.
20151         * modules/sys_select: Likewise.
20152         * modules/sys_socket: Likewise.
20153         * modules/sys_time: Likewise.
20154
20155 2007-01-18  Eric Blake  <ebb9@byu.net>
20156
20157         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20158         replace gettimeofday.
20159         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20160         name, to avoid infinite recursion.
20161
20162 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
20163
20164         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20165         module sys_time.
20166         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20167         assume timespec.h defines struct timeval.
20168         * lib/settime.c: Likewise.
20169         * lib/utimens.c: Likewise.
20170         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20171         since we now assume the gettimeofday module.
20172         * lib/tempname.c (__gen_tempname): Likewise.
20173         * lib/gettimeofday.h: Remove.
20174         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20175         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20176         Include <time.h>, for 'time()'.
20177         (localtime_buffer_addr): Also use this workaround if
20178         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
20179         to simplify the uses.  All uses changed.
20180         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20181         that #undef is inside {}, and 'const' follows type name consistently.
20182         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20183         (gettimeofday): Do not use the maximum possible value for
20184         tv->tv_usec, since that might break usages other than ls.c.
20185         Instead, we'll leave ls.c alone.  This undoes today's patch
20186         by Bruno.  Add a compile-time warning for 1s-clock resolution;
20187         we've never observed the problem but might as well keep the
20188         canary.
20189         * lib/nanosleep.c: Include timespec.h first, for interface check.
20190         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20191         now assume the sys_time module.
20192         * lib/tempname.c: Likewise.
20193         * lib/timespec.h: Likewise.
20194         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20195         needed.
20196         * lib/strftime.c: Likewise.
20197         * lib/timespec.h: Likewise.
20198         * lib/posixtm.c: Include posixtm.h first, for interface check.
20199         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20200         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20201         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20202         * lib/sys_time_.h: New file.
20203         * lib/timespec.h (struct timespec): Use long int, not long.
20204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20205         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20206         Remove obsolescent call to AC_HEADER_TIME.
20207         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20210         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20211         Likewise.
20212         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20213         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20214         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20215         into the sys_time module.  Check for gettimeofday just once.
20216         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
20217         for gettimeofday signature to just check the signature.  Merely
20218         compile it, since linking doesn't test signature.  Improve test for
20219         whether gettimeofday.o is actually needed.
20220         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20221         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
20222         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
20223         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20224         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20225         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20226         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20227         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20228         than worrying about sys/time.h.
20229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20230         Don't bother worrying about TIME_WITH_SYS_TIME.
20231         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20232         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20233         * m4/sys_time_h.m4: New file.
20234         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20235         Don't include sys/time.h.  Return from main rather than exiting.
20236         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20237         all uses changed.
20238         * modules/gethrxtime (Depends-on): Add sys_time.
20239         * modules/gettime (Depends-on): Likewise.
20240         * modules/gettimeofday (Depends-on): Likewise.
20241         * modules/nanosleep (Depends-on): Likewise.
20242         * modules/settime (Depends-on): Likewise.
20243         * modules/tempname (Depends-on): Likewise.
20244         * modules/utimens (Depends-on): Likewise.
20245         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20246         (Include:) Change back to <sys/time.h>.
20247         (Maintainer:) Add self.
20248         * modules/sys_time: New file.
20249         * modules/tempname (Depends-on): Add gettimeofday.
20250         * tests/test-gettimeofday.c: Include <sys/time.h>
20251         rather than gettimeofday.h.
20252
20253 2007-01-17  Bruno Haible  <bruno@clisp.org>
20254
20255         * gnulib-tool (func_get_license): Revert last patch. Instead, let
20256         the license default to GPL.
20257         (func_create_testdir): Don't complain if a module is LGPL and its
20258         tests module depends on GPLed modules.
20259
20260 2007-01-17  Bruno Haible  <bruno@clisp.org>
20261
20262         * lib/gettimeofday.c (gettimeofday): Add code for the case
20263         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20264         maximum possible value for tv->tv_usec, rather than the minimum one.
20265
20266 2005-10-08  Martin Lambers  <marlam@marlam.de>
20267 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20268 2007-01-16  Bruno Haible  <bruno@clisp.org>
20269
20270         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20271         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20272         gl_FUNC_GETTIMEOFDAY.
20273         (Include): Add gettimeofday.h.
20274         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20275         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20276         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20277         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20278         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20279         * lib/gettimeofday.h: New file.
20280         * lib/gettimeofday.c: Include <sys/timeb.h>.
20281         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20282         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20283         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20284         fall back on time().
20285
20286         * tests/test-gettimeofday.c: New file.
20287         * modules/gettimeofday-tests: New file.
20288
20289 2007-01-16  Eric Blake  <ebb9@byu.net>
20290
20291         * modules/fnmatch (Depends-on): Depend on wchar.
20292         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20293         * m4/fnmatch.m4: Likewise.
20294         * modules/mbchar (Makefile.am): Assume <wchar.h>.
20295         * m4/mbchar.m4: Likewise.
20296         * modules/mbswidth (Depends-on): Depend on wchar.
20297         * lib/mbswidth.c: Assume <wchar.h>.
20298         * m4/mbswidth.m4: Likewise.
20299         * modules/quotearg (Depends-on): Depend on wchar.
20300         * lib/quotearg.c: Assume <wchar.h>.
20301         * m4/quotearg.m4: Likewise.
20302         * modules/regex (Depends-on): Depend on wchar.
20303         * lib/regex_internal.h: Assume <wchar.h>.
20304         * m4/regex.m4: Likewise.
20305         * modules/stdint (Depends-on): Depend on wchar.
20306         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20307         * m4/stdint.m4: Likewise.
20308         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20309         * modules/strftime (Depends-on): Depend on wchar.
20310         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20311         * modules/strtol (Depends-on): Depend on wchar.
20312         * lib/strtol.c: Assume <wchar.h>.
20313         * modules/wcwidth (Depends-on): Depend on wchar.
20314         * lib/wcwidth.h: Assume <wchar.h>.
20315         * m4/wcwidth.m4: Likewise.
20316
20317 2007-01-16  Bruno Haible  <bruno@clisp.org>
20318
20319         * modules/csharpexec-script: New, created from...
20320         * modules/csharpexec: ... this.
20321
20322 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20323
20324         * modules/javaexec-script: New, created from...
20325         * modules/javaexec: ... this.
20326
20327 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20328
20329         * modules/poll (Dependencies): Add sys_select.
20330
20331 2007-01-15  Jim Meyering  <jim@meyering.net>
20332
20333         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20334         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20335         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
20336         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20337
20338 2007-01-15  Bruno Haible  <bruno@clisp.org>
20339
20340         * modules/striconveh: New file.
20341         * lib/striconveh.h: New file.
20342         * lib/striconveh.c: New file.
20343         * MODULES.html.sh (Internationalization functions): Add striconveh.
20344
20345         * modules/striconveh-tests: New file.
20346         * tests/test-striconveh.c: New file.
20347
20348 2007-01-15  Bruno Haible  <bruno@clisp.org>
20349
20350         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20351         not from GNU libiconv or GNU libc.
20352
20353 2007-01-15  Bruno Haible  <bruno@clisp.org>
20354
20355         * doc/gnulib-intro.texi (Copyright): Explain the different license
20356         terms for module descriptions, autoconf macros, tests, documentation.
20357
20358 2007-01-14  Bruno Haible  <bruno@clisp.org>
20359
20360         * modules/striconv-tests: New file.
20361         * tests/test-striconv.c: New file.
20362
20363 2007-01-14  Bruno Haible  <bruno@clisp.org>
20364
20365         * modules/iconv-tests: New file.
20366         * tests/test-iconv.c: New file.
20367
20368 2007-01-14  Bruno Haible  <bruno@clisp.org>
20369
20370         * gnulib-tool (func_get_license): For test modules, use the license of
20371         the main module.
20372
20373 2007-01-14  Bruno Haible  <bruno@clisp.org>
20374
20375         * modules/iconv (Include): Clarify that <iconv.h> can only be included
20376         if iconv is found to exist.
20377
20378 2007-01-14  Bruno Haible  <bruno@clisp.org>
20379
20380         * modules/c-ctype-tests: New file.
20381         * tests/test-c-ctype.c: New file.
20382
20383 2007-01-14  Bruno Haible  <bruno@clisp.org>
20384
20385         * modules/binary-io-tests: New file.
20386         * tests/test-binary-io.sh: New file.
20387         * tests/test-binary-io.c: New file.
20388
20389 2007-01-14  Bruno Haible  <bruno@clisp.org>
20390
20391         * modules/array-oset-tests: New file.
20392         * tests/test-array_oset.c: New file.
20393
20394 2007-01-14  Bruno Haible  <bruno@clisp.org>
20395
20396         * modules/array-list-tests: New file.
20397         * tests/test-array_list.c: New file.
20398
20399 2007-01-14  Bruno Haible  <bruno@clisp.org>
20400
20401         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20402         and make.
20403         Reported by Simon Josefsson in
20404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20405
20406 2007-01-14  Bruno Haible  <bruno@clisp.org>
20407
20408         * modules/allocsa-tests: New file.
20409         * tests/test-allocsa.c: New file.
20410
20411 2007-01-14  Bruno Haible  <bruno@clisp.org>
20412
20413         * modules/fchdir (Depends-on): Add absolute-header.
20414         * modules/unistd (Depends-on): Likewise.
20415
20416 2006-12-30  Bruno Haible  <bruno@clisp.org>
20417
20418         * modules/fchdir: New file.
20419         * modules/unistd (Files): Add lib/unistd_.h.
20420         (Makefile.am): Generate unistd.h from unistd_.h.
20421         * lib/fchdir.c: New file.
20422         * lib/dirent_.h: New file.
20423         * lib/unistd_.h: New file.
20424         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20425         * m4/fchdir.m4: New file.
20426         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20427         (gl_HEADER_UNISTD): Invoke it.
20428         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20429         function.
20430         * lib/backupfile.c (opendir, closedir): Undefine.
20431         * lib/chown.c (open, close): Undefine.
20432         * lib/clean-temp.c (open, close): Undefine.
20433         * lib/copy-file.c (open, close): Undefine.
20434         * lib/execute.c (open, close): Undefine.
20435         * lib/fsusage.c (open, close): Undefine.
20436         * lib/gc-gnulib.c (open, close): Undefine.
20437         * lib/getcwd.c (opendir, closedir): Undefine.
20438         * lib/glob.c (opendir, closedir): Undefine.
20439         * lib/javacomp.c (open, close): Undefine.
20440         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20441         * lib/openat-proc.c (open, close): Undefine.
20442         * lib/pagealign_alloc.c (open, close): Undefine.
20443         * lib/pipe.c (open, close): Undefine.
20444         * lib/progreloc.c (open, close): Undefine.
20445         * lib/savedir.c (opendir, closedir): Undefine.
20446         * lib/utime.c (open, close): Undefine.
20447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20448
20449 2007-01-10  Bruno Haible  <bruno@clisp.org>
20450
20451         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20452
20453 2007-01-12  Eric Blake  <ebb9@byu.net>
20454
20455         Provide a robust <wchar.h>.  Further simplifications are now
20456         possible in other modules, but not included here.
20457         * modules/wchar: New module.
20458         * m4/wchar.m4: New file.
20459         * lib/wchar_.h: Likewise.
20460         * modules/mbchar (Depends-on): Depend on wchar, as the first use
20461         of the new module.
20462         * MODULES.html.sh (Extended multibyte and wide character utilities):
20463         New section.
20464
20465 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20468         to a reasonable default for memory allocation.
20469         (xreadlink): Don't allocate a huge buffer, to work around a buggy
20470         file system that reports garbage st_size values for symlinks.
20471         Problem reported by Liyang Hu.
20472
20473 2007-01-11  Simon Josefsson  <simon@josefsson.org>
20474
20475         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20476         Emacs .#* auto-save files).
20477
20478 2007-01-11  Bruno Haible  <bruno@clisp.org>
20479
20480         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20481         directory.
20482
20483 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20484
20485         Use @...@ consistently in lib/wctype_.h.
20486         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20487         on it being set to 1 or 0.
20488         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20489         go back to AC_SUBSTing it.
20490         * modules/wctype (Makefile.am): Undo previous change.
20491
20492 2007-01-10  Eric Blake  <ebb9@byu.net>
20493
20494         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20495         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20496         * modules/wctype (Makefile.am): Likewise.
20497         Reported by Chris McGuire.
20498
20499 2007-01-10  Jim Meyering  <jim@meyering.net>
20500
20501         fts.c: a small readability/maintainability improvement
20502         * lib/fts.c (fts_read): Make this code slightly more readable and
20503         maintainable by hoisting the "sp->fts_cur = p" assignments to
20504         immediately follow the statements that set P.  Derived from
20505         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20506
20507 2007-01-10  Eric Blake  <ebb9@byu.net>
20508
20509         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20510         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20512         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20513         Reported by Chris McGuire.
20514
20515 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20516
20517         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20518         in sed script.
20519
20520 2007-01-09  Bruno Haible  <bruno@clisp.org>
20521
20522         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20523         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20524         variables.
20525         (func_module): Use them.
20526
20527 2007-01-09  Bruno Haible  <bruno@clisp.org>
20528
20529         * modules/unistr/base: New file.
20530         * lib/unistr.h: New file.
20531
20532         * modules/unistr/u8-to-u16: New file.
20533         * lib/unistr/u8-to-u16.c: New file.
20534
20535         * modules/unistr/u8-to-u32: New file.
20536         * lib/unistr/u8-to-u32.c: New file.
20537
20538         * modules/unistr/u16-to-u8: New file.
20539         * lib/unistr/u16-to-u8.c: New file.
20540
20541         * modules/unistr/u16-to-u32: New file.
20542         * lib/unistr/u16-to-u32.c: New file.
20543
20544         * modules/unistr/u32-to-u8: New file.
20545         * lib/unistr/u32-to-u8.c: New file.
20546
20547         * modules/unistr/u32-to-u16: New file.
20548         * lib/unistr/u32-to-u16.c: New file.
20549
20550         * modules/unistr/u8-check: New file.
20551         * modules/unistr/u16-check: New file.
20552         * modules/unistr/u32-check: New file.
20553         * lib/unistr/u8-check.c: New file.
20554         * lib/unistr/u16-check.c: New file.
20555         * lib/unistr/u32-check.c: New file.
20556
20557         * modules/unistr/u8-chr: New file.
20558         * modules/unistr/u16-chr: New file.
20559         * modules/unistr/u32-chr: New file.
20560         * lib/unistr/u8-chr.c: New file.
20561         * lib/unistr/u16-chr.c: New file.
20562         * lib/unistr/u32-chr.c: New file.
20563
20564         * modules/unistr/u8-cmp: New file.
20565         * modules/unistr/u16-cmp: New file.
20566         * modules/unistr/u32-cmp: New file.
20567         * lib/unistr/u8-cmp.c: New file.
20568         * lib/unistr/u16-cmp.c: New file.
20569         * lib/unistr/u32-cmp.c: New file.
20570
20571         * modules/unistr/u8-cpy: New file.
20572         * modules/unistr/u16-cpy: New file.
20573         * modules/unistr/u32-cpy: New file.
20574         * lib/unistr/u8-cpy.c: New file.
20575         * lib/unistr/u16-cpy.c: New file.
20576         * lib/unistr/u32-cpy.c: New file.
20577         * lib/unistr/u-cpy.h: New file.
20578
20579         * modules/unistr/u8-cpy-alloc: New file.
20580         * modules/unistr/u16-cpy-alloc: New file.
20581         * modules/unistr/u32-cpy-alloc: New file.
20582         * lib/unistr/u8-cpy-alloc.c: New file.
20583         * lib/unistr/u16-cpy-alloc.c: New file.
20584         * lib/unistr/u32-cpy-alloc.c: New file.
20585         * lib/unistr/u-cpy-alloc.h: New file.
20586
20587         * modules/unistr/u8-endswith: New file.
20588         * modules/unistr/u16-endswith: New file.
20589         * modules/unistr/u32-endswith: New file.
20590         * lib/unistr/u8-endswith.c: New file.
20591         * lib/unistr/u16-endswith.c: New file.
20592         * lib/unistr/u32-endswith.c: New file.
20593         * lib/unistr/u-endswith.h: New file.
20594
20595         * modules/unistr/u8-mblen: New file.
20596         * modules/unistr/u16-mblen: New file.
20597         * modules/unistr/u32-mblen: New file.
20598         * lib/unistr/u8-mblen.c: New file.
20599         * lib/unistr/u16-mblen.c: New file.
20600         * lib/unistr/u32-mblen.c: New file.
20601
20602         * modules/unistr/u8-mbtouc: New file.
20603         * modules/unistr/u16-mbtouc: New file.
20604         * modules/unistr/u32-mbtouc: New file.
20605         * lib/unistr/u8-mbtouc.c: New file.
20606         * lib/unistr/u16-mbtouc.c: New file.
20607         * lib/unistr/u32-mbtouc.c: New file.
20608
20609         * modules/unistr/u8-mbtouc-safe: New file.
20610         * modules/unistr/u16-mbtouc-safe: New file.
20611         * modules/unistr/u32-mbtouc-safe: New file.
20612         * lib/unistr/u8-mbtouc-safe.c: New file.
20613         * lib/unistr/u16-mbtouc-safe.c: New file.
20614         * lib/unistr/u32-mbtouc-safe.c: New file.
20615
20616         * modules/unistr/u8-move: New file.
20617         * modules/unistr/u16-move: New file.
20618         * modules/unistr/u32-move: New file.
20619         * lib/unistr/u8-move.c: New file.
20620         * lib/unistr/u16-move.c: New file.
20621         * lib/unistr/u32-move.c: New file.
20622         * lib/unistr/u-move.h: New file.
20623
20624         * modules/unistr/u8-next: New file.
20625         * modules/unistr/u16-next: New file.
20626         * modules/unistr/u32-next: New file.
20627         * lib/unistr/u8-next.c: New file.
20628         * lib/unistr/u16-next.c: New file.
20629         * lib/unistr/u32-next.c: New file.
20630
20631         * modules/unistr/u8-prev: New file.
20632         * modules/unistr/u16-prev: New file.
20633         * modules/unistr/u32-prev: New file.
20634         * lib/unistr/u8-prev.c: New file.
20635         * lib/unistr/u16-prev.c: New file.
20636         * lib/unistr/u32-prev.c: New file.
20637
20638         * modules/unistr/u8-set: New file.
20639         * modules/unistr/u16-set: New file.
20640         * modules/unistr/u32-set: New file.
20641         * lib/unistr/u8-set.c: New file.
20642         * lib/unistr/u16-set.c: New file.
20643         * lib/unistr/u32-set.c: New file.
20644         * lib/unistr/u-set.h: New file.
20645
20646         * modules/unistr/u8-startswith: New file.
20647         * modules/unistr/u16-startswith: New file.
20648         * modules/unistr/u32-startswith: New file.
20649         * lib/unistr/u8-startswith.c: New file.
20650         * lib/unistr/u16-startswith.c: New file.
20651         * lib/unistr/u32-startswith.c: New file.
20652         * lib/unistr/u-startswith.h: New file.
20653
20654         * modules/unistr/u8-stpcpy: New file.
20655         * modules/unistr/u16-stpcpy: New file.
20656         * modules/unistr/u32-stpcpy: New file.
20657         * lib/unistr/u8-stpcpy.c: New file.
20658         * lib/unistr/u16-stpcpy.c: New file.
20659         * lib/unistr/u32-stpcpy.c: New file.
20660         * lib/unistr/u-stpcpy.h: New file.
20661
20662         * modules/unistr/u8-stpncpy: New file.
20663         * modules/unistr/u16-stpncpy: New file.
20664         * modules/unistr/u32-stpncpy: New file.
20665         * lib/unistr/u8-stpncpy.c: New file.
20666         * lib/unistr/u16-stpncpy.c: New file.
20667         * lib/unistr/u32-stpncpy.c: New file.
20668         * lib/unistr/u-stpncpy.h: New file.
20669
20670         * modules/unistr/u8-strcat: New file.
20671         * modules/unistr/u16-strcat: New file.
20672         * modules/unistr/u32-strcat: New file.
20673         * lib/unistr/u8-strcat.c: New file.
20674         * lib/unistr/u16-strcat.c: New file.
20675         * lib/unistr/u32-strcat.c: New file.
20676         * lib/unistr/u-strcat.h: New file.
20677
20678         * modules/unistr/u8-strchr: New file.
20679         * modules/unistr/u16-strchr: New file.
20680         * modules/unistr/u32-strchr: New file.
20681         * lib/unistr/u8-strchr.c: New file.
20682         * lib/unistr/u16-strchr.c: New file.
20683         * lib/unistr/u32-strchr.c: New file.
20684
20685         * modules/unistr/u8-strcmp: New file.
20686         * modules/unistr/u16-strcmp: New file.
20687         * modules/unistr/u32-strcmp: New file.
20688         * lib/unistr/u8-strcmp.c: New file.
20689         * lib/unistr/u16-strcmp.c: New file.
20690         * lib/unistr/u32-strcmp.c: New file.
20691
20692         * modules/unistr/u8-strcpy: New file.
20693         * modules/unistr/u16-strcpy: New file.
20694         * modules/unistr/u32-strcpy: New file.
20695         * lib/unistr/u8-strcpy.c: New file.
20696         * lib/unistr/u16-strcpy.c: New file.
20697         * lib/unistr/u32-strcpy.c: New file.
20698         * lib/unistr/u-strcpy.h: New file.
20699
20700         * modules/unistr/u8-strcspn: New file.
20701         * modules/unistr/u16-strcspn: New file.
20702         * modules/unistr/u32-strcspn: New file.
20703         * lib/unistr/u8-strcspn.c: New file.
20704         * lib/unistr/u16-strcspn.c: New file.
20705         * lib/unistr/u32-strcspn.c: New file.
20706         * lib/unistr/u-strcspn.h: New file.
20707
20708         * modules/unistr/u8-strdup: New file.
20709         * modules/unistr/u16-strdup: New file.
20710         * modules/unistr/u32-strdup: New file.
20711         * lib/unistr/u8-strdup.c: New file.
20712         * lib/unistr/u16-strdup.c: New file.
20713         * lib/unistr/u32-strdup.c: New file.
20714         * lib/unistr/u-strdup.h: New file.
20715
20716         * modules/unistr/u8-strlen: New file.
20717         * modules/unistr/u16-strlen: New file.
20718         * modules/unistr/u32-strlen: New file.
20719         * lib/unistr/u8-strlen.c: New file.
20720         * lib/unistr/u16-strlen.c: New file.
20721         * lib/unistr/u32-strlen.c: New file.
20722         * lib/unistr/u-strlen.h: New file.
20723
20724         * modules/unistr/u8-strmblen: New file.
20725         * modules/unistr/u16-strmblen: New file.
20726         * modules/unistr/u32-strmblen: New file.
20727         * lib/unistr/u8-strmblen.c: New file.
20728         * lib/unistr/u16-strmblen.c: New file.
20729         * lib/unistr/u32-strmblen.c: New file.
20730
20731         * modules/unistr/u8-strmbtouc: New file.
20732         * modules/unistr/u16-strmbtouc: New file.
20733         * modules/unistr/u32-strmbtouc: New file.
20734         * lib/unistr/u8-strmbtouc.c: New file.
20735         * lib/unistr/u16-strmbtouc.c: New file.
20736         * lib/unistr/u32-strmbtouc.c: New file.
20737
20738         * modules/unistr/u8-strncat: New file.
20739         * modules/unistr/u16-strncat: New file.
20740         * modules/unistr/u32-strncat: New file.
20741         * lib/unistr/u8-strncat.c: New file.
20742         * lib/unistr/u16-strncat.c: New file.
20743         * lib/unistr/u32-strncat.c: New file.
20744         * lib/unistr/u-strncat.h: New file.
20745
20746         * modules/unistr/u8-strncmp: New file.
20747         * modules/unistr/u16-strncmp: New file.
20748         * modules/unistr/u32-strncmp: New file.
20749         * lib/unistr/u8-strncmp.c: New file.
20750         * lib/unistr/u16-strncmp.c: New file.
20751         * lib/unistr/u32-strncmp.c: New file.
20752
20753         * modules/unistr/u8-strncpy: New file.
20754         * modules/unistr/u16-strncpy: New file.
20755         * modules/unistr/u32-strncpy: New file.
20756         * lib/unistr/u8-strncpy.c: New file.
20757         * lib/unistr/u16-strncpy.c: New file.
20758         * lib/unistr/u32-strncpy.c: New file.
20759         * lib/unistr/u-strncpy.h: New file.
20760
20761         * modules/unistr/u8-strnlen: New file.
20762         * modules/unistr/u16-strnlen: New file.
20763         * modules/unistr/u32-strnlen: New file.
20764         * lib/unistr/u8-strnlen.c: New file.
20765         * lib/unistr/u16-strnlen.c: New file.
20766         * lib/unistr/u32-strnlen.c: New file.
20767         * lib/unistr/u-strnlen.h: New file.
20768
20769         * modules/unistr/u8-strpbrk: New file.
20770         * modules/unistr/u16-strpbrk: New file.
20771         * modules/unistr/u32-strpbrk: New file.
20772         * lib/unistr/u8-strpbrk.c: New file.
20773         * lib/unistr/u16-strpbrk.c: New file.
20774         * lib/unistr/u32-strpbrk.c: New file.
20775         * lib/unistr/u-strpbrk.h: New file.
20776
20777         * modules/unistr/u8-strrchr: New file.
20778         * modules/unistr/u16-strrchr: New file.
20779         * modules/unistr/u32-strrchr: New file.
20780         * lib/unistr/u8-strrchr.c: New file.
20781         * lib/unistr/u16-strrchr.c: New file.
20782         * lib/unistr/u32-strrchr.c: New file.
20783
20784         * modules/unistr/u8-strspn: New file.
20785         * modules/unistr/u16-strspn: New file.
20786         * modules/unistr/u32-strspn: New file.
20787         * lib/unistr/u8-strspn.c: New file.
20788         * lib/unistr/u16-strspn.c: New file.
20789         * lib/unistr/u32-strspn.c: New file.
20790         * lib/unistr/u-strspn.h: New file.
20791
20792         * modules/unistr/u8-strstr: New file.
20793         * modules/unistr/u16-strstr: New file.
20794         * modules/unistr/u32-strstr: New file.
20795         * lib/unistr/u8-strstr.c: New file.
20796         * lib/unistr/u16-strstr.c: New file.
20797         * lib/unistr/u32-strstr.c: New file.
20798         * lib/unistr/u-strstr.h: New file.
20799
20800         * modules/unistr/u8-strtok: New file.
20801         * modules/unistr/u16-strtok: New file.
20802         * modules/unistr/u32-strtok: New file.
20803         * lib/unistr/u8-strtok.c: New file.
20804         * lib/unistr/u16-strtok.c: New file.
20805         * lib/unistr/u32-strtok.c: New file.
20806         * lib/unistr/u-strtok.h: New file.
20807
20808         * modules/unistr/u8-uctomb: New file.
20809         * modules/unistr/u16-uctomb: New file.
20810         * modules/unistr/u32-uctomb: New file.
20811         * lib/unistr/u8-uctomb.c: New file.
20812         * lib/unistr/u16-uctomb.c: New file.
20813         * lib/unistr/u32-uctomb.c: New file.
20814
20815         * MODULES.html.sh (Unicode string functions): Add the new modules.
20816
20817 2007-01-08  Bruno Haible  <bruno@clisp.org>
20818
20819         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20820         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20821         subdirectories.
20822
20823 2007-01-08  Karl Berry  <karl@gnu.org>
20824
20825         * doc/error.texi: mention that main() fns must set program_name
20826         when progname is used.
20827
20828 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
20829
20830         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20831         WCTYPE_H is empty, for the benefit of builds from non-distclean
20832         directories.  Problem reported by Eric Blake in
20833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20834
20835 2007-01-08  Bruno Haible  <bruno@clisp.org>
20836
20837         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20838         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20839         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20840         PROVIDE_CANONICALIZE_FILENAME_MODE.
20841         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20842
20843 2007-01-08  Bruno Haible  <bruno@clisp.org>
20844
20845         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20846         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20847         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20848         * lib/fts.c: Likewise.
20849         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20850
20851 2006-12-25  Bruno Haible  <bruno@clisp.org>
20852
20853         * modules/utf8-ucs4-safe: New file.
20854         * lib/utf8-ucs4-safe.h: New file.
20855         * lib/unistr/utf8-ucs4-safe.c: New file.
20856
20857         * modules/utf16-ucs4-safe: New file.
20858         * lib/utf16-ucs4-safe.h: New file.
20859         * lib/unistr/utf16-ucs4-safe.c: New file.
20860
20861         * MODULES.html.sh (Unicode string functions): Add the new modules.
20862
20863 2007-01-08  Bruno Haible  <bruno@clisp.org>
20864
20865         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
20866         (Depends-on): Add unitypes.
20867         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20868         (u8_mbtouc_aux): Move out to separate file.
20869         (u8_mbtouc): Use ucs4_t, uint8_t types.
20870         * lib/unistr/utf8-ucs4.c: New file.
20871
20872         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
20873         (Depends-on): Add unitypes.
20874         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
20875         (u16_mbtouc_aux): Move out to separate file.
20876         (u16_mbtouc): Use ucs4_t, uint16_t types.
20877         * lib/unistr/utf16-ucs4.c: New file.
20878
20879         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
20880         (Depends-on): Add unitypes.
20881         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
20882         (u8_uctomb_aux): Move out to separate file.
20883         (u8_uctomb): Use ucs4_t, uint8_t types.
20884         * lib/unistr/ucs4-utf8.c: New file.
20885
20886         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
20887         (Depends-on): Add unitypes.
20888         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
20889         (u16_uctomb_aux): Move out to separate file.
20890         (u16_uctomb): Use ucs4_t, uint16_t types.
20891         * lib/unistr/ucs4-utf16.c: New file.
20892
20893 2006-12-25  Bruno Haible  <bruno@clisp.org>
20894
20895         * modules/unitypes: New file.
20896         * lib/unitypes.h: New file.
20897         * MODULES.html.sh (func_all_modules): New section "Unicode string
20898         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
20899         this section. Add unitypes.
20900
20901 2007-01-08  Bruno Haible  <bruno@clisp.org>
20902
20903         Avoid variable names that conflict with those from libtool.
20904         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
20905         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
20906         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
20907         library_names_spec to acl_library_names_spec, hardcode_* to
20908         acl_hardcode_*.
20909         Reported by Ralf Wildenhues.
20910
20911 2007-01-08  Bruno Haible  <bruno@clisp.org>
20912
20913         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
20914         definition.
20915         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
20916         definition.
20917         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
20918         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
20919         definition.
20920         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
20921         definition.
20922         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
20923         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
20924         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
20925         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
20926         definition.
20927         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
20928         definition.
20929         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
20930         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
20931         GC_USE_<algorithm>.
20932         * lib/gc-libgcrypt.c: Likewise.
20933         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
20934         * modules/gc-arctwo (configure.ac): Likewise.
20935         * modules/gc-des (configure.ac): Likewise.
20936         * modules/gc-hmac-md5 (configure.ac): Likewise.
20937         * modules/gc-hmac-sha1 (configure.ac): Likewise.
20938         * modules/gc-md2 (configure.ac): Likewise.
20939         * modules/gc-md4 (configure.ac): Likewise.
20940         * modules/gc-md5 (configure.ac): Likewise.
20941         * modules/gc-random (configure.ac): Likewise.
20942         * modules/gc-rijndael (configure.ac): Likewise.
20943         * modules/gc-sha1 (configure.ac): Likewise.
20944
20945 2007-01-08  Bruno Haible  <bruno@clisp.org>
20946
20947         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
20948         macro definition.
20949         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
20950         definition.
20951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
20952         definition.
20953         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
20954         * modules/fcntl-safer (configure.ac): Likewise.
20955         * modules/fopen-safer (configure.ac): Likewise.
20956         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
20957         GNULIB_FWRITEERROR macro definition.
20958
20959 2007-01-08  Bruno Haible  <bruno@clisp.org>
20960
20961         * m4/gnulib-common.m4: New file.
20962         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
20963         (func_get_filelist): Add m4/gnulib-common.m4.
20964
20965 2007-01-08  Bruno Haible  <bruno@clisp.org>
20966
20967         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
20968         command.
20969
20970 2007-01-08  Jim Meyering  <jim@meyering.net>
20971
20972         Use a more robust test for a "can't happen" condition.
20973         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
20974         narrowed the st_size value.  Presuming the "can't happen" condition
20975         is true, that narrowing could conceivably convert an invalid st_size
20976         value into a valid one.  Instead, use a change based on Matthew
20977         Woehlke's original patch.
20978
20979         Slight readability improvement: use an assert-like macro
20980         in place of literal "abort ()" uses.
20981         * lib/fts.c (fts_assert): Define.
20982         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
20983         Use this macro instead of a bare 'abort'.
20984
20985 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         Don't worry about using IRIX 5.3's wctype.h broken definitions;
20988         simply work around them.
20989         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
20990         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
20991         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
20992         declaring.
20993         Don't bother to define as macros, since the standard doesn't require it.
20994         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
20995         longer worry about IRIX 5.3.
20996         (HAVE_WCTYPE_CTMP_BUG): Remove.
20997
20998 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20999
21000         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21001         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
21002         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21003         Problems reported by Georg Schwarz for IRIX 5.3.
21004
21005         * gnulib-tool (autoconf_minversion): Take the maximum version number
21006         found, not the minimum.  Problem reported by James Youngman.
21007
21008 2007-01-03  Karl Berry  <karl@gnu.org>
21009
21010         * doc/error.texi: new file, explaining interaction with progname.
21011         * doc/gnulib.texi: include it.  Update copyright.
21012
21013 2007-01-03  Simon Josefsson  <simon@josefsson.org>
21014
21015         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21016         AC_CANONICAL_HOST, to improve autobuild outputs.
21017
21018 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
21019             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21020
21021         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21022         sockets, server sockets, and other file descriptors.  Count errors
21023         to compute the return value.  Reorder the code a bit to be easier
21024         to follow.  Don't set event bits that were not requested (except
21025         POLLERR and POLLHUP).
21026
21027 2007-01-01  Bruno Haible  <bruno@clisp.org>
21028
21029         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21030
21031 2007-01-03  Jim Meyering  <jim@meyering.net>
21032
21033         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
21034
21035 2007-01-02  Bruno Haible  <bruno@clisp.org>
21036
21037         * modules/settime (Include): Require timespec.h.
21038         * modules/nanosleep (Include): Likewise.
21039
21040 2007-01-01  Bruno Haible  <bruno@clisp.org>
21041
21042         * gnulib-tool (func_emit_copyright_notice): Bump year.
21043         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21044
21045 2007-01-01  Bruno Haible  <bruno@clisp.org>
21046
21047         Improve support for OpenBSD.
21048         * build-aux/config.rpath (libname_spec): Export.
21049         (library_names_spec): New variable. Export.
21050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21051         library_names_spec from the config.rpath output. Locate shared library
21052         through the name pattern in library_names_spec.
21053
21054 2007-01-01  Eric Blake  <ebb9@byu.net>
21055
21056         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21057
21058 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21059
21060         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21061         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
21062         assume the C locale, and avoid an "eval" that could cause trouble.
21063         Problem with SORT reported by Bob Proulx.
21064
21065         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
21066         Define.  Trivial patch from Henning Nielsen Lund, originally
21067         sent to bug-grep@gnu.org today.
21068
21069 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21070
21071         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
21072         struct stat.  Problem reported by Henning Nielsen Lund.
21073         * lib/acl.c: Include acl.h first, to check interface.  Don't
21074         bother to include sys/types.h and sys/stat.h again.
21075
21076 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         Import the following change from libc; problem reported by
21079         Sven Verdoolaege.
21080
21081         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
21082
21083         [BZ #1373]
21084         * lib/argp.h: Remove __NTH for __argp_usage inline function.
21085
21086 2006-12-28  Jim Meyering  <jim@meyering.net>
21087
21088         * build-aux/announce-gen: Do not assume that the package
21089         builds any of tar.gz, tar.bz2, and .xdelta files.
21090         Suggestion from Simon Josefsson.
21091
21092 2006-12-28  Simon Josefsson  <simon@josefsson.org>
21093
21094         * modules/announce-gen: New file.
21095
21096 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21097
21098         * lib/mbchar.h: Just include <wctype.h>; the wctype module
21099         handles its gotchas now.
21100         * lib/mbswidth.c: Likewise.
21101         * lib/wcwidth.h: Likewise.
21102         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
21103         and iswcntrl; the wctype module does this stuff now.
21104         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21106         * modules/mbchar (Depends-on): Add wctype.
21107         * modules/mbswidth (Depends-on): Likewise.
21108         * modules/wcwidth (Depends-on): Likewise.
21109
21110 2006-12-27  Eric Blake  <ebb9@byu.net>
21111
21112         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
21113         module uses more than what <wctype.h> is required to provide.
21114
21115 2006-12-26  Eric Blake  <ebb9@byu.net>
21116
21117         * gnulib-tool (sed_extract_prog): Avoid space-tab.
21118
21119 2006-12-26  Eric Blake  <ebb9@byu.net>
21120
21121         * modules/absolute-header: New module.
21122         * modules/fcntl (Depends-on): Depend on it.
21123         * modules/inttypes (Depends-on): Likewise.
21124         * modules/stdint (Depends-on): Likewise.
21125         * modules/sys_stat (Depends-on): Likewise.
21126         * modules/wctype (Depends-on): Likewise.
21127         * MODULES.html.sh (Support for building libraries and
21128         executables): Document it.
21129
21130 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21131
21132         * gnulib-tool (SED): Remove, undoing previous change.
21133         The problem was that it broke coreutils on Solaris, because
21134         "sed --posix" leaked into a makefile.
21135         (sed): New alias, if 'alias' and GNU sed.
21136
21137 2006-12-24  Jim Meyering  <jim@meyering.net>
21138
21139         Work around an fchownat bug in glibc-2.4:
21140         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21141         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21142         in spite of the -P option.
21143         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21144         New macros.
21145         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21146         * modules/openat (Files): Add lib/fchownat.c.
21147         * lib/openat.c (fchownat): Don't define here.  Move to...
21148         * lib/fchownat.c: ...this new file.
21149
21150 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21151
21152         Fix bug reported by Bruno Haible in
21153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21154         where quotearg.c didn't compile on Mac OS X 10.2 because it
21155         lacks <wchar.h> and wint_t.
21156         * lib/wctype_.h (__wctype_wint_t): New type.
21157         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21158         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21159         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21160         Arg is now of type __wctype_wint_t, not wint_t.
21161         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21162         substitute HAVE_WINT_T.
21163         * modules/wctype (Files): Add m4/wint_t.m4.
21164         (wctype.h): Substitute HAVE_WINT_T.
21165
21166 2006-12-23  Bruno Haible  <bruno@clisp.org>
21167
21168         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21169
21170 2006-12-23  Bruno Haible  <bruno@clisp.org>
21171
21172         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21173         S_ISLNK.
21174         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21175         mingw.
21176
21177 2006-12-22  Bruno Haible  <bruno@clisp.org>
21178
21179         * lib/copy-file.c: Include acl.h.
21180         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21181         Close the file descriptors only after being done with copy_acl.
21182         * modules/copy-file (Depends-on): Add acl.
21183
21184 2006-12-22  Bruno Haible  <bruno@clisp.org>
21185
21186         * gnulib-tool (SED): New variable.
21187         Use $SED instead of sed everywhere.
21188
21189 2006-12-22  Bruno Haible  <bruno@clisp.org>
21190
21191         * modules/no-c++: New file.
21192         * m4/no-c++.m4: New file.
21193         * MODULES.html.sh (Support for building libraries and executables):
21194         Add no-c++.
21195
21196 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21197
21198         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21199         Include <limits.h>, and use its INT_MAX to rewrite the
21200         j loop so that it does not overflow 'int'.  Problem reported by
21201         Ralf Wildenhues in
21202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21203         Play it safe by shifting left by 1 rather than multiplying by 2,
21204         as GCC is less likely to optimize this away when the value
21205         is signed (when it assumes overflow leads to undefined behavior).
21206         Also, don't assume time_t uses two's complement.
21207
21208 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         * MODULES.html.sh: New module wctype.
21211         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21212         * lib/fnmatch.c: Don't bother to include <wchar.h> before
21213         <wctype.h>, since the new wctype module should fix this.
21214         * lib/quotearg.c: Include <wctype.h> unconditionally, since
21215         the wctype module should arrange for it.
21216         * lib/regex_internal.h: Likewise.
21217         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21218         since the wctype module should handle this now.
21219         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21220         * modules/fnmatch (Depends-on): Add wctype.
21221         * modules/quotearg (Depends-on): Likewise.
21222         * modules/regex (Depends-on): Likewise.
21223
21224 2006-12-19  Bruno Haible  <bruno@clisp.org>
21225
21226         * lib/strdup.h [C++]: Wrap definitions in extern "C".
21227         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21228
21229 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21230
21231         * modules/savewd (Depends-on): Fix dependency on fcntl.
21232
21233 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21234
21235         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21236         conforms to C99, rather than relying on the user's environment
21237         setting of STDINT_H.
21238
21239 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21240         and Eric Blake  <ebb9@byu.net>
21241
21242         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21243         This is more consistent with the other defines here.
21244         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21245         Port to z/OS.  Problem reported by Paul Gilmartin.
21246         Change local vars to use gl_ prefix rather than ac_.
21247         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21248         with other defines.
21249         * modules/double-slash-root: New module.
21250         * modules/dirname (Files): Remove m4/double-slash-root.m4.
21251         (Depends-on): Add double-slash-root.
21252         * MODULES.html.sh (File system functions): Mention new module.
21253
21254 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21255
21256         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21257         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21258         This is for the benefit of gzip, which doesn't do i18n.
21259
21260 2006-12-12  Jim Meyering  <jim@meyering.net>
21261
21262         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21263         Reported by Andreas Schwab <schwab@suse.de>.
21264
21265 2006-12-12  Bruno Haible  <bruno@clisp.org>
21266
21267         Merge these changes.
21268         2006-09-05  Bruno Haible  <bruno@clisp.org>
21269         * lib/iconvme.c (iconv_string): No need to save and restore errno when
21270         iconv_alloc succeeded.
21271         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21272         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21273         test for " && dest " at the end - dest is always != NULL there. Call
21274         iconv with 4xNULL arguments initially, to reset the state. Call iconv
21275         with 2xNULL arguments, also to flush the state storage. Handle the
21276         IRIX iconv behaviour. Realloc the final result, to throw away unused
21277         memory.
21278
21279 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
21280
21281         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21282         and fchmodat unconditionally, since glibc 2.4 has them.
21283         Problem reported by Arkadiusz Miskiewicz.
21284
21285 2006-12-10  Bruno Haible  <bruno@clisp.org>
21286
21287         * gnulib-tool (func_import): Show the include files only for those
21288         modules that are copied and specified.
21289         Reported by Karl Berry.
21290
21291 2006-12-08  Jim Meyering  <jim@meyering.net>
21292
21293         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21294         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
21295
21296         * build-aux/announce-gen: Add two new options, both optional:
21297         --bootstrap-tools=TOOL_LIST
21298               a comma-separated list of tools, e.g.,
21299               autoconf,automake,bison,gnulib
21300         --gnulib-snapshot-date=DATE
21301               if gnulib is in the bootstrap tool list,
21302               then report this as the snapshot date.
21303               If not specified, use the current date/time.
21304               If you specify a date here, be sure it's UTC.
21305
21306 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21307
21308         * tests/test-argp-2.sh: Fix test to match actual output.
21309         (func_compare): Fix sed script to be portable.
21310
21311 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
21312
21313         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21314         workaround for this case.  It is not autoconfigured now; offhand
21315         it's hard to see how to autoconfigure it.
21316
21317 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21318
21319         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21320         a directory that is about to be chowned.  Such a directory's
21321         initial file permissions should permit the owner only and this
21322         should not be changed until after the chown, since the group and
21323         other bits would be incorrect if they granted permission before
21324         the chown.
21325
21326         Fix porting problem for iswctype reported by Georg Schwarz in:
21327         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21328         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21329         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21330         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21331         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21332
21333 2006-12-03  Jim Meyering  <jim@meyering.net>
21334
21335         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21336         p->fts_statp may not yet be defined.
21337         (fts_read): Instead, set it in the caller, once p->fts_statp is
21338         sure to be defined, and corresponds to a top-level directory.
21339         This bug made du -x fail.  Here's the coreutils test case:
21340         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21341         Reported by Mike Frysinger.
21342
21343 2006-12-01  Jim Meyering  <jim@meyering.net>
21344
21345         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21346         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21347         Reported by Simon Josefsson.
21348
21349 2006-11-30  Jim Meyering  <jim@meyering.net>
21350
21351         * m4/warning.m4: Use the all-permissive copyright notice
21352         recommended by RMS (rather than LGPL).
21353         * m4/vararrays.m4: Likewise.
21354         * m4/flexmember.m4: Likewise.
21355
21356 2006-11-29  Bruno Haible  <bruno@clisp.org>
21357
21358         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21359         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21360         using +=.
21361         Reported by Simon Josefsson <simon@josefsson.org>.
21362
21363 2006-11-28  James Youngman <jay@gnu.org>
21364
21365         * README: Advise users that they might find the bug-gnulib@gnu.org
21366         and autotools-announce@gnu.org mailing lists useful.
21367
21368 2006-11-28  Bruno Haible  <bruno@clisp.org>
21369
21370         * m4/ptrdiff_max.m4: Remove file.
21371
21372 2006-11-21  Bruno Haible  <bruno@clisp.org>
21373
21374         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21375         _AC_COMPUTE_INT.
21376         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21377         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21378         _AC_COMPUTE_INT.
21379         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21380         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21381         _AC_COMPUTE_INT.
21382         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21383
21384 2006-11-28  Jim Meyering  <jim@meyering.net>
21385
21386         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21387         warning from "gcc -Wshadow" about shadowing the builtin.
21388
21389 2006-11-27  Bruno Haible  <bruno@clisp.org>
21390
21391         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21392         _AC_COMPUTE_INT.
21393         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21394
21395 2006-11-27  Bruno Haible  <bruno@clisp.org>
21396             Paul Eggert  <eggert@cs.ucla.edu>
21397
21398         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21399
21400 2006-11-26  Bruno Haible  <bruno@clisp.org>
21401
21402         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21403         noinst_LTLIBRARIES.
21404
21405 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21406             Bruno Haible  <bruno@clisp.org>
21407
21408         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21409         if compiling with "gcc -ansi".
21410
21411 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21412
21413         Fix some incompatibilities with gcc -ansi -pedantic.
21414         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21415         if compiling pedantically with GCC, unless it's C99 or later.
21416         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21417         it mishandles gcc -ansi -pedantic as well.
21418         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21419         if gcc -pedantic.
21420         * lib/regexec.c (check_node_accept_bytes): Don't use auto
21421         initializers for struct if -pedantic, unless it's C99 or later.
21422
21423 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
21424
21425         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21426         Don't close an fd more than once. Identical atimes indicate
21427         success, not failure.
21428
21429 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
21430
21431         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21432
21433 2006-11-23  Jim Meyering  <jim@meyering.net>
21434
21435         * build-aux/announce-gen: New file.  From coreutils.
21436
21437 2006-11-22  Jim Meyering  <jim@meyering.net>
21438
21439         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21440         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21441         (fts_read): Use a temporary to narrow the overused st_size member
21442         before using it in a switch statement.  Reported by Matthew Woehlke.
21443
21444         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21445         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21446
21447 2006-11-20  Bruno Haible  <bruno@clisp.org>
21448
21449         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21450         changequote instead of pairs of brackets.
21451         Reported by Andreas Schwab <schwab@suse.de>.
21452
21453 2006-11-21  Jim Meyering  <jim@meyering.net>
21454
21455         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21456         so as to remain compatible with older compilers.
21457         Patch from Michael Deutschmann.
21458
21459 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21460
21461         * MODULES.html.sh (File system functions): Add openat.
21462
21463         * lib/openat.h (rpl_fstatat): New macro, if
21464         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21465         (fstatat): Define to rpl_fstatat under the same conditions,
21466         unless COMPILING_FSTATAT.
21467         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21468         seems to have the bug.
21469         * lib/fstatat.c: New file.
21470         * modules/openat (Files): Add it.
21471
21472 2006-11-20  Bruno Haible  <bruno@clisp.org>
21473
21474         * Makefile: New file.
21475
21476 2006-11-20  Jim Meyering  <jim@meyering.net>
21477
21478         The beginnings of syntax-related checks for gnulib.
21479         * lib/Makefile: New file.
21480         * lib/t-idcache: New script.  Ensure that the two halves of
21481         idcache.c stay in sync.
21482
21483         * lib/idcache.c: Adjust comments in user- and group- portions to
21484         be more accurate, and to be consistent with one another.
21485
21486 2006-11-20  Jim Meyering  <jim@meyering.net>
21487
21488         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21489         continue using the flexible array member (thus, this module performs
21490         half as many malloc calls), with the addition that...
21491         (getgroup, getuser): Consistently record a non-match via an empty
21492         "name" string, and map an empty string match to a NULL return value.
21493         * modules/idcache (Depends-on): Re-add flexmember.
21494
21495         * lib/idcache.c (getuser): Remove all uses of the register keyword.
21496         (getuidbyname, getgroup, getgidbyname): Likewise.
21497
21498         Use cleaner syntax: NULL rather than 0.
21499         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21500
21501 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21502
21503         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21504         It mishandled the case where the group was missing.
21505         Problem reported by Greg Schafer.
21506         * modules/idcache: Likewise.
21507
21508 2006-11-18  Jim Meyering  <jim@meyering.net>
21509
21510         * check-module (%exempt_header): Add exception for some
21511         conditionally-included headers.
21512
21513         * modules/i-ring (Depends-on): Add verify.
21514         (License): Change to LGPL.
21515
21516 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21519         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21520         and inttostr.h.  Use snprintf rather than uinttostr, so that
21521         LGPLed code doesn't depend on GPLed.
21522
21523 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21524
21525         * modules/inline (License): Change from GPL to LGPL.
21526
21527 2006-11-17  Jim Meyering  <jim@meyering.net>
21528
21529         * modules/d-type (License): Switch to LGPL.
21530
21531 2006-11-15  Bruno Haible  <bruno@clisp.org>
21532
21533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21534
21535 2006-11-15  Eric Blake  <ebb9@byu.net>
21536
21537         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21538         the module dependency.
21539
21540 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21541             Bruno Haible  <bruno@clisp.org>
21542
21543         * gnulib-tool (func_create_testdir): Add license consistency check.
21544
21545 2006-11-15  Eric Blake  <ebb9@byu.net>
21546
21547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21548         random "(cached)" in configure output.
21549
21550 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21551
21552         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21553         test for conforming inttypes.h is both announced and cached.
21554
21555         * MODULES.html.sh (seen_modules, seen_files): New variables.
21556         (func_module): Rewrite to use a few less gnulib-tool and sed
21557         invocations.  Avoid a couple of quadratic algorithms for ...
21558         (missed_modules, missed_files): ... these, with ...
21559         (func_append, func_tmpdir): ... these new functions, from
21560         gnulib-tool.  Analogously, install traps for cleanup.
21561
21562         * tests/test-gc.c (main): Remove unused variables.
21563         * tests/test-read-file.c: Include stdlib.h, for 'free'.
21564
21565 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         * modules/inttostr (License): Change to LGPL.
21568
21569 2006-11-14  Eric Blake  <ebb9@byu.net>
21570
21571         * modules/tempname (License): Change to LGPL.
21572
21573 2006-11-14  Eric Blake  <ebb9@byu.net>
21574
21575         * doc/functions.texi (Function Portability): *printf functions on
21576         Cygwin now understand all POSIX size specifiers.
21577
21578 2006-11-14  Bruno Haible  <bruno@clisp.org>
21579
21580         * modules/c-ctype (License): Change to LGPL.
21581
21582 2006-11-12  Bruno Haible  <bruno@clisp.org>
21583
21584         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21585         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21586         for GNOME libraries, for which the include files are installed in
21587         subdirectories of $prefix/include.
21588
21589 2006-11-12  Bruno Haible  <bruno@clisp.org>
21590
21591         * m4/lib-link.m4: Require at least autoconf-2.54.
21592         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21593         name to underscores for the --with option.
21594
21595 2006-11-13  Bruno Haible  <bruno@clisp.org>
21596
21597         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21598         the tests directory.
21599         Reported by Ralf Wildenhues.
21600
21601 2006-11-13  Bruno Haible  <bruno@clisp.org>
21602
21603         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21604         (func_emit_initmacro_end): Undo the override here.
21605         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21606         Works around the famous automake error in coreutils.
21607
21608 2006-11-13  Eric Blake  <ebb9@byu.net>
21609
21610         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21611         element, not its node.
21612
21613 2006-11-12  Bruno Haible  <bruno@clisp.org>
21614
21615         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21616         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21617
21618 2006-11-12  Bruno Haible  <bruno@clisp.org>
21619
21620         * gnulib-tool: New option --local-symlink.
21621         (func_usage): Document it.
21622         (lsymbolic): New variable.
21623         (func_import, func_create_testdir): If --symlink was not specified,
21624         test whether --local-symlink was specified and the file comes from
21625         the local_gnulib_dir.
21626
21627 2006-11-12  Bruno Haible  <bruno@clisp.org>
21628
21629         * gnulib-tool (func_ln): New function.
21630         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21631
21632 2006-11-12  Bruno Haible  <bruno@clisp.org>
21633
21634         Finish support for source files in subdirectories.
21635         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21636         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21637         AUTOMAKE_OPTIONS.
21638         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21639
21640 2006-11-12  Bruno Haible  <bruno@clisp.org>
21641
21642         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21643         EXTRA_lib_SOURCES augmentation.
21644         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21645
21646 2006-11-12  Jim Meyering  <jim@meyering.net>
21647
21648         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21649         file descriptors.  This also averts a failure on systems with
21650         native openat support when a traversed directory lacks "x" access.
21651         * lib/fts_.h: Include "i-ring.h"
21652         (struct FTS) [fts_fd_ring]: New member.
21653         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21654         (FCHDIR): Add parentheses.
21655         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21656         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
21657         When descending, rather than simply closing the previous
21658         fts_cwd_fd value, push that file descriptor onto the ring.
21659         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21660         (fts_open): Initialize the new fd_ring member.
21661         (fts_close): Clear the ring.
21662         (fts_safe_changedir): When possible, use our new fd_ring to skip
21663         the diropen and fstat and dev/ino comparison that would normally
21664         accompany a virtual `chdir ("..")'.
21665
21666         * modules/fts (Depends-on): Add i-ring.
21667         * modules/i-ring: New module.
21668         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21669         * m4/i-ring.m4: New file.
21670
21671 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21672
21673         * gnulib-tool (func_create_testdir): Fix replacement of
21674         `build-aux' in configure.ac.  Run autotools in gltests
21675         subdirectory.
21676         (func_create_testdir, func_create_megatestdir, test): There is
21677         no need for '--force' in most autotool invocations in a new
21678         tree.  Actually fail the whole test if any of the tools, or the
21679         configure or make stages fail.
21680
21681         Sync from Automake.
21682         * build-aux/gnupload: Revert last change.  Add pointer to upload
21683         instructions of the GNU Maintenance Instructions.
21684         Suggestion by Karl Berry.
21685
21686 2006-11-10  Jim Meyering  <jim@meyering.net>
21687
21688         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21689
21690 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21691
21692         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21693         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21694         (bind_textdomain_codeset) [! ENABLE_NLS]:
21695         Evaluate all the arguments.  That way, callers get compatible behavior
21696         if the arguments have side effects.  Also, it avoids some GCC
21697         diagnostics in some cases; Joel E. Denny reported problems when Bison
21698         was configured with --enable-gcc-warnigs.
21699
21700 2006-11-10  Jim Meyering  <jim@meyering.net>
21701
21702         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21703         relevant options in CFLAGS (like -O, -fno-inline) are taken into
21704         account.
21705
21706 2006-11-10  Jim Meyering  <jim@meyering.net>
21707
21708         * modules/inline: New file/module.
21709         * modules/xalloc (Files): Remove m4/inline.m4.
21710         (Depends-on): Add inline, instead.
21711         * modules/oset: Likewise.
21712         * modules/list: Likewise.
21713
21714 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21715
21716         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21717         Problem reported by Matthew Woehlke.
21718
21719 2006-11-09  Bruno Haible  <bruno@clisp.org>
21720
21721         * lib/tempname.c (gen_tempname): Remove variant that invokes
21722         __gen_tempname.
21723         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21724         __gen_tempname.
21725
21726 2006-11-08  Bruno Haible  <bruno@clisp.org>
21727
21728         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21729         to 'yes' instead of 'cross-compiling'.
21730
21731 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21732
21733         * lib/quotearg.h (quotearg_free): New decl.
21734         * lib/quotearg.c (quotearg_free): New function.
21735         (slot0, nslots, slotvec0, slotvec):
21736         Now file-scope so that quotearg_free can get at them.
21737
21738 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21739
21740         Sync from Automake.
21741         * build-aux/gnupload: Add missing 'gnu' to example URL.
21742         Report by Karl Berry.
21743
21744 2006-11-08  Bruno Haible  <bruno@clisp.org>
21745
21746         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21747         Suggested by Paul Eggert.
21748
21749 2006-11-08  Jim Meyering  <jim@meyering.net>
21750
21751         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21752         It's already included if !_LIBC.
21753         (fts_safe_changedir): Add a comment.
21754
21755 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21756
21757         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21758         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21759         Matthew Woehlke.
21760
21761         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21762         definitions up, to avoid colliding with change below.
21763         (static_inline) [HAVE_INLINE]: New macro.
21764         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21765         Provide extern decls when !HAVE_INLINE.  Do not define unless
21766         static_inline is defined, either by us or by xmalloc.c.  Use
21767         static_inline rather than static inline.
21768         (XCALLOC): Optimize sizeof(T) = 1 case.
21769         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21770
21771 2006-11-07  Bruno Haible  <bruno@clisp.org>
21772
21773         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21775         AC_C_INLINE.
21776         * modules/xalloc (Files): Add m4/inline.m4.
21777
21778 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21779
21780         * README: Fix typo.
21781         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21782         (Miscellanous Notes): ...from this.
21783
21784 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21785
21786         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21787         Mention that offsetof should be used instead of sizeof.
21788         From Bruno Haible.
21789
21790 2006-11-07  Bruno Haible  <bruno@clisp.org>
21791
21792         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21793
21794 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21795
21796         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21797         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21798         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21799         (gl_tree_add_before, gl_tree_add_after):
21800         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21801         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21802         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21803         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21804         (gl_linked_add_after, gl_linked_add_at): Likewise.
21805         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21806         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21807         (gl_tree_add_before, gl_tree_add_after): Likewise.
21808         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21809         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21810         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21811
21812 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21813
21814         * lib/gl_oset.h: Use C comment style, not C++ comment style.
21815
21816 2006-11-06  Bruno Haible  <bruno@clisp.org>
21817
21818         * m4/inline.m4: New file.
21819         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21820         * modules/list (Files): Add m4/inline.m4.
21821         * modules/oset (Files): Likewise.
21822
21823 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21824
21825         * lib/idcache.c: Include <stddef.h>, for offsetof.
21826         (struct userid.name): Change from char * to a flexible array member.
21827         All uses changed.
21828         * modules/idcache (Depends-on): Add flexmember.
21829
21830         * MODULES.html.sh (Core language properties): New module flexmember.
21831         * modules/flexmember, m4/flexmember.m4: New files.
21832
21833         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21834         inline functions that are identical with the old xnmalloc_inline,
21835         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
21836         that we can avoid some unnecessary integer multiplications and
21837         divisions in the common case where the element size is known at
21838         compile time.
21839         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21840         needed.
21841         (xnboundedmalloc): Remove.
21842         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21843         arguments, for consistency with rest of this header.
21844         (xcharalloc): Rewrite using XNMALLOC.
21845         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21846         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
21847         versions have been moved to lib/xalloc.h and renamed to be the
21848         non-*_inline versions.
21849         (xmalloc, xrealloc): Implement without reference to the xnmalloc
21850         and xnrealloc functions, since those functions are now inline and
21851         now call us.
21852         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21853         renaming described above.
21854         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21855         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
21856         captures the dependency in AC_C_INLINE.
21857
21858         New module canonicalize-lgpl, proposed by Charles Wilson in
21859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21860         with a few small changes afterwards.
21861         * MODULES.html.sh (File system functions): New module
21862         canonicalize-lgpl.
21863         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
21864         and canonicalize_file_name.
21865         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
21866         * modules/canonicalize-lgpl: New files.
21867
21868 2006-11-05  Bruno Haible  <bruno@clisp.org>
21869
21870         * gnulib-tool (func_import, func_create_testdir): Create directories
21871         also for files in subdirectories of lib/.
21872
21873 2006-11-05  Bruno Haible  <bruno@clisp.org>
21874
21875         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
21876         ANSI C compliant.
21877
21878 2006-11-03  Bruno Haible  <bruno@clisp.org>
21879
21880         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21881         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
21882         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
21883         (xnboundedmalloc): New inline function.
21884         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
21885         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
21886         xmalloc.
21887         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
21888         xmalloc.
21889         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
21890         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
21891         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
21892         xmalloc.
21893         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21894         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
21895         xmalloc.
21896         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
21897         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21898         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
21899         xmalloc.
21900         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
21901         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
21902         gl_tree_add_after): Use XMALLOC instead of xmalloc.
21903         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
21904         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
21905         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
21906         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
21907
21908 2006-11-03  Bruno Haible  <bruno@clisp.org>
21909
21910         * lib/c-ctype.h [C++]: Define functions without name mangling.
21911         * lib/fwriteerror.h [C++]: Likewise.
21912         * lib/gcd.h [C++]: Likewise.
21913         * lib/linebreak.h [C++]: Likewise.
21914
21915 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21916
21917         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
21918         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
21919         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
21920         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21921         Check for functions and headers just once.
21922         Check for declaration of canonicalize_file_name.
21923         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
21924
21925 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21926
21927         * gnulib-tool (func_import): Fix typo in actioncmd.
21928
21929 2006-11-02  Bruno Haible  <bruno@clisp.org>
21930
21931         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
21932         newline sequence in the Makefile.am snippet as a space, like "make"
21933         does.
21934         Reported by Roger Persson <perrog@gmail.com>.
21935
21936 2006-11-01  Bruno Haible  <bruno@clisp.org>
21937
21938         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
21939         already declared in <string.h>.
21940         * lib/strcase.h (strncasecmp): Don't declare it if yes.
21941
21942 2006-11-01  Bruno Haible  <bruno@clisp.org>
21943
21944         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
21945         * lib/strcase.h: Include <string.h>.
21946         (strcasecmp): Define to rpl_strcasecmp here.
21947
21948 2006-11-01  Bruno Haible  <bruno@clisp.org>
21949
21950         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
21951
21952 2006-11-01  Eric Blake  <ebb9@byu.net>
21953
21954         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
21955
21956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
21957
21958 2006-10-29  Bruno Haible  <bruno@clisp.org>
21959
21960         Make it compile in C++ mode.
21961         * lib/full-write.c (full_rw): Add a cast.
21962
21963 2006-11-01  Bruno Haible  <bruno@clisp.org>
21964
21965         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
21966         be POSIX compliant.
21967         Reported by Roger Persson <perrog@gmail.com>.
21968
21969 2006-11-01  Eric Blake  <ebb9@byu.net>
21970
21971         * lib/getopt_.h: Fix comments.
21972
21973 2006-10-31  Eric Blake  <ebb9@byu.net>
21974
21975         * modules/tmpdir (Depends-on): Add sys_stat.
21976         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
21977         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
21978         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
21979         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
21980         tempname.
21981
21982 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21983
21984         Avoid some C++ diagnostics reported by Bruno Haible.
21985         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
21986         xmalloc.
21987         (quotearg_alloc): Use xcharalloc rather than xmalloc.
21988         (struct slotvec): Move to top level.
21989         (quotearg_n_options): Rewrite to avoid xmalloc.
21990         * lib/xalloc.h (xcharalloc): New function.
21991         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
21992         [defined __cplusplus]: Add function template that provides result
21993         type propagation.  This part of the change is from Bruno Haible.
21994
21995 2006-10-29  Bruno Haible  <bruno@clisp.org>
21996
21997         Make it compile in C++ mode.
21998         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
21999         * lib/strnlen1.c (strnlen1): Cast memchr result.
22000         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22001         * lib/clean-temp.c (string_equals, string_hash): Add casts.
22002         (create_temp_dir): Rename local variable 'template'.
22003         (compile_csharp_using_sscli): Add cast.
22004         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22005         * lib/findprog.c (find_in_path): Likewise.
22006         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22007         * lib/wait-process.c (register_slave_subprocess): Likewise.
22008
22009 2006-10-22  Bruno Haible  <bruno@clisp.org>
22010
22011         * modules/tsearch: New file.
22012         * lib/tsearch.h: New file.
22013         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22014         * m4/tsearch.m4: New file.
22015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22016
22017 2006-10-29  Eric Blake  <ebb9@byu.net>
22018
22019         * lib/arcfour.c: Assume config.h.
22020         * lib/arctwo.c: Likewise.
22021         * lib/base64.c: Likewise.
22022         * lib/check-version.c: Likewise.
22023         * lib/crc.c: Likewise.
22024         * lib/des.c: Likewise.
22025         * lib/gc-gnulib.c: Likewise.
22026         * lib/gc-libgcrypt.c: Likewise.
22027         * lib/gc-pbkdf2-sha1.c: Likewise.
22028         * lib/getaddrinfo.c: Likewise.
22029         * lib/getdelim.c: Likewise.
22030         * lib/getline.c: Likewise.
22031         * lib/hmac-md5.c: Likewise.
22032         * lib/hmac-sha1.c: Likewise.
22033         * lib/iconvme.c: Likewise.
22034         * lib/md2.c: Likewise.
22035         * lib/md4.c: Likewise.
22036         * lib/memxor.c: Likewise.
22037         * lib/read-file.c: Likewise.
22038         * lib/readline.c: Likewise.
22039         * lib/rijndael-alg-fst.c: Likewise.
22040         * lib/rijndael-api-fst.c: Likewise.
22041         * lib/xgetdomainname.c: Likewise.
22042
22043 2006-10-28  Eric Blake  <ebb9@byu.net>
22044
22045         * lib/xstrndup.c: Assume config.h.
22046
22047 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22048
22049         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22050         stat-macros.h is now for our own macros, whereas stat_h is for
22051         macros in the <sys/stat.h> name space.
22052         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22053         (STAT_MACROS_H): Remove.
22054         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22055         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22056         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22057         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22058         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22059         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22060         Move these macros to ...
22061         * lib/stat_.h: here.  Don't include stat-macros.h.
22062         * lib/canonicalize.c: Don't include stat-macros.h.
22063         * lib/chown.c: Likewise.
22064         * lib/euidaccess.c: Likewise.
22065         * lib/file-type.c: Likewise.
22066         * lib/filemode.c: Likewise.
22067         * lib/glob.c: Likewise.
22068         * lib/isapipe.c: Likewise.
22069         * lib/lchown.c: Likewise.
22070         * lib/lstat.c: Likewise.
22071         * lib/mkdir-p.c: Likewise.
22072         * lib/rmdir.c: Likewise.
22073         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
22074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
22075         unless mkdir isn't declared, to speed up 'configure'.
22076         Always create sys/stat.h, since it's unlikely any real sys/stat.h
22077         would define all the S_* symbols.
22078         * modules/canonicalize (Depends-on):
22079         Depend on sys_stat, not stat-macros.
22080         * modules/chown: Likewise.
22081         * modules/euidaccess: Likewise.
22082         * modules/filemode: Likewise.
22083         * modules/file-type: Likewise.
22084         * modules/glob: Likewise.
22085         * modules/isapipe: Likewise.
22086         * modules/lchown: Likewise.
22087         * modules/lstat: Likewise.
22088         * modules/mkancesdirs: Likewise.
22089         * modules/rmdir: Likewise.
22090         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
22091         * modules/modechange: Likewise.
22092         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
22093         (configure.ac): Remove gl_STAT_MACROS.
22094         * modules/sys_stat (Depends-on): Remove stat-macros.
22095
22096 2006-10-27  Bruno Haible  <bruno@clisp.org>
22097
22098         * m4/signed.m4: Remove file.
22099         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
22100         invocation.
22101         * modules/vasnprintf (Files): Remove m4/signed.m4.
22102
22103 2006-10-27  Bruno Haible  <bruno@clisp.org>
22104
22105         Update to GNU gettext 0.16.
22106         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
22107         m4/inttypes-h.m4, m4/signed.m4.
22108         * m4/gettext.m4: Update to GNU gettext 0.16.
22109         * m4/intl.m4: New file, from GNU gettext.
22110         * m4/intldir.m4: New file, from GNU gettext.
22111         * config/srclist.txt: Update
22112
22113 2006-10-27  Eric Blake  <ebb9@byu.net>
22114
22115         * MODULES.html.sh: Document tempname.
22116         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
22117         dependencies.
22118         (Files): Move lib/tempname.c...
22119         * modules/tempname: ...to this new module.
22120         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
22121         (gl_PREREQ_TEMPNAME): Move...
22122         * m4/tempname.m4: ...to this new file.
22123         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
22124         * modules/sys_stat (Depends-on): Add stat-macros.
22125         * lib/stat_.h (includes): Pick up stat macros.
22126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
22127         if stat macros are broken.
22128         * lib/tempname.c (includes): No need to include "stat-macros.h".
22129         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
22130         (direxists, __path_search) [!_LIBC]: Don't compile these in
22131         gnulib; the tmpdir module covers that.
22132         * lib/tempname.h: New file.
22133
22134 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22135
22136         * COPYING: Explain how gnulib-tool converts licence headers.
22137         Almost all wording by Eric Blake.
22138
22139 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22140
22141         * lib/mbchar.h (is_basic_table): Make read-only.
22142         * lib/mbchar.c (is_basic_table): Likewise.
22143         Reported by John Darrington.
22144
22145 2006-10-25  Bruno Haible  <bruno@clisp.org>
22146
22147         * lib/progname.h (set_program_name): Undefine before defining.
22148
22149 2006-10-25  Bruno Haible  <bruno@clisp.org>
22150
22151         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22152         false for non-gcc C++ compilers.
22153         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22154
22155 2006-10-24  Bruno Haible  <bruno@clisp.org>
22156
22157         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22158         iconv implementations like Irix iconv.
22159
22160 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22161
22162         * modules/vararrays: New file.
22163         * m4/vararrays.m4: New file, taken from diffutils.
22164         * MODULES.html.sh: New module vararrays.
22165
22166 2006-10-24  Karl Berry  <karl@gnu.org>
22167
22168         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22169         Don't call GNU Unix.
22170
22171 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22172
22173         * users.txt: Add Libtool.
22174
22175         Sync from Libtool:
22176
22177         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22180         to gnulib's policy of including config.h unconditionally.
22181
22182 2006-10-24  Bruno Haible  <bruno@clisp.org>
22183
22184         * modules/wcwidth (Files): Add m4/wint_t.m4.
22185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22186         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22187
22188 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22189
22190         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22191         to pacify GCC with some -W flags enabled.  Problem reported by
22192         Bruno Haible.
22193
22194 2006-10-24  Jim Meyering  <jim@meyering.net>
22195
22196         * MODULES.html.sh: Remove uinttostr.  It's not a module.
22197         Reported by Karl Berry.
22198
22199 2006-10-23  Bruno Haible  <bruno@clisp.org>
22200
22201         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22202
22203 2006-10-24  Bruno Haible  <bruno@clisp.org>
22204
22205         * lib/gl_list.h: Use C comment style, not C++ comment style.
22206
22207 2006-10-23  Eric Blake  <ebb9@byu.net>
22208
22209         * lib/getaddrinfo.c (includes): Add missing include.
22210
22211 2006-10-23  Bruno Haible  <bruno@clisp.org>
22212             Paul Eggert  <eggert@cs.ucla.edu>
22213
22214         Ability to rename obstack_free.
22215         * lib/obstack.h (__obstack_free): New macro. Declare instead of
22216         obstack_free.
22217         (obstack_free): Invoke the __obstack_free macro.
22218         * lib/obstack.c (obstack_free): Use __obstack_free macro.
22219
22220 2006-10-23  Bruno Haible  <bruno@clisp.org>
22221             Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22224         __argc, __argv from the declaration. (They are defined as macros on
22225         mingw.)
22226
22227 2006-10-22  Bruno Haible  <bruno@clisp.org>
22228
22229         * doc/gnulib-intro.texi: New file.
22230         * doc/gnulib.texi: Include it.
22231
22232 2006-10-21  Bruno Haible  <bruno@clisp.org>
22233
22234         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22235         "Introduction", "Miscellanous Notes", "Particular Modules".
22236
22237 2006-10-21  Bruno Haible  <bruno@clisp.org>
22238
22239         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22240         Change mostlyclean-local rule to avoid sh syntax error from bash
22241         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22242
22243 2006-10-23  Jim Meyering  <jim@meyering.net>
22244
22245         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22246         in place of snprintf.
22247
22248         * modules/inttostr (Files): Add lib/uinttostr.c.
22249         * lib/uinttostr.c (inttostr): New file/function.
22250         * lib/inttostr.h (uinttostr): Declare.
22251         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22252         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22253         Add uinttostr.
22254         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
22255
22256 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22257
22258         * lib/canonicalize.c (ELOOP): Define if not already defined.
22259         Problem reported by Bruno Haible in
22260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22261
22262 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22263
22264         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22265         Problem reported by Perry Smith and Ville Laurikari.
22266
22267         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22268         uses.
22269
22270 2006-10-19  Bruno Haible  <bruno@clisp.org>
22271
22272         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22273         for mingw.
22274
22275 2006-10-19  Bruno Haible  <bruno@clisp.org>
22276
22277         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22278         Needed for mingw.
22279
22280 2006-10-19  Bruno Haible  <bruno@clisp.org>
22281
22282         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22283
22284 2006-10-19  Bruno Haible  <bruno@clisp.org>
22285
22286         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22287         it.
22288
22289 2006-10-19  Bruno Haible  <bruno@clisp.org>
22290
22291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22292         invocation.
22293
22294 2006-10-19  Bruno Haible  <bruno@clisp.org>
22295
22296         * gnulib-tool (func_create_testdir): Don't include ftruncate and
22297         mountlist by default.
22298
22299 2006-10-16  Bruno Haible  <bruno@clisp.org>
22300
22301         * lib/c-strstr.c: Include c-strstr.h.
22302
22303 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22304
22305         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22306         in a slash.
22307
22308 2006-10-18  Bruno Haible  <bruno@clisp.org>
22309
22310         * lib/lock.h [C++]: Wrap definitions in extern "C".
22311
22312 2006-10-18  Bruno Haible  <bruno@clisp.org>
22313
22314         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22315         gl_LIBOBJS list.
22316
22317 2006-10-18  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22320
22321 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22322
22323         * lib/xstrtol.h: Include gettext.h.
22324         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22325         Problem reported by Eric Blake.
22326         * modules/xstrtol (Depends-on): Add gettext-h.
22327
22328 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
22329
22330         * lib/strftime.c (advance): New macro.
22331         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
22332         incomplete type, so you can't add 0 to it.  Problem and patch
22333         reported by Eelco Dolstra for dietlibc.
22334
22335 2006-10-18  Jim Meyering  <jim@meyering.net>
22336
22337         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22338         type for a local, and rename it: s/up/user_proc/.
22339
22340 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22341
22342         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22343         READ_UTMP_USER_PROCESS.
22344         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22345
22346 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22347
22348         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22349         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22350
22351 2006-10-17  Eric Blake  <ebb9@byu.net>
22352
22353         * lib/sigprocmask.c (sigprocmask): Fix typo.
22354
22355         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22356
22357         * modules/clean-temp (Makefile.am): Don't add to make output...
22358         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22359         config.h.
22360
22361 2006-10-17  Bruno Haible  <bruno@clisp.org>
22362
22363         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22364         differently if DEFAULT_TEXT_DOMAIN is set.
22365
22366 2006-10-16  Bruno Haible  <bruno@clisp.org>
22367
22368         * lib/clean-temp.c: Include fwriteerror.h.
22369
22370 2006-10-16  Bruno Haible  <bruno@clisp.org>
22371
22372         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22373
22374 2006-10-16  Bruno Haible  <bruno@clisp.org>
22375
22376         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22377         * lib/sigprocmask.h: Include <sys/types.h>.
22378         (sigset_t): Use the system's definition if present.
22379
22380 2006-10-17  Eric Blake  <ebb9@byu.net>
22381
22382         * lib/xvasprintf.c (includes): Assume config.h.
22383         * lib/xasprintf.c (includes): Likewise.
22384
22385 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22386
22387         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22388         at least as wide as intmax_t.
22389
22390 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
22391
22392         (Imported from Automake.)
22393         * build-aux/gnupload: Update to version 1.1 of directive file.
22394
22395 2006-10-16  Eric Blake  <ebb9@byu.net>
22396
22397         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22398         match Automake 1.10a.
22399
22400 2006-10-14  Bruno Haible  <bruno@clisp.org>
22401
22402         * modules/sigprocmask: New file.
22403         * lib/sigprocmask.h: New file.
22404         * lib/sigprocmask.c: New file.
22405         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22406         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22407         request sigprocmask.o.
22408         (gl_PREREQ_SIGPROCMASK): New macro.
22409         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22410         (Depends-on): Add sigprocmask.
22411         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22412         gt_SIGNALBLOCKING. Test for 'raise' only once.
22413         * lib/fatal-signal.c: Include sigprocmask.h.
22414         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22415         unblock_fatal_signals): Define always.
22416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22417         sigprocmask.
22418
22419 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22420
22421         Sync from Automake.
22422         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22423         which incorrectly sets the mode of an existing destination
22424         directory.  In some cases the unpatched install-sh could do the
22425         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22426         system.  We hope this is rare in practice, but it's clearly worth
22427         fixing.  Problem reported by Alex Unleashed in
22428         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22429         Also, don't bother to check for -m bugs unless we're using -m;
22430         suggested by Stepan Kasal.
22431
22432 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22433
22434         Sync from Automake.
22435         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22436         `-c' flag, so they appear at the same position as in %FASTDEP%
22437         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
22438         which ignores unknown options only after the first non-option.
22439         Bug report against M4 by Nelson H. F. Beebe.
22440
22441 2006-10-13  Jim Meyering  <jim@meyering.net>
22442
22443         Fix a bug in yesterday's change.
22444         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22445         p->fts_statp->st_dev would be used uninitialized.
22446         Ensures that we always call fts_stat on the very first entry.
22447         Miklos Szeredi reported that find -xdev stopped working.
22448
22449 2006-10-12  Bruno Haible  <bruno@clisp.org>
22450
22451         * gnulib-tool (func_get_automake_snippet): Append an automatically
22452         computed EXTRA_DIST augmentation.
22453         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22454         * modules/alloca-opt (Makefile.am): Likewise.
22455         * modules/allocsa (Makefile.am): Likewise.
22456         * modules/arcfour (Makefile.am): Likewise.
22457         * modules/arctwo (Makefile.am): Likewise.
22458         * modules/argmatch (Makefile.am): Likewise.
22459         * modules/argz (Makefile.am): Likewise.
22460         * modules/atexit (Makefile.am): Likewise.
22461         * modules/backupfile (Makefile.am): Likewise.
22462         * modules/byteswap (Makefile.am): Likewise.
22463         * modules/c-strtod (Makefile.am): Likewise.
22464         * modules/c-strtold (Makefile.am): Likewise.
22465         * modules/calloc (Makefile.am): Likewise.
22466         * modules/canon-host (Makefile.am): Likewise.
22467         * modules/canonicalize (Makefile.am): Likewise.
22468         * modules/chdir-long (Makefile.am): Likewise.
22469         * modules/chdir-safer (Makefile.am): Likewise.
22470         * modules/check-version (Makefile.am): Likewise.
22471         * modules/chown (Makefile.am): Likewise.
22472         * modules/cloexec (Makefile.am): Likewise.
22473         * modules/close-stream (Makefile.am): Likewise.
22474         * modules/closeout (Makefile.am): Likewise.
22475         * modules/crc (Makefile.am): Likewise.
22476         * modules/csharpexec (Makefile.am): Likewise.
22477         * modules/cycle-check (Makefile.am): Likewise.
22478         * modules/des (Makefile.am): Likewise.
22479         * modules/dev-ino (Makefile.am): Likewise.
22480         * modules/dirfd (Makefile.am): Likewise.
22481         * modules/dirname (Makefile.am): Likewise.
22482         * modules/dup2 (Makefile.am): Likewise.
22483         * modules/eealloc (Makefile.am): Likewise.
22484         * modules/error (Makefile.am): Likewise.
22485         * modules/euidaccess (Makefile.am): Likewise.
22486         * modules/exclude (Makefile.am): Likewise.
22487         * modules/exitfail (Makefile.am): Likewise.
22488         * modules/fcntl-safer (Makefile.am): Likewise.
22489         * modules/fcntl (Makefile.am): Likewise.
22490         * modules/file-type (Makefile.am): Likewise.
22491         * modules/fileblocks (Makefile.am): Likewise.
22492         * modules/filemode (Makefile.am): Likewise.
22493         * modules/filenamecat (Makefile.am): Likewise.
22494         * modules/fnmatch (Makefile.am): Likewise.
22495         * modules/fopen-safer (Makefile.am): Likewise.
22496         * modules/fpending (Makefile.am): Likewise.
22497         * modules/fprintftime (Makefile.am): Likewise.
22498         * modules/free (Makefile.am): Likewise.
22499         * modules/fsusage (Makefile.am): Likewise.
22500         * modules/ftruncate (Makefile.am): Likewise.
22501         * modules/fts (Makefile.am): Likewise.
22502         * modules/gc-arcfour (Makefile.am): Likewise.
22503         * modules/gc-des (Makefile.am): Likewise.
22504         * modules/gc-hmac-md5 (Makefile.am): Likewise.
22505         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22506         * modules/gc-md4 (Makefile.am): Likewise.
22507         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22508         * modules/gc-sha1 (Makefile.am): Likewise.
22509         * modules/gc (Makefile.am): Likewise.
22510         * modules/getaddrinfo (Makefile.am): Likewise.
22511         * modules/getcwd (Makefile.am): Likewise.
22512         * modules/getdelim (Makefile.am): Likewise.
22513         * modules/getdomainname (Makefile.am): Likewise.
22514         * modules/getgroups (Makefile.am): Likewise.
22515         * modules/gethostname (Makefile.am): Likewise.
22516         * modules/gethrxtime (Makefile.am): Likewise.
22517         * modules/getline (Makefile.am): Likewise.
22518         * modules/getloadavg (Makefile.am): Likewise.
22519         * modules/getlogin_r (Makefile.am): Likewise.
22520         * modules/getndelim2 (Makefile.am): Likewise.
22521         * modules/getopt (Makefile.am): Likewise.
22522         * modules/getpagesize (Makefile.am): Likewise.
22523         * modules/getpass-gnu (Makefile.am): Likewise.
22524         * modules/getpass (Makefile.am): Likewise.
22525         * modules/getsubopt (Makefile.am): Likewise.
22526         * modules/gettime (Makefile.am): Likewise.
22527         * modules/gettimeofday (Makefile.am): Likewise.
22528         * modules/getugroups (Makefile.am): Likewise.
22529         * modules/getusershell (Makefile.am): Likewise.
22530         * modules/glob (Makefile.am): Likewise.
22531         * modules/group-member (Makefile.am): Likewise.
22532         * modules/hard-locale (Makefile.am): Likewise.
22533         * modules/hash (Makefile.am): Likewise.
22534         * modules/hmac-md5 (Makefile.am): Likewise.
22535         * modules/hmac-sha1 (Makefile.am): Likewise.
22536         * modules/human (Makefile.am): Likewise.
22537         * modules/idcache (Makefile.am): Likewise.
22538         * modules/imaxabs (Makefile.am): Likewise.
22539         * modules/imaxdiv (Makefile.am): Likewise.
22540         * modules/inet_ntop (Makefile.am): Likewise.
22541         * modules/inet_pton (Makefile.am): Likewise.
22542         * modules/intprops (Makefile.am): Likewise.
22543         * modules/inttostr (Makefile.am): Likewise.
22544         * modules/inttypes (Makefile.am): Likewise.
22545         * modules/isapipe (Makefile.am): Likewise.
22546         * modules/javaversion (Makefile.am): Likewise.
22547         * modules/lchmod (Makefile.am): Likewise.
22548         * modules/lchown (Makefile.am): Likewise.
22549         * modules/localcharset (Makefile.am): Likewise.
22550         * modules/long-options (Makefile.am): Likewise.
22551         * modules/lstat (Makefile.am): Likewise.
22552         * modules/malloc (Makefile.am): Likewise.
22553         * modules/mathl (Makefile.am): Likewise.
22554         * modules/mbchar (Makefile.am): Likewise.
22555         * modules/md2 (Makefile.am): Likewise.
22556         * modules/md4 (Makefile.am): Likewise.
22557         * modules/md5 (Makefile.am): Likewise.
22558         * modules/memcasecmp (Makefile.am): Likewise.
22559         * modules/memchr (Makefile.am): Likewise.
22560         * modules/memcmp (Makefile.am): Likewise.
22561         * modules/memcoll (Makefile.am): Likewise.
22562         * modules/memcpy (Makefile.am): Likewise.
22563         * modules/memmem (Makefile.am): Likewise.
22564         * modules/memmove (Makefile.am): Likewise.
22565         * modules/mempcpy (Makefile.am): Likewise.
22566         * modules/memrchr (Makefile.am): Likewise.
22567         * modules/memset (Makefile.am): Likewise.
22568         * modules/memxor (Makefile.am): Likewise.
22569         * modules/mkancesdirs (Makefile.am): Likewise.
22570         * modules/mkdir-p (Makefile.am): Likewise.
22571         * modules/mkdir (Makefile.am): Likewise.
22572         * modules/mkdtemp (Makefile.am): Likewise.
22573         * modules/mkstemp (Makefile.am): Likewise.
22574         * modules/mktime (Makefile.am): Likewise.
22575         * modules/modechange (Makefile.am): Likewise.
22576         * modules/mountlist (Makefile.am): Likewise.
22577         * modules/nanosleep (Makefile.am): Likewise.
22578         * modules/obstack (Makefile.am): Likewise.
22579         * modules/openat (Makefile.am): Likewise.
22580         * modules/pagealign_alloc (Makefile.am): Likewise.
22581         * modules/pathmax (Makefile.am): Likewise.
22582         * modules/physmem (Makefile.am): Likewise.
22583         * modules/poll (Makefile.am): Likewise.
22584         * modules/posixtm (Makefile.am): Likewise.
22585         * modules/posixver (Makefile.am): Likewise.
22586         * modules/putenv (Makefile.am): Likewise.
22587         * modules/quote (Makefile.am): Likewise.
22588         * modules/quotearg (Makefile.am): Likewise.
22589         * modules/raise (Makefile.am): Likewise.
22590         * modules/read-file (Makefile.am): Likewise.
22591         * modules/readline (Makefile.am): Likewise.
22592         * modules/readlink (Makefile.am): Likewise.
22593         * modules/readtokens (Makefile.am): Likewise.
22594         * modules/readutmp (Makefile.am): Likewise.
22595         * modules/realloc (Makefile.am): Likewise.
22596         * modules/regex (Makefile.am): Likewise.
22597         * modules/rename-dest-slash (Makefile.am): Likewise.
22598         * modules/rename (Makefile.am): Likewise.
22599         * modules/rijndael (Makefile.am): Likewise.
22600         * modules/rmdir (Makefile.am): Likewise.
22601         * modules/rpmatch (Makefile.am): Likewise.
22602         * modules/safe-read (Makefile.am): Likewise.
22603         * modules/safe-write (Makefile.am): Likewise.
22604         * modules/same-inode (Makefile.am): Likewise.
22605         * modules/same (Makefile.am): Likewise.
22606         * modules/save-cwd (Makefile.am): Likewise.
22607         * modules/savedir (Makefile.am): Likewise.
22608         * modules/setenv (Makefile.am): Likewise.
22609         * modules/settime (Makefile.am): Likewise.
22610         * modules/sha1 (Makefile.am): Likewise.
22611         * modules/sig2str (Makefile.am): Likewise.
22612         * modules/snprintf (Makefile.am): Likewise.
22613         * modules/stat-macros (Makefile.am): Likewise.
22614         * modules/stat-time (Makefile.am): Likewise.
22615         * modules/stdbool (Makefile.am): Likewise.
22616         * modules/stdint (Makefile.am): Likewise.
22617         * modules/stdlib-safer (Makefile.am): Likewise.
22618         * modules/stpcpy (Makefile.am): Likewise.
22619         * modules/stpncpy (Makefile.am): Likewise.
22620         * modules/strcase (Makefile.am): Likewise.
22621         * modules/strcasestr (Makefile.am): Likewise.
22622         * modules/strchrnul (Makefile.am): Likewise.
22623         * modules/strcspn (Makefile.am): Likewise.
22624         * modules/strdup (Makefile.am): Likewise.
22625         * modules/strerror (Makefile.am): Likewise.
22626         * modules/strftime (Makefile.am): Likewise.
22627         * modules/strndup (Makefile.am): Likewise.
22628         * modules/strnlen (Makefile.am): Likewise.
22629         * modules/strpbrk (Makefile.am): Likewise.
22630         * modules/strsep (Makefile.am): Likewise.
22631         * modules/strstr (Makefile.am): Likewise.
22632         * modules/strtod (Makefile.am): Likewise.
22633         * modules/strtoimax (Makefile.am): Likewise.
22634         * modules/strtok_r (Makefile.am): Likewise.
22635         * modules/strtol (Makefile.am): Likewise.
22636         * modules/strtoll (Makefile.am): Likewise.
22637         * modules/strtoul (Makefile.am): Likewise.
22638         * modules/strtoull (Makefile.am): Likewise.
22639         * modules/strtoumax (Makefile.am): Likewise.
22640         * modules/strverscmp (Makefile.am): Likewise.
22641         * modules/sys_socket (Makefile.am): Likewise.
22642         * modules/sys_stat (Makefile.am): Likewise.
22643         * modules/sysexits (Makefile.am): Likewise.
22644         * modules/time_r (Makefile.am): Likewise.
22645         * modules/timegm (Makefile.am): Likewise.
22646         * modules/timespec (Makefile.am): Likewise.
22647         * modules/tmpfile-safer (Makefile.am): Likewise.
22648         * modules/trim (Makefile.am): Likewise.
22649         * modules/unistd-safer (Makefile.am): Likewise.
22650         * modules/unlinkdir (Makefile.am): Likewise.
22651         * modules/unlocked-io (Makefile.am): Likewise.
22652         * modules/userspec (Makefile.am): Likewise.
22653         * modules/utime (Makefile.am): Likewise.
22654         * modules/utimecmp (Makefile.am): Likewise.
22655         * modules/utimens (Makefile.am): Likewise.
22656         * modules/vasnprintf (Makefile.am): Likewise.
22657         * modules/vasprintf (Makefile.am): Likewise.
22658         * modules/vsnprintf (Makefile.am): Likewise.
22659         * modules/xalloc (Makefile.am): Likewise.
22660         * modules/xgetcwd (Makefile.am): Likewise.
22661         * modules/xnanosleep (Makefile.am): Likewise.
22662         * modules/xreadlink (Makefile.am): Likewise.
22663         * modules/xstrtod (Makefile.am): Likewise.
22664         * modules/xstrtol (Makefile.am): Likewise.
22665         * modules/xstrtold (Makefile.am): Likewise.
22666         * modules/yesno (Makefile.am): Likewise.
22667         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22668
22669 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22670
22671         * modules/error (Makefile.am): Distribute files through
22672         EXTRA_DIST, not lib_SOURCES.
22673
22674 2006-10-12  Eric Blake  <ebb9@byu.net>
22675
22676         * modules/error (Makefile.am): Distribute files in /lib.
22677         * modules/obstack (Makefile.am): Likewise.
22678
22679 2006-10-12  Bruno Haible  <bruno@clisp.org>
22680
22681         * modules/acl (Makefile.am): Distribute all files in lib/ through
22682         EXTRA_DIST.
22683         * modules/arcfour (Makefile.am): Likewise.
22684         * modules/arctwo (Makefile.am): Likewise.
22685         * modules/argmatch (Makefile.am): Likewise.
22686         * modules/argz (Makefile.am): Likewise.
22687         * modules/atexit (Makefile.am): Likewise.
22688         * modules/backupfile (Makefile.am): Likewise.
22689         * modules/c-strtod (Makefile.am): Likewise.
22690         * modules/c-strtold (Makefile.am): Likewise.
22691         * modules/calloc (Makefile.am): Likewise.
22692         * modules/canon-host (Makefile.am): Likewise.
22693         * modules/canonicalize (Makefile.am): Likewise.
22694         * modules/chdir-long (Makefile.am): Likewise.
22695         * modules/chdir-safer (Makefile.am): Likewise.
22696         * modules/check-version (Makefile.am): Likewise.
22697         * modules/chown (Makefile.am): Likewise.
22698         * modules/cloexec (Makefile.am): Likewise.
22699         * modules/close-stream (Makefile.am): Likewise.
22700         * modules/closeout (Makefile.am): Likewise.
22701         * modules/crc (Makefile.am): Likewise.
22702         * modules/cycle-check (Makefile.am): Likewise.
22703         * modules/des (Makefile.am): Likewise.
22704         * modules/dirfd (Makefile.am): Likewise.
22705         * modules/dirname (Makefile.am): Likewise.
22706         * modules/dup2 (Makefile.am): Likewise.
22707         * modules/euidaccess (Makefile.am): Likewise.
22708         * modules/exclude (Makefile.am): Likewise.
22709         * modules/exitfail (Makefile.am): Likewise.
22710         * modules/fcntl-safer (Makefile.am): Likewise.
22711         * modules/file-type (Makefile.am): Likewise.
22712         * modules/fileblocks (Makefile.am): Likewise.
22713         * modules/filemode (Makefile.am): Likewise.
22714         * modules/filenamecat (Makefile.am): Likewise.
22715         * modules/fnmatch (Makefile.am): Likewise.
22716         * modules/fopen-safer (Makefile.am): Likewise.
22717         * modules/fpending (Makefile.am): Likewise.
22718         * modules/fprintftime (Makefile.am): Likewise.
22719         * modules/free (Makefile.am): Likewise.
22720         * modules/fsusage (Makefile.am): Likewise.
22721         * modules/ftruncate (Makefile.am): Likewise.
22722         * modules/fts (Makefile.am): Likewise.
22723         * modules/gc (Makefile.am): Likewise.
22724         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22725         * modules/getaddrinfo (Makefile.am): Likewise.
22726         * modules/getcwd (Makefile.am): Likewise.
22727         * modules/getdelim (Makefile.am): Likewise.
22728         * modules/getdomainname (Makefile.am): Likewise.
22729         * modules/getgroups (Makefile.am): Likewise.
22730         * modules/gethostname (Makefile.am): Likewise.
22731         * modules/gethrxtime (Makefile.am): Likewise.
22732         * modules/getline (Makefile.am): Likewise.
22733         * modules/getloadavg (Makefile.am): Likewise.
22734         * modules/getlogin_r (Makefile.am): Likewise.
22735         * modules/getopt (Makefile.am): Likewise.
22736         * modules/getpass (Makefile.am): Likewise.
22737         * modules/getpass-gnu (Makefile.am): Likewise.
22738         * modules/getsubopt (Makefile.am): Likewise.
22739         * modules/gettime (Makefile.am): Likewise.
22740         * modules/gettimeofday (Makefile.am): Likewise.
22741         * modules/getugroups (Makefile.am): Likewise.
22742         * modules/getusershell (Makefile.am): Likewise.
22743         * modules/glob (Makefile.am): Likewise.
22744         * modules/group-member (Makefile.am): Likewise.
22745         * modules/hard-locale (Makefile.am): Likewise.
22746         * modules/hash (Makefile.am): Likewise.
22747         * modules/hmac-md5 (Makefile.am): Likewise.
22748         * modules/hmac-sha1 (Makefile.am): Likewise.
22749         * modules/human (Makefile.am): Likewise.
22750         * modules/idcache (Makefile.am): Likewise.
22751         * modules/imaxabs (Makefile.am): Likewise.
22752         * modules/imaxdiv (Makefile.am): Likewise.
22753         * modules/inet_ntop (Makefile.am): Likewise.
22754         * modules/inet_pton (Makefile.am): Likewise.
22755         * modules/inttostr (Makefile.am): Likewise.
22756         * modules/isapipe (Makefile.am): Likewise.
22757         * modules/lchown (Makefile.am): Likewise.
22758         * modules/long-options (Makefile.am): Likewise.
22759         * modules/lstat (Makefile.am): Likewise.
22760         * modules/malloc (Makefile.am): Likewise.
22761         * modules/mathl (Makefile.am): Likewise.
22762         * modules/mbchar (Makefile.am): Likewise.
22763         * modules/md2 (Makefile.am): Likewise.
22764         * modules/md4 (Makefile.am): Likewise.
22765         * modules/md5 (Makefile.am): Likewise.
22766         * modules/memcasecmp (Makefile.am): Likewise.
22767         * modules/memchr (Makefile.am): Likewise.
22768         * modules/memcmp (Makefile.am): Likewise.
22769         * modules/memcoll (Makefile.am): Likewise.
22770         * modules/memcpy (Makefile.am): Likewise.
22771         * modules/memmem (Makefile.am): Likewise.
22772         * modules/memmove (Makefile.am): Likewise.
22773         * modules/mempcpy (Makefile.am): Likewise.
22774         * modules/memrchr (Makefile.am): Likewise.
22775         * modules/memset (Makefile.am): Likewise.
22776         * modules/memxor (Makefile.am): Likewise.
22777         * modules/mkancesdirs (Makefile.am): Likewise.
22778         * modules/mkdir (Makefile.am): Likewise.
22779         * modules/mkdir-p (Makefile.am): Likewise.
22780         * modules/mkdtemp (Makefile.am): Likewise.
22781         * modules/mkstemp (Makefile.am): Likewise.
22782         * modules/mktime (Makefile.am): Likewise.
22783         * modules/modechange (Makefile.am): Likewise.
22784         * modules/mountlist (Makefile.am): Likewise.
22785         * modules/nanosleep (Makefile.am): Likewise.
22786         * modules/openat (Makefile.am): Likewise.
22787         * modules/pagealign_alloc (Makefile.am): Likewise.
22788         * modules/physmem (Makefile.am): Likewise.
22789         * modules/poll (Makefile.am): Likewise.
22790         * modules/posixtm (Makefile.am): Likewise.
22791         * modules/posixver (Makefile.am): Likewise.
22792         * modules/putenv (Makefile.am): Likewise.
22793         * modules/quote (Makefile.am): Likewise.
22794         * modules/quotearg (Makefile.am): Likewise.
22795         * modules/raise (Makefile.am): Likewise.
22796         * modules/read-file (Makefile.am): Likewise.
22797         * modules/readline (Makefile.am): Likewise.
22798         * modules/readlink (Makefile.am): Likewise.
22799         * modules/readtokens (Makefile.am): Likewise.
22800         * modules/readutmp (Makefile.am): Likewise.
22801         * modules/realloc (Makefile.am): Likewise.
22802         * modules/regex (Makefile.am): Likewise.
22803         * modules/rename (Makefile.am): Likewise.
22804         * modules/rename-dest-slash (Makefile.am): Likewise.
22805         * modules/rijndael (Makefile.am): Likewise.
22806         * modules/rmdir (Makefile.am): Likewise.
22807         * modules/rpmatch (Makefile.am): Likewise.
22808         * modules/safe-read (Makefile.am): Likewise.
22809         * modules/safe-write (Makefile.am): Likewise.
22810         * modules/same (Makefile.am): Likewise.
22811         * modules/save-cwd (Makefile.am): Likewise.
22812         * modules/savedir (Makefile.am): Likewise.
22813         * modules/setenv (Makefile.am): Likewise.
22814         * modules/settime (Makefile.am): Likewise.
22815         * modules/sha1 (Makefile.am): Likewise.
22816         * modules/sig2str (Makefile.am): Likewise.
22817         * modules/snprintf (Makefile.am): Likewise.
22818         * modules/stdlib-safer (Makefile.am): Likewise.
22819         * modules/stpcpy (Makefile.am): Likewise.
22820         * modules/stpncpy (Makefile.am): Likewise.
22821         * modules/strcase (Makefile.am): Likewise.
22822         * modules/strcasestr (Makefile.am): Likewise.
22823         * modules/strchrnul (Makefile.am): Likewise.
22824         * modules/strcspn (Makefile.am): Likewise.
22825         * modules/strdup (Makefile.am): Likewise.
22826         * modules/strerror (Makefile.am): Likewise.
22827         * modules/strftime (Makefile.am): Likewise.
22828         * modules/strndup (Makefile.am): Likewise.
22829         * modules/strnlen (Makefile.am): Likewise.
22830         * modules/strpbrk (Makefile.am): Likewise.
22831         * modules/strsep (Makefile.am): Likewise.
22832         * modules/strstr (Makefile.am): Likewise.
22833         * modules/strtod (Makefile.am): Likewise.
22834         * modules/strtoimax (Makefile.am): Likewise.
22835         * modules/strtok_r (Makefile.am): Likewise.
22836         * modules/strtol (Makefile.am): Likewise.
22837         * modules/strtoll (Makefile.am): Likewise.
22838         * modules/strtoul (Makefile.am): Likewise.
22839         * modules/strtoull (Makefile.am): Likewise.
22840         * modules/strtoumax (Makefile.am): Likewise.
22841         * modules/strverscmp (Makefile.am): Likewise.
22842         * modules/time_r (Makefile.am): Likewise.
22843         * modules/timegm (Makefile.am): Likewise.
22844         * modules/tmpfile-safer (Makefile.am): Likewise.
22845         * modules/unistd-safer (Makefile.am): Likewise.
22846         * modules/unlinkdir (Makefile.am): Likewise.
22847         * modules/userspec (Makefile.am): Likewise.
22848         * modules/utime (Makefile.am): Likewise.
22849         * modules/utimecmp (Makefile.am): Likewise.
22850         * modules/utimens (Makefile.am): Likewise.
22851         * modules/vasnprintf (Makefile.am): Likewise.
22852         * modules/vasprintf (Makefile.am): Likewise.
22853         * modules/vsnprintf (Makefile.am): Likewise.
22854         * modules/xalloc (Makefile.am): Likewise.
22855         * modules/xgetcwd (Makefile.am): Likewise.
22856         * modules/xnanosleep (Makefile.am): Likewise.
22857         * modules/xreadlink (Makefile.am): Likewise.
22858         * modules/xstrtod (Makefile.am): Likewise.
22859         * modules/xstrtol (Makefile.am): Likewise.
22860         * modules/xstrtold (Makefile.am): Likewise.
22861         * modules/yesno (Makefile.am): Likewise.
22862
22863 2006-10-12  Jim Meyering  <jim@meyering.net>
22864
22865         * m4/getloadavg.m4: Revert the change below.
22866
22867         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
22868         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
22869         fail with a symlink, which is what coreutils' ./bootstrap now
22870         creates by default.
22871
22872 2006-10-12  Bruno Haible  <bruno@clisp.org>
22873
22874         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
22875         mingw.
22876         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
22877         MSVC and mingw explicitly.
22878
22879 2006-10-11  Simon Josefsson  <jas@extundo.com>
22880             Bruno Haible  <bruno@clisp.org>
22881
22882         Add support for multiple gnulib-tool invocations in the scope of a
22883         single configure.ac file.
22884         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
22885         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
22886         with the same contents as the _LIBADD variable.
22887         (func_emit_initmacro_start, func_emit_initmacro_end,
22888         func_emit_initmacro_done): New functions.
22889         (func_import, func_create_testdir): Invoke them. Allow the identifiers
22890         gl_LIBOBJS and gl_LTLIBOBJS.
22891
22892 2006-10-11  Bruno Haible  <bruno@clisp.org>
22893
22894         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
22895         (func_create_testdir): Don't create po/Makefile.am, don't invoke
22896         autoreconf. Instead, invoke autopoint explicitly but move back the
22897         *.m4 files from gnulib.
22898
22899 2006-10-11  Bruno Haible  <bruno@clisp.org>
22900
22901         * gnulib-tool (func_usage): Make module names after --create-testdir
22902         optional.
22903         (func_create_testdir): If no module was specified, use nearly all
22904         modules.
22905
22906 2006-10-12  Jim Meyering  <jim@meyering.net>
22907
22908         Big performance improvement for fts-based tools that use FTS_NOSTAT.
22909         Avoid spurious inode-mismatch problems on non-POSIX file systems.
22910         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
22911         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
22912         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
22913         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
22914         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
22915         (fts_set_stat_required): New function.
22916         (fts_open): Defer the calls to fts_stat, if possible or requested.
22917         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
22918         into fts_stat itself.
22919         (fts_read): Perform any required (deferred) fts_stat call.
22920         (fts_build): Likewise, for the directory we're about to open and read.
22921         In the readdir loop, carefully decide whether each entry will require
22922         an eventual call to fts_stat, using dirent.d_type info if available.
22923         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
22924         a command line argument into this function.  Update all callers.
22925         Map a return value of FTS_DOT to FTS_D for a command line argument.
22926         * modules/fts (Depends-on): Add d-type.  Alphabetize.
22927         Thanks to Miklos Szeredi for his tenacity and for the initial
22928         bug report about "find" failing on a FUSE-based file system.
22929
22930         * lib/fts.c (fts_open): Use consistent indentation.
22931
22932 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
22935         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
22936         reported by Jim Meyering.  All uses of cache variables renamed
22937         to match Autoconf's.
22938         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
22939         the other one.
22940
22941         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22942         Fix misspelling in diagnostic.
22943
22944 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22945
22946         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
22947         defined.  Problem reported by Matthew Woehlke.
22948
22949         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
22950         Add support for Tandem NonStop R series.
22951         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
22952         Use new macro.
22953
22954         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
22955         (has_trailing_slash): Omit size arg; all callers changed.
22956         Omit 'inline', since it doesn't help performance and we'd
22957         need to configure it.
22958         Don't count //, ///, etc. as having a trailing slash.
22959         As a side effect, this removes a C99ism reported by Matthew Woehlke.
22960         (rpl_rename_dest_slash): On failure, use rename's errno rather
22961         than (in some cases) an incorrect or junk errno.
22962         Simplify code by removing need to compute length; this does
22963         cause it to make two passes instead of one over the file name,
22964         but it's worth it.
22965
22966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
22967         change, since Autoconf's version may no longer be appropriate now
22968         that we are using CVS Autoconf's version.  Add support for Tandem.
22969
22970 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22971             Bruno Haible  <bruno@clisp.org>
22972
22973         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
22974         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
22975         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
22976         gl_AC_TYPE_LONG_LONG.
22977
22978         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
22979         instead of HAVE_LONG_LONG.
22980         * lib/printf-args.c (printf_fetchargs): Likewise.
22981         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22982         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22983         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
22984         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
22985         gl_AC_TYPE_LONG_LONG.
22986
22987 2006-10-11  Bruno Haible  <bruno@clisp.org>
22988
22989         * m4/longlong.m4: Add comments.
22990         * m4/ulonglong.m4: Likewise.
22991
22992 2006-10-10  Bruno Haible  <bruno@clisp.org>
22993
22994         Make it possible to #define stpcpy, strdup to aliases.
22995         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
22996         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
22997
22998 2006-10-10  Bruno Haible  <bruno@clisp.org>
22999
23000         Make it possible to #define gcd to an alias.
23001         * lib/gcd.c: Include config.h.
23002
23003 2006-10-10  Bruno Haible  <bruno@clisp.org>
23004
23005         Make it possible to #define c_isascii to an alias.
23006         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23007         defined. Undefine the macros before defining them, to avoid gcc
23008         warnings.
23009         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23010         define NO_C_CTYPE_MACROS early.
23011
23012 2006-10-10  Bruno Haible  <bruno@clisp.org>
23013
23014         Make it possible to #define set_program_name to an alias.
23015         * lib/progname.c: Don't undefine set_program_name; instead, undefine
23016         ENABLE_RELOCATABLE early.
23017
23018 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23019
23020         Port to Tandem NSK OSS, which has 64-bit signed int but at most
23021         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
23022         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23023         More generally, don't assume that 64-bit signed int is available
23024         if unsigned int is, and vice versa.
23025         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23026         unsigned symbols, not on their signed counterparts.
23027         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23028         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23029         (UINT64_C, UINTMAX_C):
23030         Likewise.
23031         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23032         unsigned counterparts.
23033         (Have_long_long, Unsigned): New macros.
23034         (Int): Renamed from INT.
23035         (strtoimax): Use the new macros.
23036         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23037         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23038         * modules/inttypes (inttypes.h): Substitute
23039         HAVE_UNSIGNED_LONG_LONG_INT.
23040         * modules/stdint (stdint.h): Likewise.
23041         (Files): Add m4/ulonglong.m4.
23042
23043 2006-10-10  Bruno Haible  <bruno@clisp.org>
23044
23045         Fix a gcc -Wshadow warning.
23046         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23047         to 'bucket'.
23048         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23049         gl_linked_indexof_from_to): Likewise.
23050         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23051         Likewise.
23052         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23053         Likewise.
23054         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23055         Reported by Eric Blake.
23056
23057 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23060         for NetBSD.  Problem reported by Bruno Haible.
23061
23062 2006-10-09  Jim Meyering  <jim@meyering.net>
23063
23064         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23065         Patch from Bruno Haible.
23066
23067 2006-10-09  Jim Meyering  <jim@meyering.net>
23068
23069         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
23070         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
23071         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
23072
23073 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23074
23075         Don't include <config.h> twice; this doesn't work in some cases,
23076         e.g., when config.h has "#define intmax_t long long int" and
23077         we include <config.h>, <inttypes.h>, <config.h> in that order.
23078         Problem reported by Matthew Woehlke in:
23079         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
23080         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
23081         * lib/fts-cycle.c: Don't include config.h.
23082         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
23083         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
23084         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
23085         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
23086         inttypes.h.
23087         * lib/xstrtoumax.c: Likewise.
23088         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
23089         __strtol and the like, so that this module is more like its siblings.
23090         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
23091         Remove; no longer needed now that we assume gnulib inttypes.h.
23092
23093 2006-10-08  Bruno Haible  <bruno@clisp.org>
23094
23095         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
23096         option.
23097
23098 2006-10-07  Jim Meyering  <jim@meyering.net>
23099
23100         * modules/inttypes (inttypes.h): Revert what seems to have been
23101         an inadvertent part of today's change: use "|", not "/" in the
23102         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
23103
23104 2006-10-07  Bruno Haible  <bruno@clisp.org>
23105
23106         * modules/sublist: New file.
23107
23108 2006-10-07  Bruno Haible  <bruno@clisp.org>
23109
23110         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
23111         * modules/argz (argz.h): Likewise.
23112         * modules/arpa_inet (arpa/inet.h): Likewise.
23113         * modules/byteswap (byteswap.h): Likewise.
23114         * modules/configmake (configmake.h): Likewise.
23115         * modules/fcntl (fcntl.h): Likewise.
23116         * modules/fnmatch (fnmatch.h): Likewise.
23117         * modules/getopt (getopt.h): Likewise.
23118         * modules/glob (glob.h): Likewise.
23119         * modules/inttypes (inttypes.h): Likewise.
23120         * modules/netinet_in (netinet/in.h): Likewise.
23121         * modules/poll (poll.h): Likewise.
23122         * modules/stdbool (stdbool.h): Likewise.
23123         * modules/stdint (stdint.h): Likewise.
23124         * modules/sys_select (sys/select.h): Likewise.
23125         * modules/sys_socket (sys/socket.h): Likewise.
23126         * modules/sys_stat (sys/stat.h): Likewise.
23127         * modules/sysexits (sysexits.h): Likewise.
23128         * modules/unistd (unistd.h): Likewise.
23129         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23130         Add a "DO NOT EDIT" comment to the generated file.
23131         (func_import): Likewise for gnulib-comp.m4.
23132
23133 2006-10-07  Bruno Haible  <bruno@clisp.org>
23134
23135         * lib/gl_sublist.h: New file.
23136         * lib/gl_sublist.c: New file.
23137
23138 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23139
23140         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23141         name (relative to the original working directory) and the file
23142         name component (relative to the temporary working directory).  All
23143         callers changed.
23144         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23145         * lib/mkdir-p.c (make_dir_parents): Likewise.
23146         * lib/mkdir-p.h (make_dir_parents): Likewise.
23147
23148 2006-10-06  Eric Blake  <ebb9@byu.net>
23149
23150         Define several macros for use by the clean-temp module.
23151         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23153         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23154
23155         * lib/clean-temp.h (close_stream_temp): New declaration.
23156         * lib/clean-temp.c (includes): Pull in headers according to what
23157         other modules are in use.
23158         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23159
23160 2006-10-06  Bruno Haible  <bruno@clisp.org>
23161
23162         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23163         instead of fopen, fwriteerror.
23164
23165 2006-10-06  Bruno Haible  <bruno@clisp.org>
23166
23167         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23168         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23169         int.
23170         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23171         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23172         Return an error indicator.
23173         Suggested by Eric Blake.
23174
23175 2006-10-06  Bruno Haible  <bruno@clisp.org>
23176
23177         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23178         Reported by Eric Blake.
23179
23180 2006-10-06  Bruno Haible  <bruno@clisp.org>
23181
23182         * modules/closeout (Description): Mention stderr too.
23183
23184 2006-10-06  Bruno Haible  <bruno@clisp.org>
23185         and Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         * lib/closeout.c (close_stdout): Also close stderr.
23188         * lib/closeout.h: Update comment.
23189
23190 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23193         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23194         * lib/dirchownmod.c: Include lchown.h.
23195         * lib/lchown.c: Don't include files that lchown.h now includes.
23196         Don't declare chown, since lchown.h now does that.
23197         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23198         (lchown): Define to rpl_chown if lchown is declared but
23199         does not exist.  Declare using a prototype if lchown is not
23200         declared.  Add a copyright notice.
23201         * lib/mkstemp.h: Include <unistd.h>.
23202         * lib/openat.c: Include lchown.h.
23203
23204         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23205         we now test for that separately.
23206         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23207         rather than O_NOFOLLOW, when testing whether it's possible to
23208         avoid a race condition reliably.
23209         * lib/savewd.c (savewd_chdir): Likewise.
23210
23211         Remove macros that are no longer needed now that stdint.h is
23212         reliable.
23213         * lib/fsusage.c (UINTMAX_MAX): Remove.
23214         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23215         * lib/utimecmp.c (SIZE_MAX): Remove.
23216
23217         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23218
23219         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23220         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
23221         O_NOATIME works.
23222
23223 2006-10-05  Bruno Haible  <bruno@clisp.org>
23224
23225         * lib/gl_list.h (gl_sortedlist_search_from_to,
23226         gl_sortedlist_indexof_from_to): New declarations.
23227         (gl_list_implementation): New fields sortedlist_search_from_to,
23228         sortedlist_indexof_from_to.
23229         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23230         inline functions.
23231         * lib/gl_list.c (gl_sortedlist_search_from_to,
23232         gl_sortedlist_indexof_from_to): New functions.
23233         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23234         function.
23235         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23236         (gl_array_sortedlist_search_from_to): New function.
23237         (gl_array_list_implementation): Update.
23238         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23239         function.
23240         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23241         (gl_carray_sortedlist_search_from_to): New function.
23242         (gl_carray_list_implementation): Update.
23243         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23244         gl_linked_sortedlist_indexof_from_to): New functions.
23245         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23246         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23247         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23248         gl_tree_sortedlist_indexof_from_to): New functions.
23249         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23250         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23251         Update.
23252         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23253         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23254         Update.
23255
23256 2006-10-05  Bruno Haible  <bruno@clisp.org>
23257
23258         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23259         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23260         (struct gl_list_implementation): Add fields search_from_to,
23261         indexof_from_to. Remove fields search, indexof.
23262         (gl_list_search): Use the search_from_to method.
23263         (gl_list_search_from, gl_list_search_from_to): New functions.
23264         (gl_list_indexof): Use the indexof_from_to method.
23265         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23266         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23267         (gl_list_search_from, gl_list_search_from_to): New functions.
23268         (gl_list_indexof): Use the indexof_from_to method.
23269         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23270         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23271         gl_array_indexof. Add start_index, end_index arguments.
23272         (gl_array_search_from_to): Renamed from gl_array_search. Add
23273         start_index, end_index arguments.
23274         (gl_array_remove, gl_array_list_implementation): Update.
23275         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23276         gl_carray_indexof. Add start_index, end_index arguments.
23277         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23278         start_index, end_index arguments.
23279         (gl_carray_remove, gl_carray_list_implementation): Update.
23280         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23281         gl_linked_search. Add start_index, end_index arguments.
23282         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23283         start_index, end_index arguments.
23284         (gl_linked_remove): Update.
23285         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23286         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23287         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23288         field to 'size_t'.
23289         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23290         gl_tree_search. Add start_index, end_index arguments.
23291         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23292         start_index, end_index arguments.
23293         (gl_tree_remove): Update.
23294         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23295         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23296         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23297         function.
23298         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23299         gl_tree_search. Add start_index, end_index arguments.
23300         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23301         start_index, end_index arguments.
23302         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23303         Update.
23304         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23305
23306 2006-10-05  Bruno Haible  <bruno@clisp.org>
23307
23308         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23309
23310         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23311         fwriteerror_temp): New declarations.
23312         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23313         (descriptors): New variable.
23314         (cleanup): First, close the descriptors.
23315         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23316         fclose_temp, fwriteerror_temp): New functions.
23317
23318 2006-10-04  Jim Meyering  <jim@meyering.net>
23319
23320         * lib/fts.c (fts_open): Tiny comment change.
23321
23322 2006-10-04  Bruno Haible  <bruno@clisp.org>
23323
23324         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23325         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23326         gl_LOCK_BODY.
23327         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23328         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23329         gl_LOCK_EARLY_BODY.
23330         (gl_LOCK): Require gl_LOCK_BODY.
23331
23332 2006-10-04  Bruno Haible  <bruno@clisp.org>
23333
23334         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23335         (gl_oset_search_atleast): New declaration.
23336         (struct gl_oset_implementation): Add field 'search_atleast'.
23337         (gl_oset_search_atleast): New inline function.
23338         * lib/gl_oset.c (gl_oset_search_atleast): New function.
23339         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23340         (gl_array_oset_implementation): Update.
23341         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23342         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23343         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23344
23345 2006-10-04  Bruno Haible  <bruno@clisp.org>
23346
23347         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23348
23349 2006-10-03  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23352         from gl_avltreehash_list_implementation.
23353
23354 2006-10-03  Bruno Haible  <bruno@clisp.org>
23355
23356         * lib/gl_oset.c (gl_oset_add): Fix return type.
23357
23358 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
23359
23360         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23361
23362 2006-10-02  Eric Blake  <ebb9@byu.net>
23363
23364         * modules/strnlen (Depends-on): Add extensions.
23365
23366 2006-10-02  Eric Blake  <ebb9@byu.net>
23367
23368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23369         definition in 2.60+.
23370
23371 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
23372
23373         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23374         checks.
23375
23376 2006-10-02  Bruno Haible  <bruno@clisp.org>
23377
23378         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23379         to the AUTOMAKE_OPTIONS.
23380         Reported by Jim Meyering.
23381
23382 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23383
23384         Work around bug in Solaris 10 /proc file system:
23385         /proc/self/fd/NNN/.. isn't the parent directory of
23386         the directory whose file descriptor is NNN.  This needs to
23387         be worked around at run time, not compile time, since a
23388         program might be built on Solaris 8, where things work, and
23389         run on Solaris 10.
23390         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
23391         to use the following interface instead:
23392         (OPENAT_BUFFER_SIZE): New macro.
23393         (openat_proc_name): New function.
23394         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23395         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23396         Likewise.
23397         * lib/openat-proc.c: New file.
23398         * modules/openat (Files): Add lib/openat-proc.c.
23399         (Depends-on): Add same-inode, stdbool.
23400         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23401
23402 2006-09-29  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23405         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23406         argument. Set stdout_closed before testing for ferror, not after.
23407         (fwriteerror, fwriteerror_no_ebadf): New functions.
23408
23409 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23410
23411         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23412
23413 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
23414
23415         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23416         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23417
23418 2006-09-28  Jim Meyering  <jim@meyering.net>
23419
23420         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23421         Include <unistd.h>.
23422
23423 2006-09-28  Bruno Haible  <bruno@clisp.org>
23424
23425         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23426         * modules/linkedhash-list (Depends-on): Likewise.
23427         * modules/rbtreehash-list (Depends-on): Likewise.
23428
23429 2006-09-28  Bruno Haible  <bruno@clisp.org>
23430
23431         * lib/strndup.h: Simplify the redefinition of strndup.
23432         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23434
23435 2006-09-28  Bruno Haible  <bruno@clisp.org>
23436
23437         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23438         * lib/gl_linkedhash_list.c: Likewise.
23439         * lib/gl_rbtreehash_list.c: Likewise.
23440
23441 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23442
23443         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23444         getaddrinfo.
23445
23446         * lib/__fpending.h: Don't include <stdio_ext.h> unless
23447         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
23448         it causes <stdio_ext.h> to cause a compile-time error.
23449         Problem reported by Nelson H. F. Beebe.
23450         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23451         of HAVE_DECL___PENDING.
23452
23453         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23454         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23455         declaration.
23456
23457 2006-09-27  Jim Meyering  <jim@meyering.net>
23458
23459         This file could end up with a definition for a function
23460         named __strndup, rather than rpl_strndup on a system with
23461         incomplete weak_alias support.
23462         * lib/strndup.c (strndup): Rename from __strndup.
23463         Remove #defines that used to map __strndup to strndup.
23464         Don't use K&R prototypes.
23465         Remove LIBC-related code, since this file is not sync'd with glibc.
23466         * lib/strndup.h: Revamp, accordingly.
23467         * m4/strndup.m4: Modernize.
23468
23469 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23470
23471         * modules/savewd (Depends-on): Add 'raise'.
23472         * lib/savewd.c: Include <signal.h>, for 'raise'.
23473
23474 2006-09-26  Jim Meyering  <jim@meyering.net>
23475
23476         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23477         when we detect Darwin 8.7.0's acl_get_file bug.
23478         Rearrange to perform the new (below) run-test while $LIBS
23479         contains any acl-related library.  Set USE_ACL at the end.
23480         (gl_ACL_GET_FILE): New function.
23481
23482 2006-09-26  Eric Blake  <ebb9@byu.net>
23483
23484         * lib/verror.c: Include <config.h> unconditionally.
23485
23486 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23487
23488         * modules/clock-time (Maintainer): Add self.
23489         * modules/getlogin_r (Depends-on): Add extensions.
23490
23491 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23492
23493         * modules/clock-time: New module.
23494         * modules/nanosleep (Depends-on): Add clock-time.
23495         * modules/gethrxtime (Depends-on): Likewise.
23496         * modules/gettime (Depends-on): Likewise.
23497         * modules/settime (Depends-on): Likewise.
23498
23499         * modules/fts-lgpl: Depend on openat.
23500         * modules/mkancesdirs: Depend on savewd.
23501         * modules/mkdir-p: Likewise.
23502
23503 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23504
23505         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23506
23507         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23508         `gl_have_arbitrary_file_name_length_limit' to
23509         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23510         actually works between configure runs.
23511
23512 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23513             Bruno Haible  <bruno@clisp.org>
23514
23515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23516
23517 2006-09-25  Jim Meyering  <jim@meyering.net>
23518
23519         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23520         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23521
23522 2006-09-25  Eric Blake  <ebb9@byu.net>
23523
23524         * gnulib-tool (func_import, func_create_testdir): Fix typos in
23525         exec's in 2006-09-18 patch when shuffling fds.
23526
23527 2006-09-25  Bruno Haible  <bruno@clisp.org>
23528
23529         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23530         Reported by Jim Meyering.
23531
23532 2006-09-24  Jim Meyering  <jim@meyering.net>
23533
23534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23535         compare a pointer against a literal "0".  That caused failures with
23536         at least HP-UX's hpcc.
23537
23538 2006-09-22  Simon Josefsson  <jas@extundo.com>
23539
23540         * modules/gc-sha1:
23541         * modules/gc-md4:
23542         * modules/gc-hmac-sha1:
23543         * modules/gc-hmac-md5:
23544         * modules/gc-des:
23545         * modules/gc-arcfour: Distribute more files.
23546
23547 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23548
23549         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23550         (gl_linked_iterator_from_to): Initialize struct completely.
23551         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23552         (gl_tree_iterator_from_to): Likewise
23553         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23554         * lib/gl_array_list.c [lint] (gl_array_iterator)
23555         (gl_array_iterator_from_to): Likewise.
23556         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23557         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23558         (gl_carray_iterator_from_to): Likewise.
23559
23560         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23561         * lib/md4.c (md4_process_block): Remove unused variable.
23562         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23563         parentheses for clarity.
23564
23565 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23566
23567         * modules/bison-i18n (Depends-on): Add gettext.
23568
23569 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23570
23571         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23572         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23573         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23574         also add missing comma that caused broken test.
23575         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23576         stdlib.h, for `abort'.
23577         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23578         variables.
23579         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23580         include unistd.h if present, for `rmdir'.
23581         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23582         variables.
23583         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23584         in the process include standard headers for prototypes.
23585         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23586         gets declared on GNU/Linux.
23587         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23588         unistd.h, for `rmdir'.
23589         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23590
23591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23592         always true.
23593         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23594
23595         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23596
23597 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23598
23599         * gnulib-tool (func_version): Create output all at once.  This
23600         may help avoid triggering unnecessary SIGPIPEs, and at any
23601         rate it doesn't hurt.
23602
23603 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23604             Bruno Haible  <bruno@clisp.org>
23605
23606         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23608         * m4/signed.m4 (bh_C_SIGNED): Likewise.
23609
23610         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23611         (gl_FUNC_VASPRINTF): Invoke it.
23612
23613 2006-09-22  Bruno Haible  <bruno@clisp.org>
23614
23615         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23616         getloadavg.c as first argument.
23617
23618 2006-09-22  Bruno Haible  <bruno@clisp.org>
23619
23620         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23621         at the beginning of the gl_INIT macro.
23622         * modules/getloadavg (configure.ac): Pass $gl_source_base to
23623         gl_GETLOADAVG.
23624
23625 2006-09-22  Bruno Haible  <bruno@clisp.org>
23626
23627         * gnulib-tool (func_create_megatestdir): Don't include the config-h
23628         module.
23629         Suggested by Ralf Wildenhues.
23630
23631 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23632
23633         Import this patch from libc:
23634
23635         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
23636
23637         * lib/regex_internal.c (re_string_reconstruct): Handle
23638         offset < pstr->valid_raw_len && pstr->offsets_needed case.
23639         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
23640         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23641         re_string_context_at.
23642
23643         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23644         now requires it.
23645         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23646         gl_REGEX now does it for us.
23647         (gl_REGEX): Add test taken from
23648         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23649
23650         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23651         Check that large offsets work.  Modernize Autoconf usages.
23652         Prefer "yes" to mean a good thing rather than a bad.
23653         Don't put "#define mkstemp" in config.h, as this might interfere
23654         with standard system headers that "#define mkstemp mkstemp64".
23655
23656         * modules/mkstemp (Depends-on): Add extensions, so that
23657         mkstemp is visible on some platforms.
23658         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23659         (Include): Change to "mkstemp.h" from <stdlib.h>.
23660         (Files): Add mkstemp.h.
23661
23662         * lib/mkstemp.h: New file, since some standard headers
23663         #define mkstemp.
23664         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23665         Include "mkstemp.h".
23666         Make the _LIBC code resemble glibc original more,
23667         e.g., use K&R style.
23668         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23669         (mkstemp): Remove, since mkstemp.h does this for us.
23670         * lib/stdlib--.h: Include mkstemp.h.
23671
23672         Import this patch from libc:
23673
23674         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23675
23676         * lib/tempname.c (__gen_tempname): Change attempts_min
23677         into a macro.  Use preprocessor to decide how to initialize
23678         attempts [Coverity CID 67].
23679
23680 2006-09-20  Bruno Haible  <bruno@clisp.org>
23681
23682         * lib/mkdtemp.c: Import from libc.
23683         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23684                 * sysdeps/posix/tempname.c (__gen_tempname): Change
23685                 attempts_min into a macro.  Use preprocessor to decide how to
23686                 initialize attempts [Coverity CID 67].
23687         2001-11-27  Paul Eggert  <eggert@twinsun.com>
23688                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23689                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23690
23691 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23692
23693         * gnulib-tool (func_exit): New function, to allow to pass the
23694         exit status portably through the trap.  Use everywhere.
23695         (--help, --version): Signal a write error.
23696         (trap): catch SIGPIPE, for write errors.
23697         Exit at the end of the trap, with the correct exit status.
23698
23699 2006-09-19  Karl Berry  <karl@gnu.org>
23700
23701         * doc/gnulib.texi: note about the license texinfo files.
23702
23703 2006-09-19  Eric Blake  <ebb9@byu.net>
23704
23705         * gnulib-tool: Avoid space-tab.
23706
23707 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23708
23709         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23710         that prevented coreutils 6.1 from building.  Problem reported
23711         by Petter Reinholdtsen.
23712
23713 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23714
23715         * gnulib-tool (avoidlist): Fix typo that broke options like
23716         --avoid=lock that are used by coreutils bootstrap.
23717
23718 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
23719
23720         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23721         more systematically.
23722
23723 2006-09-18  Jim Meyering  <jim@meyering.net>
23724
23725         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23726
23727 2006-09-18  Bruno Haible  <bruno@clisp.org>
23728
23729         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23730
23731 2006-09-18  Bruno Haible  <bruno@clisp.org>
23732
23733         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23734         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23735         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23736         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23737         * m4/gettext.m4: Require autoconf >= 2.52.
23738         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23739         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23740         of gl_cv_header_inttypes_h.
23741
23742 2006-09-18  Bruno Haible  <bruno@clisp.org>
23743
23744         * lib/javaversion.c: Include configmake.h.
23745
23746 2006-09-18  Bruno Haible  <bruno@clisp.org>
23747
23748         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23749         avoid that the while loops be executed in a subshell.
23750
23751 2006-09-18  Bruno Haible  <bruno@clisp.org>
23752
23753         * MODULES.html.sh (func_module): Break long lines.
23754         Suggested by Bruce Korb <bkorb@gnu.org>.
23755
23756 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23757
23758         Speed up by a factor of 1.12.
23759         * gnulib-tool (nl): New variable.
23760         (func_import): Rewrite include directive extraction to only read each
23761         directive once.
23762
23763 2006-09-17  Bruno Haible  <bruno@clisp.org>
23764
23765         * modules/javaversion (Makefile.am): Remove DEFS setting.
23766         (Depends-on): Add configmake, for PKGDATADIR definition.
23767
23768 2006-09-17  Bruno Haible  <bruno@clisp.org>
23769
23770         * gnulib-tool (func_create_testdir): Rewrite all files at once.
23771
23772 2006-09-17  Bruno Haible  <bruno@clisp.org>
23773
23774         * gnulib-tool (func_append): New function, stolen from libtool.m4.
23775         (func_modules_transitive_closure, func_modules_add_dummy,
23776         func_modules_to_filelist, func_import, func_create_testdir,
23777         func_create_megatestdir, ...): Use it wherever possible.
23778         Suggested by Ralf Wildenhues.
23779
23780 2006-09-16  Karl Berry  <karl@gnu.org>
23781
23782         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23783         to avoid sectioning errors.
23784         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23785         [ifinfo]: blank line after @center-ed titles.
23786         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23787         Spell FSF address consistently with others.
23788         (These changes approved by rms.)
23789
23790 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23791
23792         Speed up by a factor of 1.61.
23793         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23794         already checked module names again.
23795
23796 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23797
23798         Speed up by a factor of 1.13.
23799         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23800         for new_files, and the input to func_add_or_update.
23801
23802 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23803
23804         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23805         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23806
23807 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         * modules/mkancesdirs (Depends-on): Add fcntl.
23810         * modules/savewd: New file.
23811         * MODULES.html.sh (File system functions): Add savewd.
23812
23813         * modules/configmake (Makefile.am): Add support for the
23814         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23815
23816 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23817
23818         * m4/savewd.m4: New file.
23819
23820 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23821
23822         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23823         (dirchownmod): New arg FD.  All callers changed.
23824         Use FD rather than opening the directory ourself, as opening is
23825         now the caller's responsibility.
23826         * lib/dirchownmod.h: Likewise.
23827         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23828         hosts that require <sys/types.h> before <sys/stat.h>.  Include
23829         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23830         (test_dir): Remove.
23831         (mkancesdirs): Return length of prefix of FILE that has already
23832         been made, or -2 if there is a child doing the work.  Redo
23833         algorithm so that it is O(N) rather than O(N**2).  Optimize away
23834         ".", and treat ".." specially since it might stray back into
23835         already-created areas.  Use a subprocess if necessary.  New arg
23836         WD; all users changed.  MAKE_DIR function should now return 1
23837         if it creates a directory that is not readable.  Return -2 if
23838         a child process is spun off.
23839         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23840         Adjust signature to match code.
23841         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23842         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
23843         all users changed.
23844         * lib/savewd.c, lib/savewd.h: New files.
23845
23846 2006-09-15  Jim Meyering  <jim@meyering.net>
23847
23848         * modules/rename-dest-slash: New module.
23849         * MODULES.html.sh (posix_compat): Add it here.
23850
23851         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23852
23853 2006-09-15  Jim Meyering  <jim@meyering.net>
23854
23855         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23856         file.
23857
23858         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23859
23860 2006-09-15  Jim Meyering  <jim@meyering.net>
23861
23862         * lib/rename-dest-slash.c (has_trailing_slash): Use
23863         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
23864         (rpl_rename_dest_slash): Perform the cheaper trailing slash
23865         test before testing whether SRC is a directory.
23866         Suggestions from Bruno Haible.
23867
23868         Avoid a warning about an unused variable.
23869         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
23870         into the #ifdef block where it's used.
23871
23872         * lib/rename-dest-slash.c: New file.
23873
23874 2006-09-14  Bruno Haible  <bruno@clisp.org>
23875
23876         * lib/allocsa.c: Include <config.h> unconditionally.
23877         * lib/asnprintf.c: Likewise.
23878         * lib/asprintf.c: Likewise.
23879         * lib/c-strcasecmp.c: Likewise.
23880         * lib/c-strcasestr.c: Likewise.
23881         * lib/c-strncasecmp.c: Likewise.
23882         * lib/c-strstr.c: Likewise.
23883         * lib/classpath.c: Likewise.
23884         * lib/clean-temp.c: Likewise.
23885         * lib/concatpath.c: Likewise.
23886         * lib/copy-file.c: Likewise.
23887         * lib/csharpcomp.c: Likewise.
23888         * lib/csharpexec.c: Likewise.
23889         * lib/execute.c: Likewise.
23890         * lib/fatal-signal.c: Likewise.
23891         * lib/findprog.c: Likewise.
23892         * lib/fwriteerror.c: Likewise.
23893         * lib/gl_array_list.c: Likewise.
23894         * lib/gl_array_oset.c: Likewise.
23895         * lib/gl_avltree_list.c: Likewise.
23896         * lib/gl_avltree_oset.c: Likewise.
23897         * lib/gl_avltreehash_list.c: Likewise.
23898         * lib/gl_carray_list.c: Likewise.
23899         * lib/gl_linked_list.c: Likewise.
23900         * lib/gl_linkedhash_list.c: Likewise.
23901         * lib/gl_list.c: Likewise.
23902         * lib/gl_oset.c: Likewise.
23903         * lib/gl_rbtree_list.c: Likewise.
23904         * lib/gl_rbtree_oset.c: Likewise.
23905         * lib/gl_rbtreehash_list.c: Likewise.
23906         * lib/imaxabs.c: Likewise.
23907         * lib/imaxdiv.c: Likewise.
23908         * lib/javacomp.c: Likewise.
23909         * lib/javaexec.c: Likewise.
23910         * lib/javaversion.c: Likewise.
23911         * lib/linebreak.c: Likewise.
23912         * lib/localcharset.c: Likewise.
23913         * lib/lock.c: Likewise.
23914         * lib/mbchar.c: Likewise.
23915         * lib/mbswidth.c: Likewise.
23916         * lib/mkdtemp.c: Likewise.
23917         * lib/pipe.c: Likewise.
23918         * lib/printf-args.c: Likewise.
23919         * lib/printf-parse.c: Likewise.
23920         * lib/progname.c: Likewise.
23921         * lib/progreloc.c: Likewise.
23922         * lib/readlink.c: Likewise.
23923         * lib/sh-quote.c: Likewise.
23924         * lib/stpcpy.c: Likewise.
23925         * lib/stpncpy.c: Likewise.
23926         * lib/strcasecmp.c: Likewise.
23927         * lib/strcasestr.c: Likewise.
23928         * lib/strcspn.c: Likewise.
23929         * lib/striconv.c: Likewise.
23930         * lib/strncasecmp.c: Likewise.
23931         * lib/strnlen1.c: Likewise.
23932         * lib/strstr.c: Likewise.
23933         * lib/strtok_r.c: Likewise.
23934         * lib/tls.c: Likewise.
23935         * lib/tmpdir.c: Likewise.
23936         * lib/unicodeio.c: Likewise.
23937         * lib/unsetenv.c: Likewise.
23938         * lib/vasnprintf.c: Likewise.
23939         * lib/vasprintf.c: Likewise.
23940         * lib/wait-process.c: Likewise.
23941         * lib/xallocsa.c: Likewise.
23942         * lib/xsetenv.c: Likewise.
23943         * lib/xstriconv.c: Likewise.
23944
23945 2006-09-13  Simon Josefsson  <jas@extundo.com>
23946
23947         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
23948         that internally, suggested by Ralf Wildenhues
23949         <Ralf.Wildenhues@gmx.de>.
23950
23951 2006-09-13  Simon Josefsson  <jas@extundo.com>
23952
23953         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
23954         @LIBOBJS@.
23955         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23956
23957 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23958
23959         * lib/_fpending.c: Include <config.h> unconditionally, since we no
23960         longer worry about uses that don't define HAVE_CONFIG_H.
23961         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
23962         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
23963         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
23964         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
23965         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
23966         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
23967         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
23968         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
23969         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
23970         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
23971         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
23972         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
23973         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
23974         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
23975         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
23976         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
23977         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
23978         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
23979         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
23980         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
23981         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
23982         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
23983         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
23984         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
23985         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
23986         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
23987         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
23988         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
23989         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
23990         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
23991         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
23992         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
23993         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
23994         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
23995         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
23996         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
23997         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
23998         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
23999         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24000         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24001         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24002         Likewise.
24003
24004 2006-09-13  Eric Blake  <ebb9@byu.net>
24005
24006         * lib/getopt.c: Fix typo in last commit.
24007
24008 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24009
24010         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24011         dgettext.
24012
24013 2006-09-12  Jim Meyering  <jim@meyering.net>
24014
24015         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24016         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24017         Reported by Nelson H. F. Beebe.
24018
24019 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24020
24021         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24022         program_invocation_name and program_invocation_short_name are
24023         initialized.
24024         * lib/argp-namefrob.h: Move declarations of program_invocation_name
24025         and program_invocation_short_name to argp.h, so they are visible
24026         to user programs.
24027         * lib/argp.h: Likewise
24028
24029 2006-09-10  Bruno Haible  <bruno@clisp.org>
24030
24031         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24032         m4/inttypes_h.m4, m4/uintmax_t.m4.
24033
24034 2006-09-10  Bruno Haible  <bruno@clisp.org>
24035
24036         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24037         gl_AC_TYPE_UINTMAX_T.
24038
24039 2006-09-10  Bruno Haible  <bruno@clisp.org>
24040
24041         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24042
24043 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24044
24045         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24046         convention.  Text proposed by Bruno Haible.
24047         (struct argp_option): Document the use of N_() wrappers.
24048
24049         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24050         '\v', and translate the two parts separately, instead of feeding
24051         the whole string to gettext.  This allows to exclude
24052         '\v' from the strings visible to the translator by writing doc
24053         strings as N_("..") "\v" N_("..").
24054
24055 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
24056
24057         * config/srclist.txt: Undo latest change; the bug was fixed.
24058
24059 2006-09-09  Bruno Haible  <bruno@clisp.org>
24060
24061         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
24062         assignments if building a library without libtool.
24063         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
24064         in func_emit_lib_Makefile_am.
24065         (func_import): When building a static library libfoo.a, arrange to
24066         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
24067         (func_create_testdir): Likewise.
24068         * modules/gc (configure.ac, Makefile.am): If building statically,
24069         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
24070         * modules/iconvme (configure.ac, Makefile.am): Likewise.
24071         * modules/striconv (configure.ac, Makefile.am): Likewise.
24072         Based on a suggestion by Ralf Wildenhues.
24073
24074 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24075
24076         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24077         Check for unistd.h too, since Autoconf doesn't assume POSIX.
24078         Also:
24079
24080         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24081         Add year_2050_test to catch glibc bug 2821
24082         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24083
24084         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24085         Prefer #ifdef to #if.
24086
24087         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
24088         Return from 'main' instead of calling 'exit'.
24089
24090 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24091
24092         * lib/mktime.c (guess_time_tm): Fix bug where mktime
24093         returned the maximum time_t value rather than (time_t) -1.
24094         Problem originally reported by William Bardwell
24095         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24096
24097         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24098         Moved to here ...
24099         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24100         ... from here.
24101
24102 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24103
24104         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
24105         2821 is fixed.
24106
24107 2006-09-08  Jim Meyering  <jim@meyering.net>
24108
24109         Don't make generated files read-only.  That would bother too many
24110         people.  However, do retain the ability to work when targets are
24111         read-only: remove the destination and temporary files before writing
24112         them (when generated via sed or echo), or by using the -f option for
24113         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
24114         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24115         * modules/byteswap, modules/configmake, modules/fcntl:
24116         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24117         * modules/localcharset, modules/netinet_in, modules/poll:
24118         * modules/stdbool, modules/stdint, modules/sys_select:
24119         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24120
24121 2006-09-08  Jim Meyering  <jim@meyering.net>
24122
24123         Avoid new build failure on FreeBSD 6.0.
24124         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
24125         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
24126         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
24127
24128 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24129
24130         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
24131
24132 2006-09-07  Jim Meyering  <jim@meyering.net>
24133
24134         Fix global typo in last change: use chmod u-w, not chmod u-x.
24135         Spotted by Paul Eggert and Bruce Korb.
24136         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24137         * modules/byteswap, modules/configmake, modules/fcntl:
24138         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24139         * modules/localcharset, modules/netinet_in, modules/poll:
24140         * modules/stdbool, modules/stdint, modules/sys_select:
24141         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24142
24143 2006-09-06  Jim Meyering  <jim@meyering.net>
24144
24145         Make generated files be read-only.
24146         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24147         Ensure that each generated file is now read-only.
24148         * modules/argz: Likewise.
24149         * modules/arpa_inet: Likewise.
24150         * modules/byteswap: Likewise.
24151         * modules/configmake: Likewise.
24152         * modules/fcntl: Likewise.
24153         * modules/fnmatch: Likewise.
24154         * modules/getopt: Likewise.
24155         * modules/glob: Likewise.
24156         * modules/inttypes: Likewise.
24157         * modules/netinet_in: Likewise.
24158         * modules/poll: Likewise.
24159         * modules/stdbool: Likewise.
24160         * modules/stdint: Likewise.
24161         * modules/sys_select: Likewise.
24162         * modules/sys_socket: Likewise.
24163         * modules/sys_stat: Likewise.
24164         * modules/sysexits: Likewise.
24165         * modules/localcharset: Same as above, but continue using temporary
24166         file named "t-$@" (why different?) rather than the "$@-t" used
24167         everywhere else.
24168
24169         * modules/sysexits (Makefile.am): Replace literal occurrences
24170         of "sysexit.h" more readable, and more consistent, "$@".
24171
24172 2006-09-06  Bruno Haible  <bruno@clisp.org>
24173
24174         * modules/striconv: New file.
24175         * modules/xstriconv: New file.
24176         * MODULES.html.sh (Internationalization functions): Add striconv,
24177         xstriconv.
24178
24179 2006-09-06  Bruno Haible  <bruno@clisp.org>
24180
24181         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24182         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24183         not using libtool correctly.
24184
24185 2006-09-06  Bruno Haible  <bruno@clisp.org>
24186
24187         * lib/striconv.h: New file.
24188         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24189         iconvstring.c.
24190         * lib/xstriconv.h: New file.
24191         * lib/xstriconv.c: New file.
24192
24193 2006-09-06  Bruno Haible  <bruno@clisp.org>
24194
24195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24196         lib_..._LDFLAGS.
24197
24198 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24199
24200         * lib/argz_.h: Sync from Libtool.
24201
24202         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
24203                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24204
24205         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24206
24207 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24208
24209         * modules/trim: New file.
24210
24211 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24212
24213         * lib/trim.h: New file.
24214         * lib/trim.c: New file.
24215
24216 2006-09-05  Bruno Haible  <bruno@clisp.org>
24217
24218         * MODULES.html.sh (String handling): Add trim.
24219
24220 2006-09-04  Karl Berry  <karl@gnu.org>
24221
24222         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24223         until next release.
24224
24225 2006-09-03  Bruno Haible  <bruno@clisp.org>
24226
24227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24228         correctly.
24229
24230 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24231
24232         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24233         not gl_GETLOADAVG.  Omit unneeded semicolons.
24234         Problems reported by Ralf Wildenhues in
24235         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24236         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
24237         at the end, which is the usual gnulib style.
24238
24239         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24240         of doing all the work ourselves.
24241         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24242         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24243
24244 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24245
24246         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24247         Problem reported by Ralf Wildenhues in
24248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24249
24250         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24251         HAVE_STRUCT_STATFS_F_FSTYPENAME.
24252
24253 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24254
24255         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24256         yesterday's patch by changing test -n to test -z.
24257
24258 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24259
24260         * modules/getloadavg (Files): Add m4/getloadavg.m4.
24261         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24262         the former is now obsolescent.
24263
24264         * modules/chdir-long (Depends-on): Add fcntl.
24265
24266 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24267
24268         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24269         obsolescent, and programs should use gnulib instead.
24270         * m4/getloadavg.m4: New file, with contents taken from Autoconf
24271         but with prefixes changed.
24272
24273 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24274
24275         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24276         or stdbool.h, because they might not exist while configuring.
24277
24278         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24279         Don't include unistd.h or limits.h; not needed, since chdir-long.h
24280         does that for us.
24281         (O_DIRECTORY): Remove.
24282
24283 2006-08-31  Eric Blake  <ebb9@byu.net>
24284
24285         * gnulib-tool: Don't let emacs change spaces to TAB.
24286
24287 2006-08-31  Bruno Haible  <bruno@clisp.org>
24288
24289         * gnulib-tool: When calling func_import more than once, do it in a
24290         subshell.
24291         Reported by Eric Blake <ebb9@byu.net>.
24292
24293 2006-08-31  Bruno Haible  <bruno@clisp.org>
24294
24295         * gnulib-tool (nl): Remove variable.
24296         (sed_transform_lib_file): Use more robust test for config-h module.
24297         (func_import): Fix typo in 2006-08-25 patch.
24298
24299 2006-08-31  Bruno Haible  <bruno@clisp.org>
24300
24301         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24302         specified, augment Makefile.am variables instead of assigning them.
24303
24304 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24305
24306         Work around a bug in both the Linux and SunOS 64-bit kernels:
24307         nanosleep mishandles sleeps for longer than 2**31 seconds.
24308         Problem reported by Frank v Waveren in
24309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24311         Check for nanosleep bug.
24312         (LIB_NANOSLEEP): Append clock_gettime library if needed.
24313
24314 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24315
24316         Work around a bug in both the Linux and SunOS 64-bit kernels:
24317         nanosleep mishandles sleeps for longer than 2**31 seconds.
24318         Problem reported by Frank v Waveren in
24319         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24320         * lib/nanosleep.c (BILLION): New constant.
24321         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24322         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24323         implementation.
24324
24325 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24326
24327         * modules/nanosleep (Depends-on): Add gettime.
24328
24329 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24330         and Simon Josefsson  <jas@extundo.com>
24331         and Oskar Liljeblad  <oskar@osk.mine.nu>
24332
24333         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24334         * gnulib-tool (func_import): New license type 'unmodifiable license
24335         text'.
24336         * modules/fdl: Use it.  Longer description.
24337         * module/gpl, module/lgpl: New files.
24338
24339 2006-08-30  Jim Meyering  <jim@meyering.net>
24340
24341         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24342         shadowing the parameter.
24343
24344 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24345
24346         Sync from Libtool:
24347
24348         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24349
24350         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24351         sharing with gnulib.  Report by Eric Blake.
24352
24353 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24354
24355         * modules/isapipe: New file.
24356         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24357
24358 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24359
24360         * modules/configmake (Makefile.am): Add a comment, and omit
24361         the CONFIGMAKE_ prefix from generated macro names.  Suggested
24362         by Bruno Haible.
24363
24364 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24365
24366         * m4/isapipe.m4: New file.
24367
24368 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24369
24370         * lib/isapipe.c, lib/isapipe.h: New files.
24371
24372 2006-08-29  Jim Meyering  <jim@meyering.net>
24373
24374         * modules/configmake (Makefile.am): Make configmake.h depend on
24375         Makefile.  Otherwise, a stale configmake.h could hang around.
24376
24377 2006-08-29  Eric Blake  <ebb9@byu.net>
24378
24379         * lib/error.c (error_at_line, print_errno_message): Match libc, after
24380         resolution of upstream bug 3044.
24381
24382 2006-08-29  Bruno Haible  <bruno@clisp.org>
24383
24384         * modules/localcharset (Depends-on): Add configmake.
24385         (Makefile.am): Remove setting of LIBDIR through DEFS.
24386
24387 2006-08-29  Bruno Haible  <bruno@clisp.org>
24388
24389         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24390         defined.
24391
24392 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24393
24394         * modules/fcntl: New file.
24395         * modules/chdir-safer (Depends-on): Add fcntl.
24396         * modules/fts: Likewise.
24397         * modules/mkdir-p: Likewise.
24398
24399         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24400         This undoes the most recent change, since we're now addressing the
24401         problem in a different way.
24402
24403         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24404         into output, since the output might be called Makefile.am even
24405         if $makefile_name is something different.
24406         (func_import): Use $makefile_am rather than
24407         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24408         empty.
24409
24410         * modules/inttypes (Files): Add m4/inttypes-h.m4.
24411
24412 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24413
24414         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24415         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
24416         recent change to stdint.m4, since we're now addressing the problem in a
24417         different way.
24418
24419 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24420
24421         * m4/fcntl_h.m4: New file.
24422
24423 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24424
24425         * lib/fcntl_.h: New file.
24426         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24427         the fcntl module.
24428         * lib/dirchownmod.c: Likewise.
24429         * lib/fts.c: Likewise.
24430
24431         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24432         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24433         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24434         just before including <inttypes.h>, to avoid circular inclusion.
24435
24436 2006-08-28  Jim Meyering  <jim@meyering.net>
24437
24438         * doc/visibility.texi: Actually read and correct the grammar of the
24439         sentence affected by yesterday's change.
24440
24441 2006-08-28  Eric Blake  <ebb9@byu.net>
24442
24443         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24444         needs wrapper.
24445
24446 2006-08-28  Eric Blake  <ebb9@byu.net>
24447
24448         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24449
24450 2006-08-28  Eric Blake  <ebb9@byu.net>
24451
24452         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24453
24454 2006-08-28  Bruno Haible  <bruno@clisp.org>
24455
24456         * modules/c-strstr: New file, from GNU gettext.
24457         * MODULES.html.sh (String handling): Add c-strstr.
24458
24459 2006-08-28  Bruno Haible  <bruno@clisp.org>
24460
24461         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24462         macros.
24463         Reported by Eric Blake.
24464
24465 2006-08-28  Bruno Haible  <bruno@clisp.org>
24466
24467         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24468         (VASNPRINTF): Return a string of length > INT_MAX without failing.
24469         * lib/vasprintf.c: Include errno.h, limits.h.
24470         (EOVERFLOW): New fallback definition.
24471         (vasprintf): Test here whether the string length is > INT_MAX.
24472         * lib/vsnprintf.c: Include errno.h, limits.h.
24473         (EOVERFLOW): New fallback definition.
24474         (vsnprintf): Fix bug when generated string was too long for the buffer.
24475         Test here whether the string length is > INT_MAX.
24476
24477 2006-08-28  Bruno Haible  <bruno@clisp.org>
24478
24479         * lib/inttypes_.h (SCNX*): Remove definitions.
24480         Reported by Eric Blake.
24481
24482 2006-08-28  Bruno Haible  <bruno@clisp.org>
24483
24484         * lib/c-strstr.h: New file, from GNU gettext.
24485         * lib/c-strstr.c: New file, from GNU gettext.
24486
24487 2006-08-28  Bruno Haible  <bruno@clisp.org>
24488
24489         * gnulib-tool: Reorder some statements.
24490
24491 2006-08-28  Bruno Haible  <bruno@clisp.org>
24492
24493         * gnulib-tool: New option --makefile-name.
24494         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24495         $makefile_name.
24496         (func_import): Write $makefile_name to the cache file, and read it from
24497         there unless explicitly specified. Use $makefile_name as file name
24498         instead of Makefile.am. Adjust the recommendations accordingly.
24499
24500 2006-08-28  Bruno Haible  <bruno@clisp.org>
24501
24502         * gnulib-tool (func_verify_module): Check against misapplying patch.
24503
24504 2006-08-28  Bruno Haible  <bruno@clisp.org>
24505
24506         * gnulib-tool (func_relativize, func_relconcat): New functions.
24507         Give an error if --local-dir is given with --update.
24508         Remove trailing slashes from $local_gnulib_dir.
24509         (func_import): Store the relativized $local_gnulib_dir in
24510         gnulib-cache.m4, and read it from there if not specified explicitly.
24511
24512 2006-08-28  Bruno Haible  <bruno@clisp.org>
24513
24514         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24515         is the current directory. Respect also $local_gnulib_dir.
24516
24517 2006-08-28  Bruno Haible  <bruno@clisp.org>
24518             Simon Josefsson  <jas@extundo.com>
24519
24520         BeOS portability.
24521         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24522
24523 2006-08-27  Jim Meyering  <jim@meyering.net>
24524
24525         * doc/visibility.texi: Remove duplicate word: "pointer".
24526
24527 2006-08-26  Bruno Haible  <bruno@clisp.org>
24528
24529         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24530         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24531         (Makefile.am): Create inttypes.h from inttypes_.h.
24532         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24533
24534         * modules/imaxabs: New file.
24535
24536         * modules/imaxdiv: New file.
24537
24538 2006-08-26  Bruno Haible  <bruno@clisp.org>
24539
24540         * m4/inttypes.m4: New file.
24541         * m4/_inttypes_h.m4: Remove file.
24542         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24543         PRI_MACROS_BROKEN.
24544         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24545
24546         * m4/imaxabs.m4: New file.
24547
24548         * m4/imaxdiv.m4: New file.
24549
24550 2006-08-26  Bruno Haible  <bruno@clisp.org>
24551
24552         * lib/inttypes_.h: New file.
24553         * lib/inttypes.h: Remove file.
24554         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24555
24556         * lib/imaxabs.c: New file.
24557
24558         * lib/imaxdiv.c: New file.
24559
24560 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24561
24562         New config-h module, so that "make" output needn't be cluttered
24563         by -DHAVE_CONFIG_H.
24564         * MODULES.html.sh (Support for building libraries and executables):
24565         Add config-h.
24566         * modules/config-h: New file.
24567         * gnulib-tool (nl, sed_transform_lib_file): New vars.
24568         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24569         the config-h module is used.
24570
24571         New configmake module, so that "make" output needn't be cluttered
24572         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24573         * MODULES.html.sh (Support for building libraries and executables):
24574         Add configmake.
24575         * modules/configmake: New file.
24576
24577 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         * m4/config-h.m4: New file.
24580
24581 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24582
24583         * config/srclist.txt: Add elisp-comp.
24584
24585 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24586
24587         * MODULES.html.sh (Support for building libraries and executables):
24588         Add elisp-comp.
24589         * build-aux/elisp-comp: New file.
24590         * modules/elisp-comp: New file.
24591
24592 2006-08-24  Bruno Haible  <bruno@clisp.org>
24593
24594         * gnulib-tool (func_create_testdir): Use non-default values of
24595         sourcebase and m4base.
24596
24597 2006-08-24  Bruno Haible  <bruno@clisp.org>
24598
24599         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24600         HTML structure.
24601
24602 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24603
24604         * modules/openat (Depends-on): Add lchown.
24605
24606 2006-08-23  Bruno Haible  <bruno@clisp.org>
24607
24608         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24609         of gl_LOCK_EARLY instead of gl_LOCK.
24610
24611 2006-08-23  Bruno Haible  <bruno@clisp.org>
24612
24613         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24614         on OSF/1 to no.
24615         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24616
24617 2006-08-23  Bruno Haible  <bruno@clisp.org>
24618
24619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24620         as unusable.
24621
24622         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24623         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24624         (gl_LOCK): New macro.
24625
24626 2006-08-22  Simon Josefsson  <jas@extundo.com>
24627
24628         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24629         to md5 module.
24630
24631 2006-08-22  Simon Josefsson  <jas@extundo.com>
24632
24633         * MODULES.html.sh: Add "Support for maintaining and release
24634         projects".
24635
24636         * build-aux/gnupload: New file, from coreutils.
24637
24638 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24639
24640         Avoid the need for AC_LIBSOURCES in m4 macros.
24641         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24642         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24643         * modules/check-version (EXTRA_DIST): Add check-version.h.
24644         * modules/crc (EXTRA_DIST): Add crc.h.
24645         * modules/des (EXTRA_DIST): Add des.h.
24646         * modules/gc (EXTRA_DIST): Add gc.h.
24647         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24648         * modules/getline (EXTRA_DIST): Add getline.h.
24649         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24650         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24651         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24652         * modules/md2 (EXTRA_DIST): Add md2.h.
24653         * modules/md4 (EXTRA_DIST): Add md4.h.
24654         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24655         * modules/read-file (EXTRA_DIST): Add read-file.h.
24656         * modules/readline (EXTRA_DIST): Add readline.h.
24657         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24658         rijndael-api-fst.h.
24659
24660 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24661
24662         * m4/rijndael.m4 (gl_ARCFOUR):
24663         * m4/arctwo.m4 (gl_ARCTWO):
24664         * m4/check-version.m4 (gl_CHECK_VERSION):
24665         * m4/crc.m4 (gl_CRC):
24666         * m4/des.m4 (gl_DES):
24667         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24668         * m4/gc.m4 (gl_GC):
24669         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24670         * m4/getline.m4 (gl_FUNC_GETLINE):
24671         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24672         * m4/hmac-md5.m4 (gl_HMAC_MD5):
24673         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24674         * m4/md2.m4 (gl_MD2):
24675         * m4/md4.m4 (gl_MD4):
24676         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24677         * m4/read-file.m4 (gl_FUNC_READ_FILE):
24678         * m4/readline.m4 (gl_FUNC_READLINE):
24679         * m4/rijndael.m4 (gl_RIJNDAEL):
24680         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24681         to get the necessary .h files and whatnot.
24682
24683 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24684
24685         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24686         gnulib rather than the other way around.
24687         * config/srclistvars.sh (COREUTILS): Remove.
24688
24689 2006-08-22  Jim Meyering  <jim@meyering.net>
24690
24691         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24692
24693         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24694
24695 2006-08-22  Eric Blake  <ebb9@byu.net>
24696
24697         * modules/regexprops-generic: New file.
24698         * MODULES.html.sh (Support for building documentation): List it.
24699
24700 2006-08-22  Eric Blake  <ebb9@byu.net>
24701
24702         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24703         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24704         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24705         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24706
24707 2006-08-22  Bruno Haible  <bruno@clisp.org>
24708
24709         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24710         and lib_LTLIBRARIES like the other lib_* variables.
24711
24712 2006-08-22  Bruno Haible  <bruno@clisp.org>
24713
24714         * build-aux/x-to-1.in: New file, from GNU gettext.
24715
24716 2006-08-22  Bruno Haible  <bruno@clisp.org>
24717
24718         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24719         <utmpx.h> exists.
24720
24721 2006-08-22  Bruno Haible  <bruno@clisp.org>
24722
24723         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24724         <utmpx.h> exists.
24725
24726 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24727
24728         BeOS portability.
24729         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24730         exist.
24731         Problem reported by Bruno Haible.
24732
24733 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24734
24735         Avoid the need for AC_LIBSOURCES in m4 macros.
24736         * modules/acl (EXTRA_DIST): Add acl.h.
24737         * modules/argmatch (Files): Add m4/argmatch.m4.
24738         (configure.ac): Add gl_ARGMATCH.
24739         (EXTRA_DIST): Renamed from lib_SOURCES, for
24740         consistency with the other modules.  Remove argmatch.c.
24741         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24742         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24743         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24744         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24745         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24746         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24747         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24748         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24749         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24750         * modules/closeout (EXTRA_DIST): Add closeout.h.
24751         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24752         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24753         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24754         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24755         dirname.h; remove basename.c and stripslash.c.
24756         * modules/exclude (EXTRA_DIST): Add exclude.h.
24757         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24758         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24759         * modules/file-type (EXTRA_DIST): Add file-type.h.
24760         * modules/filemode (EXTRA_DIST): Add filemode.h.
24761         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24762         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24763         * modules/fpending (EXTRA_DIST): Add __fpending.h.
24764         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24765         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24766         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24767         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24768         * modules/getdate (EXTRA_DIST): Add getdate.c.
24769         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24770         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24771         * modules/getpass (EXTRA_DIST): Add getpass.h.
24772         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24773         * modules/group-member (EXTRA_DIST): Add group-member.h.
24774         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24775         * modules/hash (EXTRA_DIST): Add hash.h.
24776         * modules/human (EXTRA_DIST): Add human.h.
24777         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24778         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24779         * modules/lchown (EXTRA_DIST): Add lchown.h.
24780         * modules/long-options (EXTRA_DIST): Add long-options.h.
24781         * modules/lstat (EXTRA_DIST): Add lstat.h.
24782         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24783         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24784         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24785         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24786         * modules/memxor (EXTRA_DIST): Add memxor.h.
24787         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24788         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24789         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24790         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24791         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24792         * modules/physmem (EXTRA_DIST): Add physmem.h.
24793         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24794         * modules/posixver (EXTRA_DIST): Add posixver.h.
24795         * modules/quote (EXTRA_DIST): Add quote.h.
24796         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24797         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24798         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24799         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24800         regex_internal.h regexec.c.
24801         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24802         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24803         * modules/same (EXTRA_DIST): Add same.h.
24804         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24805         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24806         * modules/savedir (EXTRA_DIST): Add savedir.h.
24807         * modules/sha1 (EXTRA_DIST): Add sha1.h.
24808         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24809         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24810         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24811         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24812         * modules/strdup (EXTRA_DIST): Add strdup.h.
24813         * modules/strftime (EXTRA_DIST): Add strftime.h.
24814         * modules/strndup (EXTRA_DIST): Add strndup.h.
24815         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24816         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24817         * modules/time_r (EXTRA_DIST): Add time_r.h.
24818         * modules/timespec (EXTRA_DIST): Add timespec.h.
24819         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24820         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24821         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24822         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24823         * modules/userspec (EXTRA_DIST): Add userspec.h.
24824         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24825         * modules/utimens (EXTRA_DIST): Add utimens.h.
24826         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24827         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24828         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24829         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24830         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24831         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24832         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24833         * modules/yesno (EXTRA_DIST): Add yesno.h.
24834
24835 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24836
24837         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24838
24839         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24840         * m4/dev-ino.m4, same-inode.m4: Remove.
24841
24842         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24843         * m4/acl.m4 (AC_FUNC_ACL):
24844         * m4/backupfile.m4 (gl_BACKUPFILE):
24845         * m4/c-strtod.m4 (gl_C99_STRTOLD):
24846         * m4/canon-host.m4 (gl_CANON_HOST):
24847         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24849         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24850         * m4/cloexec.m4 (gl_CLOEXEC):
24851         * m4/close-stream.m4 (gl_CLOSE_STREAM):
24852         * m4/closeout.m4 (gl_CLOSEOUT):
24853         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24854         * m4/dirname.m4 (gl_DIRNAME):
24855         * m4/exclude.m4 (gl_EXCLUDE):
24856         * m4/exitfail.m4 (gl_EXITFAIL):
24857         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24858         * m4/file-type.m4 (gl_FILE_TYPE):
24859         * m4/filemode.m4 (gl_FILEMODE):
24860         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24861         * m4/fpending.m4 (gl_FUNC_FPENDING):
24862         * m4/fprintftime.m4 (gl_FPRINTFTIME):
24863         * m4/fts.m4 (gl_FUNC_FTS):
24864         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24865         * m4/getdate.m4 (gl_GETDATE):
24866         * m4/gethrxtime.m4 (gl_GETHRXTIME):
24867         * m4/getpagesize.m4 (gl_GETPAGESIZE):
24868         * m4/getpass.m4 (gl_FUNC_GETPASS):
24869         * m4/gettime.m4 (gl_GETTIME):
24870         * m4/getugroups.m4 (gl_GETUGROUPS):
24871         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
24872         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
24873         * m4/hard-locale.m4 (gl_HARD_LOCALE):
24874         * m4/hash.m4 (gl_HASH):
24875         * m4/idcache.m4 (gl_IDCACHE):
24876         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
24877         * m4/lchown.m4 (gl_FUNC_LCHOWN):
24878         * m4/long-options.m4 (gl_LONG_OPTIONS):
24879         * m4/lstat.m4 (gl_FUNC_LSTAT):
24880         * m4/md5.m4 (gl_MD5):
24881         * m4/memcasecmp.m4 (gl_MEMCASECMP):
24882         * m4/memcoll.m4 (gl_MEMCOLL):
24883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
24884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
24885         * m4/memxor.m4 (gl_MEMXOR):
24886         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
24887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
24888         * m4/modechange.m4 (gl_MODECHANGE):
24889         * m4/mountlist.m4 (gl_MOUNTLIST):
24890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24891         * m4/openat.m4 (gl_FUNC_OPENAT):
24892         * m4/pathmax.m4 (gl_PATHMAX):
24893         * m4/physmem.m4 (gl_PHYSMEM):
24894         * m4/posixtm.m4 (gl_POSIXTM):
24895         * m4/posixver.m4 (gl_POSIXVER):
24896         * m4/quote.m4 (gl_QUOTE):
24897         * m4/quotearg.m4 (gl_QUOTEARG):
24898         * m4/readtokens.m4 (gl_READTOKENS):
24899         * m4/readutmp.m4 (gl_READUTMP):
24900         * m4/regex.m4 (gl_REGEX):
24901         * m4/safe-read.m4 (gl_SAFE_READ):
24902         * m4/safe-write.m4 (gl_SAFE_WRITE):
24903         * m4/same.m4 (gl_SAME):
24904         * m4/save-cwd.m4 (gl_SAVE_CWD):
24905         * m4/savedir.m4 (gl_SAVEDIR):
24906         * m4/settime.m4 (gl_SETTIME):
24907         * m4/sha1.m4 (gl_SHA1):
24908         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
24909         * m4/stat-macros.m4 (gl_STAT_MACROS):
24910         * m4/stat-time.m4 (gl_STAT_TIME):
24911         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
24912         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
24913         * m4/strdup.m4 (gl_FUNC_STRDUP):
24914         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
24915         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24916         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
24917         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
24918         * m4/time_r.m4 (gl_TIME_R):
24919         * m4/timespec.m4 (gl_TIMESPEC):
24920         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
24921         * m4/unlinkdir.m4 (gl_UNLINKDIR):
24922         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
24923         * m4/userspec.m4 (gl_USERSPEC):
24924         * m4/utimecmp.m4 (gl_UTIMECMP):
24925         * m4/utimens.m4 (gl_UTIMENS):
24926         * m4/xalloc.m4 (gl_XALLOC):
24927         * m4/xgetcwd.m4 (gl_XGETCWD):
24928         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
24929         * m4/xreadlink.m4 (gl_XREADLINK):
24930         * m4/xstrtod.m4 (gl_XSTRTOD):
24931         * m4/yesno.m4 (gl_YESNO):
24932         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24933         to get the necessary .h files and whatnot.
24934
24935 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
24936             Bruno Haible  <bruno@clisp.org>
24937
24938         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
24939         /bin/sh understanding of '!' conditional negation.
24940
24941 2006-08-21  Jim Meyering  <jim@meyering.net>
24942
24943         * modules/openat (Depends-on): Really alphabetize.
24944
24945         * modules/acl (Depends-on): Add error and quote.
24946
24947         * check-module (find_included_lib_files): Add at-func.c to the
24948         ok-to-include-more-than-once white list.
24949
24950         * modules/openat (Depends-on): Add lstat.  Alphabetize.
24951
24952 2006-08-21  Bruno Haible  <bruno@clisp.org>
24953
24954         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24955         Emit a pkgdata_DATA variable only if some snippets add contents to it.
24956         Reported by Martin Lambers <marlam@marlam.de>.
24957
24958 2006-08-21  Bruno Haible  <bruno@clisp.org>
24959
24960         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
24961         specify an installation location, don't emit a noinst_LIBRARIES or
24962         noinst_LTLIBRARIES assignment.
24963
24964 2006-08-21  Bruno Haible  <bruno@clisp.org>
24965
24966         BeOS portability.
24967         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
24968         BeOS has mbrtowc() but no <wctype.h>.
24969
24970 2006-08-21  Bruno Haible  <bruno@clisp.org>
24971
24972         BeOS portability.
24973         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
24974         exist.
24975
24976 2006-08-21  Bruno Haible  <bruno@clisp.org>
24977
24978         BeOS portability.
24979         * lib/mbchar.h: Include <wctype.h> only if it exists.
24980
24981 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         Remove files that are no longer needed by their respective modules.
24984         * m4/obstack.m4: Remove.
24985         * m4/strerror_r.m4: Remove.
24986         * m4/uint32_t.m4: Remove.
24987         * m4/uintptr_t.m4: Remove.
24988         * m4/ullong_max.m4: Remove.
24989         * m4/xstrtoimax.m4: Remove.
24990         * m4/xstrtoumax.m4: Remove.
24991
24992         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
24993         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
24994         dependencies now capture this.
24995
24996         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
24997         Do not use AC_LIBSOURCES, since gnulib modules now do this.
24998         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
24999         * m4/human.m4 (gl_HUMAN): Likewise.
25000         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25001         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25002
25003         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25004
25005         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25006         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25007         stdint.
25008         * m4/human.m4 (gl_HUMAN): Likewise.
25009         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25010         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25011         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25012         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25013         * m4/xstrtol (gl_XSTRTOL): Likewise.
25014
25015         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25016         AC_TYPE_LONG_LONG_INT.
25017         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25018         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25019         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25020         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25021
25022         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25023         on stdbool.
25024
25025         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25026         (gl_PREREQ_XSTRTOUL): Remove.
25027
25028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25029
25030         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25031         mode.
25032
25033 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25034
25035         Add and change modules to make it easier for coreutils to use
25036         gnulib-tool.
25037         * modules/backupfile (Files): Remove m4/d-ino.m4.
25038         (Depends-on): Add d-ino.
25039         * modules/cycle-check (Depends-on): Add stdint.
25040         (lib_SOURCES): Add cycle-check.h.
25041         * modules/d-ino: New module.
25042         * modules/d-type: New module.
25043         * modules/error (Files): Remove m4/strerror_r.m4.
25044         * modules/filemode (Files): Add m4/st_dm_mode.m4.
25045         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25046         m4/inttypes_h.m4, m4/uintmax_t.m4.
25047         (Depends-on): Add stdint.
25048         (lib_SOURCES): Add fsusage.h.
25049         * modules/getcwd (Files): Remove d-ino.m4.
25050         (Depends-on): Add d-ino.
25051         * modules/getndelim2 (Depends-on): Add stdint.
25052         * modules/glob (Files): Remove m4/d-type.m4.
25053         (Depends-on): Add d-type.
25054         * modules/host-os: New module.
25055         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
25056         m4/inttypes_h.m4, m4/uintmax_t.m4.
25057         * Depends-on: Add stdint.
25058         (lib_SOURCES): Add human.h.
25059         * modules/inttostr (Files): Remove m4/intmax_t.m4,
25060         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25061         m4/uintmax_t.m4, m4/ulonglong.m4.
25062         (Depends-on): Add stdint.
25063         (EXTRA_DIST): Add inttostr.h.
25064         * modules/lchmod: New module.
25065         * modules/link-follow: New module.
25066         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
25067         (Depends-on): Add lchmod.
25068         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
25069         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
25070         (Depends-on): Add stdint.
25071         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
25072         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
25073         (Depends-on): Add stdint.
25074         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
25075         * modules/perl: New module.
25076         * modules/regex (Depends-on): Add stdint.
25077         * modules/rmdir-errno: New module.
25078         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25079         m4/intmax_t.m4.
25080         (Depends-on): Add stdint.
25081         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25082         m4/uintmax_t.m4.
25083         (Depends-on): Add stdint.
25084         * modules/unlink-busy: New module.
25085         * modules/utimecmp (Depends-on): Add stdint.
25086         * modules/uptime: New module.
25087         * modules/winsz-ioctl: New module.
25088         * modules/winsz-termios: New module.
25089         * modules/xnanosleep (Depends-on): Add nanosleep.
25090         * modules/ullong_max: Remove.
25091         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
25092         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
25093         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
25094         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
25095         (Depends-on): Add inttypes.
25096         (lib_SOURCES): Add xstrtol.h.
25097         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
25098         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
25099         * MODULES.html.sh: Move 'assert' into the assert section.
25100         Move 'dummy' into the linking section.
25101         Remove ullong_max.
25102         Add section for compatibility checks for POSIX:2001 functions,
25103         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
25104         winsz-ioctl, and winsz-termios into it.
25105         Add lchmod.
25106         Add top-level Misc section and put host-os, perl, and uptime
25107         into it.
25108
25109 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25110
25111         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
25112         now assume the stdint module.  Do not include inttypes.h.
25113         * lib/fsusage.h: Likewise.
25114         * lib/getndelim2.c: Likewise.
25115         * lib/human.h: Likewise.
25116         * lib/inttostr.h: Likewise.
25117         * lib/obstack.c: Likewise.
25118         * lib/regex_internal.h: Likewise.
25119         * lib/tempname.c: Likewise.
25120         * lib/utimecmp.c: Likewise.
25121         * lib/xstrtol.h: Likewise.
25122
25123         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
25124
25125         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
25126         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
25127         * lib/xtime.h: Likewise.
25128
25129 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25130
25131         * modules/openat (Files): Add lib/fchmodat.c.
25132         Fixes problem reported by Jay Youngman.
25133
25134 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25135
25136         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
25137         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
25138
25139 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25140             Bruno Haible  <bruno@clisp.org>
25141
25142         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25143         and is a script that invokes bison. Tighten the code. Add comments.
25144
25145 2006-08-18  Jim Meyering  <jim@meyering.net>
25146
25147         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25148         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25149         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
25150         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25151
25152 2006-08-18  Bruno Haible  <bruno@clisp.org>
25153
25154         * modules/bison-i18n: New file.
25155         * MODULES.html.sh (Internationalization functions): Add it.
25156
25157 2006-08-18  Bruno Haible  <bruno@clisp.org>
25158
25159         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25160         sys/statvfs.h. When getmntinfo was found, check its declaration and
25161         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25162
25163 2006-08-18  Bruno Haible  <bruno@clisp.org>
25164
25165         * m4/bison-i18n.m4: New file, from bison.
25166
25167 2006-08-18  Bruno Haible  <bruno@clisp.org>
25168
25169         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25170         (ME_DUMMY): Treat "kernfs" as a dummy.
25171         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25172
25173 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25174
25175         Update from coreutils.
25176
25177         2006-08-15  Jim Meyering  <jim@meyering.net>
25178
25179         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25180
25181         2006-01-17  Jim Meyering  <jim@meyering.net>
25182
25183         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25184
25185         2006-01-11  Jim Meyering  <jim@meyering.net>
25186
25187         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25188         Check for the lchmod function.
25189
25190 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25191
25192         Update from coreutils.
25193
25194         * lib/__fpending.h: Add copyright notice.
25195         * lib/fprintftime.h: Likewise.
25196         * lib/savedir.c: Use (C) in copyright notice.
25197         * lib/savedir.h: Likewise.
25198
25199         2006-08-15  Jim Meyering  <jim@meyering.net>
25200
25201         * lib/at-func.c: New file, with the logic of all emulated at-functions.
25202         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25203         in support of the EXPECTED_ERRNO macro.
25204         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25205         definitions.  Instead, define the appropriate symbols and include
25206         "at-func.c".
25207         * lib/mkdirat.c (mkdirat): Likewise.
25208         * lib/fchmodat.c (fchmodat): Likewise.
25209         (ENOSYS): Remove definition.
25210         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25211         it.  Don't include "unistd--.h" -- it wasn't ever used.
25212
25213         2006-01-17  Jim Meyering  <jim@meyering.net>
25214
25215         Rewrite fts.c not to change the current working directory,
25216         by using openat, fstatat, fdopendir, etc..
25217
25218         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25219         (HAVE_OPENAT_SUPPORT): Define.
25220         [_LIBC] (fchdir): Don't undef or define; no longer used.
25221         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25222         Now, this `function' always succeeds, and consumes its file descriptor
25223         parameter -- so callers must not close such FDs.  Update callers.
25224         (diropen_fd, opendirat, cwd_advance_fd): New functions.
25225         (diropen): Add parameter, SP.  Adjust all callers.
25226         Implement using diropen_fd, rather than open.
25227         (fts_open): Initialize new member, fts_cwd_fd.
25228         Remove fts_rft-setting code.
25229         (fts_close): Close fts_cwd_fd, if necessary.
25230         (__opendir2): Define in terms of opendir or opendirat,
25231         depending on whether the FST_NOCHDIR flag is set.
25232         (fts_build): Since fts_safe_changedir consumes its FD, and since
25233         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25234         and close the dup'd file descriptor upon failure.
25235         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25236         (fts_safe_changedir): Tweak semantics to reflect that this function
25237         now calls cwd_advance_fd and hence consumes its FD argument.
25238         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25239         [struct FTS] (fts_rft): Remove now-unused member.
25240         [struct FTS] (fts_cycle.state): Improve comment.
25241
25242         * lib/openat.c (openat_needs_fchdir): New function.
25243         * lib/openat.h (openat_needs_fchdir): Declare it.
25244
25245 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25246
25247         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25248         Problem and fix reported by Pádraig Brady in
25249         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25250
25251 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25252
25253         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25254
25255 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25256
25257         * lib/memcoll.c (memcoll): Optimize for the common case where the
25258         arguments are bytewise equal.
25259
25260 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25261
25262         * doc/regexprops-generic.texi: Add a copyright notice.
25263
25264 2006-08-15  Bruno Haible  <bruno@clisp.org>
25265
25266         * modules/tmpdir (License): Change to LGPL.
25267
25268 2006-08-15  Bruno Haible  <bruno@clisp.org>
25269
25270         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25271         module.
25272
25273 2006-08-14  Simon Josefsson  <jas@extundo.com>
25274
25275         * config/srclist.txt: Add gnupload.
25276
25277 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25278
25279         Change copyright notice from LGPL 2 to GPL 2, since that's the
25280         standard form used in the gnulib repository.
25281         * tests/test-lock.c: Likewise.
25282         * tests/test-stdint.c: Likewise.
25283         * tests/test-tls.c: Likewise.
25284
25285         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25286         prelude-manager.  User shorter URLs for GNU projects, without '?'.
25287         Add copyright notice.
25288
25289         * check-module: Add copyright notice.  Output a copyright
25290         notice if "--version" is specified.
25291         * modules/COPYING: New file.
25292         * tests/test-getaddrinfo.c: Add copyright notice.
25293         * tests/test-verify.c: Likewise.
25294
25295 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25296
25297         Change copyright notice from LGPL 2 to GPL 2, since that's the
25298         standard form used in the gnulib repository.
25299         * lib/lock.c: LGPL -> GPL.
25300         * lib/lock.h: Likewise.
25301         * lib/strnlen1.c: Likewise.
25302         * lib/strnlen1.h: Likewise.
25303         * lib/tls.c: Likewise.
25304         * lib/tls.h: Likewise.
25305         * lib/tmpdir.c: Likewise.
25306
25307         * lib/TODO: Remove; this belongs only in coreutils.
25308
25309 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25310
25311         Add copyright notices to long-enough files that lack them, since
25312         otherwise the files aren't clearly free.  Use the same notice that
25313         getdate.texi already uses.
25314         * doc/alloca-opt.texi: Add copyright notice.
25315         * doc/alloca.texi: Likewise.
25316         * doc/ctime.texi: Likewise.
25317         * doc/functions.texi: Likewise.
25318         * doc/gcd.texi: Likewise.
25319         * doc/gnulib-tool.texi: Likewise.
25320         * doc/inet_ntoa.texi: Likewise.
25321         * doc/visibility.texi: Likewise.
25322
25323         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25324         * doc/quote.texi: Add copyright notice.
25325
25326         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25327         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
25328         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
25329         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
25330         is now obsolete, and give a pointer to the Sun list.
25331         Add copyright notice.
25332
25333 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25334
25335         * config/srclistvars.sh: Add copyright notice.
25336
25337 2006-08-14  Eric Blake  <ebb9@byu.net>
25338
25339         Import the following change from libc:
25340
25341         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
25342
25343         Upstream bug 2997.
25344         * lib/misc/error.c: Add space between program name and message if file
25345         name is missing.
25346
25347 2006-08-12  Karl Berry  <karl@gnu.org>
25348
25349         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25350         remove, these originate in gnulib now.
25351
25352 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25353
25354         * doc/Makefile (standards.info standards.html standards.dvi):
25355         Also depend on make-stds.texi.
25356
25357 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25358
25359         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25360         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
25361
25362         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25363         in wchar_t.  Problem reported by Eric Blake.
25364
25365         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25366         LEN is smaller than SIZE.  Suggested by Bruno Haible.
25367         Also, help the compiler to keep LEN in a register.
25368
25369 2006-08-11  Eric Blake  <ebb9@byu.net>
25370
25371         * users.txt: Sort.  Add tar.
25372
25373 2006-08-11  Bruno Haible  <bruno@clisp.org>
25374
25375         * users.txt: New file.
25376
25377 2006-08-11  Bruno Haible  <bruno@clisp.org>
25378
25379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25380         before <wchar.h>. Needed for OSF/1 and BSD/OS.
25381
25382 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25383
25384         * modules/snprintf (Depends-on): Remove minmax.
25385         (Maintainer): Add self and Bruno.
25386
25387 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25388
25389         * lib/.cppi-disable: Add snprintf.h, socket_.h.
25390         * lib/snprintf.c: Include <errno.h> and <limits.h>.
25391         (EOVERFLOW): Define if the system does not.
25392         Do not include "minmax.h"; it wasn't used.
25393         (snprintf): Don't assume size_t promotes to an unsigned type.
25394         Fix bug when generated string was too long for the buffer: the
25395         buffer's contents are supposed to be the initial prefix of the
25396         output.  Don't assume vasnprintf returns EOVERFLOW if the size
25397         exceeds INT_MAX; do the check ourselves.
25398
25399         Import the following changes from libc:
25400
25401         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
25402
25403         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25404         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
25405         set wc to the byte which couldn't be converted.
25406         (re_string_reconstruct): Don't clear valid_raw_len before calling
25407         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
25408         tip_context using re_string_context_at.
25409
25410         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
25411
25412         * lib/posix/regex.h: g++ still cannot handled [restrict].
25413
25414         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
25415
25416         * lib/posix/regex.h: Remove special handling for VMS.
25417
25418 2006-08-10  Jim Meyering  <jim@meyering.net>
25419
25420         * modules/same-inode: New module.
25421         * modules/dev-ino: New module.
25422         * modules/cycle-check: Depend on these modules, rather than simply
25423         including their .h files.
25424         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25425         required via m4/cycle-check.m4.
25426         * modules/same: Depend on new same-inode module, rather than
25427         including same-inode.h.
25428         * modules/chdir-safer: New file.
25429
25430         * modules/chown (Depends-on): Add stat-macros.
25431
25432 2006-08-10  Jim Meyering  <jim@meyering.net>
25433
25434         * m4/cycle-check.m4: New file.
25435         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25436         * m4/dev-ino.m4, m4/same-inode.m4: New files.
25437
25438 2006-08-10  Eric Blake  <ebb9@byu.net>
25439
25440         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25441         in from original proposal.
25442
25443 2006-08-10  Eric Blake  <ebb9@byu.net>
25444         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25445
25446         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25447         namespace.
25448
25449 2006-08-10  Bruno Haible  <bruno@clisp.org>
25450
25451         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25452         as well.
25453
25454 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25455
25456         Sync from coreutils.
25457
25458         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
25459
25460         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25461         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25462
25463 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25464
25465         * modules/restrict: Remove; no longer needed now that we assume
25466         Autoconf 2.59 or later.
25467         * MODULES.html.sh: Remove 'restrict'.
25468         * modules/argp (Depends-on): Remove 'restrict'.
25469         * modules/base64 (Depends-on): Likewise.
25470         * modules/gc (Depends-on): Likewise.
25471         * modules/getaddrinfo (Depends-on): Likewise.
25472         * modules/glob (Depends-on): Likewise.
25473         * modules/inet_ntop (Depends-on): Likewise.
25474         * modules/inet_pton (Depends-on): Likewise.
25475         * modules/memxor (Depends-on): Likewise.
25476         * modules/regex (Depends-on): Likewise.
25477         * modules/strtok_r (Depends-on): Likewise.
25478         * modules/time_r (Depends-on): Likewise.
25479
25480 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25481
25482         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25483         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25484         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25485         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25486         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25487         * m4/memxor.m4 (gl_MEMXOR): Likewise.
25488         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
25489         gl_C_RESTRICT replaced by AC_C_RESTRICT.
25490
25491         Merge from coreutils.
25492         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25493         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25495         * m4/time_r.m4 (gl_TIME_R): Likewise.
25496
25497 2006-08-09  Karl Berry  <karl@gnu.org>
25498
25499         * config/srclist.txt: no more gettext-tools, per Bruno.
25500
25501 2006-08-08  Eric Blake  <ebb9@byu.net>
25502
25503         * modules/verror: New module.
25504         * MODULES.html.sh: Document it.
25505
25506 2006-08-08  Eric Blake  <ebb9@byu.net>
25507
25508         * lib/verror.h, lib/verror.c: New files.
25509
25510 2006-08-08  Eric Blake  <ebb9@byu.net>
25511
25512         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25513         verror_at_line output complies with GNU Coding Standards even when
25514         file is NULL.
25515
25516 2006-08-07  Bruno Haible  <bruno@clisp.org>
25517
25518         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25519         versions of AIX.
25520         Reported by Ralf Wildenhues.
25521
25522 2006-08-07  Bruno Haible  <bruno@clisp.org>
25523
25524         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25525         in an AC_DEFUN. Needed so that the autoconf snippets can use
25526         AC_REQUIRE.
25527
25528 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25529
25530         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25531         Initialize pkgdata_DATA.
25532         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25533         overriding it.
25534
25535 2006-08-06  Eric Blake  <ebb9@byu.net>
25536
25537         * lib/error.h: Fold in some upstream changes from glibc.
25538         * lib/error.c: Likewise.
25539
25540 2006-08-04  Bruno Haible  <bruno@clisp.org>
25541
25542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25543         Make the mostlyclean-local rule depend on mostlyclean-generic.
25544         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25545
25546 2006-07-31  Bruno Haible  <bruno@clisp.org>
25547
25548         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25549         <stdlib.h>, <string.h>.
25550
25551 2006-07-30  Bruno Haible  <bruno@clisp.org>
25552
25553         * modules/readlink (License): Change to LGPL.
25554
25555 2006-07-30  Bruno Haible  <bruno@clisp.org>
25556
25557         * modules/javaversion (Makefile.am): Distribute javaversion.java and
25558         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25559         set PKGDATADIR to point to it.
25560
25561 2006-07-30  Bruno Haible  <bruno@clisp.org>
25562
25563         * modules/csharpexec (configure.ac): Comment out macro invocation.
25564         * modules/javaexec (configure.ac): Likewise.
25565         * modules/javacomp-script (configure.ac): Likewise.
25566
25567         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25568
25569 2006-07-30  Bruno Haible  <bruno@clisp.org>
25570
25571         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25572         linked-list.
25573
25574 2006-07-30  Bruno Haible  <bruno@clisp.org>
25575
25576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25577
25578 2006-07-30  Bruno Haible  <bruno@clisp.org>
25579
25580         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25581         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25582         get removed.
25583
25584 2006-07-29  Bruno Haible  <bruno@clisp.org>
25585
25586         Make it possible for gnulib-tool to work with locally modified or
25587         augmented gnulib repositories.
25588         * gnulib-tool (func_usage): Document --local-dir option.
25589         (local_gnulib_dir): New variable.
25590         Handle --local-dir option.
25591         (func_lookup_file): New function.
25592         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25593         (func_get_description, func_get_filelist, func_get_description,
25594         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25595         func_get_automake_snippet, func_get_include_directive,
25596         func_get_license, func_get_maintainer): Use func_lookup_file.
25597         (func_import, func_create_testdir): Use func_lookup_file.
25598
25599 2006-07-29  Bruno Haible  <bruno@clisp.org>
25600
25601         * modules/setenv (Depends-on): Add unistd.
25602
25603 2006-07-29  Bruno Haible  <bruno@clisp.org>
25604
25605         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25606
25607 2006-07-29  Bruno Haible  <bruno@clisp.org>
25608
25609         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25610
25611 2006-07-29  Bruno Haible  <bruno@clisp.org>
25612
25613         * gnulib-tool (import, update): If there is no Makefile.am, look at
25614         aclocal.m4, instead of bailing out.
25615
25616 2006-07-29  Bruno Haible  <bruno@clisp.org>
25617
25618         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25619         Categorize the options by when they are useful.
25620
25621 2006-07-29  Bruno Haible  <bruno@clisp.org>
25622
25623         * gnulib-tool (func_usage): Document option --no-libtool.
25624         Handle option --no-libtool.
25625         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25626         for changed semantics of $libtool variable.
25627         (func_import): Likewise. If libtool is not used, show this through
25628         an option --no-libtool.
25629         (func_create_testdir): Update.
25630
25631 2006-07-29  Bruno Haible  <bruno@clisp.org>
25632
25633         * gnulib-tool (func_import): Extend error message about missing
25634         --doc-base.
25635
25636 2006-07-29  Bruno Haible  <bruno@clisp.org>
25637
25638         * gnulib-tool (func_import): Don't create the $docbase directory if
25639         there is no file to store there.
25640
25641 2006-07-29  Bruno Haible  <bruno@clisp.org>
25642
25643         * gnulib-tool (autoconf_minversion): If a --dir option is given and
25644         relevant, look for configure.ac there, not in the current directory.
25645         Also use a simple search for AC_PREREQ, not "autoconf --trace".
25646
25647 2006-07-29  Bruno Haible  <bruno@clisp.org>
25648
25649         * gnulib-tool (SORT): New variable.
25650         (func_usage): Undocument --assume-autoconf option.
25651         Remove --assume-autoconf option handling.
25652         (autoconf_minversion): Determine from the contents of configure.ac.
25653         (func_import): Remove autoconf_minversion handling.
25654         Suggested by Eric Blake.
25655
25656 2006-07-29  Bruno Haible  <bruno@clisp.org>
25657
25658         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25659
25660 2006-07-29  Bruno Haible  <bruno@clisp.org>
25661
25662         * config/srclist.txt (*setenv.[ch]): Remove rules.
25663
25664 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25665
25666         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25667
25668 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25669
25670         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25671         arpa/inet.h.
25672
25673 2006-07-28  Simon Josefsson  <jas@extundo.com>
25674
25675         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25676         * modules/inet_pton (Depends-on): Likewise.
25677
25678 2006-07-28  Simon Josefsson  <jas@extundo.com>
25679
25680         * m4/netinet_in_h.m4: New file.
25681
25682 2006-07-28  Simon Josefsson  <jas@extundo.com>
25683
25684         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25685         #include's.
25686
25687 2006-07-28  Simon Josefsson  <jas@extundo.com>
25688
25689         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25690         #include's.
25691
25692 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
25693
25694         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25695         setgid on directories only if they set these bits.
25696         * lib/modechange.h: Remove obsolete comment about masks.
25697
25698 2006-07-28  Eric Blake  <ebb9@byu.net>
25699
25700         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25701         macro expansion.
25702
25703 2006-07-28  Bruno Haible  <bruno@clisp.org>
25704
25705         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25706
25707 2006-07-28  Bruno Haible  <bruno@clisp.org>
25708
25709         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25710
25711 2006-07-28  Bruno Haible  <bruno@clisp.org>
25712
25713         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25714         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25715         Define fallbacks.
25716         Avoids link error on FreeBSD 4.x.
25717         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25718
25719         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25720         encoding.
25721         * lib/mbswidth.c (iswcntrl): Likewise.
25722
25723 2006-07-27  Bruno Haible  <bruno@clisp.org>
25724
25725         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25726         test.
25727
25728 2006-07-27  Bruno Haible  <bruno@clisp.org>
25729
25730         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25731         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25732         defined.
25733
25734 2006-07-26  Eric Blake  <ebb9@byu.net>
25735
25736         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25737
25738 2006-07-26  Eric Blake  <ebb9@byu.net>
25739
25740         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25741         like mingw that lack mkstemp.
25742         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25743         avoid compilation warning on mingw.
25744
25745 2006-07-26  Bruno Haible  <bruno@clisp.org>
25746
25747         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25748         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25749         INT_FAST*_MIN, INTPTR_MIN.
25750
25751 2006-07-25  Bruno Haible  <bruno@clisp.org>
25752
25753         * modules/version-etc (Depends-on): Add stdarg.
25754
25755 2006-07-25  Bruno Haible  <bruno@clisp.org>
25756
25757         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25758         complex commands.
25759
25760 2006-07-25  Bruno Haible  <bruno@clisp.org>
25761
25762         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25763         defined in <stdarg.h> or config.h.
25764
25765 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25766
25767         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25768         (gl_STDIO_SAFER): Remove.
25769
25770 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
25771
25772         * MODULES.html.sh (File stream based Input/Output):
25773         Add fopen-safer, tmpfile-safer; remove stdio-safer.
25774         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25775         * modules/fopen-safer, modules/tmpfile-safer: New files.
25776         * modules/stdio-safer: Remove.
25777
25778 2006-07-24  Bruno Haible  <bruno@clisp.org>
25779
25780         * modules/tmpdir: New file.
25781         * MODULES.html.sh (File system functions): Add it.
25782
25783 2006-07-24  Bruno Haible  <bruno@clisp.org>
25784
25785         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25786         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25787
25788 2006-07-24  Bruno Haible  <bruno@clisp.org>
25789
25790         * modules/clean-temp: New file.
25791
25792 2006-07-24  Bruno Haible  <bruno@clisp.org>
25793
25794         * m4/tmpdir.m4: New file, from GNU gettext.
25795
25796 2006-07-24  Bruno Haible  <bruno@clisp.org>
25797
25798         * lib/tmpdir.h: New file, from GNU gettext.
25799         * lib/tmpdir.c: New file, from GNU gettext.
25800
25801 2006-07-24  Bruno Haible  <bruno@clisp.org>
25802
25803         * lib/clean-temp.h: New file, from GNU gettext.
25804         * lib/clean-temp.c: New file, from GNU gettext.
25805
25806 2006-07-23  Eric Blake  <ebb9@byu.net>
25807
25808         * modules/stdio-safer (Files): Add tmpfile-safer.c.
25809         (Depends-on): Add binary-io.
25810
25811 2006-07-23  Eric Blake  <ebb9@byu.net>
25812
25813         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25814
25815 2006-07-23  Eric Blake  <ebb9@byu.net>
25816
25817         * lib/tmpfile-safer.c: New file.
25818         * lib/stdio-safer.h (fopen_safer): Add prototype.
25819         * lib/stdio--.h (tmpfile): Make safer.
25820
25821 2006-07-23  Bruno Haible  <bruno@clisp.org>
25822
25823         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25824         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25825         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25826         gl_linked_remove_at): Use it.
25827
25828 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25829         and Simon Josefsson <jas@extundo.com>
25830
25831         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25832
25833         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25834
25835 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25836
25837         * modules/close-stream: New file.
25838         * modules/closeout (Description): Make it clear that it exits
25839         with a diagnostic on error.
25840         (Depends-on): Add close-stream.  Remove fpending, stdbool.
25841         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25842
25843 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25844
25845         * m4/close-stream.m4: New file.
25846
25847 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25848
25849         * lib/close-stream.c, lib/close-stream.h: New files.
25850
25851 2006-07-22  Bruno Haible  <bruno@clisp.org>
25852
25853         Merge from GNU gettext 0.15.
25854
25855         2006-05-01  Bruno Haible  <bruno@clisp.org>
25856
25857                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25858
25859         2006-07-22  Bruno Haible  <bruno@clisp.org>
25860
25861                 * modules/javaversion: New file.
25862                 * MODULES.html.sh (Java): Add javaversion.
25863
25864         2006-03-12  Bruno Haible  <bruno@clisp.org>
25865
25866                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
25867
25868         2005-12-04  Bruno Haible  <bruno@clisp.org>
25869
25870                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
25871                 (untested).
25872
25873         2006-06-21  Bruno Haible  <bruno@clisp.org>
25874
25875                 Avoid warnings from recent versions of mcs.
25876                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
25877                 -o, -L, -r any more. Use options documented since mcs-1.0
25878                 instead. Similarly for -g.
25879
25880         2005-12-04  Bruno Haible  <bruno@clisp.org>
25881
25882                 * build-aux/csharpcomp.sh.in: Suffix for resources is
25883                 .resources, not .resource.
25884
25885         2005-07-09  Bruno Haible  <bruno@clisp.org>
25886
25887                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
25888                 add a .dll suffix.
25889                 Reported by Mark Junker <mjscod@gmx.de>.
25890
25891         2006-07-22  Bruno Haible  <bruno@clisp.org>
25892
25893                 * modules/gettext: Upgrade to gettext-0.15.
25894                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
25895                 m4/visibility.m4.
25896                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
25897
25898 2006-07-22  Bruno Haible  <bruno@clisp.org>
25899
25900         Merge from GNU gettext 0.15.
25901
25902         2006-03-25  Bruno Haible  <bruno@clisp.org>
25903
25904                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
25905
25906         2006-07-21  Bruno Haible  <bruno@clisp.org>
25907
25908                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
25909                 "1.1".
25910
25911         2006-05-09  Bruno Haible  <bruno@clisp.org>
25912
25913                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
25914                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
25915                 for the conftestver execution.
25916
25917         2006-05-01  Bruno Haible  <bruno@clisp.org>
25918
25919                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
25920                 optional target-version argument. Verify that the compiler
25921                 groks source of the specified source-version, or add -source
25922                 option as necessary. Verify that the compiler produces
25923                 bytecode in the specified target-version, or add -target and
25924                 -source options as necessary. Make the result of the test
25925                 available as variable CONF_JAVAC. Also log error output in
25926                 config.log.
25927
25928         2006-03-11  Bruno Haible  <bruno@clisp.org>
25929
25930                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
25931
25932         2006-05-09  Bruno Haible  <bruno@clisp.org>
25933
25934                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
25935                 CLASSPATH_SEPARATOR to a semicolon.
25936
25937         2006-03-12  Bruno Haible  <bruno@clisp.org>
25938
25939                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
25940                 available as variable CONF_JAVA, for subsequent autoconf
25941                 tests. Also log error output in config.log.
25942
25943         2006-07-19  Bruno Haible  <bruno@clisp.org>
25944
25945                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
25946                 that getline works on glibc2 systems. Needed to avoid trouble
25947                 in relocatable.c.
25948                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
25949
25950         2005-12-04  Bruno Haible  <bruno@clisp.org>
25951
25952                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
25953                 launcher (untested).
25954
25955         2005-12-04  Bruno Haible  <bruno@clisp.org>
25956
25957                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
25958
25959         2006-07-22  Bruno Haible  <bruno@clisp.org>
25960
25961                 * gettext.m4: Update from GNU gettext-0.15.
25962                 * nls.m4: Likewise.
25963                 * po.m4: Likewise.
25964                 * inttypes-pri.m4: Likewise.
25965                 * inttypes-h.m4: Renamed from inttypes.m4.
25966                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
25967
25968 2006-07-22  Bruno Haible  <bruno@clisp.org>
25969
25970         Merge from GNU gettext 0.15.
25971
25972         2005-07-05  Bruno Haible  <bruno@clisp.org>
25973
25974                 * printf-args.c (printf_fetchargs): Work around broken
25975                 definition of wint_t on mingw.
25976
25977         2005-02-12  Bruno Haible  <bruno@clisp.org>
25978
25979                 * xallocsa.h: Add extern "C" for C++.
25980
25981         2006-05-17  Bruno Haible  <bruno@clisp.org>
25982
25983                 Cygwin portability.
25984                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
25985
25986         2006-04-30  Bruno Haible  <bruno@clisp.org>
25987
25988                 * progreloc.c: Include <mach-o/dyld.h> if available.
25989                 (find_executable): Use _NSGetExecutablePath when possible.
25990
25991         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25992
25993                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
25994                 function.
25995
25996         2005-12-29  Bruno Haible  <bruno@clisp.org>
25997
25998                 * progreloc.c (set_program_name_and_installdir): Fix
25999                 compilation error.
26000
26001         2005-12-04  Bruno Haible  <bruno@clisp.org>
26002
26003                 Cygwin portability.
26004                 * progreloc.c: Include <windows.h> also on Cygwin.
26005                 (find_executable): Add support for Cygwin.
26006                 (set_program_name_and_installdir): Handle also platforms with
26007                 nonempty EXEEXT.
26008
26009         2006-07-11  Bruno Haible  <bruno@clisp.org>
26010
26011                 * javacomp.c: Fix a comment.
26012                 Reported by Jim Meyering.
26013
26014         2006-04-30  Bruno Haible  <bruno@clisp.org>
26015
26016                 * javacomp.h (compile_java_class): Add source_version,
26017                 target_version arguments.
26018                 * javacomp.c: Rewritten to choose only a compiler that
26019                 respects the specified source_version and target_version.
26020
26021         2006-06-27  Bruno Haible  <bruno@clisp.org>
26022
26023                 Assume correct S_ISDIR macro.
26024                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26025
26026         2006-07-22  Bruno Haible  <bruno@clisp.org>
26027
26028                 * javaversion.h: New file, from GNU gettext.
26029                 * javaversion.c: New file, from GNU gettext.
26030                 * javaversion.java: New file, from GNU gettext.
26031                 * javaversion.class: New file, from GNU gettext.
26032
26033         2006-05-17  Bruno Haible  <bruno@clisp.org>
26034
26035                 Cygwin portability.
26036                 * javaexec.c (execute_java_class): Test for jview program
26037                 also on Cygwin.
26038
26039         2006-04-09  Bruno Haible  <bruno@clisp.org>
26040
26041                 * fatal-signal.c: Don't include string.h.
26042                 (at_fatal_signal): Use a copying loop instead of memcpy.
26043
26044         2005-12-04  Bruno Haible  <bruno@clisp.org>
26045
26046                 * csharpexec.c: Add support for 'clix' launcher (untested).
26047                 (execute_csharp_using_sscli): New function.
26048                 (execute_csharp_program): Call it.
26049
26050         2006-06-21  Bruno Haible  <bruno@clisp.org>
26051
26052                 Avoid warnings from recent versions of mcs.
26053                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26054                 -o, -L, -r any more. Use options documented since mcs-1.0
26055                 instead. Similarly for -g.
26056
26057         2005-07-09  Bruno Haible  <bruno@clisp.org>
26058
26059                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26060                 add a .dll suffix.
26061                 Reported by Mark Junker <mjscod@gmx.de>.
26062
26063         2006-06-17  Bruno Haible  <bruno@clisp.org>
26064
26065                 * config.charset: Update for NetBSD 3.0.
26066
26067         2006-05-17  Bruno Haible  <bruno@clisp.org>
26068
26069                 Cygwin portability.
26070                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
26071
26072         2006-05-16  Bruno Haible  <bruno@clisp.org>
26073
26074                 * localcharset.c [CYGWIN]: Include <windows.h>.
26075                 (get_charset_aliases): For Cygwin, return the same CPxxx
26076                 aliases list as under WIN32.
26077                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
26078                 the environment variables. Fall back to GetACP().
26079
26080         2006-04-05  Bruno Haible  <bruno@clisp.org>
26081
26082                 * config.charset: Update Juan Manuel Guerrero's address.
26083
26084         2005-02-12  Bruno Haible  <bruno@clisp.org>
26085
26086                 * allocsa.h: Add extern "C" for C++.
26087
26088         2005-02-10  Bruno Haible  <bruno@clisp.org>
26089
26090                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
26091                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
26092
26093         2006-07-22  Bruno Haible  <bruno@clisp.org>
26094
26095                 * gettext.h: Update to GNU gettext-0.15.
26096
26097 2006-07-22  Bruno Haible  <bruno@clisp.org>
26098
26099         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
26100         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
26101         lib-prefix.m4, longdouble.m4, ssize_t.m4.
26102
26103 2006-07-21  Eric Blake  <ebb9@byu.net>
26104
26105         * modules/stdlib-safer: New file.
26106         * MODULES.html.sh (File stream based Input/Output): Add
26107         stdlib-safer.
26108
26109 2006-07-21  Eric Blake  <ebb9@byu.net>
26110
26111         * lib/stdlib-safer.h: New file from coreutils, required by
26112         stdlib--.h.
26113
26114 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
26117
26118 2006-07-20  Bruno Haible  <bruno@clisp.org>
26119
26120         * gnulib-tool: Recognize new option --assume-autoconf.
26121         (autoconf_minversion): New variable.
26122         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
26123
26124 2006-07-20  Bruno Haible  <bruno@clisp.org>
26125
26126         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
26127
26128 2006-07-19  Derek R. Price  <derek@ximbiot.com>
26129
26130         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
26131         Reindent and repaginate.
26132
26133 2006-07-19  Derek Price  <derek@ximbiot.com>
26134
26135         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
26136         Correct grammar.
26137
26138 2006-07-17  Bruno Haible  <bruno@clisp.org>
26139
26140         * modules/list: New file.
26141         * modules/array-list: New file.
26142         * modules/carray-list, modules/carray-list-tests: New files.
26143         * modules/linked-list, modules/linked-list-tests: New files.
26144         * modules/avltree-list, modules/avltree-list-tests: New files.
26145         * modules/rbtree-list, modules/rbtree-list-tests: New files.
26146         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26147         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26148         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26149         * modules/oset: New file.
26150         * modules/array-oset: New file.
26151         * modules/avltree-oset, modules/avltree-oset-tests: New files.
26152         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26153         * tests/test-carray_list.c: New file.
26154         * tests/test-linked_list.c: New file.
26155         * tests/test-avltree_list.c: New file.
26156         * tests/test-rbtree_list.c: New file.
26157         * tests/test-linkedhash_list.c: New file.
26158         * tests/test-avltreehash_list.c: New file.
26159         * tests/test-rbtreehash_list.c: New file.
26160         * tests/test-avltree_oset.c: New file.
26161         * tests/test-rbtree_oset.c: New file.
26162         * MODULES.html.sh (Container data structures): New section.
26163
26164 2006-07-17  Bruno Haible  <bruno@clisp.org>
26165
26166         * m4/gl_list.m4: New file.
26167
26168 2006-07-17  Bruno Haible  <bruno@clisp.org>
26169
26170         * lib/gl_list.h: New file.
26171         * lib/gl_list.c: New file.
26172         * lib/gl_array_list.h: New file.
26173         * lib/gl_array_list.c: New file.
26174         * lib/gl_carray_list.h: New file.
26175         * lib/gl_carray_list.c: New file.
26176         * lib/gl_linked_list.h: New file.
26177         * lib/gl_linked_list.c: New file.
26178         * lib/gl_anylinked_list1.h: New file.
26179         * lib/gl_anylinked_list2.h: New file.
26180         * lib/gl_avltree_list.h: New file.
26181         * lib/gl_avltree_list.c: New file.
26182         * lib/gl_anyavltree_list1.h: New file.
26183         * lib/gl_anyavltree_list2.h: New file.
26184         * lib/gl_rbtree_list.h: New file.
26185         * lib/gl_rbtree_list.c: New file.
26186         * lib/gl_anyrbtree_list1.h: New file.
26187         * lib/gl_anyrbtree_list2.h: New file.
26188         * lib/gl_anytree_list1.h: New file.
26189         * lib/gl_anytree_list2.h: New file.
26190         * lib/gl_linkedhash_list.h: New file.
26191         * lib/gl_linkedhash_list.c: New file.
26192         * lib/gl_anyhash_list1.h: New file.
26193         * lib/gl_anyhash_list2.h: New file.
26194         * lib/gl_avltreehash_list.h: New file.
26195         * lib/gl_avltreehash_list.c: New file.
26196         * lib/gl_rbtreehash_list.h: New file.
26197         * lib/gl_rbtreehash_list.c: New file.
26198         * lib/gl_anytreehash_list1.h: New file.
26199         * lib/gl_anytreehash_list2.h: New file.
26200
26201         * lib/gl_oset.h: New file.
26202         * lib/gl_oset.c: New file.
26203         * lib/gl_array_oset.h: New file.
26204         * lib/gl_array_oset.c: New file.
26205         * lib/gl_avltree_oset.h: New file.
26206         * lib/gl_avltree_oset.c: New file.
26207         * lib/gl_rbtree_oset.h: New file.
26208         * lib/gl_rbtree_oset.c: New file.
26209         * lib/gl_anytree_oset.h: New file.
26210
26211 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26212
26213         * m4/mkancesdirs.m4: New file.
26214         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26215         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26216         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26217         it.
26218
26219 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26220
26221         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26222         * lib/mkancesdirs.h: New files.
26223         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26224         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26225         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
26226         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26227         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
26228         callers changed.  Revamp internals significantly, by not
26229         attempting to create directories that are temporarily more
26230         permissive than the final results.  Do not attempt to use
26231         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26232         This removes some race conditions, fixes some bugs, and simplifies
26233         things.  Use new dirchownmod function to do owner and mode changes.
26234         * lib/mkdir-p.h: Likewise.
26235         * lib/modechange.c (octal_to_mode): New function.
26236         (struct mode_change): New member mentioned.
26237         (make_node_op_equals): New arg mentioned.  All callers changed.
26238         (mode_compile): Keep track of which mode bits the user has explicitly
26239         mentioned.
26240         (mode_adjust): New arg DIR, so that we implement the X op correctly.
26241         New arg PMODE_BITS, to keep track of which mode bits the user
26242         mentioned; it treats S_ISUID and S_ISGID speciall.
26243         All callers changed.
26244         * lib/modechange.h: Likewise.
26245
26246 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26247
26248         * MODULES.html.sh: Add mkancestors.
26249         * modules/mkancesdirs: New module.
26250         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26251         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26252         The chdir-safer and afs files are now orphans; I'll remove them
26253         unless someone speaks up.
26254         Add lib/dirchownmod.c, lib/dirchownmod.h.
26255         (Depends-on): Remove alloca, chown, save-cwd, dirname.
26256         Add lchown, mkancesdirs.
26257         (Maintainer): Add self.
26258
26259 2006-07-15  Karl Berry  <karl@gnu.org>
26260
26261         * gnulib-tool: help message wording/arrangement.
26262
26263 2006-07-14  Simon Josefsson  <jas@extundo.com>
26264
26265         * doc/gnulib.texi (Libtool and Windows): New section.
26266
26267 2006-07-12  Simon Josefsson  <jas@extundo.com>
26268
26269         * modules/gendocs (License): Fix license, approved by Karl.
26270
26271 2006-07-12  Eric Blake  <ebb9@byu.net>
26272
26273         * MODULES.html.sh: Add gendocs.
26274
26275 2006-07-11  Eric Blake  <ebb9@byu.net>
26276
26277         * modules/fdl: New module, to install doc/fdl.texi.
26278         * MODULES.html.sh: Add new section for documentation modules.
26279         * gnulib-tool: Avoid space-tab.
26280         (--doc-base): New option, to manage files from doc.
26281
26282 2006-07-11  Eric Blake  <ebb9@byu.net>
26283
26284         * m4/absolute-header.m4: Fix comments to match recent change.
26285
26286 2006-07-11  Eric Blake  <ebb9@byu.net>
26287
26288         * gnulib-tool: List --doc-base before --tests-base.
26289
26290 2006-07-11  Derek R. Price  <derek@ximbiot.com>
26291
26292         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26293
26294 2006-07-11  Bruno Haible  <bruno@clisp.org>
26295
26296         * README: Mention where to put documentation.
26297
26298 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26299
26300         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26301
26302 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26303
26304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26305         to stdint.m4.
26306
26307 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26308
26309         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26310         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
26311         "no/such/file/stdint.h" when there is no such file, so that
26312         the resulting C code can be parsed by dodgy compilers.
26313         Problems reported by Bob Proulx.
26314
26315 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26316
26317         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26318         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26319         macros into the GNU _D_EXACT_NAMLEN.
26320         * lib/savedir.c:  Likewise.
26321         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26322
26323 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26324         and Paul Eggert  <eggert@cs.ucla.edu>
26325
26326         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26327         * m4/savedir.m4:
26328         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26329         macros into the GNU _D_EXACT_NAMLEN.
26330
26331 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26332
26333         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26334         around the absolute name, to work around a problem with the HP-UX
26335         11.23 native C compiler, reported by Bob Proulx.
26336
26337 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26338
26339         * doc/maintain.texi, make-stds.texi: Sync from
26340         <http://savannah.gnu.org/projects/gnustandards>.
26341
26342 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26343
26344         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26345
26346 2006-07-09  Jim Meyering  <jim@meyering.net>
26347
26348         * m4/glob.m4: Remove a doubled word in a comment.
26349
26350 2006-07-09  Jim Meyering  <jim@meyering.net>
26351
26352         * lib/argp-pv.c: Remove a doubled word in a comment.
26353         * lib/check-version.c (check_version): Likewise.
26354         * lib/javacomp.c (compile_java_class): Likewise.
26355
26356 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26357
26358         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26359         for the benefit of people using Autoconf 2.60.  If you want to
26360         support older Autoconf versions you can copy m4/onceonly_2_57.m4
26361         (or m4/onceonly.m4, if pre-2.57) manually.
26362
26363 2006-07-08  Jim Meyering  <jim@meyering.net>
26364
26365         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26366         comment.
26367         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26368         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26369         comment.
26370
26371 2006-07-08  Jim Meyering  <jim@meyering.net>
26372
26373         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26374
26375 2006-07-07  Simon Josefsson  <jas@extundo.com>
26376
26377         * tests/test-crc.c: Change expected crc value, the test vector
26378         were probably computed using the old broken crc.c?
26379
26380 2006-07-06  Simon Josefsson  <jas@extundo.com>
26381
26382         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26383         now the canonical place for the M4 file).
26384
26385         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26386         from the sys_socket dependency now.
26387
26388         * modules/inet_pton (Files): Ditto.
26389
26390         * modules/inet_ntop (Files): Ditto.
26391
26392 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26393
26394         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26395         not gl_PREREQ_GETUSERSHELL.
26396
26397 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26398
26399         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26400         with only one argument, for Autoconf 2.60.
26401         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26402         expand to nothing, so add a shell command to avoid syntax error.
26403         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26404
26405 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26406
26407         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26408
26409 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26410
26411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26412         no longer needed.  Check for isblank decl.
26413         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26414         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26415         of existence.
26416
26417 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26418
26419         * lib/getloadavg.c: Use __VMS, not VMS.
26420         * lib/getopt.c: Likewise.
26421         * lib/getpagesize.h: Likewise.
26422         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26423         and probably does not work.
26424
26425 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         * lib/.cppi-disable: Add wcwidth.
26428         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
26429         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26430         (ISGRAPH): Remove.  All uses changed to isgraph.
26431         (FOLD) [!defined _LIBC]: Remove special case.
26432         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26433         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26434         HAVE_ISBLANK.
26435         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26436         case.
26437
26438 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26439
26440         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26441         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26442         brackets.  Other minor changes to suppress some compiler
26443         warnings.
26444
26445 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26446         and Paul Eggert  <eggert@cs.ucla.edu>
26447
26448         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26449         of invoking obsolescent AC_HEADER_DIRENT macro.
26450         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26451         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26452         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26453         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26454         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26455         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26456         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26457         * m4/readdir.m4: Remove; no longer needed.
26458
26459 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26460         and Paul Eggert  <eggert@cs.ucla.edu>
26461
26462         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26463         Don't worry about this obsolete case any more.
26464         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
26465         directories.
26466         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26467         worry about this obsolete case any more.
26468         * lib/fts.c: Likewise.
26469         * lib/getcwd.c: Likewise.
26470         * lib/glob.h: Likewise.
26471         * lib/savedir.c: Likewise.
26472
26473 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26474
26475         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26476         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26477         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26478         needed.
26479         All uses removed.
26480         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26481         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26482         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26483         needed.
26484         * m4/getdate.m4 (gl_GETDATE): Likewise.
26485         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26486         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26487         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26488         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26489         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26490         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26491         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26492         needed.
26493
26494 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26495
26496         * lib/memcasecmp.c: Include <limits.h>.
26497         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26498         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26499         Don't assume isdigit succeeds only on '0' through '9'.
26500
26501 2006-07-05  Eric Blake  <ebb9@byu.net>
26502
26503         * modules/getaddrinfo (Depends-on): Add snprintf.
26504
26505 2006-07-05  Eric Blake  <ebb9@byu.net>
26506
26507         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26508         to avoid 'header present but could not be compiled' on cygwin.
26509
26510 2006-07-05  Eric Blake  <ebb9@byu.net>
26511
26512         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26513         missing from netdb.h.
26514         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26515
26516 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26517
26518         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26519         no longer needed.
26520         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26521         * m4/getdate.m4 (gl_GETDATE): Likewise.
26522         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26523         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26524         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26525         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26526         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26527
26528 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26529
26530         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26531         All uses of is_space replaced by isspace.
26532         * lib/exit.h: Don't talk about STDC_HEADERS.
26533         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
26534         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26535         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
26536         replaced by isprint etc.
26537         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26538         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26539         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26540         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26541         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26542         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26543
26544 2006-07-05  Bruno Haible  <bruno@clisp.org>
26545
26546         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26547         the function exists, before testing against AIX.
26548         Reported by Martin Lambers <marlam@marlam.de>.
26549
26550 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26551
26552         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26553         From Mark D. Baushke.
26554
26555 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26556
26557         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26558         to the absolute name, not just one, to bypass Sun C 5.8's
26559         "warning: #include of /usr/include/... may be non-portable".
26560
26561 2006-07-04  Eric Blake  <ebb9@byu.net>
26562
26563         * modules/dirname-tests: New test module.
26564         * tests/test-dirname.c: New file, replacing dirname.c
26565         TEST_DIRNAME section that was recently deleted.
26566
26567 2006-07-04  Bruno Haible  <bruno@clisp.org>
26568
26569         Assume ANSI C header files and <ctype.h> functions.
26570         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26571         (mbsnwidth): Use isprint, iscntrl instead.
26572
26573 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26574
26575         Merge from coreutils.
26576         * MODULES.html.sh: Add xstrtold.
26577         * modules/xstrtold: New file.
26578         * modules/cycle-check (Files): Add lib/same-inode.h.
26579         * modules/dirname (Files): Add m4/double-slash-root.m4.
26580         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26581         * modules/mkdir-p (Files): Add lib/same-inode.h.
26582         * modules/same (Files): Add lib/same-inode.h.
26583
26584 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26585
26586         * m4/absolute-header.m4: Renamed from full-header-path.m4.
26587         This is to keep the terminology clean; POSIX talks about
26588         "absolute pathnames", not "full pathnames", but the GNU
26589         Coding Standards say to use "path" for something else;
26590         so use "absolute" to keep both sides happy.
26591         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26592         Set gl_absolute_header, not gl_full_header_path.
26593         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26594         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26595         All uses changed.
26596
26597         Merge from coreutils.
26598
26599         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26600
26601         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26602         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26603         want to require the building of c-strtod.o.
26604         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26605         needs -lm directly.
26606         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26607
26608         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26609
26610         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26611         --as-needed option if available.  Problem reported by Albert Chin in
26612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26613         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26614         cc merely issues a bunch of annoying warnings for --as-needed
26615         (this problem was reported by Bob Proulx).  Also, try linking with
26616         -lm to detect a bug in binutils 2.16 (this problem was reported
26617         by Ralf Wildenhues).
26618
26619         2006-06-18  Jim Meyering  <jim@meyering.net>
26620
26621         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26622         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26623         macro.
26624         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26625         also check for glibc-2.4's abort-inducing bug.
26626
26627         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26628         Low-probability clean-up should be to use rmdir to get rid of
26629         the just-created directory, not unlink.
26630
26631         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26632         configure fail, and request a bug report to inform us about it.
26633         Add a comment that, barring reports to the contrary, in 2007 we'll
26634         assume ftruncate is universally available.
26635
26636         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26637
26638         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26639
26640         2006-03-12  Jim Meyering  <jim@meyering.net>
26641
26642         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26643         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26644         * m4/same.m4 (gl_SAME): Likewise.
26645         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26646
26647         2006-03-11  Eric Blake  <ebb9@byu.net>
26648
26649         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26650         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26651         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26652         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26653
26654 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26655
26656         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26657         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
26658         reported by Mark D. Baushke, one in
26659         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26660
26661         Merge from coreutils.
26662
26663         * lib/.cppi-disable: Add stdint_.h.
26664         * lib/.cvsignore: Add stdint.h.
26665
26666         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26667
26668         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26669         both double and long double versions.
26670         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
26671         * lib/xstrtold.c: New file.
26672         * lib/xstrtod.h (xstrtold): New decl.
26673
26674         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26675
26676         * lib/filemode.c (setst): Remove.
26677         (strmode): Rewrite to avoid setst.  This makes the code shorter,
26678         (arguably) clearer, and the generated code is a bit smaller on my
26679         Debian GNU/Linux stable x86 host.
26680
26681         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26682
26683         * lib/filemode.c: Include "filemode.h" first, to test the interface.
26684         Assume that filemode.h includes sys/types.h and sys/stat.h.
26685         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26686         (ftypelet): Reorder to put common cases first, for efficiency.
26687         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
26688         to do 'M'.
26689         (strmode): Renamed from mode_string, and now stores 12 bytes instead
26690         of 10, for compatibility with FreeBSD.  All callers changed.
26691         (filemodestring): Now stores 12 bytes instead of 10, and sets file
26692         types that can't be deduced solely from st_mode.  First arg is now a
26693         const pointer.
26694         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26695         (strmode): Renamed from mode_string.
26696         (filemodestring): New decl.
26697         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26698         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26699         needed.
26700         (S_ISPORT, S_ISWHT): New macros, if not already defined.
26701
26702         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26705         fsusage.h now does that.  Include fsusage.h first, to test interface.
26706         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
26707         at most one method (the old code could have generated decls that
26708         didn't conform to C89, not that this was ever exercised).
26709         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26710
26711         2006-03-19  Jim Meyering  <jim@meyering.net>
26712
26713         Work even in a chroot where d_ino values for entries in "/"
26714         don't match the stat.st_ino values for the same names.
26715         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26716         number, iterate through all entries again, using lstat instead.
26717         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26718         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26719
26720         * lib/getcwd.c (__getcwd): Clarify a comment.
26721         Use memcpy in place of a call to strcpy.
26722
26723         2006-03-12  Jim Meyering  <jim@meyering.net>
26724
26725         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26726         matches that of the current directory (which we're about to chdir ".."
26727         out of), then save the dev-ino of the parent, instead.
26728
26729         * lib/same-inode.h (SAME_INODE): New file/macro.
26730         * lib/chdir-safer.c (SAME_INODE): Remove definition.
26731         Include "same-inode.h", instead.
26732         * lib/same.c: Likewise.
26733         * lib/cycle-check.h: Include "same-inode.h".
26734         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26735         * lib/cycle-check.c (SAME_INODE): Remove definition.
26736         * lib/root-dev-ino.h: Include "same-inode.h".
26737
26738         2006-03-11  Eric Blake  <ebb9@byu.net>
26739
26740         * lib/same.c (same_name): s/base_name/last_component/
26741         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26742         * lib/filenamecat.c (file_name_concat): Likewise.
26743
26744         2006-03-11  Eric Blake  <ebb9@byu.net>,
26745                     Paul Eggert  <eggert@cs.ucla.edu>
26746
26747         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26748         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26749         drive prefix.
26750         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26751         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26752         (last_component): New method.
26753         * lib/dirname.c (dir_len): Determine when drive letters need a
26754         subsequent slash.  Preserve // when it is special.
26755         (dir_name): Don't append dot when drive letter is absolute.
26756         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26757         * lib/basename.c (base_name): New semantics - malloc the result.
26758         Preserve // when it is special.  Preserve relative files that look
26759         like drive letters.
26760         (base_len): Preserve // when it is special.
26761         (last_component): New method, similar to old base_name semantics.
26762         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26763         base_name.  Strip redundant slashes from ///.
26764
26765 2006-07-03  Jim Meyering  <jim@meyering.net>
26766
26767         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26768         macro is used before the first cycle_check call.
26769
26770 2006-07-03  Eric Blake  <ebb9@byu.net>
26771
26772         * modules/dirname (Depends-on): Add xstrndup.
26773
26774 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26775
26776         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26777         test cases, so that config.log is a bit easier to follow.
26778
26779 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26780
26781         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26782         both are 64 bits, since this seems to be the tradition, and this
26783         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
26784         we ever run into a host that prefers long long to long in this
26785         case, we'll need another configure-time test.  Problem reported by
26786         Jim Meyering.
26787
26788 2006-07-02  Eric Blake  <ebb9@byu.net>
26789
26790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26791
26792 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * modules/inttypes (Depends-on): No longer depends on stdint.
26795         * modules/stdint (Description): Say more about assumptions.
26796         Say that the fast types might differ.  Say macros are used.
26797         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
26798         (Makefile.am): Revise list of substituted symbols to match
26799         new stdint.m4.
26800         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26801         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26802         * tests/test-stdint.c (verify_same_types)
26803         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26804         the code conforms to C99/C89.
26805         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26806         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26807
26808 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26809
26810         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26811         but fix a bug, by requiring at least 64 bits.
26812         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26813         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26814         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
26815         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26816
26817         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26818         changes.  Make 2.59 a prerequisite.  Check and substitute for
26819         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
26820         inttypes.h.  Do not use special include files; just use the
26821         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
26822         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
26823         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26824         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26825         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26826         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26827         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26828         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26829         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26830         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26831         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26832         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26833         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26834         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26835         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26836         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26837         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26838         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26839         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26840         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26841         WINT_MAX.  Check for C99 conformance more strictly, by detecting
26842         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
26843         not check for things that C99 does not require, e.g., int8_t.  If
26844         a test isn't needed unless <stdint.h> isn't working, and is
26845         unlikely to be needed for any other reason, then don't do it
26846         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
26847         size_t, since we assume C89 freestanding at least.  Do not check
26848         for sig_atomic_t, wchar_t, or wint_t, since the code now does
26849         the right thing even if the types are not defined.  Instead use:
26850         (gl_STDINT_TYPE_PROPERTIES): New macro.
26851         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
26852         testing whether <sys/types.h> clashes, as Autoconf does this for
26853         us now.  All uses removed.
26854         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26855         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26856         (gl_CHECK_TYPE_SAME):
26857         Remove; no longer needed.
26858         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26859         exists, since we'll return 0 anyway in that case.
26860         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26861
26862 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26863
26864         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
26865         possible collision with system files.
26866         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
26867         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
26868         WCHAR_MIN and WCHAR_MAX in this case.
26869         (<stddef.h>): Do not include; no longer needed.
26870         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
26871         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
26872         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
26873         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
26874         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
26875         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
26876         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
26877         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
26878         !defined(__c99))]: Include in this case too, since it's harmless
26879         now.
26880         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
26881         dangerous to do so.
26882         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
26883         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
26884         (_STDINT_MIN, _STDINT_MAX): New macros.
26885         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
26886         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
26887         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
26888         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
26889         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
26890         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
26891         macros, not typedefs; this simplifies things quite a bit.
26892         Use long int for all types narrower than int64_t.
26893         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
26894         Define in terms of long long int or int64_t or long int,
26895         not int64_t or int32_t.  This saves some compile-time testing.
26896         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
26897         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
26898         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
26899         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
26900         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
26901         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
26902         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
26903         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
26904         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
26905         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
26906         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26907         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26908         undef any previous version and define our own version, for
26909         simplicity and consistency with the new macros for types.
26910         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
26911         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
26912         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
26913         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
26914         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
26915         @WINT_T_SUFFIX@ to keep things simple here.
26916         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
26917         Simplify by assuming typical 8/16/32/64 host, since we're
26918         already doing that elsewhere anyway.
26919         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
26920         and assume long long int is 64 bits if available.  This
26921         speeds up 'configure'.
26922
26923 2006-07-01  Eric Blake  <ebb9@byu.net>
26924
26925         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
26926         Reported by Andreas Buening.
26927
26928 2006-07-01  Eric Blake  <ebb9@byu.net>
26929
26930         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
26931
26932 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26933
26934         * lib/getaddrinfo.c: fixed typo
26935
26936 2006-06-29  Jim Meyering  <jim@meyering.net>
26937
26938         * modules/strftime (Maintainer): Add my name, since with the
26939         FPRINTFTIME changes strftime.c has forked from glibc.
26940
26941 2006-06-29  Eric Blake  <ebb9@byu.net>
26942
26943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
26944
26945 2006-06-29  Eric Blake  <ebb9@byu.net>
26946
26947         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
26948
26949 2006-06-29  Eric Blake  <ebb9@byu.net>
26950
26951         * lib/stat_.h: New file.
26952
26953 2006-06-29  Eric Blake  <ebb9@byu.net>
26954
26955         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
26956         unused static function.
26957
26958 2006-06-29  Eric Blake  <ebb9@byu.net>
26959
26960         * doc/functions.texi (Function Portability): Document missing lstat
26961         on mingw.
26962
26963 2006-06-29  Eric Blake  <ebb9@byu.net>
26964
26965         * MODULES.html.sh: Add sys_stat.
26966         * modules/sys_stat: New module.
26967         * modules/mkstemp (Depends-on): Add sys_stat.
26968
26969 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26970
26971         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
26972
26973 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26974
26975         * m4/c-bs-a.m4: Removed.
26976
26977 2006-06-29  Derek R. Price  <derek@ximbiot.com>
26978
26979         * lib/strftime.c: Assume strftime() exists.
26980
26981 2006-06-29  Derek Price  <derek@ximbiot.com>
26982
26983         * modules/c-bs-a: Removed - \a is C89.
26984         * MODULES.html.sh: Remove c-bs-a.
26985
26986 2006-06-29  Bruno Haible  <bruno@clisp.org>
26987
26988         * modules/wcwidth (License): Change to LGPL.
26989
26990 2006-06-28  Simon Josefsson  <jas@extundo.com>
26991
26992         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
26993         on _WIN32.
26994
26995         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
26996         getnameinfo.
26997
26998 2006-06-28  Simon Josefsson  <jas@extundo.com>
26999
27000         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27001
27002 2006-06-28  Simon Josefsson  <jas@extundo.com>
27003
27004         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27005         functions there.  It will succeed on Windows XP, but on Windows
27006         2000 and (presumably) earlier, it will fail, and use the internal
27007         re-implementation.
27008         (use_win32_p): New function.
27009         (getaddrinfo): Use strtoul on servname, to support numeric ports.
27010         Support AI_NUMERICSERV to disable getservbyname.
27011         (getnameinfo): New function, only supports
27012         NI_NUMERICHOST|NI_NUMERICSERV for now.
27013
27014         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27015         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
27016         getnameinfo.
27017
27018 2006-06-28  Eric Blake  <ebb9@byu.net>
27019
27020         * modules/wcwidth: New file.
27021         * modules/mbchar (Depends-on): Add wcwidth.
27022         * modules/mbswidth (Depends-on): Add wcwidth.
27023         * MODULES.html.sh: Add wcwidth.
27024
27025 2006-06-28  Eric Blake  <ebb9@byu.net>
27026
27027         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27029
27030 2006-06-28  Eric Blake  <ebb9@byu.net>
27031
27032         * lib/xvasprintf.h: Fix comments.
27033
27034 2006-06-28  Eric Blake  <ebb9@byu.net>
27035
27036         * lib/mbchar.h (wcwidth): Include wcwidth.h.
27037         * lib/mbswidth.c (wcwidth): Move from here...
27038         * lib/wcwidth.h: ...to this new file.
27039
27040 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27041
27042         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27043
27044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27045         it's obsolete.
27046         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27047
27048 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27049
27050         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
27051         Autoconf 2.60 says this stuff was obsolete.
27052
27053 2006-06-28  Bruno Haible  <bruno@clisp.org>
27054
27055         * modules/wcwidth (Files): Add m4/wchar_t.m4.
27056
27057 2006-06-28  Bruno Haible  <bruno@clisp.org>
27058
27059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
27060         gt_TYPE_WCHAR_T.
27061
27062 2006-06-28  Bruno Haible  <bruno@clisp.org>
27063
27064         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
27065         declaration for wcwidth.
27066         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
27067
27068 2006-06-28  Bruno Haible  <bruno@clisp.org>
27069
27070         * lib/mkdtemp.c [MINGW]: Include <io.h>.
27071         (mkdir): Define using _mkdir.
27072
27073 2006-06-28  Bruno Haible  <bruno@clisp.org>
27074
27075         * lib/getaddrinfo.h: Fix POSIX URL.
27076         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
27077         _WIN32.
27078         (use_win32_p): Make static.
27079         (getaddrinfo): Reject service name if it is empty or does not consist
27080         solely of decimal digits, or if its value is > 65535.
27081         (getnameinfo): Remove useless casts.
27082
27083 2006-06-27  Simon Josefsson  <jas@extundo.com>
27084
27085         * modules/sys_select: New file, suggested by Bruno Haible, Paul
27086         Eggert and Martin Lambers.
27087
27088 2006-06-27  Simon Josefsson  <jas@extundo.com>
27089
27090         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
27091         Eggert and Martin Lambers.
27092
27093 2006-06-27  Bruno Haible  <bruno@clisp.org>
27094
27095         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
27096         result to 0, not to empty.
27097         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
27098
27099 2006-06-27  Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
27102
27103 2006-06-26  Simon Josefsson  <jas@extundo.com>
27104
27105         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
27106         present.
27107
27108 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27109
27110         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
27111         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
27112         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
27113
27114 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
27115
27116         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
27117
27118 2006-06-26  Bruno Haible  <bruno@clisp.org>
27119
27120         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
27121
27122 2006-06-26  Bruno Haible  <bruno@clisp.org>
27123
27124         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
27125
27126 2006-06-26  Bruno Haible  <bruno@clisp.org>
27127
27128         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
27129         SGI C compiler in pre-C99 mode.
27130         Suggested by Mark D. Baushke and Larry Jones.
27131
27132 2006-06-26  Bruno Haible  <bruno@clisp.org>
27133
27134         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
27135         WCHAR_MAX.
27136         Reported by Mark D. Baushke and Larry Jones.
27137
27138 2006-06-26  Bruno Haible  <bruno@clisp.org>
27139
27140         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27141         in pre-C99 mode.
27142         Suggested by Mark D. Baushke and Larry Jones.
27143
27144 2006-06-23  Simon Josefsson  <jas@extundo.com>
27145             Bruno Haible  <bruno@clisp.org>
27146
27147         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27148         Emit mostlyclean-local rule.
27149         (func_emit_tests_Makefile_am): Likewise.
27150         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27151
27152 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
27153
27154         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27155
27156 2006-06-23  Bruno Haible  <bruno@clisp.org>
27157
27158         * tests/test-stdint.c: Update to match ISO C 99 Technical
27159         Corrigendum 1.
27160
27161 2006-06-23  Bruno Haible  <bruno@clisp.org>
27162
27163         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27164
27165 2006-06-23  Bruno Haible  <bruno@clisp.org>
27166
27167         * lib/stdint_.h: Treat IRIX like OpenBSD.
27168
27169 2006-06-23  Bruno Haible  <bruno@clisp.org>
27170
27171         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27172         ISO C 99 Technical Corrigendum 1.
27173
27174 2006-06-22  Simon Josefsson  <jas@extundo.com>
27175
27176         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27177         MinGW.
27178
27179 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27180
27181         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27182         needed.  Some compiler complained about some of them.  Problem reported
27183         by Larry Jones in
27184         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27185
27186 2006-06-21  Simon Josefsson  <jas@extundo.com>
27187
27188         * tests/test-getaddrinfo.c: New file.
27189
27190         * modules/getaddrinfo-tests: New file.
27191
27192         * MODULES.html.sh: Add inet_pton.
27193
27194         * modules/inet_pton: New file.
27195
27196 2006-06-21  Simon Josefsson  <jas@extundo.com>
27197
27198         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
27199         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
27200         of using the (limited) gnulib implementation on Windows XP.
27201
27202         * m4/inet_pton.m4: New file.
27203
27204 2006-06-21  Simon Josefsson  <jas@extundo.com>
27205
27206         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27207         variable.
27208
27209         * lib/socket_.h: Don't define WINVER.
27210
27211         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27212         slightly modified to work in gnulib.
27213
27214 2006-06-21  Simon Josefsson  <jas@extundo.com>
27215
27216         * doc/gnulib.texi (Windows sockets): Add.
27217
27218 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27219
27220         * lib/read-file.c (fread_file): Start with buffer allocation of
27221         0 bytes rather than 1 byte; this simplifies the code.
27222         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
27223         code to free buffer and save/restore errno.
27224         (internal_read_file): Remove unused local.
27225
27226 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27227
27228         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27229         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27230         Problem reported by Denis Excoffier in
27231         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27232
27233 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27234
27235         * modules/sys_socket, modules/socklen: Include sys/types since
27236         FreeBSD 4.x's sys/socket.h needs it.
27237
27238 2006-06-19  Simon Josefsson  <jas@extundo.com>
27239
27240         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27241
27242 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
27243
27244         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27245
27246 2006-06-19  Bruno Haible  <bruno@clisp.org>
27247
27248         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27249         and FULL_PATH_INTTYPES_H in angle brackets.
27250         Reported by Mark D. Baushke <mdb@gnu.org>.
27251
27252 2006-06-17  Eric Blake  <ebb9@byu.net>
27253
27254         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27255         errno.
27256
27257 2006-06-17  Bruno Haible  <bruno@clisp.org>
27258
27259         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27260         <sys/inttypes.h>.
27261
27262 2006-06-17  Bruno Haible  <bruno@clisp.org>
27263
27264         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27265         whether errno is declared. Assume <errno.h> declares errno.
27266
27267 2006-06-17  Bruno Haible  <bruno@clisp.org>
27268
27269         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27270
27271 2006-06-17  Bruno Haible  <bruno@clisp.org>
27272
27273         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27274         problem on Solaris 2.5.1.
27275
27276 2006-06-16  Eric Blake  <ebb9@byu.net>
27277
27278         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27279         * lib/unicodeio.c [!defined errno]: Likewise.
27280         * lib/strtol.c [!defined errno]: Likewise.
27281         * lib/strtod.c [!defined errno]: Likewise.
27282
27283 2006-06-15  Eric Blake  <ebb9@byu.net>
27284
27285         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27286
27287 2006-06-15  Eric Blake  <ebb9@byu.net>
27288
27289         * config/srclist.txt (ssize_t.m4): Lose sync.
27290
27291 2006-06-15  Bruno Haible  <bruno@clisp.org>
27292
27293         * modules/stdint (Files): Include m4/full-header-path.m4,
27294         m4/size_max.m4, m4/wchar_t.m4.
27295         (Makefile.am): Many more substitutions.
27296         * modules/stdint-tests: New file.
27297         * tests/test-stdint.c: New file.
27298
27299 2006-06-15  Bruno Haible  <bruno@clisp.org>
27300
27301         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27302         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27303         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27304         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27305         gl_CHECK_TYPE_SAME): New macros.
27306
27307 2006-06-15  Bruno Haible  <bruno@clisp.org>
27308
27309         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27310
27311 2006-06-15  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/stdint_.h: Rewritten to be fully auto-configured.
27314         Fixes bug on HP-UX/IA64.
27315
27316 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
27317
27318         * lib/getdate.y (__attribute__): Don't define if already defined.
27319         Problem reported by Larry Jones.
27320         * lib/utimens.c (__attribute__): Likewise.
27321
27322 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
27323
27324         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27325         reported by Andreas Schwab.
27326
27327 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27328             Bruno Haible  <bruno@clisp.org>
27329
27330         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27331         check for the declaration of strnlen and a run test that exposes the
27332         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
27333         rpl_strndup.
27334
27335 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27336             Bruno Haible  <bruno@clisp.org>
27337
27338         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27339
27340 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27341
27342         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27343         compile test, for Tru64 4.0D.
27344
27345 2006-05-28  Karl Berry  <karl@gnu.org>
27346
27347         * config/srclist.txt (printf-args.c): lose sync.
27348
27349 2006-05-26  Martin Lambers  <marlam@marlam.de>
27350
27351         * lib/getpass.c: Updates the test for the native W32 API, and adds
27352         missing includes, thus fixing compilation warnings.
27353
27354 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27355
27356         * lib/exclude.c (exclude_fnmatch): New function.
27357         (excluded_file_name): Call exclude_fnmatch.
27358         * lib/exclude.h (excluded_file_name): New prototype
27359
27360 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
27361
27362         * lib/tempname.c (small_open, large_open): New macros.
27363         (__open, __open64) [!_LIBC]: Remove.
27364         (__gen_tempname): Use small_open and large_open instead of __open
27365         and __open64.  This fixes a portability bug on HP-UX 11.11i
27366         reported by Simon Wing-Tang in
27367         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27368
27369 2006-05-24  Bruno Haible  <bruno@clisp.org>
27370
27371         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27372         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27373         Reported by Thorsten Maerz <torte@netztorte.de> via
27374         Aaron Stone <aaron@serendipity.cx>.
27375
27376 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27377
27378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27379         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
27380         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
27381         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27382         not really conditional on the cache.
27383         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27384
27385 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27388         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27389         (my_usleep): Don't mishandle maximum value.
27390
27391 2006-05-19  Jim Meyering  <jim@meyering.net>
27392
27393         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
27394
27395 2006-05-17  Bruno Haible  <bruno@clisp.org>
27396
27397         Cygwin portability.
27398         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27399
27400 2006-05-17  Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/stdint_.h: Fix recognition of Cygwin.
27403
27404 2006-05-15  Bruno Haible  <bruno@clisp.org>
27405
27406         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27407         on libtool patch by Ralf Wildenhues.
27408
27409 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27410
27411         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27412         test for C99 conformance; (bool) 0.5 is an integer constant
27413         expression, but (bool) -0.5 is not.  Problem reported by Fedor
27414         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27415
27416 2006-05-11  Simon Josefsson  <jas@extundo.com>
27417
27418         * m4/xvasprintf.m4: Fix obvious typo.
27419
27420 2006-05-11  Jim Meyering  <jim@meyering.net>
27421
27422         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
27423         James Lemley.
27424
27425 2006-05-10  Simon Josefsson  <jas@extundo.com>
27426
27427         * lib/md4.c: Typo fix, update copyright years.
27428         (K1, K2): Don't use L because it turn computations into 64-bit on
27429         64-bit platforms.
27430
27431 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
27432
27433         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27434         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27435         unwanted sign propagation, e.g., on hosts with 64-bit int.
27436         There still are some problems with reeelly weird theoretical hosts
27437         (e.g., 33-bit int) but it's not worth worrying about now.
27438         * lib/sha1.c (rol): Likewise.
27439         (K1, K2, K3, K4): Remove unnecessary L suffix.
27440
27441 2006-05-10  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/des.c: Cast to avoid warnings.
27444
27445 2006-05-09  Bruno Haible  <bruno@clisp.org>
27446
27447         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27448         (Depends-on): Depend also on xsize, stdarg.
27449         (configure.ac): Add gl_XVASPRINTF.
27450
27451 2006-05-09  Bruno Haible  <bruno@clisp.org>
27452
27453         * m4/xvasprintf.m4: New file.
27454
27455 2006-05-09  Bruno Haible  <bruno@clisp.org>
27456
27457         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27458         (EOVERFLOW): Define fallback value.
27459         (xstrcat): New function.
27460         (xvasprintf): Recognize the special case of a string concatenation.
27461
27462 2006-05-08  Eric Blake  <ebb9@byu.net>
27463
27464         * gnulib-tool (func_version): Base copyright year on CVS date.
27465         (func_emit_copyright_notice): New function.
27466         (func_emit_lib_Makefile_am): Use it.
27467         (func_emit_tests_Makefile_am): Likewise.
27468         (func_import): Likewise.
27469
27470 2006-05-08  Bruno Haible  <bruno@clisp.org>
27471
27472         * modules/stdarg: New file.
27473         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27474
27475 2006-05-08  Bruno Haible  <bruno@clisp.org>
27476
27477         * m4/stdarg.m4: New file, from GNU gettext.
27478
27479 2006-05-08  Bruno Haible  <bruno@clisp.org>
27480
27481         * config/srclist.txt (build-aux/config.rpath): different from latest
27482         release.
27483
27484 2006-05-08  Bruno Haible  <bruno@clisp.org>
27485
27486         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27487
27488 2006-05-05  Jim Meyering  <jim@meyering.net>
27489
27490         * m4/warning.m4: New file, derived from bison's file by the same name.
27491
27492 2006-05-03  Bruno Haible  <bruno@clisp.org>
27493
27494         * lib/stdint_.h: Shorter URL.
27495         * lib/inttypes.h: Likewise.
27496
27497 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27498
27499         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27500
27501 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27502
27503         * lib/verify.h: Document the internals better.  Most of this change
27504         was written by Bruno Haible.
27505
27506 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27507
27508         * doc/verify.texi: New file, partly based on a proposal by
27509         Bruno Haible.
27510
27511 2006-05-02  Bruno Haible  <bruno@clisp.org>
27512
27513         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27514         test from here...
27515         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27516
27517 2006-04-29  Bruno Haible  <bruno@clisp.org>
27518
27519         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27520         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27521
27522 2006-04-29  Bruno Haible  <bruno@clisp.org>
27523
27524         * gnulib-tool: Make --update option actually work.
27525
27526 2006-04-29  Bruno Haible  <bruno@clisp.org>
27527
27528         * doc/gcd.texi: New file.
27529         * doc/gnulib.texi: Include it.
27530
27531 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27532
27533         * lib/getdate.y (get_date): When adding relative date, start with the
27534         initial time, not with the result of the first mktime call.
27535
27536 2006-04-25  Bruno Haible  <bruno@clisp.org>
27537
27538         * gnulib-tool (func_import): Output the include directives in three
27539         blocks, sorted separately.
27540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27541
27542 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27543
27544         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27545         to define main with arguments, for C++.  Reported by Eric Blake.
27546         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27547         Prefer 'int main ()' to 'int main (void)', for C++.
27548         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27550         for 'main', for C99 and C++.
27551
27552 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27553
27554         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27555         Don't assume that exit status -1 is valid.
27556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27557         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27558         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27559         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27560         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27561         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27562         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
27563         functions can be used without declaring them, or that you can
27564         exit with status -1.
27565         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27566
27567 2006-04-24  Karl Berry  <karl@gnu.org>
27568
27569         * config/srclist.txt (longdouble.m4): sync lost.
27570
27571 2006-04-24  Eric Blake  <ebb9@byu.net>
27572
27573         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27574
27575 2006-04-24  Bruno Haible  <bruno@clisp.org>
27576
27577         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27578         poll() implementation in AIX.
27579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27580
27581 2006-04-24  Bruno Haible  <bruno@clisp.org>
27582
27583         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27584         assigned exactly once.
27585
27586 2006-04-23  Claudio Fontana  <claudio@gnu.org>
27587             Bruno Haible  <bruno@clisp.org>
27588
27589         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27590         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27591         for AM_CPPFLAGS.
27592
27593 2006-04-23  Bruno Haible  <bruno@clisp.org>
27594
27595         * modules/copy-file: Depend on unistd.
27596         * modules/execute: Likewise.
27597         * modules/fatal-signal: Likewise.
27598         * modules/findprog: Likewise.
27599         * modules/mkdtemp : Likewise.
27600         * modules/pipe: Likewise.
27601         * modules/wait-process: Likewise.
27602
27603 2006-04-23  Bruno Haible  <bruno@clisp.org>
27604
27605         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27606         condition was already detected.
27607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27608
27609 2006-04-23  Bruno Haible  <bruno@clisp.org>
27610
27611         * lib/copy-file.c: Include <unistd.h> unconditionally.
27612         * lib/execute.c: Likewise.
27613         * lib/fatal-signal.c: Likewise.
27614         * lib/findprog.c: Likewise.
27615         * lib/mkdtemp.c: Likewise.
27616         * lib/pipe.h: Likewise.
27617         * lib/pipe.c: Likewise.
27618         * lib/wait-process.h: Likewise.
27619
27620 2006-04-23  Bruno Haible  <bruno@clisp.org>
27621
27622         * gnulib-tool (func_usage): Fix --import description. Document
27623         --update.
27624         (func_import): Create temporary file in a temporary directory, if
27625         --dry-run is specified. Silence errors from 'grep' when there are no
27626         m4 files in $m4dir.
27627         (func_create_testdir): Silence errors from 'grep' when there are no
27628         m4 files in $m4dir.
27629         Reported by Karl Berry <karl@freefriends.org>.
27630
27631 2006-04-20  Bruno Haible  <bruno@clisp.org>
27632
27633         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27634         one argument, so that the code will be portable to Autoconf 2.60.
27635         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27636         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27637         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27638
27639 2006-04-19  Derek Price  <derek@ximbiot.com>
27640             Eric Blake  <ebb9@byu.net>
27641
27642         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27643         rather than "/full/path.h".  Update comment to match.  Shorten &
27644         generalize m4_translit call via AS_TR_CPP.
27645
27646 2006-04-19  Derek Price  <derek@ximbiot.com>
27647             Eric Blake  <ebb9@byu.net>
27648
27649         * lib/inttypes.h: Correct grammar in comment.
27650
27651 2006-04-18  Derek Price  <derek@ximbiot.com>
27652             Paul Eggert  <eggert@cs.ucla.edu>
27653
27654         * modules/inttypes: New file.
27655         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27656
27657 2006-04-18  Derek Price  <derek@ximbiot.com>
27658             Paul Eggert  <eggert@cs.ucla.edu>
27659
27660         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27661         New files.
27662
27663 2006-04-18  Derek Price  <derek@ximbiot.com>
27664             Paul Eggert  <eggert@cs.ucla.edu>
27665
27666         * lib/inttypes.h: New file.
27667         * lib/strtoimax.c: Assume <inttypes.h>.
27668
27669 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
27670
27671         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27672         isn't mounted.  Problem reported by Kir Kolyshkin.
27673
27674 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27675
27676         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27677         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
27678         Derek R. Price.
27679         * lib/regex.h (RE_DUP_MAX): Update comment to match current
27680         implementation.
27681
27682 2006-04-12  Eric Blake  <ebb9@byu.net>
27683
27684         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27685         is now done automatically by the corresponding Autoconf macro.
27686
27687 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27688
27689         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27690         time_r.h.
27691
27692 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27693
27694         Merge regex changes from libc, removing some of our
27695         POSIX-conformance changes that were rejected and redoing them in a
27696         less-intrusive way.
27697
27698         * lib/regcomp.c (re_compile_internal, init_dfa):
27699         Length arg is now size_t, not Idx.  All uses changed.
27700         (peek_token): Forward decl now says internal_function.
27701         (__re_error_msgid, __re_error_msgid_idx):
27702         Now static rather than extern with attribute_hidden.
27703         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27704         For some reason libc prefers K&R style defns for external functions.
27705         (regerror) [!defined _LIBC]: Likewise.
27706         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27707         (seek_collating_symbol_entry, lookup_collation_sequence_value):
27708         (build_range_exp, build_collating_symbol):
27709         Use K&R-style defn.
27710         (re_compile_fastmap): Use '\0' to memset, not 0.
27711         (utf8_sb_map): Make the calculations more obvious.
27712         (init_dfa, parse_bracket_exp, build_charclass_op):
27713         Call calloc and cast result, as glibc does.
27714         (init_word_char, fetch_token, peek_token, peek_token_bracket):
27715         (build_range_exp, build_collating_symbol):
27716         Now internal functions.
27717
27718         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27719
27720         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
27721         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27722         Don't depend on VMS; depend on __VMS instead, for POSIX
27723         namespace cleanness.
27724         (regoff_t): Define to ssize_t, not long int.
27725
27726         Remove the REG_ macros named below.  Instead, make the old names
27727         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27728         __USE_GNU_REGEX.
27729         (REG_BACKSLASH_ESCAPE_IN_LISTS):
27730         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27731         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27732         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27733         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27734         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27735         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27736         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27737         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27738         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27739         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27740         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27741         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27742         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27743         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27744         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27745         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27746         (REG_NREGS):
27747         Remove.  All uses replaced by the old RE_* names.
27748         (RE_BACKSLASH_ESCAPE_IN_LISTS):
27749         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27750         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27751         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27752         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27753         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27754         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27755         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27756         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27757         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27758         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27759         Don't bother having these macros be independent of each others'
27760         values, since they no longer exist in the POSIX name space.
27761
27762         Rename the following member names back to their old names,
27763         unless !__USE_GNU_REGEX.  All uses changed back.
27764         (buffer): Renamed from re_buffer.
27765         (allocated): Renamed from re_allocated.
27766         (used): Renamed from re_used.
27767         (syntax): Renamed from re_syntax.
27768         (fastmap): Renamed from re_fastmap.
27769         (translate): Renamed from re_translate.
27770         (can_be_null): Renamed from re_can_be_null.
27771         (regs_allocated): Renamed from re_regs_allocated.
27772         (fastmap_accurate): Renamed from re_fastmap_accurate.
27773         (no_sub): Renamed from re_no_sub.
27774         (not_bol): Renamed from re_not_bol.
27775         (not_eol): Renamed from re_not_eol.
27776         (newline_anchor): Renamed from re_newline_anchor.
27777         (num_regs): Renamed from rm_num_regs.
27778         (start): Renamed from rm_start.
27779         (end): Renamed from rm_end.
27780
27781         (free_state): Move up a bit.
27782
27783         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27784         #define to be empty.
27785         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27786         when that is what is intended.
27787         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27788         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27789         (MAX): New macro.
27790         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27791         All uses changed back to re_malloc, etc.  It's now the caller's
27792         responsibility to check for overflow; all callers changed.
27793         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27794         (re_x2nrealloc): Remove.
27795         (free_state): Remove decl.
27796
27797         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27798         (re_set_registers, re_exec):
27799         Use K&R-style defn.
27800
27801         2006-01-31  Roland McGrath  <roland@redhat.com>
27802
27803         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27804         Reported by Mike Frysinger <vapier@gentoo.org>.
27805
27806         2006-01-15  Andreas Jaeger  <aj@suse.de>
27807
27808         [BZ #1950]
27809         * lib/regex_internal.c (re_string_reconstruct): Adjust for
27810         build_wcs_upper_buffer change.
27811         (build_wcs_upper_buffer): Change return type.
27812
27813         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
27814
27815         * lib/regex_internal.h: Include <stdint.h> if available.
27816
27817         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
27818
27819         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27820
27821         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27822
27823         * lib/regcomp.c: Adjust for changed secondary hash function.
27824
27825         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
27826
27827         * lib/regex.h: Pretty printing.
27828         Clean up namespace a bit.
27829
27830         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
27831
27832         * lib/regexec.c (update_cur_sifted_state, check_arrival,
27833         check_arrival_add_next_nodes): Avoid using uninitialized variable.
27834
27835         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27836                     Ulrich Drepper  <drepper@redhat.com>
27837
27838         [BZ #1302]
27839         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
27840         changed.
27841         (bitset_word_t): Renamed from bitset_word.  All uses changed.
27842
27843         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
27844
27845         [BZ #281]
27846         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27847         * lib/regcomp.c: Remove unnecessary uses of
27848         unsigned RE_TRANSLATE_TYPE.
27849         * lib/regex_internal.h: Likewise.
27850         * lib/regex_internal.c: Likewise.
27851         * lib/regexec.c: Likewise.
27852         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27853
27854         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
27855
27856         * lib/regexec.c (find_recover_state): Remove unnecessary
27857         initialization.
27858         (transit_state_bkref): Make DFA a const pointer.
27859         (get_subexp): Likewise.
27860         (check_arrival): Likewise.
27861         (update_cur_sifted_state): Likewise.
27862         (re_search_internal): Likewise.
27863         (prune_impossible_nodes): Likewise.
27864         (acquire_init_state_context): Likewise.
27865         (proceed_next_node): Likewise.
27866         (set_regs): Likewise.
27867         (free_fail_stack_return): Likewise.
27868         (check_arrival_expand_ecl): Mark DFA parameter as const.
27869         (check_arrival_expand_ecl_sub): Likewise.
27870         (check_subexp_limits): Likewise.
27871         (sub_epsilon_src_nodes):  Likewise.
27872         (add_epsilon_src_nodes):  Likewise.
27873         (merge_state_array): Likewise.
27874         (update_regs): Likewise.
27875         (build_trtable): Likewise.
27876         (sift_states_backward): Mark MCTX parameter as const.
27877         (build_sifted_states): Likewise.
27878         (update_cur_sifted_state): Likewise.
27879         (sift_states_mkref): Likewise.
27880         (check_arrival_expand_ecl): Mark eclosure as const.
27881         (check_dst_limits_calc_pos_1): Likewise.
27882         * lib/regex_internal.h (re_match_context_t): Make dfa a const
27883         pointer.
27884
27885         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
27886
27887         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
27888         (transit_state_sb): Likewise.
27889         (transit_state_mb): Likewise.
27890         (sift_states_iter_mb): Likewise.
27891         (check_arrival_add_next_nodes): Likewise.
27892         (check_node_accept_bytes): Change first parameter to pointer-to-const.
27893         [_LIBC] (re_search_2_stub): Use mempcpy.
27894
27895         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
27896         mbrtowc for very simple UTF-8 case.
27897
27898         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
27899         a pointer-to-const.
27900         (re_acquire_state_context): Likewise.
27901         * lib/regex_internal.h: Adjust prototypes.
27902
27903         * lib/regex.c: Prevent using C++ compilers.
27904
27905         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
27906         (re_acquire_state_context): Likewise.
27907
27908 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27909
27910         * modules/regex (Depends-on): Add ssize_t.
27911
27912 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27913
27914         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
27915         translation table.
27916
27917 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27918
27919         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
27920
27921 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
27922             Bruno Haible  <bruno@clisp.org>
27923
27924         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
27925         <sys/types.h> and <inttypes.h>.
27926
27927 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27928
27929         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
27930         `__error_t_defined', so argp.h will not typedef the former.
27931
27932 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27933
27934         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
27935         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
27936         glibc names.  Even if glibc is changed to conform to POSIX, the
27937         traditional names will be available anyway, since regex depends on
27938         the extensions module.  Also, fix a longstanding typo in the
27939         implementation of Spencer ERE test #75 from grep 2.3.  Problems
27940         reported by Emanuele Giaquinta.  Also, change sense of cached
27941         variable, so that the message makes sense.
27942
27943 2006-03-24  Simon Josefsson  <jas@extundo.com>
27944
27945         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
27946         including some doc fixes.
27947         (base64_encode_alloc): Fix +1 bug on allocation failures.
27948
27949 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27950
27951         * lib/base64.c (base64_encode): Do not read past end of array with
27952         unsanitized input on systems with CHAR_BIT > 8.
27953
27954 2006-03-24  Eric Blake  <ebb9@byu.net>
27955
27956         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
27957
27958 2006-03-22  Karl Berry  <karl@gnu.org>
27959
27960         * config/srclist.txt (*setenv.[ch]): get from coreutils.
27961         * config/srclistvars.sh (COREUTILS): new var.
27962
27963 2006-03-17  Jim Meyering  <jim@meyering.net>
27964
27965         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
27966         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
27967
27968 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27969
27970         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
27971         no longer needs it.  Instead, check that regoff_t is as least
27972         as wide as ptrdiff_t.
27973
27974         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
27975         so that our regex.h stays compatible with the installed regex.
27976         This is helpful for installers who configure --without-included-regex.
27977         Problem reported by Emanuele Giaquinta.
27978
27979 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
27980
27981         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
27982         Typedef to long int, not to off_, as POSIX will likely change
27983         in that direction.
27984
27985 2006-03-15  Eric Blake  <ebb9@byu.net>
27986
27987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
27988
27989 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
27990
27991         * lib/argp-help.c (validate_uparams): Fix typo
27992         * lib/argp-parse.c (argp_default_options): Consistently begin help
27993         messages with a lowercase letter.
27994
27995 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
27996
27997         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
27998         overrun buffers and shouldn't be used (much as gets shouldn't be
27999         used).
28000         * lib/time_r.c (asctime_r, ctime_r): Likewise.
28001
28002 2006-03-08  Simon Josefsson  <jas@extundo.com>
28003
28004         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28005         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28006
28007 2006-03-08  Simon Josefsson  <jas@extundo.com>
28008
28009         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28010         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28011
28012 2006-03-08  Simon Josefsson  <jas@extundo.com>
28013
28014         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28015         signal that configure disabled the device.
28016
28017 2006-03-08  Simon Josefsson  <jas@extundo.com>
28018
28019         * build-aux/maint.mk: Fix refresh-po, to handle no translated
28020         languages.
28021
28022 2006-03-07  Simon Josefsson  <jas@extundo.com>
28023
28024         * modules/getopt (Depends-on): Add unistd.
28025
28026         * modules/unistd: New file.
28027
28028 2006-03-07  Simon Josefsson  <jas@extundo.com>
28029
28030         * modules/gc-random: New file.
28031
28032 2006-03-07  Simon Josefsson  <jas@extundo.com>
28033
28034         * m4/unistd_h.m4: New file.
28035
28036 2006-03-07  Simon Josefsson  <jas@extundo.com>
28037
28038         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28039         test to be side-effect free by storing the result in the cache
28040         variable gl_cv_lib_readline, and moving the assignment of
28041         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28042         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28043
28044 2006-03-07  Simon Josefsson  <jas@extundo.com>
28045
28046         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
28047         error on missing devices (the functions will return an error).
28048
28049         * m4/gc.m4: Move random stuff to gc-random.m4
28050
28051 2006-03-07  Simon Josefsson  <jas@extundo.com>
28052
28053         * lib/unistd_.h: New file.
28054
28055 2006-03-07  Simon Josefsson  <jas@extundo.com>
28056
28057         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28058
28059 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28060
28061         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
28062         Problem reported by Juan Manuel Guerrero.
28063
28064 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28065
28066         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
28067         the unistd module.
28068         * lib/getlogin_r.c: Likewise.
28069         * lib/getlogin_r.h: Likewise.
28070         * lib/glob.c: Likewise.
28071         * lib/pagealign_alloc.c: Likewise.
28072         * lib/unistd_.h: Remove; no longer needed.
28073
28074 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28075
28076         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28077         Add unistd.
28078         * modules/c-stack (Depends-on): Add unistd.
28079         * modules/getlogin_r: Likewise.
28080         * modules/glob: Likewise.
28081         * modules/pagealign_alloc: Likewise.
28082         * modules/unistd (Files): Remove lib/unistd_.h.
28083         (EXTRA_DIST): Remove.
28084         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
28085         need unistd_.h.
28086         (MOSTLYCLEANFILES): Remove unistd.h-t.
28087
28088 2006-03-03  Simon Josefsson  <jas@extundo.com>
28089
28090         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
28091
28092 2006-03-03  Simon Josefsson  <jas@extundo.com>
28093
28094         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
28095         libidn and bison.
28096
28097 2006-03-03  Simon Josefsson  <jas@extundo.com>
28098
28099         * build-aux/maint.mk: Add indent target.
28100
28101 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
28102
28103         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
28104         our replacement poll.h in any case, to avoid a differing
28105         declaration from a system header.  Seen on AIX.
28106
28107 2006-03-01  Simon Josefsson  <jas@extundo.com>
28108
28109         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
28110         <kasal@ucw.cz>.
28111
28112 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28113
28114         * modules/gettime (Depends-on): Add extensions module.
28115         * modules/nanosleep (Depends-on): Likewise.
28116         * modules/settime (Depends-on): Likewise.
28117
28118 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28119
28120         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
28121         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
28122         pedantically.
28123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28124         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
28125
28126         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
28127         not "==".  Reported by Ralf Wildenhues.
28128
28129 2006-03-01  Karl Berry  <karl@gnu.org>
28130
28131         * doc/Copyright/request-*: new files, synced from gnuorg.
28132
28133 2006-03-01  Karl Berry  <karl@gnu.org>
28134
28135         * config/srclist.txt (Copyright/*): new entries.
28136
28137 2006-02-28  Simon Josefsson  <jas@extundo.com>
28138
28139         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28140
28141 2006-02-27  Simon Josefsson  <jas@extundo.com>
28142
28143         * lib/base64.h: Indent #define's.  From Jim Meyering
28144         <jim@meyering.net>.
28145
28146 2006-02-27  Jim Meyering  <jim@meyering.net>
28147
28148         Revert the change of 2006-02-24, so these files can continue
28149         to be sync'd from gettext.
28150         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28151         of `config.h'.
28152
28153 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28154
28155         * modules/intprops: New file.
28156         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28157         Add intprops.
28158         * modules/getloadavg (Files): Remove lib/intprops.h.
28159         (Depends-on): Add intprops.
28160         * modules/human: Likewise.
28161         * modules/inttostr: Likewise.
28162         * modules/openat: Likewise.
28163         * modules/sig2str: Likewise.
28164         * modules/userspec: Likewise.
28165         * modules/utimecmp: Likewise.
28166         * modules/xnanosleep: Likewise.
28167         * modules/xstrtol: Likewise.
28168
28169 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
28170
28171         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28172         * modules/lock-tests (TESTS): Use $(EXEEXT).
28173         * modules/tls-tests: Likewise.
28174         * modules/argp-tests: Likewise.
28175         (check_PROGRAMS): New var, replacing...
28176         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28177
28178 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28179
28180         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28181         `config.h'.
28182
28183 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28184
28185         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28186
28187 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28188
28189         Sync from coreutils.
28190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28191         gl_CHDIR_SAFER.
28192
28193 2006-02-22  Jim Meyering  <jim@meyering.net>
28194
28195         Sync from coreutils.
28196         * m4/chdir-safer.m4: New file.
28197
28198 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28199
28200         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28201         AT_FDCWD exceeds INT_MAX.
28202         * lib/openat.h (AT_FDCWD): Likewise.
28203
28204 2006-02-17  Eric Blake  <address@hidden>
28205
28206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28207
28208 2006-02-16  Simon Josefsson  <jas@extundo.com>
28209
28210         * modules/getaddrinfo (Depends-on): Add sys_socket.
28211
28212 2006-02-15  Simon Josefsson  <jas@extundo.com>
28213
28214         * build-aux/maint.mk: Add dsyntax-check rule.
28215
28216 2006-02-15  Eric Blake  <ebb9@byu.net>
28217
28218         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28219         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28220         'present but cannot compile' warnings on cygwin.
28221         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
28222         use ws2tcpip.h if sys/socket.h works.
28223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28224         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28225
28226 2006-02-14  Simon Josefsson  <jas@extundo.com>
28227
28228         * modules/maintainer-makefile (Files): Rename.
28229
28230         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28231         and (the local) Makefile.cfg to maint-cfg.mk.
28232
28233         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28234         to the latter.
28235
28236         * modules/maintainer-makefile: New module.
28237
28238         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28239         severaly stripped to make it possible to build it up from scratch
28240         with reliable tests.
28241
28242         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28243         fixes to permit overriding the default actions when configure and
28244         makefile are not available.
28245
28246 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
28247
28248         Sync from coreutils.
28249         * modules/lstat (Depends-on): Don't depend on xalloc.
28250         (License): Change from GPL to LGPL, since this is now simply a
28251         replacement for a libc function.
28252
28253 2006-02-14  Jim Meyering  <jim@meyering.net>
28254
28255         Sync from coreutils.
28256
28257         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28258         failure on deficient systems, and simplify gnulib lgpl dependencies.
28259         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28260         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
28261
28262         * lib/xalloc-die.c: Remove unused definition of N_.
28263
28264 2006-02-14  Jim Meyering  <jim@meyering.net>
28265
28266         Sync from coreutils.
28267         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28268         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28269         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28270         double-quote uses of that variable, to accommodate the rare case in
28271         which getmntent is available in none of the libraries checked.  This
28272         happens at least on FreeBSD 5.0.
28273
28274 2006-02-13  Simon Josefsson  <jas@extundo.com>
28275
28276         * gnulib-tool (Usage): Fix --import, from
28277         karl@freefriends.org (Karl Berry).
28278
28279 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28280
28281         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28282
28283 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
28284
28285         * lib/argp-namefrob.h: Restore changes accidentally lost during the
28286         "autoupdate" on 2005-12-12.
28287
28288 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28289
28290         * modules/closeout (Depends-on): Remove atexit.
28291
28292 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28293
28294         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28295         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28296
28297 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28298
28299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28300         __EXTENSIONS__ if this causes compilation to fail.  Problem
28301         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28302         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28303
28304 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
28305
28306         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28307         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28309         All uses changed.
28310
28311 2006-01-26  Simon Josefsson  <jas@extundo.com>
28312
28313         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28314         prototype is visible on mingw32.
28315
28316         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28317         for mingw32.
28318
28319         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28320         mingw32).
28321
28322 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
28325         attempt to open for write; this always fails, at least on POSIX
28326         hosts.  This reinstates the 2006-01-09 change, which was
28327         inadvertently removed.
28328
28329 2006-01-26  Bruno Haible  <bruno@clisp.org>
28330
28331         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28332         Reported by Paul Eggert.
28333
28334 2006-01-26  Bruno Haible  <bruno@clisp.org>
28335             Paul Eggert  <eggert@cs.ucla.edu>
28336
28337         * lib/stdbool_.h (_Bool)
28338         [(! (defined __cplusplus || defined __BEOS__)
28339           && !defined __GNUC__
28340           && !(defined __HP_cc || defined __xlc__
28341                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28342                || defined __sgi))]:
28343         #define to signed char in these cases too; this simplifies
28344         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28345         etc., separately) and makes it more conservative.
28346
28347 2006-01-25  Simon Josefsson  <jas@extundo.com>
28348
28349         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28350         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
28351         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
28352
28353 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28354
28355         * lib/argp-namefrob.h: Bugfix. Remove stray #
28356
28357 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28358
28359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28360         so that we test the test.
28361         Check for yet another HP-UX cc bug involving *bool |= bool.
28362
28363 2006-01-25  Karl Berry  <karl@gnu.org>
28364
28365         * config/srclist.txt (vasnprintf.c): sync lost.
28366
28367 2006-01-25  Jim Meyering  <jim@meyering.net>
28368
28369         Sync from the stable (b5) branch of coreutils:
28370
28371         * lib/fts.c (fts_children): Don't let close() clobber errno from
28372         failed fchdir().
28373
28374         * lib/fts.c (fts_stat): When following a symlink-to-directory,
28375         don't necessarily interpret stat-fails+lstat-succeeds as indicating
28376         a dangling symlink.  That can also happen at least for ELOOP.
28377         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28378         FYI, this bug predates the inclusion of fts.c in coreutils.
28379
28380         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28381         in their own block, so pre-c99 compilers don't object.
28382
28383         Avoid the double-free (first in fts_read, second in fts_close) that
28384         would occur when an `active' directory is made inaccessible (e.g.,
28385         via chmod a-x) during a traversal.
28386         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28387         before returning.  Reproduce this failure by
28388         mkdir -p a/b; cd a; chmod a-x . b
28389         Reported by Stavros Passas.
28390
28391 2006-01-25  Jim Meyering  <jim@meyering.net>
28392
28393         * lib/fileblocks.c: Remove more useless parentheses.
28394         * lib/readutmp.h: Likewise.
28395
28396 2006-01-25  Bruno Haible  <bruno@clisp.org>
28397
28398         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28399         warnings.
28400         Reported by Paul Eggert.
28401
28402 2006-01-25  Bruno Haible  <bruno@clisp.org>
28403
28404         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28405         rid of a trap command. For Solaris sh.
28406         Reported by Mark D. Baushke <mdb@gnu.org>.
28407
28408 2006-01-24  Simon Josefsson  <jas@extundo.com>
28409
28410         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28411         Bruno.
28412
28413 2006-01-24  Karl Berry  <karl@gnu.org>
28414
28415         * config/srclist.txt (argp-namefrob.h): sync lost.
28416
28417 2006-01-24  Jim Meyering  <jim@meyering.net>
28418
28419         * modules/openat (Files): Add lib/intprops.h.
28420         From Mark D. Baushke.
28421
28422 2006-01-24  Jim Meyering  <jim@meyering.net>
28423
28424         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28425         Reported by Mark D. Baushke.
28426
28427 2006-01-24  Jim Meyering  <jim@meyering.net>
28428
28429         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28430
28431 2006-01-24  Bruno Haible  <bruno@clisp.org>
28432
28433         * modules/strnlen (Maintainer): Change from glibc to all.
28434
28435 2006-01-24  Bruno Haible  <bruno@clisp.org>
28436
28437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28438         Patch by Paul Eggert.
28439
28440 2006-01-24  Bruno Haible  <bruno@clisp.org>
28441
28442         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28443         already has it.
28444         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
28445         2005-11-26.
28446
28447         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28448         'signed char' to avoid problems with the built-in _Bool type.
28449         Reported by Paul Eggert on 2005-11-26.
28450
28451 2006-01-24  Bruno Haible  <bruno@clisp.org>
28452
28453         * gnulib-tool (func_import): Avoid constructing complicated sed
28454         expressions inside backquote.
28455         Report and solution by Mark D. Baushke <mdb@gnu.org>.
28456
28457 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
28458
28459         These changes imported from libc.
28460         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28461         test and two separate function calls.
28462         * lib/strndup.c (__strndup): Add libc_hidden_def.
28463
28464 2006-01-23  Simon Josefsson  <jas@extundo.com>
28465
28466         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28467         Remove the test_*_SOURCES variable: automake infers it by default.
28468         * modules/tls-tests: Likewise.
28469
28470 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28471
28472         Work around porting bugs reported by Dieter in
28473         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28474         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28475         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28476         Include "getopt.h" first, to check interface.
28477         (getenv): Declare only if defined HAVE_DECL_GETENV &&
28478         !HAVE_DECL_GETENV.
28479         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28480         (__strndup): Revert to K&R-style function dfns, the glibc style.
28481         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28482         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28483         Include strnlen.h first, to get prototype properly.
28484         (strnlen): Renamed from __strnlen.
28485         Remove weak alias.
28486
28487 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28488
28489         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28490
28491 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         * config/srclist.txt: Adjust to reflect glibc reorganization.
28494         This affects only comments.
28495
28496 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28497
28498          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28499          Reported by Bruce Korb <bkorb@gnu.org>.
28500
28501 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28502
28503         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28504         to pacify gcc -Wswitch-default.
28505
28506 2006-01-22  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28509         temporary buffer for sprintf, take into account the precision also
28510         for 'd', 'i', 'u', 'o', 'x', 'X'.
28511
28512 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28513
28514         * modules/argp-tests: New module
28515         * tests/test-argp.c: New file
28516         * tests/test-argp-2.sh: New file
28517
28518 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28519
28520         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28521         (__argp_base_name): Removed
28522         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28523         typo.
28524         (__argp_base_name): Provide macro definition or extern declaration
28525         depending on the configuration
28526
28527 2006-01-20  Simon Josefsson  <jas@extundo.com>
28528
28529         * modules/inet_ntop (Depends-on): Depend on sys_socket.
28530
28531 2006-01-20  Simon Josefsson  <jas@extundo.com>
28532
28533         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28534
28535 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28536
28537         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28538         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28539         Suggested by Bruno Haible.
28540
28541 2006-01-20  Karl Berry  <karl@gnu.org>
28542
28543         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28544         until changes propagate, I guess.
28545
28546 2006-01-19  Simon Josefsson  <jas@extundo.com>
28547
28548         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28549
28550 2006-01-19  Simon Josefsson  <jas@extundo.com>
28551
28552         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28553
28554 2006-01-19  Simon Josefsson  <jas@extundo.com>
28555
28556         * gnulib-tool: Set check_PROGRAMS.
28557
28558         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28559         modules/des-tests, modules/gc-arcfour-tests,
28560         modules/gc-arctwo-tests, modules/gc-des-tests,
28561         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28562         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28563         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28564         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28565         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28566         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28567         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28568         test_*_SOURCES.
28569
28570 2006-01-18  Simon Josefsson  <jas@extundo.com>
28571
28572         * modules/socklen (Depends-on): Depend on sys_socket.
28573
28574 2006-01-18  Simon Josefsson  <jas@extundo.com>
28575
28576         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28577         modules/des-tests, modules/gc-arcfour-tests,
28578         modules/gc-arctwo-tests, modules/gc-des-tests,
28579         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28580         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28581         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28582         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28583         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28584         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28585         $(EXEEXT) to automake TESTS variable, for mingw32.
28586
28587 2006-01-17  Simon Josefsson  <jas@extundo.com>
28588
28589         * modules/socklen (Include): Need sys/socket.h.
28590
28591 2006-01-17  Bruno Haible  <bruno@clisp.org>
28592
28593         * modules/ssize_t (Include): Add <sys/types.h>.
28594
28595 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28596
28597         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28598         it's not portable and it doesn't work with cross-compiles.
28599         Problem reported by Bruno Haible.  Fix missing-$ typo in
28600         'test "gl_cv_ignore_unused_libraries" ...' that prevented
28601         -zignore from being used with Sun's C compiler.
28602
28603 2006-01-12  Simon Josefsson  <jas@extundo.com>
28604
28605         * lib/base64.c: Fix warning, reported by Bruno Haible
28606         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28607
28608 2006-01-12  Bruno Haible  <bruno@clisp.org>
28609
28610         * modules/ldd: New file.
28611         * build-aux/ldd.sh.in: New file.
28612         * MODULES.html.sh (Support for building libraries and executables): Add
28613         ldd.
28614
28615 2006-01-12  Bruno Haible  <bruno@clisp.org>
28616
28617         * m4/ldd.m4: New file.
28618
28619 2006-01-12  Bruno Haible  <bruno@clisp.org>
28620
28621         * gnulib-tool (func_import, func_create_testdir): Don't go into an
28622         endless loop while replacing $auxdir with build-aux.
28623
28624 2006-01-11  Simon Josefsson  <jas@extundo.com>
28625
28626         * lib/stdint_.h (SIZE_MAX): Add missing (.
28627
28628 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
28629
28630         Sync from coreutils.
28631         * lib/md5.c: Fix commentary typos.
28632         (alignof, UNALIGNED_P): No need for a GCC-specific version.
28633         * lib/md5.h (__attribute__): Remove; unused.
28634         * lib/sha1.c: Fix commentary to match md5 better.
28635         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28636         so that we don't need to worry about alignment.  All uses changed.
28637         This merges the 2005-10-28 md5 change into sha1.
28638
28639 2006-01-11  Jim Meyering  <jim@meyering.net>
28640
28641         Sync from coreutils.
28642         * lib/md5.c (OP): Fix spacing.
28643
28644 2006-01-11  Bruno Haible  <bruno@clisp.org>
28645
28646         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28647         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28648         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28649
28650 2006-01-11  Bruno Haible  <bruno@clisp.org>
28651
28652         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28653         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28654         the "early" section as well.
28655
28656 2006-01-11  Bruno Haible  <bruno@clisp.org>
28657
28658         Avoid "ar: no archive members specified" error on MacOS X.
28659         * gnulib-tool (func_modules_add_dummy): New function.
28660         (func_import, func_create_testdir): Invoke it.
28661
28662 2006-01-11  Bruno Haible  <bruno@clisp.org>
28663
28664         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28665         with $auxdir in AC_CONFIG_FILES statements.
28666
28667 2006-01-11  Bruno Haible  <bruno@clisp.org>
28668
28669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28670         Initialize also noinst_HEADERS to empty.
28671
28672 2006-01-11  Bruno Haible  <bruno@clisp.org>
28673
28674         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28675         variables.
28676         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28677         autoreconf.
28678
28679 2006-01-11  Bruno Haible  <bruno@clisp.org>
28680
28681         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28682         overridable by the user.
28683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28684
28685 2006-01-10  Simon Josefsson  <jas@extundo.com>
28686
28687         * modules/sys_socket: New file.
28688
28689 2006-01-10  Simon Josefsson  <jas@extundo.com>
28690
28691         * m4/sys_socket_h.m4: New file.
28692
28693 2006-01-10  Simon Josefsson  <jas@extundo.com>
28694
28695         * lib/socket_.h: New file.
28696
28697 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28698
28699         * modules/readutmp (Maintainer): Add myself.
28700
28701 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28702
28703         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28704         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
28705         People who are still concerned with buggy memcmp implementations
28706         can invoke gl_FUNC_MEMCMP themselves.
28707
28708 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28709
28710         * lib/regex_internal.h (BITSET_WORD_BITS):
28711         Work around a bug in 64-bit PGC (before version 6.1-2), where the
28712         preprocessor mishandles large unsigned values as if they were signed.
28713         Problem reported by Claudio Fontana in
28714         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28715
28716 2006-01-10  Jim Meyering  <jim@meyering.net>
28717
28718         Avoid the double-free (first in fts_read, second in fts_close) that
28719         would occur when an `active' directory is made inaccessible (e.g.,
28720         via chmod a-x) during a traversal.
28721         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28722         before returning.  Reproduce this failure by
28723         mkdir -p a/b; cd a; chmod a-x . b
28724         Reported by Stavros Passas.
28725
28726         Sync from coreutils.
28727         * lib/sha1.c: Tweak grammar in a comment.
28728
28729 2006-01-10  Jim Meyering  <jim@meyering.net>
28730
28731         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28732         Patch by Joerg Sonnenberger.
28733
28734 2006-01-10  Bruno Haible  <bruno@clisp.org>
28735
28736         * modules/readutmp: Depend on module free.
28737         * modules/strtok_r: Depend on module restrict.
28738
28739 2006-01-10  Bruno Haible  <bruno@clisp.org>
28740
28741         * modules/gettext (configure.ac): Add an invocation of
28742         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28743
28744 2006-01-10  Bruno Haible  <bruno@clisp.org>
28745
28746         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28747         Reported by Werner Lemberg <wl@gnu.org>.
28748
28749 2006-01-10  Bruno Haible  <bruno@clisp.org>
28750
28751         * lib/localcharset.c: Update from GNU gettext.
28752
28753 2006-01-10  Bruno Haible  <bruno@clisp.org>
28754
28755         * lib/argp.h (__const): Remove macro. Use const instead.
28756         * lib/argp-fmtstream.h (__const): Likewise.
28757         * lib/glob_.h (__const): Remove macro.
28758         * lib/glob-libc.h: Use const instead of __const.
28759
28760 2006-01-10  Bruno Haible  <bruno@clisp.org>
28761
28762         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28763         variable.
28764         Needed to avoid an automake error regarding the 'gettext' module.
28765
28766 2006-01-09  Simon Josefsson  <jas@extundo.com>
28767
28768         * modules/inet_ntop (Depends-on): Add restrict.
28769
28770 2006-01-09  Simon Josefsson  <jas@extundo.com>
28771
28772         * modules/gc-rijndael-tests (License): Put under LGPL.
28773
28774         * modules/gc-des-tests (License): Likewise.
28775
28776         * modules/gc-arcfour-tests (License): Likewise.
28777
28778         * modules/gc-arctwo-tests (License): Likewise.
28779
28780         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28781
28782         * modules/gc-hmac-sha1-tests (Files): Likewise.
28783
28784         * modules/gc-hmac-md5-tests (License): Likewise.
28785
28786         * modules/gc-sha1-tests (License): Likewise.
28787
28788         * modules/gc-md5-tests (License): Likewise.
28789
28790         * modules/gc-md4-tests (License): Likewise.
28791
28792         * modules/gc-md2-tests (License): Likewise.
28793
28794         * modules/gc-tests (License): Likewise.
28795
28796         * modules/des-tests (License): Likewise.
28797
28798         * modules/md4-tests (License): Likewise.
28799
28800         * modules/md2-tests (License): Likewise.
28801
28802 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28803
28804         Sync from coreutils:
28805
28806         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28807         * modules/lib-ignore: New file.
28808         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28809         chdir-safer.m4, lchmod.m4.
28810         * modules/openat: Add mkdirat.c, openat-priv.h.
28811
28812 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28813
28814         Sync from coreutils.
28815         * m4/lib-ignore.m4: New file.
28816         * m4/lchmod.m4: New file.
28817
28818 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28819
28820         Sync from coreutils.
28821         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28822         for write access: POSIX says that must fail.
28823         * lib/fts.c (diropen): Likewise.
28824         * lib/save-cwd.c (save_cwd): Likewise.
28825         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28826         well, for minor improvements on hosts that lack O_DIRECTORY.
28827         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28828         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28829         Fall back on chown if open failed with EACCES.
28830
28831         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28832         Report an error at compile-time if only a 1-second nominal clock
28833         resolution is found.
28834
28835         * lib/lchmod.h: New file.
28836         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28837         (make_dir_parents): Use lchown rather than chown, and
28838         lchmod rather than chmod.
28839
28840         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28841         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
28842         "proc" reported by n0dalus.
28843
28844         * lib/mountlist.c: Include <limits.h>.
28845         (dev_from_mount_options)
28846         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28847         New function.  It no longer assumes "dev=" has the System V meaning
28848         on Linux (since it doesn't).  It also parses "dev=" more carefully.
28849         (read_file_system_list)
28850         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28851         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28852         dev= in that case.
28853
28854         * lib/posixtm.h (PDS_PRE_2000): New macro.
28855         * lib/posixtm.c (year): Arg is now syntax_bits rather than
28856         allow_century.  All usages changed.  Reject dates outside the range
28857         1969-1999 if PDS_PRE_2000 is used.
28858
28859 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28860
28861         Sync from coreutils.
28862         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
28863         (Time of day items): Mention the possibility of leap seconds.
28864         Problem reported by Dr. David Alan Gilbert.
28865
28866 2006-01-09  Jim Meyering  <jim@meyering.net>
28867
28868         Sync from coreutils.
28869
28870         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
28871
28872         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
28873
28874         * lib/modechange.c (mode_compile): Reject an invalid mode string
28875         that starts with an octal digit.  From Andreas Gruenbacher.
28876
28877         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
28878         and dup to open_safer and dup_safer, respectively.
28879         (openat_permissive): Fix typo in comment.
28880
28881         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
28882         "gettext.h"; either no longer needed or are guaranteed by openat.h.
28883         (_): Remove; no longer needed.
28884         (openat): Renamed from rpl_openat; no need for rpl_openat
28885         since openat.h renames openat for us.
28886         Replace most of the body with a call to openat_permissive,
28887         to avoid duplicate code.
28888         Port to (probably hypothetical) environments were mode_t is
28889         wider than int.
28890         (openat_permissive): Require mode arg, so that we can check
28891         types better.  Put it just after flags.  Change cwd failure
28892         indicator from pointer-to-bool to pointer-to-errno-value.
28893         All callers changed.
28894         Invoke openat_save_fail and/or openat_restore_fail if
28895         cwd_errno is null, so that openat can call us.
28896         (openat_permissive, fdopendir, fstatat, unlinkat):
28897         Simplify errno handling to avoid some duplicate code,
28898         as it's OK to set errno on success.
28899         * lib/openat.h: Revamp code so that function macros depend on
28900         __OPENAT_PREFIX only, not also on AT_FDCWD.
28901         (openat_ro): Remove.  Caller changed to use openat_permissive.
28902         (openat_permissive): Now a macro, if not a function.
28903         (openat_restore_fail, openat_save_fail): Now always functions,
28904         since mkdirat needs them even if __OPENAT_PREFIX is defined.
28905
28906         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
28907         and openat.c.
28908         * lib/mkdirat.c: Include openat-priv.h.
28909         Remove definitions of macros defined therein.
28910         * lib/openat.c: Likewise.
28911
28912         * lib/mkdirat.c (mkdirat): New file and function.
28913         * lib/openat.h (mkdirat): Declare.
28914
28915         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
28916
28917         * lib/openat.h (openat_permissive): Declare.
28918         (openat_ro): Define.
28919
28920         * lib/openat.c (EXPECTED_ERRNO): New macro.
28921         (openat_permissive): New function -- used in remove.c rewrite.
28922         (all functions): Set errno just before returning, only if there
28923         was an actual failure.
28924         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
28925
28926         Emulate openat-family functions using Linux's procfs, if possible.
28927         Idea and some code based on Ulrich Drepper's glibc changes.
28928
28929         * lib/openat.c: (BUILD_PROC_NAME): New macro.
28930         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
28931         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
28932         before falling back on save_cwd and restore_cwd.
28933         (fdopendir, fstatat, unlinkat): Likewise.
28934
28935         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
28936         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
28937
28938         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
28939         as second argument to va_arg.  Otherwise, some versions of gcc
28940         warn that `if this code is reached, the program will abort'.
28941
28942 2006-01-09  Jim Meyering  <jim@meyering.net>
28943
28944         Sync from coreutils.
28945         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
28946         Require openat-priv.h.
28947
28948 2006-01-09  Bruno Haible  <bruno@clisp.org>
28949
28950         * modules/strnlen (Include): Use strnlen.h.
28951
28952 2006-01-09  Bruno Haible  <bruno@clisp.org>
28953
28954         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
28955
28956 2006-01-09  Bruno Haible  <bruno@clisp.org>
28957
28958         * lib/sysexit_.h (EX_OK): New macro.
28959         Suggested by Martin Lambers <marlam@marlam.de>.
28960
28961 2006-01-09  Bruno Haible  <bruno@clisp.org>
28962
28963         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
28964         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
28965
28966 2006-01-09  Bruno Haible  <bruno@clisp.org>
28967
28968         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
28969         numbers.
28970
28971 2006-01-09  Bruno Haible  <bruno@clisp.org>
28972
28973         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
28974         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
28975         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
28976         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
28977
28978 2006-01-09  Bruno Haible  <bruno@clisp.org>
28979
28980         * build-aux/javacomp.sh.in: New file, moved from lib/.
28981         * modules/javacomp-script (Files): Update.
28982         (configure.ac): Add AC_CONFIG_FILES invocation.
28983         (EXTRA_DIST): Remove variable.
28984
28985         * build-aux/javaexec.sh.in: New file, moved from lib/.
28986         * modules/javaexec (Files): Update.
28987         (configure.ac): Add AC_CONFIG_FILES invocation.
28988         (EXTRA_DIST): Remove javaexec.sh.in.
28989
28990         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
28991         * modules/csharpcomp-script (Files): Update.
28992         (configure.ac): Add AC_CONFIG_FILES invocation.
28993         (EXTRA_DIST): Remove variable.
28994
28995         * build-aux/csharpexec.sh.in: New file, moved from lib/.
28996         * modules/csharpexec (Files): Update.
28997         (configure.ac): Add AC_CONFIG_FILES invocation.
28998         (EXTRA_DIST): Remove csharpexec.sh.in.
28999
29000 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29001
29002         Sync from coreutils.
29003
29004         Add POSIX ACL support
29005         * lib/acl.h (copy_acl, set_acl): Add declarations.
29006         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29007         systems other than Linux.
29008         (chmod_or_fchmod): New function: use fchmod when possible,
29009         and chmod otherwise.
29010         (file_has_acl): Add a POSIX ACL implementation, with a
29011         Linux-specific subcase.
29012         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29013         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
29014         acls are unsupported.
29015         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29016         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
29017         are unsupported.
29018
29019 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29020
29021         Sync from coreutils.
29022         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29023
29024 2006-01-07  Bruno Haible  <bruno@clisp.org>
29025
29026         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29027         gl_EARLY.
29028
29029 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29030
29031         * lib/strftime.c (tzname): Don't declare if it is already #defined.
29032         Problem reported for Mingw by Mark Junker.
29033
29034 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29035
29036         * README: Gnulib normally doesn't generate a tarball.
29037
29038 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29039
29040         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29041         long int, not int, for nanosecond counts, so that people who are
29042         used to POSIX struct timespec won't be surprised.  Reported by Jim
29043         Meyering.
29044
29045 2005-12-28  Bruno Haible  <bruno@clisp.org>
29046
29047         * build-aux/config.rpath: Update from GNU gettext.
29048
29049 2005-12-16  Jim Meyering  <jim@meyering.net>
29050
29051         * modules/fprintftime: New module.
29052         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29053
29054 2005-12-16  Jim Meyering  <jim@meyering.net>
29055
29056         * m4/fprintftime.m4: New file.
29057
29058 2005-12-16  Jim Meyering  <jim@meyering.net>
29059
29060         * lib/fprintftime.c, lib/fprintftime.h: New files.
29061
29062 2005-12-15  Simon Josefsson  <jas@extundo.com>
29063
29064         * modules/socklen (configure.ac): Fix M4 macro name, to align with
29065         new m4/socklen.m4.
29066
29067 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29068
29069         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
29070         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
29071
29072 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29073
29074         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
29075         * lib/argp-help.c (fill_in_uparams): Check if the constructed
29076         struct uparams is valid. Fall back to the default values if it is
29077         not.
29078
29079 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29080
29081         * modules/argp (Files): Add argp-pin.c
29082         (Depends-on): dirname
29083         (lib_SOURCES): Add argp-pin.c
29084
29085 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29086
29087         * m4/argp.m4:  Check if program_invocation_name and
29088         program_invocation_short_name are declared and define appropriate
29089         macros if they are not.
29090
29091 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29092
29093         * lib/argp-help.c (__argp_base_name): New function
29094         (__argp_short_program_name): Rewrite using __argp_base_name
29095         * lib/argp-namefrob.h: Define program_invocation_name and
29096         program_invocation_short_name if requested
29097         (__argp_base_name): Add prototype
29098         * lib/argp-parse.c (argp_def): Use gettext wrappers
29099         (argp_default_parser): Use __argp_base_name
29100         * lib/argp-pin.c: New file. Defines program_invocation_name and
29101         program_invocation_short_name on systems that lack them.
29102
29103 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29104
29105         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
29106         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29107         porting problem reported by Georg Schwarz in
29108         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29109
29110 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29111
29112         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
29113         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29114         porting problem reported by Georg Schwarz in
29115         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29116
29117 2005-12-05  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
29120         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
29121         Reported by Mark Junker <mjscod@gmx.de>.
29122
29123 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29124
29125         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
29126         Use implementation from Albert Chin, with some
29127         comments/corrections by Stepan Kasal and myself.
29128
29129 2005-12-02  Bruno Haible  <bruno@clisp.org>
29130
29131         * gnulib-tool (func_import): Accept GPLed build tool modules when
29132         --lgpl is given.
29133         * modules/csharpcomp-script: New file.
29134         * modules/csharpcomp: Depend on it.
29135         * modules/javacomp-script: New file.
29136         * modules/javacomp: Depend on it.
29137         Suggested by Simon Josefsson.
29138
29139 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29140
29141         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29142         statement, to work around an HP-UX 10.20 compiler bug reported by
29143         Peter O'Gorman.
29144
29145 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29146
29147         * modules/savedir (Depends-on): Add openat.
29148
29149 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29150
29151         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29152         (uintmax_t) [defined uintmax_t]: Do not declare.
29153         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29154         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29155         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
29156         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29157         sake of portability to weird hosts that C allows (though we don't
29158         know of any practical examples).
29159
29160         * lib/savedir.h (fdsavedir): New decl.
29161         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29162         contains most of the former guts of savedir.
29163         (savedir): Use savedirstream.
29164         Include "openat.h".
29165
29166 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29167
29168         * modules/obstack (Files): Add m4/ulonglong.m4.
29169         Problem reported by Davide Angelocola.
29170
29171 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29172
29173         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29174         coreutils no longer futzes with rounding modes.
29175
29176 2005-11-14  Jim Meyering  <jim@meyering.net>
29177
29178         * lib/mkstemp-safer.c: Include <config.h>, required for possible
29179         replacement of mkstemp.
29180
29181 2005-11-10  Simon Josefsson  <jas@extundo.com>
29182
29183         * lib/readline.c: Remove EOL.
29184
29185 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29186
29187         * modules/gethrxtime (Depends-on): Add gettime.
29188
29189 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29190
29191         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29192         or gettimeofday; no longer needed.
29193
29194 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29195
29196         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29197         time business.
29198         (gethrxtime) [! (HAVE_NANOUPTIME
29199         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29200         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29201         our own approximation.
29202
29203 2005-11-08  Eric Blake  <ebb9@byu.net>
29204
29205         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29206
29207 2005-11-08  Eric Blake  <ebb9@byu.net>
29208
29209         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29210
29211 2005-11-04  Bruno Haible  <bruno@clisp.org>
29212
29213         * gnulib-tool: Implement --update mode.
29214
29215 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29216
29217         Fix porting problem reported by Theodoros V. Kalamatianos.
29218         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29219         Don't assume that futimes failing means we must fail.
29220
29221 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29222
29223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29224         variables to suggest the intended function of the PATH_MAX check.
29225
29226 2005-10-30  Kean Johnston  <jkj@sco.com>
29227
29228         Trivial changes to support SCO systems.
29229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29230         as PATH_MAX.
29231         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29232         where __ptr is null when no I/O is pending.
29233
29234 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29235
29236         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29237         leave errno alone.  Problem reported by Dmitry V. Levin.
29238
29239 2005-10-28  Simon Josefsson  <jas@extundo.com>
29240
29241         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29242         Test more.
29243
29244         * tests/test-gc-md2.c, tests/test-md2.c: New files.
29245
29246         * modules/md2, modules/md2-tests: New files.
29247
29248 2005-10-28  Simon Josefsson  <jas@extundo.com>
29249
29250         * m4/inet_ntop.m4: More tests.
29251
29252         * m4/gc-md2.m4, md2.m4: New file.
29253
29254 2005-10-28  Simon Josefsson  <jas@extundo.com>
29255
29256         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29257         "restrict" keywords, as per POSIX.  Protect the function
29258         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29259         Don't use K&R prototypes.  Check the sprintf return values.
29260         Re-define EAFNOSUPPORT if not present.  Indent.
29261
29262         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29263         suggested by Bruno Haible <bruno@clisp.org>.
29264
29265         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29266
29267         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
29268
29269         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29270         libgcrypt).
29271
29272         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
29273
29274         * lib/md2.h, lib/md2.c: New files.
29275
29276 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29277
29278         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29279         errno alone.  Problem reported by Frederic Jolliton.
29280
29281 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29282
29283         * modules/verify (License): Change from GPL to LGPL.  This is a
29284         tiny module and there are apparently near-equivalents that are
29285         under the BSD license.
29286
29287 2005-10-24  Simon Josefsson  <jas@extundo.com>
29288
29289         * modules/sha1: Relicense to LGPL.
29290
29291 2005-10-24  Simon Josefsson  <jas@extundo.com>
29292
29293         * lib/md4.h: Shrink buffer size, now that we changed the type.
29294
29295 2005-10-23  Simon Josefsson  <jas@extundo.com>
29296
29297         * gnulib-tool (func_import): Fix --tests-base.
29298
29299 2005-10-22  Simon Josefsson  <jas@extundo.com>
29300
29301         * modules/arcfour (Depends-on): Need stdint.
29302
29303 2005-10-22  Simon Josefsson  <jas@extundo.com>
29304
29305         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29306         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
29307
29308 2005-10-22  Simon Josefsson  <jas@extundo.com>
29309
29310         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29311         suggested by Bruno Haible <bruno@clisp.org>.
29312
29313 2005-10-22  Simon Josefsson  <jas@extundo.com>
29314
29315         * lib/crc.h: Include stddef.h, for size_t.
29316
29317 2005-10-22  Simon Josefsson  <jas@extundo.com>
29318
29319         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29320         arcfour_context struct (simplify test vector testing in GNU
29321         Shishi).
29322
29323 2005-10-21  Simon Josefsson  <jas@extundo.com>
29324
29325         * modules/des, modules/des-tests: New files.
29326
29327         * modules/gc-des, modules/gc-des-tests: New files.
29328
29329         * tests/test-des.c, tests/test-gc-des.c: New file.
29330
29331 2005-10-21  Simon Josefsson  <jas@extundo.com>
29332
29333         * modules/arctwo, modules/arctwo-tests: New files.
29334
29335         * tests/test-arctwo.c: New file.
29336
29337         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29338
29339         * tests/test-gc-arctwo.c: New file.
29340
29341 2005-10-21  Simon Josefsson  <jas@extundo.com>
29342
29343         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29344         Bruno Haible <bruno@clisp.org>.
29345
29346         * m4/gc-des.m4: New file.
29347
29348 2005-10-21  Simon Josefsson  <jas@extundo.com>
29349
29350         * m4/arctwo.m4: New file.
29351
29352         * m4/gc-arctwo.m4: New file.
29353
29354 2005-10-21  Simon Josefsson  <jas@extundo.com>
29355
29356         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29357         block.
29358
29359 2005-10-21  Simon Josefsson  <jas@extundo.com>
29360
29361         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29362         <bruno@clisp.org>.
29363
29364         * lib/hmac-sha1.c (hmac_sha1): Likewise.
29365
29366         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29367         Bruno Haible <bruno@clisp.org>.
29368
29369         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29370         <bruno@clisp.org>.
29371
29372 2005-10-21  Simon Josefsson  <jas@extundo.com>
29373
29374         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29375
29376 2005-10-21  Simon Josefsson  <jas@extundo.com>
29377
29378         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29379
29380 2005-10-21  Simon Josefsson  <jas@extundo.com>
29381
29382         * lib/des.h, lib/des.c: New files.
29383
29384         * lib/gc-gnulib.c: Support DES.c
29385
29386 2005-10-21  Simon Josefsson  <jas@extundo.com>
29387
29388         * lib/arctwo.h, lib/arctwo.c: New files.
29389
29390         * lib/gc-gnulib.c: Support ARCTWO.
29391
29392 2005-10-21  Simon Josefsson  <jas@extundo.com>
29393
29394         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29395         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29396
29397 2005-10-21  Simon Josefsson  <jas@extundo.com>
29398
29399         * gnulib-tool (func_import, func_create_testdir): Define automake
29400         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29401         Makefile.am snippet),
29402         suggested by Bruno Haible <bruno@clisp.org>.
29403
29404         * modules/gc (Makefile.am): Use it.
29405
29406 2005-10-21  Bruno Haible  <bruno@clisp.org>
29407
29408         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29409         patch.
29410
29411 2005-10-19  Simon Josefsson  <jas@extundo.com>
29412
29413         * tests/test-gc-rijndael.c: New file.
29414
29415         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29416
29417 2005-10-19  Simon Josefsson  <jas@extundo.com>
29418
29419         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29420         interface too.
29421
29422 2005-10-19  Simon Josefsson  <jas@extundo.com>
29423
29424         * tests/test-gc-arcfour.c: New file.
29425
29426         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29427
29428 2005-10-19  Simon Josefsson  <jas@extundo.com>
29429
29430         * modules/gc-md4, modules/gc-md4-tests: New file.
29431
29432         * tests/test-gc-md4.c: New file.
29433
29434 2005-10-19  Simon Josefsson  <jas@extundo.com>
29435
29436         * m4/gc-md4.m4: New file.
29437
29438 2005-10-19  Simon Josefsson  <jas@extundo.com>
29439
29440         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29441         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29442         <kasal@ucw.cz>.
29443
29444 2005-10-19  Simon Josefsson  <jas@extundo.com>
29445
29446         * m4/gc-arcfour.m4: New file.
29447
29448         * m4/gc-rijndael.m4: New file.
29449
29450 2005-10-19  Simon Josefsson  <jas@extundo.com>
29451
29452         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29453
29454 2005-10-19  Simon Josefsson  <jas@extundo.com>
29455
29456         * lib/gc-gnulib.c: Support ARCFOUR.
29457
29458 2005-10-19  Simon Josefsson  <jas@extundo.com>
29459
29460         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29461         support.
29462
29463         * lib/gc.h: Add ECB enum type.
29464
29465         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29466
29467 2005-10-18  Simon Josefsson  <jas@extundo.com>
29468
29469         * tests/test-md5.c: New file.
29470
29471         * modules/md5-tests: New file.
29472
29473 2005-10-18  Simon Josefsson  <jas@extundo.com>
29474
29475         * tests/test-md4.c: New file.
29476
29477         * modules/md4, modules/md4-tests: New files.
29478
29479 2005-10-18  Simon Josefsson  <jas@extundo.com>
29480
29481         * m4/md4.m4: New file.
29482
29483 2005-10-18  Simon Josefsson  <jas@extundo.com>
29484
29485         * lib/md4.h, lib/md4.c: New files, based on md5.?.
29486
29487 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
29488
29489         * gnulib-tool (func_create_testdir): Omit the second check whether
29490         BUILT_SOURCES in nonempty.
29491
29492 2005-10-17  Simon Josefsson  <jas@extundo.com>
29493
29494         * tests/test-rijndael.c: New file.
29495
29496 2005-10-17  Simon Josefsson  <jas@extundo.com>
29497
29498         * modules/sha1: Depend on stdint instead of md5.
29499
29500         * modules/md5: Depend on stdint, remove uint32_t.
29501
29502 2005-10-17  Simon Josefsson  <jas@extundo.com>
29503
29504         * modules/gc-sha1-tests: New file.
29505
29506         * tests/test-gc-sha1.c: New file.
29507
29508 2005-10-17  Simon Josefsson  <jas@extundo.com>
29509
29510         * m4/md5.m4: Remove call to uint32_t.m4.
29511
29512 2005-10-17  Simon Josefsson  <jas@extundo.com>
29513
29514         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29515
29516         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29517         md5.h.
29518
29519         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
29520
29521         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
29522
29523 2005-10-17  Simon Josefsson  <jas@extundo.com>
29524
29525         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29526
29527 2005-10-17  Simon Josefsson  <jas@extundo.com>
29528
29529         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29530
29531 2005-10-17  Simon Josefsson  <jas@extundo.com>
29532
29533         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29534
29535         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29536
29537 2005-10-17  Bruno Haible  <bruno@clisp.org>
29538
29539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29540         that it can also be used in a test.
29541
29542 2005-10-16  Bruno Haible  <bruno@clisp.org>
29543
29544         * gnulib-tool (func_emit_tests_Makefile_am): Also define
29545         TESTS_ENVIRONMENT, so that individual tests can augment it.
29546
29547         * gnulib-tool (func_create_testdir): Use an intermediate target for
29548         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29549         macros, like $(ALLOCA_H), which cannot be passed through the command
29550         line.
29551
29552 2005-10-15  Simon Josefsson  <jas@extundo.com>
29553
29554         * modules/rijndael-tests: New file.
29555
29556         * modules/rijndael: New file.
29557
29558 2005-10-15  Simon Josefsson  <jas@extundo.com>
29559
29560         * m4/rijndael.m4: New file.
29561
29562 2005-10-15  Simon Josefsson  <jas@extundo.com>
29563
29564         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29565
29566         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29567
29568 2005-10-14  Simon Josefsson  <jas@extundo.com>
29569
29570         * tests/test-arcfour.c: New file.
29571
29572         * modules/arcfour, modules/arcfour-tests: New files.
29573
29574 2005-10-14  Simon Josefsson  <jas@extundo.com>
29575
29576         * m4/arcfour.m4: New file.
29577
29578 2005-10-14  Simon Josefsson  <jas@extundo.com>
29579
29580         * lib/arcfour.h, lib/arcfour.c: New files.
29581
29582 2005-10-14  Roland McGrath  <roland@redhat.com>
29583
29584         Import from libc.  [BZ #1331]
29585         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29586         macro argument.
29587         Reported by Matej Vela <vela@debian.org>.
29588
29589 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29590
29591         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29592         include <wchar.h>; no longer needed.
29593
29594 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29595
29596         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29597
29598 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
29599         and  Ulrich Drepper  <drepper@redhat.com>
29600
29601         Import from libc.
29602         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29603         instead of inline stream orientation test and two separate
29604         function calls.  Pay no attention to USE_IN_LIBIO.
29605
29606 2005-10-13  Simon Josefsson  <jas@extundo.com>
29607
29608         * modules/gc-hmac-md5-tests: New file.
29609
29610         * tests/test-gc-hmac-sha1.c: New file.
29611
29612         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29613
29614         * modules/gc-hmac-md5-tests: New file.
29615
29616         * tests/test-gc-md5.c: New file.
29617
29618         * modules/gc-md5-tests: New file.
29619
29620 2005-10-13  Simon Josefsson  <jas@extundo.com>
29621
29622         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29623         Move memory allocation outside of loop.
29624
29625 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29626
29627         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29628         intermediate directory is in a read-only file system.  Problem
29629         reported by Eric Blake.
29630
29631 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
29632
29633         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29634
29635 2005-10-12  Simon Josefsson  <jas@extundo.com>
29636
29637         * tests/test-hmac-sha1.c: New file.
29638
29639         * modules/hmac-sha1-tests: New file.
29640
29641         * modules/hmac-sha1: New file.
29642
29643 2005-10-12  Simon Josefsson  <jas@extundo.com>
29644
29645         * modules/gc-sha1: New file.
29646
29647 2005-10-12  Simon Josefsson  <jas@extundo.com>
29648
29649         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29650
29651         * tests/test-gc-pbkdf2-sha1.c: New file.
29652
29653 2005-10-12  Simon Josefsson  <jas@extundo.com>
29654
29655         * modules/gc-md5, modules/gc-hmac-md5: New files.
29656
29657         * modules/gc (Files): Remove md5, memxor and hmac files.
29658
29659 2005-10-12  Simon Josefsson  <jas@extundo.com>
29660
29661         * m4/gc-pbkdf2-sha1.m4: New file.
29662
29663         * m4/gc-hmac-sha1.m4: New file.
29664
29665         * m4/gc-sha1: New file.
29666
29667         * m4/hmac-sha1.m4: New file.
29668
29669 2005-10-12  Simon Josefsson  <jas@extundo.com>
29670
29671         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29672
29673         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29674
29675 2005-10-12  Simon Josefsson  <jas@extundo.com>
29676
29677         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29678         suggested by Bruno Haible <bruno@clisp.org>.
29679
29680 2005-10-12  Simon Josefsson  <jas@extundo.com>
29681
29682         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29683
29684 2005-10-12  Simon Josefsson  <jas@extundo.com>
29685
29686         * lib/gc-pbkdf2-sha1.c: New file.
29687
29688         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29689
29690 2005-10-12  Simon Josefsson  <jas@extundo.com>
29691
29692         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29693
29694         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29695
29696 2005-10-12  Simon Josefsson  <jas@extundo.com>
29697
29698         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29699         GC_USE_HMAC_MD5, respectively.
29700
29701         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29702         (gc_md5): Fix typo.
29703
29704         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29705
29706         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29707
29708         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29709
29710 2005-10-12  Bruno Haible  <bruno@clisp.org>
29711
29712         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29713         Reported by Stepan Kasal <kasal@ucw.cz>.
29714
29715 2005-10-11  Simon Josefsson  <jas@extundo.com>
29716
29717         * tests/test-crc.c: New file.
29718
29719         * modules/crc, modules/crc-tests: New files.
29720
29721 2005-10-11  Simon Josefsson  <jas@extundo.com>
29722
29723         * m4/crc.m4: New file.
29724
29725 2005-10-11  Simon Josefsson  <jas@extundo.com>
29726
29727         * lib/gc.h: Add gc_hash and gc_hash_buffer.
29728
29729         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
29730
29731         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29732
29733 2005-10-11  Simon Josefsson  <jas@extundo.com>
29734
29735         * lib/crc.h, lib/crc.c: New files.
29736
29737         * lib/gc.h (gc_hash_buffer): Add doc.
29738
29739 2005-10-11  Bruno Haible  <bruno@clisp.org>
29740
29741         * modules/c-strcasestr: New file.
29742         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29743
29744 2005-10-11  Bruno Haible  <bruno@clisp.org>
29745
29746         * modules/c-strcase: New file.
29747         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29748
29749 2005-10-11  Bruno Haible  <bruno@clisp.org>
29750
29751         * lib/strcasecmp.c: Include limits.h.
29752         (strcasecmp): Avoid integer overflow on exotic platforms.
29753         * lib/strncasecmp.c: Include limits.h.
29754         (strncasecmp): Avoid integer overflow on exotic platforms.
29755         Reported by Paul Eggert.
29756
29757 2005-10-11  Bruno Haible  <bruno@clisp.org>
29758
29759         * lib/c-strcasestr.h: New file, from GNU gettext.
29760         * lib/c-strcasestr.c: New file, from GNU gettext.
29761
29762 2005-10-11  Bruno Haible  <bruno@clisp.org>
29763
29764         * lib/c-strcase.h: New file, from GNU gettext.
29765         * lib/c-strcasecmp.c: New file, from GNU gettext.
29766         * lib/c-strncasecmp.c: New file, from GNU gettext.
29767
29768 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29769
29770         * modules/mempcpy (License): GPL -> LGPL.
29771         * modules/strchrnul (License): Likewise.
29772         * modules/sysexits (License): Likewise.
29773
29774 2005-10-08  Simon Josefsson  <jas@extundo.com>
29775
29776         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29777
29778 2005-10-07  Simon Josefsson  <jas@extundo.com>
29779
29780         * m4/memxor.m4: Remove gl_C_RESTRICT call.
29781
29782 2005-10-06  Simon Josefsson  <jas@extundo.com>
29783
29784         * tests/test-hmac-md5.c: New file.
29785
29786         * modules/hmac-md5-tests: New file.
29787
29788         * modules/hmac-md5: New file.
29789
29790 2005-10-06  Simon Josefsson  <jas@extundo.com>
29791
29792         * m4/hmac-md5.m4: New file.
29793
29794         * m4/memxor.m4: Require gl_C_RESTRICT.
29795
29796 2005-10-06  Simon Josefsson  <jas@extundo.com>
29797
29798         * lib/memxor.c (memxor): Avoid casts and warnings.
29799
29800 2005-10-06  Simon Josefsson  <jas@extundo.com>
29801
29802         * lib/hmac-md5.c: New file.
29803
29804         * lib/hmac.h: New file.
29805
29806 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29807
29808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29809         promotes to int, not unsigned int, to catch the AIX 5.3
29810         compiler bug.
29811
29812 2005-10-05  Simon Josefsson  <jas@extundo.com>
29813
29814         * modules/memxor: New file.
29815
29816         * modules/iconv (Files): Move config.rpath to havelib, it is used
29817         there.
29818
29819         * modules/havelib (Files): Add config.rpath.
29820
29821 2005-10-05  Simon Josefsson  <jas@extundo.com>
29822
29823         * m4/memxor.m4: New file.
29824
29825 2005-10-05  Simon Josefsson  <jas@extundo.com>
29826
29827         * lib/memxor.c (memxor): Fix compiler error.
29828
29829         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29830         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29831
29832         * lib/memxor.h, lib/memxor.c: New files.
29833
29834         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29835         we assume all systems have it, suggested by Jim Meyering
29836         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
29837         any systems lack sys/socket.h; mingw32 is known to lack it, but we
29838         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
29839         same reasons.
29840
29841 2005-10-05  Simon Josefsson  <jas@extundo.com>
29842
29843         * config/srclist.txt: Add glibc bug 1423 for md5.h.
29844
29845 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29848         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29849         needed, since the source code now assumes these .h files.
29850
29851 2005-10-05  Derek Price  <derek@ximbiot.com>
29852
29853         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29854
29855 2005-10-05  Bruno Haible  <bruno@clisp.org>
29856
29857         * modules/stdint (License): Change to LGPL.
29858
29859 2005-10-04  Simon Josefsson  <jas@extundo.com>
29860
29861         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29862         D. Baushke" <mdb@gnu.org>.
29863
29864 2005-10-04  Bruno Haible  <bruno@clisp.org>
29865
29866         * lib/verify.h (verify_true): Provide alternative definition for C++.
29867
29868 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29869
29870         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
29871         (SSIZE_MAX): New macro, if not already defined.
29872         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
29873         than 2 GiB.
29874
29875 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29876
29877         Sync from coreutils.
29878         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
29879         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
29880         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
29881         ULLONG_MAX doesn't work with 2.7.2.1.
29882
29883 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
29886         From Ben Pfaff.
29887
29888         * modules/exclude (Depends-on): Depend on verify.
29889         * modules/strtoimax (Depends-on): Likewise.
29890         * modules/utimecmp (Depends-on): Likewise.
29891
29892 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29893
29894         * lib/exclude.c: Include verify.h.
29895         (verify): Remove.  All callers changed to use verify.h's version.
29896         * lib/strtoimax.c: Likewise.
29897         * lib/utimecmp.c: Likewis.e
29898
29899         Sync from coreutils.
29900         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
29901         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
29902         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
29903         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
29904         bother returning ENOSYS if settimeofday or stime fails; just let
29905         them return whatever errno they want to return.
29906         * lib/utimens.c: Include unistd.h, for dup2.
29907         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
29908         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
29909
29910 2005-10-02  Jim Meyering  <jim@meyering.net>
29911
29912         Sync from coreutils.
29913         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
29914         from glibc-2.2.5 that fails for read-only files.
29915
29916 2005-10-02  Jim Meyering  <jim@meyering.net>
29917
29918         Sync from coreutils.
29919         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
29920         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
29921         `#if HAVE_CONFIG_H'.
29922         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
29923         Remove AT_FDCWD test.
29924         Do not consume the fd unless successful.
29925         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
29926         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
29927         block, so that we don't even try to compile it if settimeofday is
29928         available.  This works around a compilation failure on OSF1 V5.1,
29929         due to stime requiring a `long int*' while tv_sec is `int'.
29930
29931 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
29932
29933         Sync from coreutils.
29934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
29935         against `yes', rather than just testing for nonempty.
29936
29937 2005-10-01  Simon Josefsson  <jas@extundo.com>
29938
29939         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
29940         and Darwin.
29941
29942         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
29943         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
29944         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
29945         freeaddrinfo and gai_strerror are declared by the POSIX headers.
29946         Check if struct addrinfo is declared.
29947
29948 2005-10-01  Simon Josefsson  <jas@extundo.com>
29949
29950         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
29951         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
29952         AI_* and EAI_* definitions.  Protect function declarations.
29953
29954 2005-10-01  Jim Meyering  <jim@meyering.net>
29955
29956         Sync from coreutils.
29957
29958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
29959         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
29960         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
29961         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29962         in the inet and nsl libraries.  Required on Solaris 5.7.
29963
29964 2005-10-01  Jim Meyering  <jim@meyering.net>
29965
29966         Sync from coreutils.
29967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
29968         in the inet and nsl libraries.  Required on Solaris 5.7.
29969
29970 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
29971
29972         * lib/getdelim.c (getdelim): Remove unused variables.
29973
29974 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
29977         so that the code works even with ancient cpp.  Portability problem
29978         with GCC 2.7.2.1 reported by Thomas M.Ott.
29979
29980 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         * modules/regex (Depends-on): Add strcase.
29983
29984         * modules/gethostname (Licence): Change from GPL to LGPL, since
29985         gethostname.c is a trivial implementation of a standard library
29986         function.
29987         * modules/poll (License): Change from GPL to LGPL, since it's
29988         derived from LGPL code.
29989
29990 2005-09-27  Jim Meyering  <jim@meyering.net>
29991
29992         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
29993         HAVE_CONFIG_H.
29994
29995         * lib/intprops.h (signed_type_or_expr__): Define.
29996         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
29997         for unsigned types.
29998
29999 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30000
30001         * lib/verify.h (verify_expr): Remove, replacing with:
30002         (verify_true): New macro that returns true instead of void.
30003         (verify_type__): Remove.
30004         (verify): Use verify_true rather than verify_type__.
30005
30006 2005-09-26  Bruno Haible  <bruno@clisp.org>
30007
30008         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30009         is necessary.
30010         (lib_SOURCES): Remove mbchar.c.
30011         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30012         (Files): Add m4/mbrtowc.m4.
30013         * modules/mbiter: Likewise.
30014         * modules/mbuiter: Likewise.
30015
30016 2005-09-26  Bruno Haible  <bruno@clisp.org>
30017
30018         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30019         compile mbchar.c if they are not both present.
30020         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30021         * m4/mbiter.m4 (gl_MBITER): Likewise.
30022         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30023         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30024         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30025
30026 2005-09-25  Jim Meyering  <jim@meyering.net>
30027
30028         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30029         also uses socklen_t.
30030
30031 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
30032
30033         * lib/utimens.c (ENOSYS): Define if not already defined.
30034         (futimens): Support having a null PATH if the file descriptor
30035         is nonnegative.
30036
30037         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30038         Remove.
30039         (__attribute): Define to empty unless GCC 3.1 or later.
30040         This works around a core dump on OpenBSD 3.4, which has GCC
30041         2.95.3, which dumps core when given __attribute__(()).  It also
30042         simplifies other tests, since we really don't want to bother with
30043         worrying about which ancient version of GCC supported what.
30044         Original problem reported by Yoann Vandoorselaere, with part of
30045         the fix suggested by Derek Price.
30046
30047 2005-09-24  Jim Meyering  <jim@meyering.net>
30048
30049         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30050         so we can once again use a positive bitfield width of 1 -- now we
30051         don't have to explain why we were using a bitfield width of 2.
30052
30053 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30054
30055         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30056         and similarly for the other external symbols.  Problem reported
30057         by James Gallager.
30058
30059         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30060         bug reported by Jim Meyering.
30061
30062         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
30063         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
30064         not needed, since socklen is a prerequisite module.
30065
30066 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30067
30068         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
30069         Problem reported by Eric Blake.
30070         (getaddrinfo): Initialize se so that it's not garbage.
30071         Redo internal storage allocation so that it doesn't make unportable
30072         assumptions about alignment.
30073         Fix a memory leak.
30074
30075         * lib/utimens.c (futimens): Use futimesat if available.
30076         Prefer it to futimes since it doesn't have the futimes bug.
30077
30078         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
30079         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
30080         Instead, declare a function that returns a pointer to an array,
30081         and use verify_type__ to declare the size of the array.
30082         Problem and germ of a solution reported by Bruno Haible.
30083         (verify_type__): Use 2, not 1, for bitfield size, to avoid
30084         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
30085
30086 2005-09-23  Jim Meyering  <jim@meyering.net>
30087
30088         Sync from coreutils.
30089         Correct build failure (socklen_t not defined) on at least
30090         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
30091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
30092
30093 2005-09-23  Jim Meyering  <jim@meyering.net>
30094
30095         * modules/getaddrinfo (Depends-on): Add socklen.
30096
30097 2005-09-23  Bruno Haible  <bruno@clisp.org>
30098
30099         * tests/test-verify.c: New file.
30100
30101 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30102
30103         Sync from coreutils.
30104
30105         * modules/argmatch (Depends-on): Add verify.
30106         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
30107         unistd-safer.
30108         * modules/save-cwd (Depends-on): Likewise.
30109
30110         * modules/openat (Files): Add lib/openat-die.c.
30111         (Depends-on): Remove error, exitfail.
30112         Add dirname.
30113
30114         * modules/verify: New file.
30115         * MODULES.html.sh (Diagnostics <assert.h>): New section,
30116         with "verify" module.
30117
30118 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30119
30120         Sync from coreutils.
30121
30122         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
30123         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
30124         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
30125         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
30126         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
30127         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
30128         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
30129         Don't bother checking for string.h, stdlib.h, unistd.h.
30130         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
30131         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
30132         module's job.
30133         * m4/jm-macros.m4 (gl_MACROS): Likewise.
30134         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
30135
30136         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30137         (gl_GETDATE): Use it.
30138
30139         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30140
30141 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30142
30143         Sync from coreutils.
30144
30145         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30146         stat-time.h.
30147         * lib/argmatch.h: Include verify.h
30148         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30149         (ARGMATCH_ASSERT): Remove; unused.
30150         * lib/canonicalize.c: Assume STDC_HEADERS.
30151         * lib/exclude.c: Include "strcase.h".
30152         * lib/regex_internal.h [!defined _LIBC]: Likewise.
30153         * lib/getusershell.c: Include stdio--.h rather than stdio.h
30154         and stdio-safer.h.
30155         (getusershell): Call fopen, not fopen_safer.
30156         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30157         Do not include unistd-safer.h.
30158         (save_cwd): Don't call fd_safer; no longer needed
30159         now that we include fcntl--.h.
30160
30161         * lib/getdate.y (relative_time): New type.
30162         (RELATIVE_TIME_0): New constant.
30163         (parser_control): Use relative_time instead of doing it ourselves.
30164         (%union): Add new relative_time rel member.
30165         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30166         Now typeless.
30167         (relunit, relunit_snumber): Now of type rel.
30168         (zone, rel, relunit, get_date): Adjust to above changes.
30169
30170         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30171         Do not include unistd-safer.h.
30172         (getloadavg): Don't call fd_safer; no longer needed
30173         now that we include fcntl--.h.
30174
30175         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30176         (make_dir_parents): Treat ENOSYS like EEXIST.
30177
30178         Improve quality of diagnostics on restore_cwd failure.
30179         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
30180         (make_dir_parents): Last arg is now int * (for errno), not bool *.
30181         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30182         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30183         each time through the loop.  Do not diagnose restore_cwd failure;
30184         that is the caller's job (and perhaps the caller does not care).
30185
30186         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30187         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30188         If the file already exists but is not a directory, don't bother
30189         to try to make its parents.
30190         Close potential file descriptor leak if we can't chdir("/") (!).
30191         Don't always return true if chdir($PWD) fails; return true only
30192         if the requested action was done successfully (except for the
30193         chdir($PWD)).
30194         Don't log final directory unless we actually made it.
30195         Refactor to avoid duplicate code to fix up permissions.
30196         Don't attempt to fix up parent permissions if chdir($PWD) fails.
30197
30198         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30199         to make it a bit faster and (I hope) clearer.
30200         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30201         Fix bug in formats like %2N.
30202
30203         * lib/verify.h: New file.
30204
30205 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30206
30207         Sync from coreutils.
30208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30209
30210 2005-09-22  Jim Meyering  <jim@meyering.net>
30211
30212         Sync from coreutils.
30213
30214         * m4/lstat.m4 (gl_FUNC_LSTAT):
30215         Use AC_LIBSOURCES to require lstat.c and lstat.h.
30216         Remove obsolete comment.
30217         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30218         * m4/xstrtod.m4: Likewise.
30219
30220         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30221
30222 2005-09-22  Jim Meyering  <jim@meyering.net>
30223
30224         Sync from coreutils.
30225
30226         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30227
30228         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30229         the .tm_year member, since otherwise gcc-4.0 would now warn about
30230         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30231
30232         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30233         order to avoid an unsuppressible warning from gcc on 64-bit systems.
30234
30235         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30236         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30237         when run in a time zone for which daylight savings time is in effect
30238         for the starting date.
30239
30240         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30241         stop us from restricting permissions of just-created absolute-named
30242         directories.
30243         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30244         to restore initial working directory.
30245         * lib/mkdir-p.c (make_dir_parents): New parameter:
30246         different_working_dir, to tell caller if/when we change the working
30247         directory and are unable to return to the initial one.
30248         * lib/mkdir-p.h (make_dir_parents): Update prototype.
30249         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30250         `return false'.  This fixes a bug introduced on 2004-07-30.
30251
30252         * lib/openat.c (fdopendir): Be sure to close the supplied
30253         file descriptor before returning.  This makes our replacement
30254         implementation a little closer to Solaris's, where fdopendir
30255         ties the file descriptor to the returned DIR* pointer.
30256         * lib/openat.c (unlinkat): New function.
30257         * lib/openat.h (unlinkat): Add prototype.
30258         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30259         (openat_restore_fail): Rename from openat_restore_die.
30260         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30261
30262         Provide an alternative to exiting immediately upon save_cwd or
30263         restore_cwd failure.  Now, an application can arrange e.g.,
30264         to perform a longjump in that case.
30265         * lib/openat.c: Include dirname.h.
30266         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30267         (rpl_openat, fdopendir, fstatat): Call openat_save_die
30268         and openat_restore_die rather than calling error directly.
30269         Don't include "error.h" or "exitfail.h"; they're no longer needed.
30270
30271         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30272         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30273         define.
30274
30275         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30276         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30277                             int utc, int nanoseconds);
30278         Background:
30279         date should not have to allocate a megabyte of virtual memory to
30280         handle a format argument like +%1048575T.  When implemented with
30281         strftime, it must allocate such a buffer, use strftime to fill it
30282         in, print it, then free it.
30283         With fprintftime, it simply prints everything and exits.
30284         With no need for memory allocation, that's one fewer way to fail.
30285         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30286         optional field width, not before, so we accept %9:z, not %:9z.
30287         (my_strftime): Be sure to use L_('x') for literals.
30288
30289         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30290         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30291         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30292         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30293         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30294         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30295         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30296         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30297         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30298         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30299         * lib/xgethostname.c, lib/xreadlink.c:
30300         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30301
30302         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30303         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30304         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30305         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30306         and don't include <sys/file.h>).
30307
30308 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
30309
30310         Sync from coreutils.
30311
30312         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30313         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30314         [!LDAV_DONE]: Avoid unused variable warning.
30315
30316 2005-09-21  Bruno Haible  <bruno@clisp.org>
30317
30318         * lib/unicodeio.h (unicode_to_mb): New declaration.
30319
30320 2005-09-20  Derek Price  <derek@ximbiot.com>
30321
30322         * lib/getaddrinfo.c: Don't include <netdb.h> included from
30323         getaddrinfo.h.
30324
30325 2005-09-20  Bruno Haible  <bruno@clisp.org>
30326
30327         * gnulib-tool: Remove trailing slashes from the values specified for
30328         --source-base, --m4-base, --tests-base, --aux-dir.
30329         Suggested by Simon Josefsson <jas@extundo.com>.
30330
30331 2005-09-20  Bruno Haible  <bruno@clisp.org>
30332
30333         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30334         func_modules_to_filelist, func_import, func_create_testdir): Make all
30335         sorting results locale-independent, so that gnulib-cache.m4 doesn't
30336         change when gnulib-tool is invoked in a different locale.
30337
30338 2005-09-19  Simon Josefsson  <jas@extundo.com>
30339
30340         * m4/socklen.m4: Fix typo.
30341
30342 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30343
30344         Use a consistent style for including <config.h>.
30345         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30346         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30347         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30348         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30349         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30350         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30351         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30352         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30353         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30354         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30355         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30356         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30357         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30358         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30359         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30360         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30361         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30362         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30363         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30364         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30365         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30366         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30367         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30368         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30369         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30370         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30371         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30372         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30373         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30374         lib/xstrtoumax.c, lib/yesno.c:
30375         Standardize inclusion of config.h.
30376         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30377         lib/inttostr.h:  Removed inclusion of config.h from header files.
30378         * lib/inttostr.c:  Adjusted in-tree users.
30379         * lib/timespec.h: Remove superfluous warning to include config.h.
30380         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30381         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30382         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30383         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30384         config.h with HAVE_CONFIG_H.
30385
30386 2005-09-19  Jim Meyering  <jim@meyering.net>
30387
30388         * modules/pathmax (License): Change to LGPL.
30389
30390 2005-09-19  Derek Price  <derek@ximbiot.com>
30391
30392         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30393
30394 2005-09-19  Bruno Haible  <bruno@clisp.org>
30395
30396         * gnulib-tool (import): Provide default for --tests-base.
30397
30398 2005-09-19  Bruno Haible  <bruno@clisp.org>
30399
30400         * doc/quote.texi: New file, extracted from gnulib.texi.
30401         * doc/ctime.texi: New file, extracted from gnulib.texi.
30402         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30403         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30404         * doc/gnulib.texi: Include them.
30405
30406 2005-09-18  Bruno Haible  <bruno@clisp.org>
30407
30408         Portability fix.
30409         * gnulib-tool (func_readlink): New function.
30410         (func_ln_if_changed): Use it.
30411
30412 2005-09-18  Bruno Haible  <bruno@clisp.org>
30413
30414         * gnulib-tool: Support --with-tests also with --import.
30415         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30416         (func_import): Use variables $testsbase and $inctests. Emit a
30417         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30418         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30419         SUBDIRS += $testsdir.
30420         (func_create_testdir): Update.
30421
30422 2005-09-18  Bruno Haible  <bruno@clisp.org>
30423
30424         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30425         instead of $dry_run.
30426         (func_cp_if_changed, func_mv_if_changed): Remove functions.
30427         (func_ln_if_changed): Don't handle dry-run here.
30428         (func_import): In dry-run mode, detect more precisely which actions
30429         would be performed, and don't use "...ing" verbs.
30430
30431 2005-09-18  Bruno Haible  <bruno@clisp.org>
30432
30433         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30434         (func_import): Use join on two temporary files instead of three nested
30435         loops, in order to determine which files are new or old.
30436
30437 2005-09-18  Bruno Haible  <bruno@clisp.org>
30438
30439         * gnulib-tool (func_import): Comment out code that spits out the
30440         new files with --dry-run.
30441
30442 2005-09-18  Bruno Haible  <bruno@clisp.org>
30443
30444         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30445
30446 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30447
30448         * lib/stat-time.h: New file.
30449         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30450         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
30451         in a different way.
30452         (timespec_cmp): New function.
30453         * lib/utimecmp.c: Include stat-time.h.
30454         (SYSCALL_RESOLUTION): Depend on whether various struct stat
30455         members exist, not on the obsolescent ST_MTIM_NSEC.
30456         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30457
30458 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30459
30460         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30461
30462 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30463
30464         * MODULES.html.sh (File system functions): Add stat-time.
30465         * modules/stat-time: New file.
30466         * modules/timespec (Files): Remove m4/st_mtim.m4; this
30467         is now done in a different way, by the stat-time module.
30468         * modules/utimecmp (Depends-on): Add stat-time.
30469
30470 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30471
30472         * m4/st_mtim.m4: Remove.  Superseded by...
30473         * m4/stat-time.m4: New file.
30474         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30475         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30476
30477 2005-09-15  Derek Price  <derek@ximbiot.com>
30478
30479         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30480
30481 2005-09-15  Derek Price  <derek@ximbiot.com>
30482
30483         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30484         * lib/regex_internal.c: Ditto, using this...
30485         (__GNUC_PREREQ): ...new macro.
30486         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30487         using...
30488         (__GNUC_PREREQ): ...this new macro.
30489
30490         * lib/strstr.h: Include string.h. Define strstr as a macro here.
30491
30492 2005-09-15  Derek Price  <derek@ximbiot.com>
30493             Paul Eggert  <eggert@cs.ucla.edu>
30494
30495         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30496         changes, consolidating in...
30497         * lib/regex_internal.h: ...this file.
30498
30499 2005-09-13  Jim Meyering  <jim@meyering.net>
30500
30501         * lib/canon-host.c: Filter through gnu indent and reword comments
30502         slightly.
30503         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30504
30505 2005-09-13  Derek Price  <derek@ximbiot.com>
30506
30507         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30508         failure.
30509         Reported by Jim Meyering  <jim@meyering.net>.
30510
30511 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30512
30513         * lib/base64.c: Typo.
30514         (base64_encode): Put b64str in initialized data section.
30515
30516 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30517
30518         Merge glibc and coreutils changes into gnulib, plus a few
30519         extra fixes.
30520         * lib/md5.c: Use #error rather than a string.
30521         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
30522         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30523         (__attribute__): Define to empty for non recent-GCC.
30524         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30525         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30526         Renamed from their non-__ counterparts, with new macros replacing
30527         them if not _LIBC.  Add __THROW attribute.
30528         (rol): Remove.
30529         (struct md5_ctx): Align buffer if using GCC.
30530         * lib/sha1.h (struct sha1_ctx): Likewise.
30531         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
30532         The old name was backwards.
30533         (NOTSWAP): Remove; not used.
30534         (rol): New macro, moved here from md5.h.
30535         (sha1_process_block): Remove a FIXME that doesn't make sense.
30536
30537 2005-09-12  Derek Price  <derek@ximbiot.com>
30538
30539         Return usable errors from canon-host.
30540         * lib/canon-host.h: New file.
30541         * lib/canon-host.c (canon_host): Wrap...
30542         (canon_host_r): ...this new function, which now relies exclusively on
30543         getaddrinfo.
30544         (ch_strerror): New function.
30545         (last_cherror): New global.
30546         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30547         interface.
30548         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
30549         void *.
30550         (freeaddrinfo): Free ai->ai_canonname when set.
30551
30552 2005-09-12  Derek Price  <derek@ximbiot.com>
30553
30554         Make canon-host require getaddrinfo.
30555         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30556         AC_LIBSOURCE canon-host.h.  Call...
30557         (gl_PREREQ_CANON_HOST): ...this new function, which requires
30558         gl_GETADDRINFO.
30559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30560
30561 2005-09-12  Derek Price  <derek@ximbiot.com>
30562
30563         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
30564         LGPL.
30565         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
30566
30567 2005-09-12  Derek Price  <derek@ximbiot.com>
30568
30569         * lib/gai_strerror.c: Include config.h when available.  Include
30570         getaddrinfo.h before other headers to test interface.
30571         Reported by Larry Jones <lawrence.jones@ugs.com>.
30572
30573 2005-09-12  Derek Price  <derek@ximbiot.com>
30574             Paul Eggert  <eggert@cs.ucla.edu>
30575
30576         * modules/glob (Files): Add glob-libc.h.
30577
30578 2005-09-12  Derek Price  <derek@ximbiot.com>
30579             Paul Eggert  <eggert@cs.ucla.edu>
30580
30581         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30582         glob_.h, glob-libc.h.
30583         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30584
30585 2005-09-12  Derek Price  <derek@ximbiot.com>
30586             Paul Eggert  <eggert@cs.ucla.edu>
30587
30588         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
30589         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30590         protecting things that should be done only in gnulib contexts.
30591         * lib/glob_.h: New file, containing only the glob things needed for
30592         gnulib.
30593         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
30594         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30595         (glob, globfree, glob_pattern_p): Now defined simply in terms of
30596         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30597         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30598         and to respect the namespace rules better.
30599
30600 2005-09-08  Simon Josefsson  <jas@extundo.com>
30601
30602         * modules/socklen: New file.
30603
30604 2005-09-08  Simon Josefsson  <jas@extundo.com>
30605
30606         * m4/socklen.m4: New file.
30607
30608 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30609
30610         * modules/utimens (Files): Add m4/utimbuf.m4, since
30611         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30612         Reported by Sergey Poznyakoff.
30613
30614 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30615
30616         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30617         definitions, since that's the preferred style in glibc.
30618         Fix a minor spacing issue, and update copyright notice to match
30619         glibc's.
30620
30621 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30622
30623         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30624
30625 2005-09-06  Simon Josefsson  <jas@extundo.com>
30626
30627         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30628         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
30629
30630 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30631
30632         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30633         warning.
30634
30635 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30636
30637         * config/srclist.txt: Add glibc bug 1302.
30638
30639 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30640
30641         Change bitset word type from unsigned int to unsigned long int,
30642         as this has better performance on typical 64-bit hosts.
30643         Port bitset code to hosts with unusual word sizes.
30644         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30645         (build_collating_symbol):
30646         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30647         argument is a bitset.  This is merely a style issue, but it makes
30648         it clearer that an entire array is expected.
30649         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30650         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30651         Port to the case where bitset_word is not the same as unsigned int.
30652         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30653         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30654         Likewise.
30655         * lib/regexec.c (check_dst_limits_calc_pos_1,
30656         check_subexp_matching_top):
30657         (build_trtable, group_nodes_into_DFAstates):
30658         Likewise.
30659         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30660         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30661         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30662         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30663         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30664         * lib/regcomp.c (optimize_subexps, lower_subexp):
30665         Work even if bitset_word has holes in its bitwise representation.
30666         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30667         * lib/regexec.c (check_dst_limits_calc_pos_1,
30668         check_subexp_matching_top):
30669         Likewise.
30670         * lib/regex_internal.c (re_string_reconstruct):
30671         Don't assume UCHAR_MAX == 255.
30672         * lib/regex_internal.h (bitset_set_all): Likewise.
30673         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30674         All uses changed.
30675         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
30676         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30677         All uses changed.
30678         (BITSET_WORD_MAX): New macro.
30679         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30680         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
30681         (bitset_empty, bitset_copy):
30682         Prefer sizeof (bitset) to multiplying it out ourselves.
30683         (bitset_not_merge): Remove; unused.
30684         (bitset_contain): Return bool, not unsigned int with one bit on.
30685         All callers changed.
30686         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30687         alignment than re_node_set; do this by defining a new internal
30688         type struct dests_alloc and using it to allocate memory.
30689
30690 2005-09-05  Bruno Haible  <bruno@clisp.org>
30691
30692         * gnulib-tool (func_import): Fix comparison in handling of symbolic
30693         links.
30694
30695 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
30696
30697         * modules/size_max (Makefile.am): Add size_max.h
30698
30699 2005-09-04  Derek Price  <derek@ximbiot.com>
30700
30701         * gnulib-tool (func_import): Fix reversed $symbolic logic.
30702
30703 2005-09-03  Simon Josefsson  <jas@extundo.com>
30704
30705         * gnulib-tool: Fix typo.
30706
30707 2005-09-03  Simon Josefsson  <jas@extundo.com>
30708
30709         * config/srclist.txt: Add glibc bug 1293.
30710
30711 2005-09-03  Derek Price  <derek@ximbiot.com>
30712
30713         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30714         From Larry Jones <lawrence.jones@ugs.com>.
30715
30716 2005-09-02  Simon Josefsson  <jas@extundo.com>
30717
30718         * modules/socklen: New file.
30719
30720 2005-09-02  Simon Josefsson  <jas@extundo.com>
30721
30722         * modules/havelib: New module.
30723
30724         * modules/gettext, modules/iconv, modules/lock, modules/readline:
30725         Use havelib.
30726
30727 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30728
30729         Check for arithmetic overflow when calculating sizes, to prevent
30730         some buffer-overflow issues.  These patches are conservative, in the
30731         sense that when I couldn't determine whether an overflow was possible,
30732         I inserted a run-time check.
30733         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30734         macros.
30735         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30736         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30737         (re_xnrealloc, re_x2nrealloc): New inline functions.
30738         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30739         parse_bracket_exp):
30740         (build_equiv_class, build_charclass): Check for arithmetic overflow
30741         in size expression calculations.
30742         * lib/regex_internal.c (re_string_realloc_buffers):
30743         (build_wcs_upper_buffer, re_node_set_add_intersect):
30744         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30745         (re_dfa_add_node, register_state): Likewise.
30746         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30747         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30748         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30749         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30750
30751 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30752
30753         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30754         m4/ulonglong.m4.  Problem reported by Martin Lambers.
30755
30756 2005-09-02  Bruno Haible  <bruno@clisp.org>
30757
30758         Support for lib vs. lib64 distinction on biarch platforms.
30759         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30760         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30762
30763 2005-09-02  Bruno Haible  <bruno@clisp.org>
30764
30765         * gnulib-tool (import): In the other first-use case, provide defaults
30766         as well.
30767
30768 2005-09-02  Bruno Haible  <bruno@clisp.org>
30769
30770         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30771         patches not yet found in the latest gettext release.
30772
30773 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30774
30775         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30776         to avoid a collision with bits/local_lim.h in glibc.
30777         All uses changed.  Problem reported by Dmitry V. Levin in
30778         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30779
30780         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30781         bugs in int versus size_t comparisons.
30782         (re_string_context_at): Fix bug where the code assumed that
30783         Idx is signed.
30784
30785         Use bool where appropriate.
30786         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30787         All callers changed.
30788         (calc_eclosure_iter): Likewise, for ROOT arg.
30789         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30790         (build_charclass_op): Likewise, for NON_MATCH arg.
30791         * lib/regex_internal.c (re_string_allocate, re_string_construct):
30792         (re_string_construct_common): Likewise, for ICASE arg.
30793         * lib/regexec.c (re_search_2_stub, re_search_stub):
30794         Likewise, for RET_LEN arg.
30795         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30796         (set_regs): Likewise, for FL_BACKTRACK arg.
30797         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30798         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30799         (calc_eclosure_iter, parse_bracket_exp):
30800         Use bool for internal variables that are booleans.
30801         * lib/regexec.c (re_search_internal, check_matching,
30802         proceed_next_node):
30803         (set_regs, build_sifted_states, sift_states_bkref):
30804         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30805         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30806         (find_collation_sequence_value):
30807         Likewise.
30808         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30809         (re_node_set_compare):
30810         Return bool, not int. All callers changed.
30811         * lib/regexec.c (check_halt_node_context, check_dst_limits):
30812         (build_trtable, check_node_accept): Likewise.
30813         * lib/regex_internal.h: Include stdbool.h.
30814
30815         Fix bugs uncovered when converting to bool.
30816         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30817         failure instead of charging ahead blindly.
30818         * lib/regex_internal.c (register_state): Likewise.
30819         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30820         for freeing internal storage.
30821         (group_nodes_into_DFA_states): Use unsigned int, not int, for
30822         bitset pieces used as boolean, to avoid undefined behavior
30823         on hosts that do int overflow checking.
30824
30825 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         * config/srclist.txt: Add glibc bugs 1285-1287.
30828
30829 2005-09-01  Jim Meyering  <jim@meyering.net>
30830
30831         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30832         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30833         Require gl_STAT_MACROS, too.
30834
30835 2005-09-01  Bruno Haible  <bruno@clisp.org>
30836
30837         * gnulib-tool (import): In the first-use case, provide defaults.
30838
30839 2005-09-01  Bruno Haible  <bruno@clisp.org>
30840
30841         * gnulib-tool (func_import): Remove the .tmp files.
30842
30843 2005-09-01  Bruno Haible  <bruno@clisp.org>
30844
30845         * gnulib-tool (func_import): Fix handling of symbolic links.
30846
30847 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30848
30849         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30850         old glibc regex code mishandles strings longer than 2**31 bytes.
30851         This patch fixes this when the regex code is used in gnulib
30852         (i.e., outside glibc).
30853
30854         This patch should not affect the use of the regex code inside
30855         glibc.  No doubt this problem also needs to be handled for glibc
30856         as well, but the result will be an incompatible change to the
30857         glibc ABI, and the old ABI will have to be supported too.  That
30858         can be the the subject for another patch.
30859
30860         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30861         governing whether the rest of this patch is active.  By default,
30862         the macro is disabled and the patch has no effect.
30863         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
30864         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
30865         (struct re_pattern_buffer, re_search, re_search_2, re_match):
30866         (re_match_2, re_set_registers): Use the new types.
30867         * lib/regex_internal.h (Idx, re_hashval_t): New types.
30868         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
30869         New macros.
30870         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
30871         (re_string_context_at, bin_tree_t, re_dfastate_t):
30872         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
30873         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
30874         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
30875         (re_string_char_size_at, re_string_wchar_at):
30876         (re_string_elem_size_at):
30877         Use the new types and macros to port to 64-bit hosts.
30878         Use unsigned types for internal values, so that the code
30879         mostly works even for arrays larger than SSIZE_MAX.
30880         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
30881         (search_duplicated_node, calc_eclosure_iter, fetch_number):
30882         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
30883         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
30884         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
30885         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
30886         (calc_inveclosure, parse_dup_op, build_range_exp):
30887         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
30888         (fetch_number, create_token_tree, mark_opt_subexp):
30889         Likewise.
30890         * lib/regex_internal.c (re_string_construct_common,
30891         create_ci_newstate):
30892         (create_cd_newstate, re_string_allocate, re_string_construct):
30893         (re_string_realloc_buffers, build_wcs_upper_buffer):
30894         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
30895         (re_string_reconstruct, re_string_peek_byte_case):
30896         (re_string_fetch_byte_case, re_string_context_at):
30897         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
30898         (re_node_set_init_copy, re_node_set_add_intersect):
30899         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
30900         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
30901         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
30902         (re_acquire_state, re_acquire_state_context, register_state):
30903         Likewise.
30904         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
30905         search_cur_bkref_entry):
30906         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
30907         (re_search_internal, re_search_2_stub, re_search_stub)
30908         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
30909         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
30910         (update_cur_sifted_state, check_dst_limits):
30911         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
30912         (check_subexp_limits, sift_states_bkref, merge_state_array):
30913         (check_subexp_matching_top, get_subexp, get_subexp_sub):
30914         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
30915         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
30916         (expand_bkref_cache, check_node_accept_bytes):
30917         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
30918         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
30919         (acquire_init_state_context, check_halt_node_context):
30920         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
30921         (sift_states_backward, clean_state_log_if_needed):
30922         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
30923         (find_recover_state, transit_state_sb, transit_state_mb):
30924         (transit_state_bkref, build_trtable, match_ctx_clean):
30925         Likewise.
30926         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
30927         to work around an assumption that REG_MISSING is negative.
30928
30929         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
30930         (seek_collating_symbol_entry) [defined _LIBC]:
30931         (lookup_collation_sequence_value) [defined _LIBC]:
30932         (build_range_exp, build_collating_symbol) [defined _LIBC]:
30933         Use prototypes rather than old-style function definitions.
30934         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
30935         (transit_state_sb) [0]:
30936         (find_collation_sequence_value) [defined _LIBC]: Likewise.
30937
30938         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
30939         rm_eo.
30940
30941         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
30942         (optimize_subexps, lower_subexp):
30943         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
30944         since the signed shift might overflow.  Use 1u<<31 instead.
30945         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30946         Likewise.
30947         * lib/regexec.c (check_dst_limits_calc_pos_1,
30948         check_subexp_matching_top): Likewise.
30949
30950         * lib/regcomp.c (optimize_subexps, lower_subexp):
30951         Use CHAR_BIT rather than 8, for clarity.
30952         * lib/regexec.c (check_dst_limits_calc_pos_1):
30953         (check_subexp_matching_top): Likewise.
30954         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
30955         have to worry about portability issues when shifting it left.
30956         Remove no-longer-needed test for table_size > 0.
30957         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
30958         in a word, as the resulting behavior is undefined.
30959         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
30960         in one case, a <= should have been an <, and in another case the
30961         whole test was missing.
30962         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
30963         the standard name CHAR_BIT.
30964         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
30965         this is not true on one's complement and signed-magnitude hosts.
30966
30967         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
30968         next_last_offset.
30969         (struct re_dfa_t): Remove unused member states_alloc.
30970         * lib/regcomp.c (init_dfa): Don't initialize unused members.
30971
30972 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30973
30974         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
30975         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
30976         and large-file glibc and in 32-bit large-file Solaris.
30977
30978 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30979
30980         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
30981         lengths fit in regoff_t; this isn't true if regoff_t is the same
30982         width as size_t.
30983         * lib/regex.c (re_search_internal): 5th arg is LAST_START
30984         (= START + RANGE) instead of RANGE.  This avoids overflow
30985         problems when regoff_t is the same width as size_t.
30986         All callers changed.
30987         (re_search_2_stub): Check for overflow when adding the
30988         sizes of the two strings.
30989         (re_search_stub): Check for overflow when adding START
30990         to RANGE; if it occurs, substitute the extreme value.
30991
30992 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
30995
30996 2005-08-31  Jim Meyering  <jim@meyering.net>
30997
30998         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
30999         a pointer-to-const.
31000         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31001         (register_state): Likewise.
31002         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31003         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31004         (group_nodes_into_DFAstates): Likewise.
31005
31006 2005-08-31  Jim Meyering  <jim@meyering.net>
31007
31008         * check-module: Add a FIXME comment.
31009
31010 2005-08-31  Eric Blake  <ebb9@byu.net>
31011
31012         * modules/unistd-safer (Files): Add unistd--.h.
31013         * modules/stdio-safer (Files): Add stdio--.h.
31014
31015 2005-08-31  Derek Price  <derek@ximbiot.com>
31016
31017         * lib/getdelim.c (getdelim): Return EOF on EOF.
31018         Reported by Larry Jones <lawrence.jones@ugs.com>.
31019
31020 2005-08-31  Bruno Haible  <bruno@clisp.org>
31021
31022         Avoid unnecessary diffs in the generated lib/Makefile.am.
31023         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31024         the generated files.
31025         (func_import): Don't set cmd.
31026
31027 2005-08-31  Bruno Haible  <bruno@clisp.org>
31028
31029         * lib/strstr.c: Include <stddef.h>, for NULL.
31030         * lib/strcasestr.c: Likewise.
31031         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31032
31033 2005-08-31  Bruno Haible  <bruno@clisp.org>
31034
31035         * gnulib-tool: New option --macro-prefix.
31036         (func_import): Use macro_prefix.
31037         (import): Handle option --macro-prefix.
31038
31039 2005-08-31  Bruno Haible  <bruno@clisp.org>
31040
31041         * gnulib-tool (import): Rename most ac_* variables to cached_*.
31042         Also use new variables cached_lgpl, cached_libtool.
31043
31044 2005-08-31  Bruno Haible  <bruno@clisp.org>
31045
31046         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31047         always instantiating them.
31048
31049 2005-08-31  Bruno Haible  <bruno@clisp.org>
31050
31051         * gnulib-tool (func_import): Read the previous cached settings
31052         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31053         earlier added by gnulib but are now dropped. Warn when a gnulib file
31054         overwrites a non-gnulib file.
31055
31056 2005-08-31  Bruno Haible  <bruno@clisp.org>
31057
31058         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31059         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31060         projects that don't keep autogenerated files in CVS. Put into
31061         actioncmd only the specified modules, not the transitive closure.
31062
31063 2005-08-31  Bruno Haible  <bruno@clisp.org>
31064
31065         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
31066         Create directories that shall be filled.
31067         (import): Don't look for gl_* macros in configure.ac. Recurse across
31068         all directories containing a gnulib-cache.m4 files, if meaningful.
31069
31070 2005-08-31  Bruno Haible  <bruno@clisp.org>
31071
31072         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
31073         (import): Set seen_libtool when we see gl_LIBTOOL.
31074
31075 2005-08-31  Bruno Haible  <bruno@clisp.org>
31076
31077         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
31078         declaration macro definitions from generated gnulib.m4.
31079
31080 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
31081
31082         * lib/iconvme.h: Add prototype for iconv_alloc.
31083
31084 2005-08-29  Simon Josefsson  <jas@extundo.com>
31085
31086         * lib/iconvme.c: Fix errno.
31087
31088 2005-08-29  Bruno Haible  <bruno@clisp.org>
31089
31090         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
31091         that it works when the directory contains spaces.
31092
31093 2005-08-29  Bruno Haible  <bruno@clisp.org>
31094
31095         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
31096
31097 2005-08-29  Bruno Haible  <bruno@clisp.org>
31098
31099         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
31100         Emit more advice.
31101
31102 2005-08-29  Bruno Haible  <bruno@clisp.org>
31103         and Stepan Kasal  <kasal@ucw.cz>
31104
31105         * check-module: If more parameters are given, check each of them
31106         separately; add more exceptions, as noted by Jim Meyering.
31107         (check_module): New procedure.
31108         (%exempt_header): Now contains all exceptions.
31109
31110 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
31111
31112         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
31113
31114 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31115
31116         * lib/iconvme.c: Split iconv_string into iconv_alloc.
31117
31118 2005-08-28  Bruno Haible  <bruno@clisp.org>
31119
31120         * m4/gnulib-tool.m4: New file.
31121
31122 2005-08-27  Jim Meyering  <jim@meyering.net>
31123
31124         * modules/unistd-safer (Files): Add pipe-safer.c.
31125         * modules/fcntl-safer (Files): Add creat-safer.c.
31126
31127 2005-08-27  Jim Meyering  <jim@meyering.net>
31128
31129         * m4/stdlib-safer.m4: New file.  From coreutils.
31130         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
31131         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
31132         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
31133         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
31134         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
31135
31136 2005-08-27  Jim Meyering  <jim@meyering.net>
31137
31138         * lib/fopen-safer.c: Merge minor changes from coreutils.
31139         * lib/dup-safer.c: Likewise.
31140         * lib/fd-safer.c: Likewise.
31141
31142         Merge from coreutils.
31143         * lib/stdio--.h: New file.
31144         * lib/stdlib--.h: New file.
31145         * lib/mkstemp-safer.c: New file.
31146
31147         GNU tar needs these.
31148         * lib/pipe-safer.c: New file.
31149         * lib/creat-safer.c: New file.
31150         * lib/fcntl--.h (creat): Define to creat_safer.
31151         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31152         * lib/unistd--.h (pipe): Define to pipe_safer.
31153         * lib/unistd-safer.h: Declare pipe_safer.
31154
31155 2005-08-26  Simon Josefsson  <jas@extundo.com>
31156
31157         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31158         Haible <bruno@clisp.org>.
31159
31160 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
31161
31162         * lib/regex_internal.h: Remove all references to
31163         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31164         or better.
31165         (bitset_not, bitset_merge, bitset_not_merge):
31166         (bitset_mask, re_string_allocate, re_string_construct):
31167         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31168         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31169         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31170         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31171         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31172         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31173         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31174         (re_acquire_state_context):
31175         Remove unnecessary forward decls.
31176         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31177         Put __attribute at function definition,
31178         now that the function decl has been removed.
31179         * lib/regex_internal.c (re_string_peek_byte_case):
31180         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31181         Likewise.
31182
31183 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
31184
31185         * m4/regex.m4: Add AC_PREREQ(2.50).
31186         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31187
31188 2005-08-25  Simon Josefsson  <jas@extundo.com>
31189
31190         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31191         __fsetlocking.
31192
31193 2005-08-25  Simon Josefsson  <jas@extundo.com>
31194
31195         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
31196         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
31197         GLIBC specific code.
31198
31199 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31200
31201         Make regex safe for g++.  This fixes one real bug (an "err"
31202         that should have been "*err").  g++ problem reported by
31203         Sam Steingold.
31204         * lib/regex_internal.h (re_calloc): New macro, consistent with
31205         re_malloc etc.  All callers of calloc changed to use re_calloc.
31206         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31207         not int.  All callers changed.
31208         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31209         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31210         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31211         (find_recover_state): Change "err" to "*err"; this fixes what
31212         appears to be a real bug.
31213         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31214         versus int.
31215
31216 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * modules/regex (Depends-on): Add malloc, since the code
31219         assumes that !malloc(0) means failure.
31220
31221 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31222
31223         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31224
31225         alloca modernization/simplification for regex.
31226         * lib/regex.c: Remove portability cruft for alloca.  This no longer
31227         needs to be at the start of the file, and can be moved into
31228         regex_internal.h and simplified.
31229         * lib/regex_internal.h: Include <alloca.h>.
31230         (__libc_use_alloca) [!defined _LIBC]: New macro.
31231         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31232         now works outside glibc.
31233
31234 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         * config/srclist.txt: Add glibc bugs 1241, 1245.
31237
31238 2005-08-25  Jim Meyering  <jim@meyering.net>
31239
31240         * lib/open-safer.c: Include <config.h>.
31241         Otherwise, we'd lose LARGEFILE support in any file using
31242         e.g. "fcntl--.h"
31243
31244 2005-08-25  Bruno Haible  <bruno@clisp.org>
31245
31246         * m4/minmax.m4: Require autoconf 2.52.
31247         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31248         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31249         alternatives of translit over the alphabet.
31250         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31251
31252 2005-08-24  Simon Josefsson  <jas@extundo.com>
31253
31254         * tests/test-getpass.c: New file.
31255
31256 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31257
31258         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31259         for GNU regex features.
31260
31261 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31262
31263         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31264         * lib/regex.h (regerror): Likewise.
31265
31266         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31267         requires this.  (The code never needed it.)
31268
31269         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31270         All uses of recently-renamed identifiers changed to use the new,
31271         POSIX-compliant names.  The code will build and run just fine
31272         without these changes, but it's better to eat our own dog food
31273         and use the standard-conforming names.
31274
31275         * lib/regex.h: Fix a multitude of POSIX name space violations.
31276         These changes have an effect only for programs that define
31277         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31278         do not change anything for programs compiled in the normal way.
31279         Also, there is no effect on the ABI.
31280
31281         (_REGEX_SOURCE): New macro.
31282         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31283         defined and _GNU_SOURCE is not; this fixes a name space violation.
31284
31285         Rename the following macros to obey POSIX requirements.
31286         The old names are still visible as macros if _REGEX_SOURCE is defined.
31287         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31288         RE_BACKSLASH_ESCAPE_IN_LISTS.
31289         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31290         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31291         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31292         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31293         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31294         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31295         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31296         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31297         (REG_INTERVALS): renamed from RE_INTERVALS.
31298         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31299         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31300         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31301         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31302         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31303         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31304         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31305         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31306         RE_UNMATCHED_RIGHT_PAREN_ORD.
31307         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31308         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31309         (REG_DEBUG): renamed from RE_DEBUG.
31310         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31311         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
31312         unusual, since we can't clash with the POSIX REG_ICASE.
31313         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31314         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31315         (REG_NO_SUB): renamed from RE_NO_SUB.
31316         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31317         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31318         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31319         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31320         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31321         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31322         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31323         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31324         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31325         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31326         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31327         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31328         RE_SYNTAX_POSIX_MINIMAL_BASIC.
31329         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31330         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31331         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31332         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
31333         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31334         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31335         (REG_FIXED): Renamed from REGS_FIXED.
31336         (REG_NREGS): Renamed from RE_NREGS.
31337
31338         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31339         of other REG_* macros, since POSIX says the user is allowed to
31340         #undef these macros selectively.
31341
31342         (reg_errcode_t): Update comment stating what other tables need
31343         to be consistent.
31344
31345         Rename the following enum values to obey POSIX requirements.
31346         The old names are still visible as macros.
31347         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
31348         is not defined, since GNU is supposed to be a superset of POSIX as
31349         much as possible, and since we want reg_errcode_t to be a signed
31350         type for implementation consistency.
31351         (_REG_NOERROR): Renamed from REG_NOERROR.
31352         (_REG_NOMATCH): Renamed from REG_NOMATCH.
31353         (_REG_BADPAT): Renamed from REG_BADPAT.
31354         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31355         (_REG_ECTYPE): Renamed from REG_ECTYPE.
31356         (_REG_EESCAPE): Renamed from REG_EESCAPE.
31357         (_REG_ESUBREG): Renamed from REG_ESUBREG.
31358         (_REG_EBRACK): Renamed from REG_EBRACK.
31359         (_REG_EPAREN): Renamed from REG_EPAREN.
31360         (_REG_EBRACE): Renamed from REG_EBRACE.
31361         (_REG_BADBR): Renamed from REG_BADBR.
31362         (_REG_ERANGE): Renamed from REG_ERANGE.
31363         (_REG_ESPACE): Renamed from REG_ESPACE.
31364         (_REG_BADRPT): Renamed from REG_BADRPT.
31365         (_REG_EEND): Renamed from REG_EEND.
31366         (_REG_ESIZE): Renamed from REG_ESIZE.
31367         (_REG_ERPAREN): Renamed from REG_ERPAREN.
31368         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31369         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31370         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31371         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31372
31373         (_REG_RE_NAME, _REG_RM_NAME): New macros.
31374         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
31375         changed.  But support the old name if the new one is not defined
31376         and if _REGEX_SOURCE.
31377
31378         Change the following member names in struct re_pattern_buffer.
31379         The old names are still supported if !_REGEX_SOURCE.
31380         The new names are always supported, regardless of _REGEX_SOURCE.
31381         (re_buffer): Renamed from buffer.
31382         (re_allocated): Renamed from allocated.
31383         (re_used): Renamed from used.
31384         (re_syntax): Renamed from syntax.
31385         (re_fastmap): Renamed from fastmap.
31386         (re_translate): Renamed from translate.
31387         (re_can_be_null): Renamed from can_be_null.
31388         (re_regs_allocated): Renamed from regs_allocated.
31389         (re_fastmap_accurate): Renamed from fastmap_accurate.
31390         (re_no_sub): Renamed from no_sub.
31391         (re_not_bol): Renamed from not_bol.
31392         (re_not_eol): Renamed from not_eol.
31393         (re_newline_anchor): Renamed from newline_anchor.
31394
31395         Change the following member names in struct re_registers.
31396         The old names are still supported if !_REGEX_SOURCE.
31397         The new names are always supported, regardless of _REGEX_SOURCE.
31398         (rm_num_regs): Renamed from num_regs.
31399         (rm_start): Renamed from start.
31400         (rm_end): Renamed from end.
31401
31402         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31403         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31404         Prepend __ to parameter names.
31405
31406         Undo yesterday's changes.
31407
31408 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31409
31410         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31411         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
31412         lib/regex.c.
31413
31414 2005-08-24  Jim Meyering  <jim@meyering.net>
31415
31416         Sync from coreutils.
31417         * m4/fcntl-safer.m4: New file.
31418
31419         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31420         and object files for this module.
31421
31422 2005-08-24  Jim Meyering  <jim@meyering.net>
31423
31424         Sync from coreutils.
31425         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31426
31427 2005-08-24  Jim Meyering  <jim@meyering.net>
31428
31429         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31430         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31431
31432 2005-08-24  Jim Meyering  <jim@meyering.net>
31433
31434         * modules/fcntl-safer: New module.
31435         * modules/fts (Depends-on): Add fcntl-safer.
31436         * MODULES.html.sh (File descriptor based Input/Output):
31437         Add fcntl-safer.
31438
31439 2005-08-24  Bruno Haible  <bruno@clisp.org>
31440
31441         Support for unit test modules.
31442         * modules/README: Mention tests modules.
31443         * modules/TEMPLATE-TESTS: New file.
31444         * gnulib-tool: New options --extract-tests-module, --with-tests and
31445         --tests-base (unused for the moment).
31446         (testsbase, inctests): New variables.
31447         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31448         (func_verify_module): Exclude TEMPLATE-TESTS.
31449         (func_verify_nontests_module, func_verify_tests_module): New functions.
31450         (func_get_dependencies): Add implicit dependency for tests modules.
31451         (func_get_tests_module): New function.
31452         (func_modules_transitive_closure): When --with-tests was specified,
31453         include the unit tests as well, unless explicitly avoided.
31454         (func_emit_lib_Makefile_am): Ignore the tests modules here.
31455         (func_emit_tests_Makefile_am): New function.
31456         (func_create_testdir): When --with-tests was specified, emit a
31457         tests/ directory.
31458         * MODULES.html.sh (Future developments): Update.
31459
31460 2005-08-24  Bruno Haible  <bruno@clisp.org>
31461
31462         * modules/tls-tests: New file.
31463         * tests/test-tls.c: New file, from GNU gettext.
31464
31465 2005-08-24  Bruno Haible  <bruno@clisp.org>
31466
31467         * modules/lock-tests: New file.
31468         * tests/test-lock.c: New file, from GNU gettext.
31469
31470 2005-08-24  Bruno Haible  <bruno@clisp.org>
31471
31472         * lib/lock.h: Add multiple inclusion guard.
31473         * lib/tls.h: Add multiple inclusion guard.
31474
31475 2005-08-24  Bruno Haible  <bruno@clisp.org>
31476
31477         * gnulib-tool: Add support for the --aux-dir option to
31478         --create-testdir, --create-megatestdir, --test, --megatest.
31479         (func_create_testdir, func_create_megatestdir): Optionally emit a
31480         AC_CONFIG_AUX_DIR directive.
31481         (create-testdir, create-megatestdir, test, megatest): Provide a
31482         default value for $auxdir.
31483
31484 2005-08-24  Bruno Haible  <bruno@clisp.org>
31485
31486         * gnulib-tool (import): Use compound statement instead of subshell
31487         where possible.
31488
31489 2005-08-24  Bruno Haible  <bruno@clisp.org>
31490
31491         * gnulib-tool (import): Change --aux-dir default to "build-aux".
31492
31493 2005-08-24  Bruno Haible  <bruno@clisp.org>
31494
31495         * gnulib-tool (func_version): Update.
31496
31497 2005-08-24  Bruno Haible  <bruno@clisp.org>
31498
31499         * gnulib-tool (func_import, func_create_testdir,
31500         func_create_megatestdir): Quote all autoconf macro arguments.
31501
31502 2005-08-24  Bruno Haible  <bruno@clisp.org>
31503
31504         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31505         option --force, because --force causes the aclocal.m4 of each
31506         subdirectory to be newer than the corresponding config.h.in.
31507
31508 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31509
31510         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31511         All contents moved to gl_REGEX.
31512         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31513         assume that it does.
31514
31515 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31516
31517         * lib/regex.h (REG_NOSYS)
31518         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31519         Define, since POSIX requires it as of 2001.
31520         (_REG_ENOSYS)
31521         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31522         New private symbol, used to keep the enum signed in all cases.
31523         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31524         Youngman in
31525         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31526
31527         * lib/regex_internal.c (re_string_skip_chars, register_state):
31528         (calc_state_hash):
31529         Remove forward decls; no longer needed now that we use prototypes.
31530         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31531         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31532         (clean_state_log_if_needed): Likewise.
31533
31534 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31535
31536         * config/srclist.txt: Add glibc bugs 1231-1233.
31537
31538 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31539
31540         Fix problems reported by Sam Steingold in
31541         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31542         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31543         assumed that reg_errcode_t is a signed type, which is not
31544         necessarily true if _XOPEN_SOURCE is not defined.
31545         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31546         since some compilers warn about it otherwise.
31547
31548 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31549
31550         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31551         (init_word_char, create_initial_state, duplicate_node_closure):
31552         (fetch_token, peek_token_bracket, build_range_exp):
31553         (build_collating_symbol): Remove forward decls; no longer needed
31554         now that we use prototypes.
31555
31556         * lib/regcomp.c:
31557         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31558         (re_compile_fastmap_iter, regcomp, regerror, regfree):
31559         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31560         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31561         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31562         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31563         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31564         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31565         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31566         (build_range_exp, build_collating_symbol, parse_bracket_exp):
31567         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31568         (build_charclass, build_charclass_op, fetch_number, create_tree):
31569         (create_token_tree, mark_opt_subexp, duplicate_tree):
31570         Use prototypes rather than old-style definitions.
31571
31572         * lib/regex_internal.c:
31573         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31574         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31575         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31576         (re_string_reconstruct, re_string_peek_byte_case):
31577         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31578         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31579         (re_node_set_init_copy, re_node_set_add_intersect):
31580         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31581         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31582         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31583         (re_acquire_state, re_acquire_state_context, register_state):
31584         (create_ci_newstate, create_cd_newstate, free_state):
31585         Likewise.
31586         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31587         re_search_2):
31588         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31589         (re_search_internal, prune_impossible_nodes):
31590         (acquire_init_state_context, check_matching, static):
31591         (check_halt_node_context, check_halt_state_context, proceed_next_node):
31592         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31593         (update_regs, sift_states_backward, build_sifted_states):
31594         (clean_state_log_if_needed, merge_state_array):
31595         (update_cur_sifted_state, add_epsilon_src_nodes):
31596         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31597         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31598         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31599         (find_recover_state, check_subexp_matching_top, transit_state_mb):
31600         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31601         (check_arrival, check_arrival_add_next_nodes):
31602         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31603         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31604         (check_node_accept_bytes, check_node_accept, extend_buffers):
31605         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31606         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31607         (sift_ctx_init):
31608         Likewise.
31609
31610         * lib/regex_internal.h:
31611         (re_string_allocate, re_string_construct, re_string_reconstruct):
31612         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31613         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31614         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31615         (re_string_context_at, re_string_peek_byte_case):
31616         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31617         is defined, since we now use prototypes always.
31618
31619         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
31620         C89 or better.  All uses removed.
31621
31622 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31623
31624         * config/srclist.txt: Add glibc bugs 1220-1227.
31625
31626 2005-08-20  Jim Meyering  <jim@meyering.net>
31627
31628         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31629         of unused local, dfa.
31630
31631 2005-08-20  Bruno Haible  <bruno@clisp.org>
31632
31633         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31634
31635 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31636
31637         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31638         (re_node_set_insert_last, re_dfa_add_node):
31639         Rename local variables to avoid GCC shadowing warnings.
31640
31641 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31642
31643         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31644         [defined lint]: Suppress bogus uninitialized-variable warnings.
31645
31646         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31647         and let the caller return REG_ESPACE if out of space.  This
31648         removes an uninitialied-variable warning with GCC 4.0.1, and also
31649         avoids taking the address of a local variable.  All callers
31650         changed.
31651
31652 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31653
31654         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31655         $LIBCSRC/posix/regexec.c.
31656         Add glibc bug 1217 for regcomp.c.
31657
31658 2005-08-19  Jim Meyering  <jim@meyering.net>
31659
31660         * lib/regexec.c (proceed_next_node): Redo local variables to
31661         avoid GCC shadowing warnings.
31662
31663 2005-08-18  Bruno Haible  <bruno@clisp.org>
31664
31665         * lib/strstr.c (strstr): Fix return value in multibyte case.
31666         * lib/strcasestr.c (strcasestr): Likewise.
31667
31668 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31669
31670         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
31671
31672 2005-08-17  Jim Meyering  <jim@meyering.net>
31673
31674         Make the %s format (seconds since the epoch) work for a negative
31675         number and when used with a zero-padded field width, e.g. %015s.
31676
31677         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31678         label so that it precedes the code to set `digits'.  Otherwise,
31679         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
31680         print `00-22'.  Now, it prints `-0022', as it should.
31681
31682 2005-08-17  Bruno Haible  <bruno@clisp.org>
31683
31684         * modules/strstr (Files): Add m4/mbrtowc.m4.
31685         (Depends-on): Add mbuiter.
31686
31687 2005-08-17  Bruno Haible  <bruno@clisp.org>
31688
31689         * modules/strcasestr: New file.
31690         * MODULES.html.sh (String handling, based on ANSI C 89): Add
31691         strcasestr.
31692
31693 2005-08-17  Bruno Haible  <bruno@clisp.org>
31694
31695         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31696
31697 2005-08-17  Bruno Haible  <bruno@clisp.org>
31698
31699         * modules/mbuiter: New file.
31700         * MODULES.html.sh (Extended multibyte and wide character utilities):
31701         Add mbuiter.
31702
31703 2005-08-17  Bruno Haible  <bruno@clisp.org>
31704
31705         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31706         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31707
31708 2005-08-17  Bruno Haible  <bruno@clisp.org>
31709
31710         * m4/strcasestr.m4: New file.
31711
31712 2005-08-17  Bruno Haible  <bruno@clisp.org>
31713
31714         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31715         * lib/strstr.c: Completely rewritten, with multibyte locale support.
31716
31717 2005-08-17  Bruno Haible  <bruno@clisp.org>
31718
31719         * lib/strcasestr.h: New file.
31720         * lib/strcasestr.c: New file.
31721
31722 2005-08-17  Bruno Haible  <bruno@clisp.org>
31723
31724         * lib/strcasecmp.c: Use mbuiter.h.
31725
31726 2005-08-17  Bruno Haible  <bruno@clisp.org>
31727
31728         * lib/mbuiter.h: New file.
31729
31730 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31731
31732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31733         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
31734         and gl_GETOPT are both invoked via different paths (as happens
31735         with GNU tar CVS because it uses both argp and getopt), the former
31736         wins.
31737
31738 2005-08-16  Bruno Haible  <bruno@clisp.org>
31739
31740         * modules/tls: New file.
31741         * MODULES.html.sh (Multithreading): Add tls.
31742
31743 2005-08-16  Bruno Haible  <bruno@clisp.org>
31744
31745         * modules/strnlen1: New file.
31746         * MODULES.html.sh (String handling): Add strnlen1.
31747
31748 2005-08-16  Bruno Haible  <bruno@clisp.org>
31749
31750         * modules/strcase (Files): Add m4/mbrtowc.m4.
31751         (Depends-on): Add strnlen1, mbchar.
31752
31753 2005-08-16  Bruno Haible  <bruno@clisp.org>
31754
31755         * modules/mbiter: New file.
31756         * MODULES.html.sh (Extended multibyte and wide character utilities):
31757         Add mbiter.
31758
31759 2005-08-16  Bruno Haible  <bruno@clisp.org>
31760
31761         * modules/mbfile: New file.
31762         * MODULES.html.sh (Extended multibyte and wide character utilities):
31763         Add mbfile.
31764
31765 2005-08-16  Bruno Haible  <bruno@clisp.org>
31766
31767         * modules/mbchar: New file.
31768         * MODULES.html.sh (Extended multibyte and wide character utilities):
31769         New section.
31770
31771 2005-08-16  Bruno Haible  <bruno@clisp.org>
31772
31773         * m4/tls.m4: New file, from GNU gettext.
31774
31775 2005-08-16  Bruno Haible  <bruno@clisp.org>
31776
31777         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31778         always.
31779         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31780
31781 2005-08-16  Bruno Haible  <bruno@clisp.org>
31782
31783         * m4/mbiter.m4: New file.
31784
31785 2005-08-16  Bruno Haible  <bruno@clisp.org>
31786
31787         * m4/mbfile.m4: New file.
31788
31789 2005-08-16  Bruno Haible  <bruno@clisp.org>
31790
31791         * m4/mbchar.m4: New file.
31792
31793 2005-08-16  Bruno Haible  <bruno@clisp.org>
31794
31795         * lib/tls.h: New file, from GNU gettext.
31796         * lib/tls.c: New file, from GNU gettext.
31797
31798 2005-08-16  Bruno Haible  <bruno@clisp.org>
31799
31800         * lib/strnlen1.h: New file.
31801         * lib/strnlen1.c: New file.
31802
31803 2005-08-16  Bruno Haible  <bruno@clisp.org>
31804
31805         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31806         (mbi_init): Update.
31807         (mbi_avail, mbi_advance): Let the iteration end before the terminating
31808         NUL byte, not after it.
31809
31810 2005-08-16  Bruno Haible  <bruno@clisp.org>
31811
31812         * lib/strcase.h (strcasecmp): Add note in comments.
31813         * lib/strncasecmp.c: Use code from strcasecmp.c.
31814         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31815         (strcasecmp): Work correctly in multibyte locales.
31816
31817 2005-08-16  Bruno Haible  <bruno@clisp.org>
31818
31819         * lib/mbiter.h: New file.
31820
31821 2005-08-16  Bruno Haible  <bruno@clisp.org>
31822
31823         * lib/mbfile.h: New file.
31824
31825 2005-08-16  Bruno Haible  <bruno@clisp.org>
31826
31827         * lib/mbchar.h: New file.
31828         * lib/mbchar.c: New file.
31829
31830 2005-08-16  Bruno Haible  <bruno@clisp.org>
31831
31832         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31833         the valid ones. Makes the comparison operations transitive:
31834         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31835         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31836
31837 2005-08-15  Simon Josefsson  <jas@extundo.com>
31838
31839         * modules/ssize_t (License): Change to 'unlimited'.
31840
31841         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31842
31843 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31844
31845         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31846         Add comments for each pending glibc patch.
31847
31848 2005-08-15  Bruno Haible  <bruno@clisp.org>
31849
31850         * lib/regex.h (__restrict_arr): Don't define to __restrict if
31851         __cplusplus is defined.
31852
31853 2005-08-14  Jim Meyering  <jim@meyering.net>
31854
31855         Sync from coreutils.
31856
31857         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31858         Use the hash-table-based cycle-detection code not just when
31859         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31860         Reported by James Youngman in
31861         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31862         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
31863         FTS_TIGHT_CYCLE_CHECK.
31864         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
31865         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
31866         once again.
31867         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
31868         * lib/fts.c (fd_safer): Remove decl.
31869         Include fcntl--.h rather than unistd-safer.h
31870         (fts_safe_changedir): Don't call fd_safer; no longer needed
31871         now that we include fcntl--.h.
31872
31873 2005-08-12  Simon Josefsson  <jas@extundo.com>
31874
31875         * modules/getndelim2: Use ssize_t module.
31876         * modules/getnline: Likewise.
31877         * modules/safe-read: Likewise.
31878         * modules/xreadlink: Likewise.
31879
31880         * modules/ssize_t: New file.
31881
31882 2005-08-12  Simon Josefsson  <jas@extundo.com>
31883
31884         * m4/readline.m4: Look for termcap, curses or ncurses if required.
31885
31886 2005-08-12  Simon Josefsson  <jas@extundo.com>
31887
31888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31889         ssize_t.
31890
31891 2005-08-12  Simon Josefsson  <jas@extundo.com>
31892
31893         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
31894         readline, getdelim and check_version.
31895         (Support for systems lacking ISO C 99: Sizes of integer types):
31896         Add size_max.
31897
31898 2005-08-12  Bruno Haible  <bruno@clisp.org>
31899
31900         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
31901
31902 2005-08-11  Simon Josefsson  <jas@extundo.com>
31903
31904         * modules/readline: New file.
31905
31906         * modules/strnlen (Files): Add strnlen.h.
31907
31908 2005-08-11  Simon Josefsson  <jas@extundo.com>
31909
31910         * m4/readline.m4: New file.
31911
31912 2005-08-11  Simon Josefsson  <jas@extundo.com>
31913
31914         * lib/readline.h, readline.c: New file.
31915
31916 2005-08-11  Simon Josefsson  <jas@extundo.com>
31917
31918         * doc/gnulib.texi (Initial import, Finishing touches): Mention
31919         gl_AVOID.
31920
31921 2005-08-11  Bruno Haible  <bruno@clisp.org>
31922
31923         * lib/strnlen.h (strnlen): Change parameter name to match comment.
31924
31925 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
31926
31927         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
31928
31929 2005-08-10  Simon Josefsson  <jas@extundo.com>
31930
31931         * tests/test-iconvme.c: New file.
31932
31933 2005-08-10  Simon Josefsson  <jas@extundo.com>
31934
31935         * m4/strnlen.m4: New file.
31936
31937         * m4/strndup.m4: Don't check for strnlen declaration, done in
31938         strnlen.m4.
31939
31940 2005-08-10  Simon Josefsson  <jas@extundo.com>
31941
31942         * lib/strndup.c: Use strnlen.h.
31943
31944         * lib/strnlen.h: New file.
31945
31946 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31947
31948         * README: Typos.
31949
31950 2005-08-02  Simon Josefsson  <jas@extundo.com>
31951
31952         * modules/readline: New file.
31953
31954 2005-08-02  Simon Josefsson  <jas@extundo.com>
31955
31956         * modules/getdelim: New file.
31957
31958         * modules/getline: Rewrite, don't use getndelim2.
31959
31960 2005-08-02  Simon Josefsson  <jas@extundo.com>
31961
31962         * m4/getline.m4: Separate out getdelim stuff into separate module.
31963
31964         * m4/getdelim.m4: New file.
31965
31966 2005-08-02  Simon Josefsson  <jas@extundo.com>
31967
31968         * lib/getline.h, getline.c: Rewrite.
31969
31970         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
31971
31972 2005-07-31  Bruno Haible  <bruno@clisp.org>
31973
31974         * lib/lock.h (gl_lock_initializer): New macro.
31975         (gl_lock_define_initialized): Use it.
31976         (gl_rwlock_initializer): New macro.
31977         (gl_rwlock_define_initialized): Use it.
31978         (gl_recursive_lock_initializer): New macro.
31979         (gl_recursive_lock_define_initialized): Use it.
31980
31981 2005-07-30  Karl Berry  <karl@gnu.org>
31982
31983         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
31984         Report from Ben Pfaff, regarding getopt.
31985
31986 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
31987
31988         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
31989         normal way.
31990         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
31991         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
31992         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
31993         (gl_GETOPT): Use the new macros.  Most of the implementation
31994         is moved to the new macros.  This is for programs like Emacs
31995         that don't want all the functionality of gl_GETOPT.
31996
31997 2005-07-26  Bruno Haible  <bruno@clisp.org>
31998
31999         * m4/lock.m4: Update from GNU gettext.
32000
32001 2005-07-26  Bruno Haible  <bruno@clisp.org>
32002
32003         * lib/lock.h: Update from GNU gettext.
32004         * lib/lock.c: Update from GNU gettext.
32005
32006 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32007
32008         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32009         obsolescent AC_TRY_RUN.  Include the default includes files, for
32010         'exit'.
32011
32012 2005-07-24  Bruno Haible  <bruno@clisp.org>
32013
32014         * modules/visibility: New file.
32015         * MODULES.html.sh (Misc): Add visibility.
32016
32017 2005-07-24  Bruno Haible  <bruno@clisp.org>
32018
32019         * m4/visibility.m4: New file.
32020
32021 2005-07-24  Bruno Haible  <bruno@clisp.org>
32022
32023         * doc/visibility.texi: New file.
32024
32025 2005-07-22  Bruno Haible  <bruno@clisp.org>
32026
32027         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32028         $(ALLOCA_H), redundant through BUILT_SOURCES.
32029         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32030         redundant through BUILT_SOURCES.
32031         * modules/byteswap (Makefile.am): Remove explicit dependency on
32032         $(BYTESWAP_H), redundant through BUILT_SOURCES.
32033         * modules/fnmatch (Makefile.am): Remove explicit dependency on
32034         $(FNMATCH_H), redundant through BUILT_SOURCES.
32035         * modules/getopt (Makefile.am): Remove explicit dependency on
32036         $(GETOPT_H), redundant through BUILT_SOURCES.
32037         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32038         redundant through BUILT_SOURCES.
32039         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32040         redundant through BUILT_SOURCES.
32041         * modules/stdbool (Makefile.am): Remove explicit dependency on
32042         $(STDBOOL_H), redundant through BUILT_SOURCES.
32043         * modules/stdint (Makefile.am): Remove explicit dependency on
32044         $(STDINT_H), redundant through BUILT_SOURCES.
32045         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32046         Remove explicit dependency on $(SYSEXITS_H).
32047         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32048
32049 2005-07-18  Simon Josefsson  <jas@extundo.com>
32050
32051         * lib/check-version.c (check_version): Accept identical versions too.
32052
32053 2005-07-18  Bruno Haible  <bruno@clisp.org>
32054
32055         * modules/lock: New file.
32056         * MODULES.html.sh (Multithreading): New section.
32057
32058 2005-07-18  Bruno Haible  <bruno@clisp.org>
32059
32060         * m4/lock.m4: New file, from GNU gettext.
32061
32062 2005-07-18  Bruno Haible  <bruno@clisp.org>
32063
32064         * lib/lock.h: New file, from GNU gettext.
32065         * lib/lock.c: New file, from GNU gettext.
32066
32067 2005-07-18  Bruno Haible  <bruno@clisp.org>
32068
32069         * lib/lock.h (gl_once_t): New type.
32070         (gl_once_define, gl_once): New macros.
32071         * lib/lock.c (fresh_once): New variable.
32072         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
32073         functions.
32074
32075 2005-07-16  Simon Josefsson  <jas@extundo.com>
32076
32077         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
32078         workaround, suggested by Bruno.
32079
32080 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32081
32082         * modules/xalloc (Depends-on): Add xalloc-die.
32083         * modules/xvasprintf (Depends-on): Add xalloc-die.
32084
32085 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32086
32087         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
32088         with a minor change.
32089
32090 2005-07-15  Bruno Haible  <bruno@clisp.org>
32091
32092         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
32093         When using lib/poll.c, define poll as rpl_poll.
32094
32095 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         * modules/argp (Depends-on): Remove unlocked-io.
32098
32099 2005-07-14  Derek Price  <derek@ximbiot.com>
32100
32101         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
32102         for glob symlink bug.
32103
32104 2005-07-14  Bruno Haible  <bruno@clisp.org>
32105
32106         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
32107         Instead, test for *_unlocked function declarations directly.
32108
32109 2005-07-11  Simon Josefsson  <jas@extundo.com>
32110
32111         * modules/size_max: New file.
32112
32113         * modules/xsize: Depend on size_max module for size_max.m4.
32114
32115 2005-07-11  Simon Josefsson  <jas@extundo.com>
32116
32117         * lib/size_max.h: New file.
32118
32119 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32120
32121         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
32122         copyright symbol and the year.
32123         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
32124         (version_etc_va): Use parameterized copyright notice.
32125         Reword to conform to the current GNU coding standards.
32126
32127 2005-07-11  Karl Berry  <karl@gnu.org>
32128
32129         * doc/gnulib.texi (Quoting): new node.
32130         (Initial import): more info, from Patrice.
32131
32132 2005-07-11  Bruno Haible  <bruno@clisp.org>
32133
32134         * gnulib-tool (func_usage): Document option --avoid.
32135         (Command line options): Handle --avoid.
32136         (func_acceptable): New function.
32137         (func_modules_transitive_closure): Use it.
32138
32139 2005-07-11  Bruno Haible  <bruno@clisp.org>
32140
32141         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32142         Reported by Jim Meyering.
32143
32144 2005-07-10  Bruno Haible  <bruno@clisp.org>
32145
32146         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32147         Needed when size_t is smaller than 'unsigned int'.
32148         Reported by Paul Eggert.
32149
32150 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32151
32152         * modules/argp (Depends-on): Add unlocked-io
32153
32154 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32155
32156         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32157         block of defines.
32158
32159 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32160
32161         * config/srclist.txt: Comment out regcomp.c, since we have a porting
32162         fix now.
32163
32164 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
32165         and Paul Eggert  <eggert@cs.ucla.edu>
32166
32167         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32168         in wint_t, not wchar_t.  Remove now-unnecessary cast.
32169
32170 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32171
32172         * modules/regex (Files): Add lib/regex_internal.c,
32173         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32174         (Depends-on): Add extensions.
32175         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32176
32177 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32178
32179         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32180         pathconf.
32181         * m4/same.m4 (gl_SAME): Likewise.
32182         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32183
32184         * m4/regex.m4: Adjust to new libc regex implementation.
32185         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32186         all the .c and .h parts of (the new) regex.
32187         Quote the m4 stuff better.
32188         Check for RE_ICASE bug of old gnulib.
32189         Check for REG_STARTEND of recent libc.
32190         Rename local variables from jm_* to gl_*.
32191         Quote operand of "test -f".
32192         Say "recent enough" version of libc, not "version 2".
32193         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32194         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
32195         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32196         Remove check for btowc, isascii.
32197         Require AM_LANGINFO_CODESET.
32198
32199 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32200
32201         * lib/regex.c, regex.h: Sync from libc.
32202         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32203         * lib/regexec.c:
32204         New files, synced from libc, except that regex_internal.h
32205         currently has a small porting fix.
32206
32207 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32208
32209         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32210         regex_internal.c, regexec.c.
32211         Add regex_internal.h too, but as a comment, since the libc version
32212         is currently broken in gnulib mode.
32213
32214 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32215
32216         Support programs like Emacs that use gnulib but not gettext.
32217         * MODULES.html.sh (Internationalization functions): Add gettext-h.
32218         * modules/gettext-h: New file.
32219         * modules/gettext (Files): Remove lib/gettext.h.
32220         (Depends-on): Add gettext-h.
32221         (Makefile.am): Remove lib_SOURCES.
32222         * modules/argmatch, modules/c-stack, modules/closeout:
32223         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32224         * modules/execute, modules/file-type, modules/getaddrinfo:
32225         * modules/getopt, modules/human, modules/javacomp:
32226         * modules/javaexec, modules/mkdir-p, modules/obstack:
32227         * modules/openat, modules/pagealign_alloc, modules/pipe:
32228         * modules/quotearg, modules/regex, modules/rpmatch:
32229         * modules/unicodeio, modules/userspec, modules/version-etc:
32230         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32231         * modules/xsetenv:
32232         Depend on gettext-h, not gettext.
32233
32234 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32235
32236         * gnulib-tool (func_import): Add support for 'public domain' license.
32237         * modules/alloca, modules/atexit, modules/memmove:
32238         Now public domain, not GPL.
32239         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32240         * modules/realloc, modules/strerror, modules/strtod:
32241         Now LGPL, not GPL.
32242
32243 2005-07-05  Bruno Haible  <bruno@clisp.org>
32244
32245         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32246         autoconf CVS. Needed for mingw.
32247
32248 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32249
32250         Remove the dependency of the strftime module on the tzset module.
32251         * modules/strftime (Depends-on): Remove dependency on tzset.
32252
32253 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32254
32255         Remove the dependency of the strftime module on the tzset module.
32256         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32257         gl_FUNC_TZSET_CLOBBER.
32258
32259 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32260
32261         Remove the dependency of the strftime module on the tzset module.
32262         * lib/strftime.c (my_strftime)
32263         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32264         Copy the input structure, to work around some of the bug with
32265         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
32266         Solaris releases, you should also use the tzset module, but we won't
32267         require it as a dependency any more since we don't want LGPLed code
32268         to depend on GPLed code.
32269
32270 2005-07-02  Jim Meyering  <jim@meyering.net>
32271
32272         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32273         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32274         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32275         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32276
32277 2005-07-02  Jim Meyering  <jim@meyering.net>
32278
32279         * lib/backupfile.c (backup_args): Change a `0' to NULL.
32280
32281 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32282
32283         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32284         declares only 'struct timespec;' (!).
32285
32286 2005-07-01  Jim Meyering  <jim@meyering.net>
32287
32288         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32289         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32290         * lib/save-cwd.c, tempname.c:
32291         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32292         and don't include <sys/file.h>).
32293
32294 2005-06-29  Jim Meyering  <jim@meyering.net>
32295
32296         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32297         type name.  Use the variable name instead.
32298         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32299         Likewise.
32300
32301 2005-06-28  Simon Josefsson  <jas@extundo.com>
32302
32303         * modules/check-version (Files): Add check-version.m4.
32304
32305 2005-06-28  Simon Josefsson  <jas@extundo.com>
32306
32307         * m4/check-version.m4: New file, suggested by Jim Meyering
32308         <jim@meyering.net>.
32309
32310 2005-06-28  Simon Josefsson  <jas@extundo.com>
32311
32312         * lib/check-version.h, lib/check-version.c: New files.
32313
32314 2005-06-28  Simon Josefsson  <jas@extundo.com>
32315
32316         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
32317         collision with global variable.  Better indentation.  Don't
32318         increment buffer pointer beyond buffer end.  Based on comments
32319         from Paul Eggert <eggert@cs.ucla.edu>.
32320
32321         * lib/base64.h: Indent.
32322
32323 2005-06-28  Simon Josefsson  <jas@extundo.com>
32324
32325         * doc/gnulib.texi (Library version handling): New section.
32326
32327 2005-06-28  Jim Meyering  <jim@meyering.net>
32328
32329         * check-module (find_included_lib_files): Hard-code another
32330         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32331         but modules/fts-lgpl (correctly) does not list those files.
32332
32333         * modules/canonicalize (Files): Add lib/pathmax.h.
32334
32335 2005-06-25  Simon Josefsson  <jas@extundo.com>
32336
32337         * modules/check-version: New file.
32338
32339 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
32340
32341         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32342         initializer of struct addrinfo, as an indication that we don't
32343         care how many members the structure has.
32344
32345 2005-06-24  Derek Price  <derek@ximbiot.com>
32346         and Bruno Haible  <bruno@clisp.org>
32347
32348         Remove stat module & update lstat.
32349         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32350         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32351         * m4/stat.m4: Remove this file.
32352
32353 2005-06-24  Derek Price  <derek@ximbiot.com>
32354         and Bruno Haible  <bruno@clisp.org>
32355
32356         Remove stat module & update lstat.
32357         * lib/stat.c: Remove this file...
32358         (slash_aware_lstat): ...moving this content and its support...
32359         * lib/lstat.c (rpl_lstat): ...into here.
32360         * lib/lstat.h: New file.
32361
32362 2005-06-24  Derek Price  <derek@ximbiot.com>
32363         and Bruno Haible  <bruno@clisp.org>
32364
32365         Remove stat module & update lstat.
32366         * config/srclist.txt (libc sources): Remove stat.
32367
32368 2005-06-24  Derek Price  <derek@ximbiot.com>
32369         and Bruno Haible  <bruno@clisp.org>
32370
32371         Remove stat module & update lstat.
32372         * MODULES.html.sh (stat): Remove.
32373         * MODULES.html: Regenerated.
32374         * modules/lstat (Description): Correct function name.
32375         (Files): Add "lstat.h".
32376         (Depends-on): Remove stat, add xalloc, stat-macros.
32377         * modules/stat: Remove this file.
32378         (Include): Add "lstat.h", remove <sys/stat.h>.
32379
32380 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32381
32382         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
32383         (ranged_convert): Don't save conversion in a temporary struct.
32384         This causes a warning with GCC 4.0.0, and anyway in the typical
32385         case it's not worth the extra 100 bytes or so of code.
32386         (ranged_convert, __mktime_internal): When calling a function via a
32387         pointer P, use P () rather than (*P) (), as we now assume C89 or
32388         better.
32389
32390 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32391
32392         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32393         "who -r" failed to give output.  Problem reported by Tim Waugh.
32394
32395         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32396         (xcalloc): Use it to avoid needless tests.
32397         Problem reported by Jim Meyering.
32398
32399 2005-06-20  Derek Price  <derek@ximbiot.com>
32400
32401         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32402         unnecessary for Autoconfs > 2.59c.
32403
32404 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32405
32406         * lib/argp.h (__option_is_short): Check upper limit of
32407         __key. Isprint() requires its argument to have the value
32408         of an unsigned char or EOF.
32409
32410 2005-06-16  Jim Meyering  <jim@meyering.net>
32411
32412         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32413         when either N or S is zero.
32414
32415 2005-06-16  Derek Price  <derek@ximbiot.com>
32416
32417         * m4/bison.m4: Declare YACC & YFLAGS precious.
32418
32419 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
32420
32421         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32422         multibyte string or pattern, fall back on unibyte matching.
32423         Problem reported by James Youngman.
32424
32425 2005-06-08  Bruno Haible  <bruno@clisp.org>
32426
32427         * modules/csharpcomp: New file.
32428         * MODULES.html.sh (C#): Add csharpcomp.
32429
32430 2005-06-08  Bruno Haible  <bruno@clisp.org>
32431
32432         * m4/csharpcomp.m4: New file, from GNU gettext.
32433
32434 2005-06-08  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/csharpcomp.h: New file, from GNU gettext.
32437         * lib/csharpcomp.c: New file, from GNU gettext.
32438         * lib/csharpcomp.sh.in: New file, from GNU gettext.
32439
32440 2005-06-08  Bruno Haible  <bruno@clisp.org>
32441
32442         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32443         warning on mingw.
32444
32445 2005-06-07  Derek Price  <derek@ximbiot.com>
32446
32447         Sync from CVS.
32448         * lib/glob_.h: Indent nested #ifdef.
32449
32450 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32451
32452         Sync from coreutils.
32453         Use "file name" when talking about file names, instead of "filename"
32454         or "path", as per the GNU coding standards.
32455         * lib/mkdir-p.c: Renamed from makepath.c.
32456         (make_dir_parents): Renamed from make_path.  All callers changed.
32457         * lib/mkdir-p.h: Likewise.  All includers changed.
32458         * lib/filenamecat.c: Renamed from path-concat.c.
32459         (file_name_concat): Renamed from path_concat.  All callers changed.
32460         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32461         * lib/filenamecat.h: Likewise.  All includers changed.
32462         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32463         in comments or local variable names.
32464         * lib/basename.c: Likewise.
32465         * lib/canonicalize.c, canonicalize.h: Likewise.
32466         * lib/dirname.c, dirname.h: Likewise.
32467         * lib/euidaccess.c: Likewise.
32468         * lib/exclude.c: Likewise
32469         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32470         * lib/fsusage.c, fsuage.h: Likewise.
32471         * lib/fts.c, fts_.h: Likewise.
32472         * lib/getcwd.c: Likewise.
32473         * lib/getloadavg.c: Likewise.
32474         * lib/mkstemp.c: Likewise.
32475         * lib/mountlist.c, mountlist.h: Likewise.
32476         * lib/openat.c, openat.h: Likewise.
32477         * lib/readlink-stub.c: Likewise.
32478         * lib/readutmp.c, readutmp.h: Likewise.
32479         * lib/rename.c: Likewise.
32480         * lib/rmdir.c: Likewise.
32481         * lib/same.c: Likewise.
32482         * lib/savedir.c: Likewise.
32483         * lib/stripslash.c: Likewise.
32484         * lib/tempname.c: Likewise.
32485         * lib/xreadlink.c: Likewise.
32486         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32487         All uses changed.
32488         * lib/exclude.h: Likewise.
32489
32490         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32491         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32492         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32493         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32494         * lib/pathmax.h: Include <limits.h> unconditionally, since other
32495         files have been getting away with it for years (MORE/BSD 4.3
32496         is extinct now).
32497         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32498         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32499
32500         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32501         Define to 256, not 255, as per modern POSIX.
32502
32503 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32504
32505         Sync from coreutils.
32506         Use "file name" when talking about file names, instead of "filename"
32507         or "path", as per the GNU coding standards.
32508         * MODULES.html.sh: mkdir-p renamed from makepath.
32509         filenamecat renamed from path-concat.
32510         * modules/filenamecat: Renamed from modules/path-concat.
32511         (Files): filenamecat.h and filenamecat.c renamed from
32512         path-concat.h and path-concat.c.
32513         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32514         (Include): filenamecat.h, not path-concat.h.
32515         * modules/mkdir-p: Renamed from modules/makepath.
32516         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32517         makepath.c.
32518         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32519         (Include): mkdir-p.h, not makepath.h.
32520
32521 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32522
32523         Sync from coreutils.
32524         * m4/mkdir-p.m4: Renamed from makepath.m4.
32525         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
32526         Rename files from makepath.c to mkdir-p.c, and from
32527         makepath.h to mkdir-p.h.
32528         * m4/filenamecat.m4: Renamed from path-concat.m4.
32529         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
32530         Rename files from path-concat.c to filenamecat.c,
32531         and from path-concat.h to filenamecat.h.
32532         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32533         "file name" in local variables or comments.
32534         * m4/rename.m4: Likewise.
32535
32536 2005-06-01  Bruno Haible  <bruno@clisp.org>
32537
32538         * modules/csharpexec: New file.
32539         * MODULES.html.sh (C#): New section.
32540
32541 2005-06-01  Bruno Haible  <bruno@clisp.org>
32542
32543         * m4/csharp.m4: New file, from GNU gettext.
32544         * m4/csharpexec.m4: New file, from GNU gettext.
32545
32546 2005-06-01  Bruno Haible  <bruno@clisp.org>
32547
32548         * lib/csharpexec.h: New file, from GNU gettext.
32549         * lib/csharpexec.c: New file, from GNU gettext.
32550         * lib/csharpexec.sh.in: New file, from GNU gettext.
32551
32552 2005-05-31  Derek Price  <derek@ximbiot.com>
32553             Paul Eggert  <eggert@cs.ucla.edu>
32554
32555         Sync from cvs.
32556         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32557
32558 2005-05-31  Derek Price  <derek@ximbiot.com>
32559             Paul Eggert  <eggert@cs.ucla.edu>
32560
32561         Sync from cvs.
32562         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32563
32564 2005-05-29  Derek Price  <derek@ximbiot.com>
32565
32566         * config/srclist.txt (glob_.h, glob.c): Add these files.
32567
32568 2005-05-29  Derek Price  <derek@ximbiot.com>
32569
32570         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32571         * modules/glob: New file.
32572         * modules/getlogin_r: Add link to POSIX spec in description.
32573
32574 2005-05-29  Derek Price  <derek@ximbiot.com>
32575             Paul Eggert  <eggert@cs.ucla.edu>
32576
32577         * m4/glob.m4: New file.
32578
32579 2005-05-29  Derek Price  <derek@ximbiot.com>
32580             Paul Eggert  <eggert@cs.ucla.edu>
32581
32582         * lib/glob_.h, lib/glob.c: New files.
32583
32584 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32585
32586         * modules/fts (Files): Remove m4/inttypes-pri.m4.
32587         * modules/fts-lgpl (Depends-on): Remove gettext.
32588
32589 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32590
32591         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32592         and don't require gt_INTTYPES_PRI.
32593
32594 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32595
32596         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32597
32598         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32599         the configuration hassle isn't worth it.
32600         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32601         (LONGEST_MODIFIER, PRIuMAX): Remove.
32602
32603 2005-05-27  Bruno Haible  <bruno@clisp.org>
32604
32605         * lib/getlogin_r.h: Remove second include of <stddef.h>.
32606
32607 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32608
32609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32610         _POSIX_PTHREAD_SEMANTICS for Solaris.
32611
32612 2005-05-25  Derek Price  <derek@ximbiot.com>
32613
32614         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32615
32616 2005-05-25  Derek Price  <derek@ximbiot.com>
32617             Paul Eggert  <eggert@cs.ucla.edu>
32618
32619         * modules/getlogin_r, m4/getlogin_r.m4: New files.
32620         * lib/getlogin_r.c, getlogin_r.h: New files.
32621
32622 2005-05-25  Bruno Haible  <bruno@clisp.org>
32623             Derek Price  <derek@ximbiot.com>
32624
32625         * lib/getlogin_r.h: Simplify API documentation.
32626
32627 2005-05-23  Derek Price  <derek@ximbiot.com>
32628
32629         * modules/minmax (Files): Add m4/minmax.m4.
32630         (configure.ac): Add gl_MINMAX.
32631
32632 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32633
32634         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32635         so that unistd-safer.h (GPL'ed code) need not be included.
32636
32637 2005-05-22  Bruno Haible  <bruno@clisp.org>
32638
32639         * m4/minmax.m4: New file.
32640         Based on a patch by Derek Price <derek@ximbiot.com>.
32641
32642 2005-05-22  Bruno Haible  <bruno@clisp.org>
32643
32644         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32645         (INT64_MIN): Fix definition.
32646         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32647
32648         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32649         NEED_SIGNED_INT_TYPES.
32650
32651         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32652         HAVE_SYSTEM_INTTYPES.
32653
32654 2005-05-22  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32657         Also include <sys/param.h> if it defines MIN, MAX.
32658         Based on a patch by Derek Price <derek@ximbiot.com>.
32659
32660 2005-05-21  Jim Meyering  <jim@meyering.net>
32661
32662         * modules/fts (Files): Add m4/inttypes-pri.m4.
32663         (Depends-on): Add lstat and remove gettext.  Alphabetize.
32664
32665 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32666
32667         New fts module.
32668         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32669         (setup_dir, free_dir): New functions.
32670         (enter_dir, leave_dir): Define trivial
32671         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
32672         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
32673         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32674         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32675         Move to fts-cycle.c.
32676         (fts_open): Use setup_dir.
32677         (fts_close): Use free_dir.
32678         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32679         This adds a label and some gotos, but the alternatives were messier.
32680         Check for memory allocation failure when entering a dir.
32681         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32682         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32683         (FTS): New member fts_cycle, that is a union that contains the
32684         old active_dir_ht and cycle_state.  All uses changed to mention
32685         fts_cycle.ht and fts_cycle.state.
32686         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32687         fts.c, with the following changes:
32688         (setup_dir, free_dir): New functions.
32689         (enter_dir): Now returns bool.  Return true if successful, false
32690         if memory exhausted.  All callers changed.
32691         Do not bother partly cleaning up on
32692         memory allocation failure; that is free_dir's job.
32693         However, free ad if hash_insert fails, to avoid memory leak.
32694         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32695         fts->fts_options to see which union member to use.
32696
32697 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32698
32699         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32700         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32701
32702 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32703
32704         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32705
32706 2005-05-20  Jim Meyering  <jim@meyering.net>
32707
32708         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32709         Now a macro, to pacify GCC.
32710
32711 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32712
32713         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32714         of -1.
32715
32716 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32717
32718         * lib/chown.c (rpl_chown): Return -1 on failure.
32719
32720 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32721
32722         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32723         Don't check for stddef.h.
32724         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32725         don't use its results.
32726         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32727         since we include them unconditionally.  Don't require
32728         AM_STDBOOL_H, since stdbool is a prerequisite.
32729         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32730         since we assume C89 or better.
32731         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32732         as we don't use their results.
32733         Don't check for fchdir, memmove, memset, strrchr, as we use
32734         them unconditionally.
32735         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32736         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32737
32738 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32739
32740         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32741         Include <stddef.h> unconditionally, since we assume C89 now.
32742         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32743         * lib/fts.c: Include fts_.h first, to check interface.
32744         Do not include intprops.h; no longer needed.
32745         Include cycle-check.h and hash.h, since fts_.h no longer does.
32746         Remove unnecessary casts of closedir to void.
32747         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32748         decide whether to decrement nlinks.
32749         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32750         (FTS): Use struct hash_table * instead of Hash_table, so that
32751         we no longer need to include hash.h here.
32752
32753 2005-05-18  Jim Meyering  <jim@meyering.net>
32754
32755         * modules/dirfd (License): Change to LGPL.  Most of the code
32756         is already in the public domain.
32757
32758 2005-05-18  Jim Meyering  <jim@meyering.net>
32759
32760         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32761         Reported by Yoann Vandoorselaere.
32762
32763 2005-05-17  Jim Meyering  <jim@meyering.net>
32764
32765         * m4/fts.m4: New file, from coreutils.
32766
32767 2005-05-17  Jim Meyering  <jim@meyering.net>
32768
32769         * lib/fts.c, lib/fts_.h: New files, from coreutils.
32770
32771 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32772
32773         Sync from coreutils.
32774         * m4/unlinkdir.m4: New file.
32775
32776 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32777
32778         Sync from coreutils.
32779         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32780         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32781         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32782         White space changes only.
32783         * lib/makepath.c (make_path): Port to hosts where leading "//" is
32784         special.
32785         * lib/yesno.c: Include getline.h, not ctype.h.
32786         (yesno): Don't remove leading white space; POSIX doesn't allow it.
32787         Use getline to remove arbitrary restriction on response length.
32788
32789 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32790
32791         * config/srclist-update: Spell out "Street" in FSF postal
32792         mail address; this is the style the FSF seems to prefer.
32793
32794         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32795         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32796         this updates FSF postal mail address.
32797
32798         Sync from coreutils.
32799         * modules/unlinkdir: New file.
32800         * modules/yesno (Depends-on): Add getline.
32801         * MODULES.html.sh (File system functions): Add unlinkdir.
32802
32803 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32806         lib/strsep.h:
32807         Change the initial comment to refer to GPL, not LGPL.
32808         gnulib-tool will change it to LGPL as needed.
32809
32810         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32811         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32812         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32813         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32814         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32815         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32816         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32817         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32818         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32819         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32820         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32821         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32822         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32823         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32824         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32825         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32826         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32827         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32828         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32829         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32830         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32831         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32832         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32833         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32834         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32835         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32836         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32837         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32838         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32839         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32840         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32841         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32842         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32843         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32844         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32845         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32846         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32847         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32848         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32849         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32850         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32851         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32852         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32853         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32854         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32855         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32856         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32857         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32858         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32859         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32860         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32861         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32862         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
32863         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
32864         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
32865         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
32866         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
32867         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
32868         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
32869         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
32870         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
32871         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
32872         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
32873         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
32874         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
32875         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
32876         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
32877         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
32878         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
32879         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
32880         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
32881         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
32882         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
32883         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
32884         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
32885         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
32886         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
32887         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
32888         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
32889         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
32890         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
32891         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
32892         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
32893         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
32894         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
32895         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
32896         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
32897         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
32898         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
32899         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
32900         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
32901         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
32902         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
32903         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
32904         lib/yesno.c, lib/yesno.h:
32905         Update FSF postal mail address.
32906
32907 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32908
32909         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
32910         tests/test-memmem.c, tests/test-stpncpy.c:
32911         Update FSF postal mail address.
32912
32913 2005-05-13  Bruno Haible  <bruno@clisp.org>
32914
32915         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
32916         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
32917         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
32918         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
32919         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
32920         Add support for 64-bit integers in the MSVC compiler.
32921
32922 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32923
32924         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
32925
32926 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
32927
32928         * gnulib-tool (func_import): Sort and uniquify recommended includes.
32929
32930 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32931
32932         * doc/getdate.texi (General date syntax): Don't say that date
32933         date --iso-8601=ns generates acceptable dates; it doesn't yet.
32934         Problem reported by Nic Ferrier.
32935
32936 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32937
32938         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
32939         specified in ai_socktype. Fix invalid ai_protocol
32940         check. ai_protocol is usually set to 0 or depending on
32941         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
32942         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
32943         ai_socktype / ai_protocol in the returned addrinfo structure.
32944
32945 2005-05-10  Simon Josefsson  <jas@extundo.com>
32946
32947         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
32948         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32949
32950 2005-05-10  Karl Berry  <karl@gnu.org>
32951
32952         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
32953         (from http://www.gnu.org/licenses).
32954         * doc/COPYING.LIB: also rename to COPYING.LESSER.
32955         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
32956         fdl.texi suffices.
32957
32958 2005-05-10  Karl Berry  <karl@gnu.org>
32959
32960         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
32961         (COPYING.DOC): remove.
32962
32963         * config/srclist-update: new FSF address.
32964
32965 2005-05-10  Derek Price  <derek@ximbiot.com>
32966
32967         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
32968         possible.
32969
32970 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32971             Bruno Haible  <bruno@clisp.org>
32972
32973         * modules/inet_ntop: New file.
32974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32975         inet_ntop.
32976
32977 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32978             Bruno Haible  <bruno@clisp.org>
32979
32980         * m4/inet_ntop.m4: New file.
32981
32982 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32983             Bruno Haible  <bruno@clisp.org>
32984
32985         * lib/inet_ntop.h: New file.
32986         * lib/inet_ntop.c: New file, from glibc with modifications.
32987
32988 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
32989
32990         * modules/time_r (License): Change to LGPL.
32991         * modules/extensions (License): Change to LGPL.  Actually,
32992         the license is more permissive than that, but currently gnulib-tool
32993         doesn't know how to handle more-permissive licenses.
32994
32995         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
32996         Problem reported by Dave Love.
32997
32998 2005-05-08  Jim Meyering  <jim@meyering.net>
32999
33000         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33001         blank.
33002
33003 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33004
33005         * modules/argmatch (Depends-on): Add stdbool.
33006         * modules/backupfile (Depends-on): Likewise.
33007         * modules/chdir-long (Depends-on): Likewise.
33008         * modules/closeout (Depends-on): Likewise.
33009         * modules/cycle-check (Depends-on): Likewise.
33010         * modules/dirname (Depends-on): Likewise.
33011         * modules/fnmatch (Depends-on): Likewise.
33012         * modules/fsusage (Depends-on): Likewise.
33013         * modules/fwriteerror (Depends-on): Likewise.
33014         * modules/getcwd (Depends-on): Likewise.
33015         * modules/getloadavg (Depends-on): Likewise.
33016         * modules/hard-locale (Depends-on): Likewise.
33017         * modules/makepath (Depends-on): Likewise.
33018         * modules/mountlist (Depends-on): Likewise.
33019         * modules/nanosleep (Depends-on): Likewise.
33020         * modules/posixtm (Depends-on): Likewise.
33021         * modules/quotearg (Depends-on): Likewise.
33022         * modules/readtokens (Depends-on): Likewise.
33023         * modules/readtokens0 (Depends-on): Likewise.
33024         * modules/readutmp (Depends-on): Likewise.
33025         * modules/save-cwd (Depends-on): Likewise.
33026         * modules/strftime (Depends-on): Likewise.
33027         * modules/userspec (Depends-on): Likewise.
33028         * modules/utimecmp (Depends-on): Likewise.
33029         * modules/xgetcwd (Depends-on): Likewise.
33030         * modules/xnanosleep (Depends-on): Likewise.
33031         * modules/xstrtod (Depends-on): Likewise.
33032         * modules/yesno (Depends-on): Likewise.
33033
33034 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33035
33036         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33037         needless checks.
33038
33039 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33040
33041         Merge from coreutils.  Among other things,
33042         add bulletproofing for cases where stdin, stdout, or stderr are closed.
33043         * lib/fd-safer.c: New file.
33044         * lib/fcntl-safer.h, open-safer.c: Remove.
33045         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33046         * lib/dup-safer.c: Include unistd-safer.h first.
33047         Don't include errno.h.
33048         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33049         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33050         * lib/file-type.c: Rely on file-type.h change.
33051         * lib/getloadavg.c: Include unistd-safer.h.
33052         (getloadavg): Use safer open.
33053         * lib/getusershell.c: Include "stdio-safer.h".
33054         (getusershell): Use safer fopen.
33055         * lib/long-options.c (long_options): Use NULL rather than 0.
33056         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33057         'free'.
33058         * lib/modechange.c: Likewise.
33059         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33060         (MODE_DONE): New constant.
33061         (struct mode_change): Remove 'next' member.
33062         (make_node_op_equals): New function; like the old one of the
33063         same name, except it allocates an array.
33064         (mode_compile, mode_create_from_ref): Use it.
33065         (mode_compile): Allocate result as an array, not a linked list.
33066         Parse octal string ourself, so that we catch mistakes like "+0".
33067         (mode_adjust): Arg is an array, not a linked list.
33068         * lib/modechange.c: Include stat-macros.h, xalloc.h.
33069         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
33070         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
33071         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
33072         Remove.  This is now stat-macros.h's job.
33073         (talloc): Remove.  All callers replaced by xalloc, so that
33074         our invokers don't have to worry about reporting memory failures.
33075         (make_node_op_equals): Remove.
33076         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33077         New constants.
33078         (struct mode_change): Moved here from modechange.h.
33079         (mode_append_entry): Remove.
33080         (mode_compile): Remove MASKED_OPS arg, since it encouraged
33081         apps to have incorrect behavior.  Use simpler algorithm for head
33082         and tail.  Don't futz with umask; that's now the job of mode_adjust.
33083         Detect more invalid usages rather than having somewhat-random behavior.
33084         Don't insert an "a=" action, as that leads to incorrect behavior.
33085         (mode_compile, mode_create_from_ref): Return NULL on error instead
33086         of an enum, since now there's only one way to have an error.  All
33087         callers changed.
33088         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
33089         at the correct time.  Simplify calculation of "+u" and its ilk.
33090         Don't mishandle "+X".
33091         (mode_free): Remove "register" and localize decls.
33092         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33093         (struct mode_change): Move to modechange.c; callers don't
33094         need to see this stuff.
33095         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
33096         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
33097         (mode_change, mode_adjust): Reflect the new signatures noted above.
33098         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
33099         that might redefine system include files.
33100         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
33101         (my_usleep): Use NULL rather than (void *) 0.
33102         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
33103         Use siginterrupt to specify that system calls should be interrupted.
33104         (rpl_nanosleep): Move initialization of suspended closer to call of
33105         my_usleep.
33106         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
33107         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
33108         (desirable_utmp_entry): New function.
33109         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
33110         using x2nrealloc, to simplify logic.
33111         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
33112         size calculation.  Do not assume utmp file is a regular file.
33113         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
33114         (READ_UTMP_CHECK_PIDS): New constant.
33115         * lib/save-cwd.c: Include unistd-safer.h.
33116         (save_cwd): Use fd_safer.
33117         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
33118         [!_LIBC] Include "stat-macros.h" instead.
33119         * lib/unistd-safer.h (fd_safer): New decl.
33120
33121 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         * modules/getloadavg (Depends-on): Add unistd-safer.
33124         * modules/getusershell (Depends-on): Add stdio-safer.
33125         * modules/lstat (Depends-on): Remove xalloc.
33126         * modules/mkstemp (Depends-on): Add stat-macros.
33127         * modules/modechange (Depends-on): Remove xstrtol.
33128         Add stat-macros, xalloc.
33129         * modules/save-cwd (Depends-on): Add unistd-safer.
33130         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
33131         * modules/unistd-safer (Files): Add lib/fd-safer.c
33132         (Makefile.am): Remove lib_SOURCES.
33133
33134         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
33135         Remove fcntl-safer; unistd-safer supersedes it.
33136
33137 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33140         AC_HEADER_STAT.
33141         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33142         (gl_PREREQ_CHOWN): Remove.
33143         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33144         it.  Don't require AC_HEADER_STAT.
33145         (gl_PREREQ_LSTAT): Remove.
33146         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33147         Don't require AC_HEADER_STAT.
33148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33149         (gl_PREREQ_RMDIR): Remove.
33150         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33151         mention stat-macros.h or AC_HEADER_STAT, since we'll make
33152         the stat-macros module a prerequisite.
33153         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33154         * m4/filemode.m4 (gl_FILEMODE): Likewise.
33155         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33156         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33157         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33158         variable names.
33159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33160         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
33161         variable prefixes.
33162         * m4/fcntl-safer.m4: Remove.
33163         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33164         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33165         Invoke gl_PREREQ_FD_SAFER.
33166         (gl_PREREQ_FD_SAFER): New macro.
33167         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33168         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33169         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33170         Remove duplicate call to AC_LIBOBJ(readutmp).
33171         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
33172
33173         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33174         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
33175
33176 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33177
33178         * MODULES.html.sh (Misc): Add byteswap.
33179
33180 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33181
33182         * modules/getcwd (Depends-on): Add extensions.
33183         * modules/openat (Depends-on): Likewise.
33184
33185 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33186
33187         * modules/byteswap: New file.
33188
33189 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33190
33191         * m4/byteswap.m4: New file.
33192
33193 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33194
33195         * lib/byteswap_.h: New file.
33196
33197 2005-04-25  Karl Berry  <karl@gnu.org>
33198
33199         * m4/gettext.m4: Update from GNU gettext 0.14.4.
33200
33201 2005-04-25  Albert Chin  <china@thewrittenword.com>
33202
33203         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33204         Toolkit C bug.
33205
33206 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
33207
33208         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33209         (func_ln_if_changed) Remove forcibly for no error message
33210         in case file does not exist.
33211
33212 2005-04-19  Simon Josefsson  <jas@extundo.com>
33213
33214         * gnulib-tool (Options): Make --symlink mean --symbolic.
33215
33216 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
33217
33218         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
33219
33220 2005-04-16  Simon Josefsson  <jas@extundo.com>
33221
33222         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33223
33224 2005-04-15  Simon Josefsson  <jas@extundo.com>
33225
33226         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33227
33228 2005-04-15  Simon Josefsson  <jas@extundo.com>
33229
33230         * gnulib-tool: Rename --symlink to --symbolic.
33231
33232 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
33233
33234         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33235         symbolic links to files instead of copying/moving.  Add --aux-dir,
33236         specifying directory relative --dir where auxiliary build tools
33237         are placed.
33238
33239 2005-04-14  Bruno Haible  <bruno@clisp.org>
33240
33241         * modules/allocsa (License): Change to LGPL.
33242         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33243
33244 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33245
33246         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33247         that "UTC +1 second" continues to work.  Problem reported
33248         by Dmitry V. Levin.
33249         (relunit_snumber): New rule.
33250         (relunit): Use it.
33251
33252 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33253
33254         * lib/getdate.y (universal_time_zone_table): New constant.
33255         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33256         universal_time_zone_table.
33257         (lookup_zone): Prefer universal_time_zone_table to
33258         local_time_zone_table, so that "GMT" time stamps are allowed in
33259         London during the summer.  Problem reported by Ian Abbott.
33260
33261 2005-04-12  Jim Meyering  <jim@meyering.net>
33262
33263         * lib/human.c (humblock): Set *options even when returning due to
33264         xstrtoumax conversion failure.  Thanks to a used-uninitialized
33265         warning from gcc-4.
33266
33267 2005-04-09  Jim Meyering  <jim@meyering.net>
33268
33269         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33270         -Wuninitialized: initialize tm0.tm_year.
33271
33272 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33273
33274         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33275         count, since there's no maximum.  All uses changed.
33276         Add member dsts_seen.
33277         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33278         not being INT_MAX.
33279         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33280         Use pc_rels_seen to decide whther a date is absolute.
33281
33282         * lib/getdate.y (number): Don't overwrite year.
33283         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33284         check.
33285
33286 2005-04-02  Simon Josefsson  <jas@extundo.com>
33287
33288         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33289         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33290
33291 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
33292
33293         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33294         where no absolute path name can be longer than PATH_MAX.
33295
33296 2005-03-27  Jim Meyering  <jim@meyering.net>
33297
33298         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33299
33300 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
33301
33302         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33303         "one's complement" -> "ones' complement" in comment, as per Knuth.
33304         "value of type" -> "type or expression" in comment.
33305         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33306
33307 2005-03-26  Jim Meyering  <jim@meyering.net>
33308
33309         Comment nits.
33310         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33311         Correct typos: s/or/of/.
33312
33313 2005-03-26  Jim Meyering  <jim@meyering.net>
33314
33315         * modules/check-include-files: Move to ../ and rename to...
33316         * check-module: ...this.
33317
33318 2005-03-25  Jim Meyering  <jim@meyering.net>
33319
33320         * modules/xvasprintf (Files): Add xalloc.h.
33321
33322 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33323
33324         * modules/gettext (Files): config/config.rpath ->
33325         build-aux/config.rpath
33326         * modules/iconv (Files): Likewise.
33327         Problem reported by Oskar Liljeblad.
33328
33329 2005-03-23  Jim Meyering  <jim@meyering.net>
33330
33331         * modules/check-include-files: New script to check for
33332         missing dependencies, multiple includes, etc.
33333
33334         * modules/c-strtold (Depends-on): Add xalloc.
33335         * modules/c-strtod (Depends-on): Add xalloc.
33336         * modules/hash (Depends-on): Add xalloc.
33337         (Files): Remove lib/xalloc.h.
33338
33339         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33340         * modules/userspec (Files): Add lib/inttostr.h.
33341
33342 2005-03-23  Jim Meyering  <jim@meyering.net>
33343
33344         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33345
33346 2005-03-22  Jim Meyering  <jim@meyering.net>
33347
33348         * modules/stat-macros: New module.
33349         * modules/canonicalize, modules/euidaccess, modules/file-type,
33350         * modules/filemode, modules/lchown, modules/makepath,
33351         * modules/rmdir, modules/stat: Depend on new stat-macros module
33352         rather than listing lib/stat-macros.h manually.
33353         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33354
33355 2005-03-22  Jim Meyering  <jim@meyering.net>
33356
33357         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33358
33359 2005-03-22  Bruno Haible  <bruno@clisp.org>
33360
33361         * config/srclist.txt: Replace target directory 'config' with
33362         'build-aux'.
33363         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33364         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33365         ../build-aux/.
33366
33367 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33368
33369         * modules/chdir-long (Depends-on): Add mempcpy.
33370
33371         * modules/acl, modules/backupfile, modules/c-strtod,
33372         modules/c-strtold, modules/canon-host, modules/canonicalize,
33373         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33374         modules/exclude, modules/exitfail, modules/file-type,
33375         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33376         modules/getdate, modules/getline, modules/getpagesize,
33377         modules/getpass, modules/getugroups, modules/group-member,
33378         modules/hard-locale, modules/hash, modules/human, modules/idcache,
33379         modules/inttostr, modules/long-options, modules/makepath,
33380         modules/md5, modules/memcasecmp, modules/memcoll,
33381         modules/modechange, modules/mountlist, modules/path-concat,
33382         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33383         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33384         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33385         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33386         modules/strftime, modules/strndup, modules/strverscmp,
33387         modules/timespec, modules/unlocked-io, modules/userspec,
33388         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33389         modules/yesno:
33390         Remove lib_SOURCES line from Makefile.am section, as this is now
33391         done automatically by the corresponding Autoconf macro.
33392
33393 2005-03-21  Jim Meyering  <jim@meyering.net>
33394
33395         Changes imported from coreutils.
33396
33397         * lib/cycle-check.c: Don't include xalloc.h.
33398
33399         * lib/path-concat.c: Don't include assert.h.
33400         (path_concat): Remove assertion that would have triggered
33401         for ABASE starting with more than one slash.
33402         Reported by Andreas Schwab.
33403
33404         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33405         properly when ABASE is an absolute file name.
33406         Correct the description of this function.
33407         Include <assert.h>.
33408         Add an assertion and a test driver.
33409         This fixes a bug introduced on 2004-07-02.
33410         Andreas Schwab reported the resulting failure of cp --parents:
33411         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33412
33413 2005-03-21  Jim Meyering  <jim@meyering.net>
33414
33415         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33417
33418 2005-03-21  Jim Meyering  <jim@meyering.net>
33419         and  Paul Eggert  <eggert@cs.ucla.edu>
33420
33421         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33422         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33423         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33424         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33425         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33426         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33427         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33428         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33429         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33430         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33431         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33432         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33433         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33434         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33435         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33436         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33437         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33438         for these modules.
33439
33440 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
33441
33442         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33443         (which shouldn't happen), generate nothing instead of returning 0
33444         immediately, so that nstrftime (NULL, ...) doesn't return 0.
33445
33446 2005-03-16  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33449         HAVE_LONGLONG_64BIT.
33450
33451 2005-03-16  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33454         HAVE_LONGLONG_64BIT.
33455
33456 2005-03-16  Bruno Haible  <bruno@clisp.org>
33457
33458         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33459         HAVE_LONGLONG_64BIT.
33460
33461 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33462
33463         * lib/strftime.c (my_strftime): Prepend space to format so that we can
33464         reliably distinguish strftime failure from empty output on POSIX
33465         hosts.
33466
33467 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33468
33469         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33470         (iconv_string): Don't guess a size-zero buffer, as that might cause
33471         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
33472         result would be 'too large', where 'too large' is (heuristically)
33473         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33474         overflow concerns.  This will prevent some unwanted malloc failures
33475         when the inputs are very large.
33476
33477 2005-03-15  Karl Berry  <karl@gnu.org>
33478
33479         * config/srclist.txt (config.rpath): from gettext.
33480         * config/config.rpath: update.
33481
33482 2005-03-15  Bruno Haible  <bruno@clisp.org>
33483
33484         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33485         to 'negate'.
33486
33487         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33488         variable.
33489
33490         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33491         results.
33492
33493 2005-03-14  Simon Josefsson  <jas@extundo.com>
33494
33495         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33496         <fx@gnu.org>.
33497
33498 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
33499
33500         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33501         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33502         intprops.h.
33503         * lib/strtol.c: Likewise.
33504
33505 2005-03-14  Jim Meyering  <jim@meyering.net>
33506
33507         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33508         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33509         to be nonzero so that we (and caller) can detect the difference
33510         between a valid zero-length expansion and an error return, even
33511         when the underlying strftime fails before writing anything into
33512         that location.
33513
33514 2005-03-14  Bruno Haible  <bruno@clisp.org>
33515
33516         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33517         Update from GNU gettext 0.14.3.
33518
33519 2005-03-10  Jim Meyering  <jim@meyering.net>
33520
33521         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33522
33523 2005-03-10  Jim Meyering  <jim@meyering.net>
33524
33525         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33526         so that this module works on systems without fchdir.
33527
33528 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
33529
33530         Factor int-properties macros into a single file, except for
33531         glibc-related files.
33532         * lib/intprops.h: New file.
33533         * lib/getloadavg.c: Include it instead of limits.h.
33534         (INT_STRLEN_BOUND): Remove.
33535         * lib/human.c: Include intprops.h.
33536         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33537         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33538         302/1000.
33539         * lib/inttostr.h: Include intprops.h instead of limits.h.
33540         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33541         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33542         for consistency with intprops.h.
33543         (time_t_is_integer, twos_complement_arithmetic): Use them.
33544         * lib/sig2str.h: Include <signal.h>, intprops.h.
33545         (INT_STRLEN_BOUND): Remove.
33546         * lib/strftime.c (TYPE_SIGNED): Remove.
33547         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33548         * lib/strtol.c: Adjust comments to match intprops.h.
33549         * lib/userspec.c: Include intprops.h.
33550         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33551         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33552         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33553         instead of rolling our own expressions.
33554         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33555
33556         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
33557         instead of int.
33558         (my_strftime): Do not mishandle years close to INT_MAX, by doing
33559         the right thing even if adding 1900 would overflow.  Similarly
33560         for tm_mon + 1 and tm_yday + 1.
33561         Make %Y always equivalent to %C%y, and similarly for %G and %g.
33562         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33563         (DO_SIGNED_NUMBER): New macro.
33564         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33565
33566 2005-03-07  Bruno Haible  <bruno@clisp.org>
33567
33568         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33569
33570 2005-03-07  Bruno Haible  <bruno@clisp.org>
33571
33572         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33573
33574 2005-03-04  Derek R. Price  <derek@ximbiot.com>
33575
33576         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33577         (func_import): Only replace files via --import when they have actually
33578         changed.
33579
33580 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33581
33582         * m4/mmap-anon.m4: New file.
33583         * m4/pagealign_alloc.m4: New file.
33584
33585 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33586             Bruno Haible  <bruno@clisp.org>
33587
33588         * modules/pagealign_alloc: New file.
33589         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33590
33591 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33592             Bruno Haible  <bruno@clisp.org>
33593
33594         * lib/pagealign_alloc.h: New file.
33595         * lib/pagealign_alloc.c: New file.
33596
33597 2005-03-03  Bruno Haible  <bruno@clisp.org>
33598
33599         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33600         Use an all-permissive copyright notice, recommended by RMS.
33601
33602 2005-03-02  Bruno Haible  <bruno@clisp.org>
33603
33604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33605         of AIX, the replacement has to be done only after <string.h> is
33606         included, therefore not in config.h. stpncpy.h does the replacement,
33607         and stpncpy.c uses it.
33608
33609 2005-03-02  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33612         stpncpy.c uses it.
33613
33614 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33615
33616         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33617         The workaround isn't strictly needed for POSIX conformance, and
33618         it's too much of a pain to configure and maintain.  We'll ask
33619         people to fix their kernels instead.
33620         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33621         (NANOSLEEP_BUG_WORKAROUND): Remove.
33622         (xnanosleep): Remove the workaround.
33623
33624 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33625
33626         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33627         Reported by Derek Price.
33628         (Include): Add "timespec.h".
33629
33630         * modules/xnanosleep (Depends-on): Remove gethrxtime.
33631
33632 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33633
33634         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33635         to detect nanosleep bug.
33636
33637 2005-03-01  Bruno Haible  <bruno@clisp.org>
33638
33639         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33640
33641 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33642
33643         * modules/gethrxtime: New file.
33644         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33645         (Depends-on): Add gethrxtime.
33646         (configure.ac): Add gl_XNANOSLEEP.
33647         (Makefile.am): Remove lib_SOURCES line.
33648
33649 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33650
33651         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33652         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33653
33654 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33655
33656         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33657         * lib/timespec.h (gettime): Return void, since it always
33658         succeeds now.  All uses changed.
33659         * lib/gettime.c (gettime) Likewise.
33660         [HAVE_NANOTIME]: Prefer nanotime.
33661         Assume gettimeofday succeeds, as POSIX requires.
33662         Assime time () succeeds, since other code already does.
33663         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33664         (timespec_subtract): Remove.
33665         (NANOSLEEP_BUG_WORKAROUND): New constant.
33666         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33667         things considerably.  Use it only on GNU/Linux hosts, since the
33668         workaround shouldn't be needed elsewhere.
33669
33670 2005-02-24  Bruno Haible  <bruno@clisp.org>
33671
33672         * modules/gettext (Files): Add m4/glibc2.m4.
33673
33674 2005-02-24  Bruno Haible  <bruno@clisp.org>
33675
33676         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33677         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33678         * m4/progtest.m4:
33679         Update from GNU gettext 0.14.2.
33680         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33681
33682 2005-02-24  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/localcharset.c: Update from GNU gettext 0.14.2.
33685         * lib/config.charset: Update from GNU gettext 0.14.2.
33686
33687 2005-02-24  Bruno Haible  <bruno@clisp.org>
33688
33689         * lib/gettext.h: Update from GNU gettext 0.14.2.
33690
33691 2005-02-23  Simon Josefsson  <jas@extundo.com>
33692
33693         * m4/iconvme.m4: New file.
33694
33695 2005-02-23  Jim Meyering  <jim@meyering.net>
33696
33697         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33698         change.
33699         Thanks to Bruno Haible for catching it.
33700
33701 2005-02-22  Simon Josefsson  <jas@extundo.com>
33702
33703         * modules/iconvme: New file.
33704
33705         * MODULES.html.sh: Add iconvme.
33706
33707 2005-02-22  Simon Josefsson  <jas@extundo.com>
33708
33709         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33710
33711 2005-02-22  Simon Josefsson  <jas@extundo.com>
33712
33713         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33714
33715 2005-02-22  Jim Meyering  <jim@meyering.net>
33716
33717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33718         s/ifndef/ifdef/.
33719
33720 2005-02-20  Neil Conway  <neilc@samurai.com>
33721
33722         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33723         returned by OSX/Darwin if the specified buffer is not large
33724         enough for the hostname.
33725
33726 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33727
33728         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33729         pass it to _help, otherwise the latter coredumps trying to
33730         dereference state.root_argp.
33731
33732 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33733
33734         * modules/chdir-long (Depends-on): Add memrchr.
33735         * modules/memrchr (Files): Add lib/memrchr.h.
33736         (Include): "memrchr.h".
33737
33738 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33739
33740         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33741
33742 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33743
33744         * lib/memrchr.h: New file.
33745         * lib/chdir-long.c: Include it.
33746         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33747         Don't bother including stddef.h.
33748
33749 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
33750
33751         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33752         inclusion.
33753         Include <sys/types.h>, for dev_t.
33754         (ME_DUMMY, ME_REMOTE): Move from here....
33755         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33756         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
33757         Dmitry V. Levin.
33758         Include mountlist.h first, to test the interface.
33759
33760 2005-01-29  Bruno Haible  <bruno@clisp.org>
33761
33762         * lib/progname.c (program_name): Initialize.
33763         Needed when linking statically on MacOS X.
33764
33765 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33766
33767         Sync from coreutils.
33768         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33769         (Depends-on): Add c-strtod.
33770         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33771
33772 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33773
33774         Sync from coreutils.
33775         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33776
33777         Remove files that are specific to coreutils.
33778         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33779
33780 2005-01-28  Bruno Haible  <bruno@clisp.org>
33781
33782         * modules/javacomp: New file.
33783         * MODULES.html.sh (Java): Add javacomp.
33784
33785 2005-01-28  Bruno Haible  <bruno@clisp.org>
33786
33787         * m4/javacomp.m4: New file, from GNU gettext.
33788
33789 2005-01-28  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/javacomp.sh.in: New file, from GNU gettext.
33792         * lib/javacomp.h: New file, from GNU gettext.
33793         * lib/javacomp.c: New file, from GNU gettext.
33794
33795 2005-01-26  Simon Josefsson  <jas@extundo.com>
33796
33797         * lib/gai_strerror.c: Use GPL in header.
33798
33799 2005-01-26  Bruno Haible  <bruno@clisp.org>
33800
33801         * modules/javaexec: New file.
33802         * MODULES.html.sh (Java): Add javaexec.
33803
33804 2005-01-26  Bruno Haible  <bruno@clisp.org>
33805
33806         * m4/javaexec.m4: New file, from GNU gettext.
33807
33808 2005-01-26  Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/javaexec.sh.in: New file, from GNU gettext.
33811         * lib/javaexec.h: New file, from GNU gettext.
33812         * lib/javaexec.c: New file, from GNU gettext.
33813
33814 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33815
33816         * modules/lchown (Depends-on): Remove lchown.h
33817
33818 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33819
33820         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33821         must be defined if the header file was not found, in order
33822         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33823
33824 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33825
33826         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33827         initializers for struct pentry_state.
33828         (__argp_error): Check return value of __asprintf
33829         (__argp_failure): Translate error message
33830
33831         * lib/argp-parse.c: Removed braces around the expansion of N_()
33832
33833 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33834
33835         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33836         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33837         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33838         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33839         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33840         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33841         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33842         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33843         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33844         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33845         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33846         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33847         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33848         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33849         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33850         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33851         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33852         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33853         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33854         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33855         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33856         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33857         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33858         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33859         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33860         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33861         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33862         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
33863         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
33864         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
33865         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
33866         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
33867         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
33868         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
33869         xstrtol.m4, xstrtoumax.m4, yesno.m4:
33870         Use an all-permissive copyright notice, recommended by RMS.
33871
33872 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
33873
33874         * modules/chdir-long (Depends-on): Remove mempcpy.
33875
33876 2005-01-21  Jim Meyering  <jim@meyering.net>
33877
33878         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
33879         same value as for Solaris 9.
33880
33881         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
33882         component length.  This included changing the parameter to be
33883         of type `char *' rather than `char const *'.
33884         * lib/chdir-long.h (chdir_long): Update prototype.
33885
33886         * lib/openat.c (fdopendir, fstatat): New functions.
33887         * lib/openat.h: Include headers required for use of DIR and struct
33888         stat.
33889         [AT_SYMLINK_NOFOLLOW]: Define.
33890         (fdopendir, fstatat): Add prototypes.
33891
33892 2005-01-21  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/classpath: New file.
33895         * MODULES.html.sh (Java): Add classpath.
33896
33897 2005-01-21  Bruno Haible  <bruno@clisp.org>
33898
33899         * lib/classpath.h: New file, from GNU gettext.
33900         * lib/classpath.c: New file, from GNU gettext.
33901
33902 2005-01-20  Simon Josefsson  <jas@extundo.com>
33903
33904         * modules/version-etc-fsf: New file.
33905
33906 2005-01-20  Simon Josefsson  <jas@extundo.com>
33907
33908         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
33909         * lib/version-etc.c: Remove version_etc_copyright.
33910         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
33911         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
33912
33913 2005-01-20  Simon Josefsson  <jas@extundo.com>
33914
33915         * lib/base64.h (isbase64): Add.
33916
33917         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
33918         using a unsigned prototype, don't inline.
33919         (base64_decode): Use it.
33920
33921 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33922
33923         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
33924         it.
33925
33926 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33927
33928         * lib/save-cwd.c (save_cwd): Remove code to support the case
33929         where fchdir is missing or flaky.
33930
33931 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33932
33933         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
33934
33935 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
33936
33937         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
33938         AC_LIBSOURCES now does this.
33939         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
33940         with new ullong_max module.
33941
33942 2005-01-19  Bruno Haible  <bruno@clisp.org>
33943
33944         * modules/sh-quote: New file.
33945         * MODULES.html.sh (Executing programs): Add sh-quote.
33946
33947 2005-01-19  Bruno Haible  <bruno@clisp.org>
33948
33949         * lib/sh-quote.h: New file, from GNU gettext.
33950         * lib/sh-quote.c: New file, from GNU gettext.
33951
33952 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
33953
33954         Merge from coreutils.
33955         * m4/ullong_max.m4: New file.
33956         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
33957         (gl_MACROS): Assume localeconv exists.
33958
33959 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
33960
33961         Merge changes from coreutils, as described below in several
33962         changelogs dated today.
33963
33964         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
33965         (O_DIRECTORY): Remove; not needed here, since "." must be
33966         a directory.  All uses removed.
33967         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
33968         universal on Suns, and we also need to test for IRIX.
33969         Revamp code to use 'if' rather than '#if'.
33970         Avoid unnecessary comparison of cwd->desc to 0.
33971
33972         * lib/utimens.c (futimens): Robustify the previous patch, by checking
33973         for known valid error numbers rather than observed invalid ones.
33974
33975 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
33976
33977         * modules/ullong_max: New file.
33978
33979         * modules/chdir-long, modules/openat: New files.
33980         * modules/save-cwd (Depends-on): Depend on chdir-long.
33981         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
33982
33983 2005-01-18  Jim Meyering  <jim@meyering.net>
33984
33985         Merge from coreutils.
33986         * m4/chdir-long.m4, m4/openat.m4: New files.
33987         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
33988         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
33989         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
33990         is sane and DOES follow symlinks.  Besides, testing 20 different
33991         systems found no broken chown implementations.
33992         Prompted by a change in rsync's copy of this macro.
33993         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
33994
33995         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
33996
33997         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
33998         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
33999         NULL-means-set-to-current-time semantics.
34000         Remove temporary file immediately, rather than waiting
34001         for configure's at-exit trap code to do it.
34002
34003 2005-01-18  Jim Meyering  <jim@meyering.net>
34004
34005         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34006
34007         * lib/utimens.c (futimens): Account for the fact that futimes
34008         can also fail with errno == ENOSYS or errno == ENOENT.
34009         Patch from Dmitry V. Levin.
34010
34011         Change the name of the robust chdir function from chdir to chdir_long.
34012         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34013         (restore_cwd): Use chdir_long, not chdir.
34014         * lib/chdir-long.c: Renamed from chdir.c.
34015         * lib/chdir-long.h: Renamed from chdir.h.
34016         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34017         Hurd.
34018
34019 2005-01-18  Bruno Haible  <bruno@clisp.org>
34020
34021         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34022         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34023         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34024         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34025         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34026         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34027         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34028         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34029         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34030         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34031         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34032         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34033         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34034         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34035         Use an all-permissive copyright notice, recommended by RMS.
34036
34037 2005-01-18  Bob Proulx  <bob@proulx.com>
34038
34039         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34040         simplify offsetof() macro construct to avoid compile failure with
34041         native HP-UX 11.0 ANSI C compiler.
34042
34043 2005-01-17  Bruno Haible  <bruno@clisp.org>
34044
34045         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34046         redundant because stpncpy.m4 takes care of it.
34047
34048 2005-01-17  Bruno Haible  <bruno@clisp.org>
34049
34050         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34051
34052 2005-01-17  Bruno Haible  <bruno@clisp.org>
34053
34054         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34055         used.
34056
34057 2005-01-17  Bruno Haible  <bruno@clisp.org>
34058
34059         * lib/fwriteerror.h (fwriteerror): Change specification to include
34060         fclose.
34061         * lib/fwriteerror.c: Include <stdbool.h>.
34062         (fwriteerror): At the end, close the file stream. Record whether
34063         stdout was already closed.
34064
34065 2005-01-17  Bruno Haible  <bruno@clisp.org>
34066
34067         * lib/execute.c (environ): Declare if needed.
34068         * lib/pipe.c (environ): Likewise.
34069         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
34070
34071 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34072
34073         * modules/argp: Depend on vsnprintf
34074
34075 2005-01-10  Jim Meyering  <jim@meyering.net>
34076
34077         * modules/closeout (Depends-on): Add atexit.
34078
34079 2005-01-06  Bruno Haible  <bruno@clisp.org>
34080
34081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
34082
34083 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34084
34085         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
34086         definitions to be after all include files, to avoid collisions.
34087         Problem reported by Bob Proulx.
34088
34089 2005-01-04  Jim Meyering  <jim@meyering.net>
34090
34091         Changes imported from coreutils.
34092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
34093         as the mkstemp template, use a temporary directory and an
34094         8.3-friendly template to avoid trouble on systems like DJGPP.
34095         Reported by Juan M. Guerrero via Stepan Kasal.
34096         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
34097         close. Remove the temporary directory right away, rather than waiting
34098         for configure's at-exit trap code to do it.
34099         Suggestion from Stepan Kasal.
34100
34101 2005-01-01  Simon Josefsson  <jas@extundo.com>
34102
34103         * gnulib-tool: Print #include directives when --import'ing.
34104
34105 2004-12-28  Simon Josefsson  <jas@extundo.com>
34106
34107         * tests/test-base64.c: Include required header files.  Remove
34108         unused variables.
34109
34110 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34111
34112         * modules/error (Depends-on): Remove gettext.
34113
34114 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34115
34116         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
34117         not needed.  This removes a dependency on the gettext module.
34118         [defined _LIBC]: Do not include <libintl.h>; not needed.
34119
34120 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34121
34122         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
34123         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
34124
34125 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34126
34127         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
34128         HAVE_DECL_STRTOLD.
34129
34130 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34131
34132         * modules/getdate (Depends-on): Remove alloca-opt.
34133
34134 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34135
34136         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34137
34138 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34139
34140         * lib/argp-parse.c: Include <stddef.h>.
34141         (alignof, alignto): New macros.
34142         (parser_init): Don't assume that void * is aligned sufficiently
34143         for struct option.
34144
34145         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34146         need to extend the stack.
34147         (YYINITDEPTH): New macro, so that the initial stack isn't overly
34148         large.
34149
34150 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34151
34152         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34153
34154 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34155
34156         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34157         (2004-10-24) change.  Apparently this was a false alarm.
34158
34159         * modules/getdate: Depend on alloca-opt, not alloca.
34160
34161 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34162
34163         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34164         Remove now-obsolete comment about AIX.
34165         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34166         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34167         (YYMAXDEPTH): New macro.
34168
34169 2004-12-18  Simon Josefsson  <jas@extundo.com>
34170
34171         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34172
34173 2004-12-18  Bruno Haible  <bruno@clisp.org>
34174
34175         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34176
34177 2004-12-18  Bruno Haible  <bruno@clisp.org>
34178
34179         * lib/fatal-signal.c (fatal_signals): Make non-const.
34180         (init_fatal_signals): New function.
34181         (uninstall_handlers, install_handlers): Ignore signals that were set to
34182         SIG_IGN.
34183         (at_fatal_signal): Call init_fatal_signals.
34184         (init_fatal_signal_set): Likewise. Ignore signals that were set to
34185         SIG_IGN.
34186         Reported by Paul Eggert.
34187
34188 2004-12-18  Bruno Haible  <bruno@clisp.org>
34189
34190         * doc/alloca.texi: New file.
34191         * doc/alloca-opt.texi: New file.
34192
34193 2004-12-17  Jim Meyering  <jim@meyering.net>
34194
34195         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34196         Otherwise, install-sh could exit with improper exit status when
34197         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
34198
34199 2004-12-16  Simon Josefsson  <jas@extundo.com>
34200
34201         * tests/test-base64.c: Add license.
34202
34203 2004-12-15  Stepan Kasal  <address@hidden>
34204
34205         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34206
34207 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34208
34209         * modules/getcwd (Files): Add m4/d-ino.m4.
34210         Suggested by Mark D. Baushke.
34211
34212 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34213
34214         * lib/getdate.y (textint): New member "negative".
34215         (time_zone_hhmm): New function.
34216         Expect 14 shift-reduce conflicts, not 13.
34217         (o_colon_minutes): New rule.
34218         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34219         (yylex): Set the "negative" member of signed numbers.
34220
34221 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34222
34223         * doc/getdate.texi (Time of day items, Time zone items):
34224         Describe new formats +00:00, UTC+00:00.
34225
34226 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34227
34228         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34229         spurious "-l"s.  Problem reported by Stepan Kasal.
34230
34231 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
34232
34233         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34234         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
34235
34236 2004-12-04  Simon Josefsson  <jas@extundo.com>
34237
34238         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34239         Vandoorselaere <yoann@prelude-ids.org>.
34240
34241 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34242
34243         Changes imported from coreutils.
34244         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34245         exist.
34246         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34247
34248 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34249
34250         Changes imported from coreutils.
34251         * lib/hard-locale.c: Assume <locale.h> exists.
34252         Include "strdup.h".
34253         (GLIBC_VERSION): New macro.
34254         (hard_locale): Assume setlocale exists.
34255         Rewrite to avoid #ifdef.
34256         Use strdup rather than malloc + strcpy.
34257         * lib/human.c: Assume <locale.h> exists.
34258         (human_readable): Assume localeconv exists.
34259
34260 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34261
34262         * modules/hard-locale (Depends-on): Add strdup.
34263
34264 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
34265
34266         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34267         convert T2, not T.  (Imported from libc.)
34268
34269 2004-11-30  Simon Josefsson  <jas@extundo.com>
34270
34271         * modules/restrict (License): Change to LGPL.
34272
34273 2004-11-30  Simon Josefsson  <jas@extundo.com>
34274
34275         * m4/restrict.m4: Add copyright and copying conditions.
34276
34277 2004-11-30  Simon Josefsson  <jas@extundo.com>
34278
34279         * m4/base64.m4: New file.
34280
34281 2004-11-30  Simon Josefsson  <jas@extundo.com>
34282
34283         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34284         base64.
34285
34286         * tests/test-base64.c: New file.
34287
34288         * modules/base64: New file.
34289
34290 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34291
34292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34293         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34294
34295         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34296
34297 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34298
34299         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34300         (__getcwd.c): Don't restore errno; glibc doesn't.
34301         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34302         first, falling back to our code only if its results look suspicious.
34303         Ensure that the resulting buffer is only as large as necessary.
34304
34305         * lib/readutmp.c: Include readutmp.h first.
34306         Include <errno.h>, since readutmp.h no longer does that.
34307         * lib/readutmp.h: Don't include <errno.h>,
34308         <sys/param.h>, <time.h>; not needed to establish interface.
34309         (errno): Remove decl.
34310         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34311         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34312         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34313
34314 2004-11-28  Simon Josefsson  <jas@extundo.com>
34315
34316         * lib/base64.h, base64.c: New file.
34317
34318 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34319
34320         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34321
34322 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34323
34324         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34325         (Depends-on): Remove pathmax, same.  Add mempcpy.
34326         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34327         (Makefile.am): Append getcwd.h to lib_SOURCES.
34328         (Include): Add getcwd.h.
34329         (Maintainer): Change from Jim Meyering to "all, glibc",
34330         since getdate now uses intended-for-glibc code.
34331         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34332         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
34333
34334 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34335
34336         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34337         HP's ANSI C compiler.
34338         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34339         Declaring int functions causes warnings on some modern systems and
34340         shouldn't be needed to compile on ancient ones.
34341         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34342         defined.
34343
34344         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34345         with the following changes.
34346         (__set_errno): Parenthesize properly.
34347         Include <stdbool.h>.
34348         (MIN, MAX, MATCHING_INO): New macros.
34349         (__getcwd): Define with prototype, not K&R form.
34350         Use heuristics to allocate default buffer on stack if possible.
34351         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34352         behavior, and to avoid the PATH_MAX limit when computing
34353         ../../../../...
34354         Use MATCHING_INO to compare inode number to file.
34355         Check for arithmetic overflow in size calculations.
34356         Fix bug in reallocation of dot array that caused getcwd to fail
34357         on directories nested deeper than 75.
34358         Be more careful about saving errno on error.
34359         Do not use realloc; use only free+malloc, as this is a bit
34360         more flexible and avoids a needless copy operation.
34361         Do not inspect st_dev and st_ino for symbolic links; POSIX
34362         doesn't specify the latter.
34363         Check for closedir errors.
34364         Avoid needless casts.
34365         Use "#ifdef weak_alias" around weak_alias, to be like other
34366         glibc code.
34367         The following changes to getcwd.c have effect only when used in
34368         gnulib; they have no effect inside glibc proper.
34369         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34370         as alloca isn't used.
34371         (alloca, __alloca): Likewise.
34372         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34373         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34374         unconditionally, as gnulib assumes C89 or better.
34375         Do not include <sys/param.h>.
34376         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34377         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34378         better.
34379         (NULL) [!defined NULL]: Remove; we assume C89 or better.
34380         Include <dirent.h> in a way that is compatible with modern Autoconf.
34381         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34382         New macros, if not already defined.
34383         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34384         Use "_LIBC", not "defined _LIBC", for consistency.
34385         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34386         a mempcpy module.
34387         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34388         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
34389         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34390         credit only to Jim Meyering and adjust the copyright dates.
34391         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34392         <stdlib.h>, <unistd.h>, "pathmax.h".
34393         Instead, include "xgetcwd.h" (first) and "getcwd.h".
34394         (INITIAL_BUFFER_SIZE): Remove.
34395         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34396
34397 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34398
34399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34400         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
34401         Use the _ONCE methods, for efficiency.
34402         Check for fcntl.h.  In test program, include <errno.h>
34403         and <fcntl.h> if available.  Remove old K&R cruft from
34404         test program.  Check for common errors in GNU/Linux,
34405         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
34406         don't do AC_LIBOBJ, as that's getcwd.m4's job.
34407         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34408         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
34409         name accordingly.
34410         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
34411         accommodate new getcwd.c.
34412         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34413         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34414         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34415         that's all we need now.
34416
34417 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34418
34419         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34420         argp-parse.c depends on getopt internals, that means we should
34421         always use our getopt, to be on the safe side.
34422         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34423         order not to spoil the result of an eventual previous invocation
34424         of gl_GETOPT_SUBSTITUTE.
34425
34426 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34427
34428         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34429         redefinition warnings. To avoid them, include the defines
34430         in `#if !defined __need_getopt ... #endif'. The only place
34431         where __getopt_argv_const is used is in definitions
34432         of getopt_long and getopt_long_only below, which are as well
34433         protected by `#ifndef __need_getopt'.
34434         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34435         __need_getopt after including <stdio.h> and <unistd.h> These
34436         headers might have defined it.
34437
34438 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34439
34440         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34441
34442 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34443
34444         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34445         (futimens): New function, which uses futimes if available.
34446         (futimens, utimens): Support timespec==NULL, with same semantics
34447         as utime and utimens.
34448         * lib/utimens.h (futimens): New decl.
34449
34450 2004-11-23  Jim Meyering  <jim@meyering.net>
34451
34452         * lib/getopt_.h: Remove trailing blanks.
34453
34454 2004-11-23  Jim Meyering  <jim@meyering.net>
34455
34456         * lib/__fpending.c: Add comment.
34457
34458 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
34459
34460         * modules/canonicalize (Depends-on): Add xreadlink.
34461         Problem reported by James Youngman.
34462
34463 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34464
34465         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34466         New macros.
34467         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34468         optopt): Use them instead of invoking ## directly; otherwise, the
34469         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34470
34471 2004-11-19  Bruno Haible  <bruno@clisp.org>
34472
34473         * lib/strtok_r.c: Move comments from here...
34474         * lib/strtok_r.h: ... to here.
34475
34476 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34477
34478         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34479         implementations that mishandle size_t overflow.
34480
34481 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34482
34483         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34484         might fail.  Problem reported by Yoann Vandoorselaere.
34485         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34486         implementations that mishandle size_t overflow.
34487
34488 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34489
34490         * modules/canon-host (Depends-on): Add strdup.
34491
34492 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34493
34494         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34495
34496 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34497
34498         * lib/canon-host.c: Include "strdup.h".
34499         (canon_host): Use getaddrinfo if available, so that IPv6 works.
34500         Use strdup instead of malloc/strcpy to duplicate strings.
34501
34502         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34503         (human_space_before_unit): New constant.
34504         * lib/human.c (human_readable): Support it.
34505
34506         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34507         (xgetcwd): Set errno correctly when failing.
34508         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34509         the failure is actually due to a PATH_MAX problem.
34510
34511         Further getopt changes to make it more likely that glibc will
34512         buy the changes back.
34513         * lib/getopt.c (POSIXLY_CORRECT): New constant.
34514         (getopt): Use it, so to preserve glibc semantic
34515         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34516         when compiling for libc.
34517         * lib/getopt_.h (__getopt_argv_const): Bring it back.
34518         (getopt_long, getopt_long_only): Use it.
34519
34520         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34521         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
34522         (getopt): Argv is now char * const *, as per standard.
34523         (_getopt_internal_r, _getopt_internal): Argv is now char **,
34524         not char *__getopt_argv_const *.
34525         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34526         _getopt_long_only_r): Likewise.
34527         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34528         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34529         _getopt_long_r, _getopt_long_only_r): Likewise.
34530         * lib/getopt_.h (__getopt_argv_const): Remove.
34531         (getopt): Argv is now char * const *, as per standard.
34532
34533         * lib/getdate.y (tORDINAL): New token.
34534         (day, relunit): Allow it for relative times.
34535         (relative_time_table): Use tORDINAL for ordinals.
34536
34537 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34538
34539         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34540         Document that "second" isn't allowed as an ordinal number.
34541
34542 2004-11-16  Jim Meyering  <jim@meyering.net>
34543
34544         * modules/closeout (Depends-on): Add fpending.
34545
34546 2004-11-15  Jim Meyering  <jim@meyering.net>
34547
34548         * lib/closeout.c: Include "__fpending.h" once again.
34549         Include <stdbool.h>.
34550         (close_stdout): Don't fail just because stdout was closed initially,
34551         since some programs don't write to stdout in the normal course of
34552         operation (other than --version and --help), and we don't want this
34553         function to make e.g. `touch file >&-' fail.
34554         But do fail if it was closed and someone has tried to write to it.
34555         E.g., `printf foo >&-' must fail.
34556
34557 2004-11-13  Jim Meyering  <jim@meyering.net>
34558
34559         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34560
34561 2004-11-12  Simon Josefsson  <jas@extundo.com>
34562
34563         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34564         small doc fix is still pending.
34565
34566 2004-11-11  Simon Josefsson  <jas@extundo.com>
34567
34568         * modules/strtok_r: New file.
34569
34570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34571         strtok_r.
34572
34573 2004-11-11  Simon Josefsson  <jas@extundo.com>
34574
34575         * m4/strtok_r.m4: New file.
34576
34577         * m4/getopt.m4: Replace opterr.
34578
34579 2004-11-11  Simon Josefsson  <jas@extundo.com>
34580
34581         * lib/strtok_r.h, strtok_r.c: New file.
34582
34583 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34584
34585         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34586         of replacing opterr, getopt, etc.  This should handle the
34587         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34588
34589 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34590
34591         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34592         we can stop lying to compilers about the constness of argv when we
34593         are compiled outside glibc.
34594         (getopt, getopt_long, getopt_long_only): Use it.
34595         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34596         _getopt_internal, getopt): Likewise.
34597         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34598         _getopt_long_only_r): Likewise.
34599         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34600         _getopt_long_r, _getopt_long_only_r): Likewise.
34601
34602         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34603         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34604         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34605         the other external symbols.
34606         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34607         declaration, since the above renaming now works around collisions.
34608
34609 2004-11-11  Jim Meyering  <jim@meyering.net>
34610
34611         * lib/linebreak.c: Remove trailing blanks.
34612         * lib/alloca_.h: Likewise.
34613         * lib/acosl.c: Likewise.
34614         * lib/euidaccess.c: Likewise.
34615         * lib/allocsa.h: Likewise.
34616
34617 2004-11-10  Simon Josefsson  <jas@extundo.com>
34618
34619         * m4/getaddrinfo.m4: New file.
34620
34621 2004-11-10  Simon Josefsson  <jas@extundo.com>
34622
34623         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34624
34625 2004-11-10  Simon Josefsson  <jas@extundo.com>
34626
34627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34628         getaddrinfo.
34629
34630         * modules/getaddrinfo: New file.
34631
34632 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34633
34634         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34635
34636 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34637
34638         * lib/mktime.c (SHR): New macro, which is a portable
34639         substitute for >> that should work even on Crays.
34640         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34641         Problem reported by Mark D. Baushke in
34642         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34643         * lib/getdate.y (SHR): Likewise.
34644         (tm_diff): Use it.
34645         * lib/strftime.c (SHR): Likewise.
34646         (tm_diff): Use it.
34647         * lib/quotearg.c (struct quoting_options): Use unsigned int for
34648         quote_these_too, so that right shifts are well defined.  All uses
34649         changed.
34650
34651 2004-11-10  Jim Meyering  <jim@meyering.net>
34652
34653         Ensure that no close failure goes unreported.
34654         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
34655         return early when it seems there's nothing to flush.
34656         Don't include __fpending.h.
34657
34658 2004-11-10  Jim Meyering  <jim@meyering.net>
34659
34660         * modules/closeout (Depends-on): Remove fpending.
34661
34662 2004-11-10  Jim Meyering  <jim@meyering.net>
34663
34664         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34665
34666 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34667
34668         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
34669         gl_FUNC_STRFTIME.
34670         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34671         and AC_REQUIRE when possible, to avoid duplicate checks.
34672         Check for <wchar.h>.
34673
34674 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34675
34676         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34677
34678 2004-11-09  Bruno Haible  <bruno@clisp.org>
34679
34680         * m4/sockpfaf.m4: New file.
34681
34682 2004-11-05  Bruno Haible  <bruno@clisp.org>
34683
34684         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34685         Reported by Mark D. Baushke <mdb@cvshome.org>.
34686
34687 2004-11-04  Bruno Haible  <bruno@clisp.org>
34688
34689         2004-09-11  Bruno Haible  <bruno@clisp.org>
34690                 * allocsa.valgrind: New file.
34691         2004-02-06  Bruno Haible  <bruno@clisp.org>
34692                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34693                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34694                 Reported by Christopher Seip <chris.seip@hp.com>.
34695
34696 2004-11-04  Bruno Haible  <bruno@clisp.org>
34697
34698         * modules/allocsa (Files): Add lib/allocsa.valgrind.
34699         (Makefile.am): Distribute it.
34700
34701 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34702
34703         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34704         with errno == ERANGE if the buffer is too small.
34705         Problem reported by Mark D. Baushke.
34706
34707 2004-11-03  Albert Chin  <china@thewrittenword.com>
34708             Paul Eggert  <eggert@cs.ucla.edu>
34709
34710         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34711         equivalent, substitute $ac_type for equivalent type rather than
34712         blindly using uint32_t *always* which won't work if uint32_t is not
34713         available.  Define _UINT32_T to work around typedef of uint32_t if
34714         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34715         2.5.1.
34716
34717 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34718
34719         * m4/jm-macros.m4: Sync from coreutils.
34720         (gl_MACROS): Check for mbrlen, for pathchk.
34721         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34722
34723 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34724
34725         * lib/xreadlink.c (MAXSIZE): New macro.
34726         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
34727         size does not exceed MAXSIZE.  Avoid cast.
34728         As suggested by Mark D. Baushke in
34729         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34730         if readlink fails with buffer size just under MAXSIZE, try again
34731         with MAXSIZE.
34732
34733 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34734
34735         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34736
34737 2004-11-02  Derek R. Price  <derek@ximbiot.com>
34738         and  Paul Eggert  <eggert@cs.ucla.edu>
34739
34740         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34741         (get_date): Overparenthesize to avoid GCC warning.
34742
34743 2004-11-02  Bruno Haible  <bruno@clisp.org>
34744
34745         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34746         returns void.
34747
34748 2004-11-02  Bruno Haible  <bruno@clisp.org>
34749
34750         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34751         function returns void.
34752
34753 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34754
34755         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34756         fflush_unlocked, flockfile, funlockfile, funlockfile,
34757         fputs_unlocked, putc_unlocked.
34758
34759 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34760
34761         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34762         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34763         already declared.
34764
34765 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34766
34767         * modules/getdate (Files): Add doc/getdate.texi.
34768         (Depends-on): Add setenv, xalloc.
34769
34770 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34771
34772         * lib/getdate.y: Add support for TZ="foo" within a date string.
34773         Fix some bugs near time_t boundaries.  Reject dates with
34774         out-of-range components, e.g., "Sept 31".
34775         Include <stdlib.h>, "setenv.h", "xalloc.h".
34776         (ISDIGIT_LOCALE): Remove; unused.
34777         Note that the TZ and time functions used here are not reentrant.
34778         (mktime_ok, get_tz): New functions.
34779         (TZBUFSIZE): New constant.
34780         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
34781         This requires that we sometimes generate our own TZ="XXX..." setting.
34782
34783 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34784
34785         * doc/getdate.texi: New file, from coreutils with modifications for
34786         the new TZ parsing.
34787
34788 2004-10-27  Derek R. Price  <derek@ximbiot.com>
34789
34790         * lib/mktime.c (not_equal_tm): Remove redundant check.
34791
34792 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34793
34794         * modules/regex (lib_SOURCES): Add regex.c.
34795         Reported by James Youngman in
34796         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34797
34798 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34799
34800         * lib/getdate.y: Use Bison 1.875 features, and some minor
34801         code cleanups.  This change does not affect semantics.
34802         Don't include <stdlib.h>; no longer needed.
34803         Don't include unlocked-io.h; only the "#if TEST" code uses
34804         stdio, and performance isn't crucial there.
34805         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34806         Bison 1.875 features as described below.
34807         All uses of "PC." replaced by "pc->".
34808         (YYSTYPE): Add a forward declaration.
34809         (yylex, yyerror): Use full prototypes in forward decls.
34810         Use "%pure-parser" rather than obsolescent "%pure_parser".
34811         Use %parse-param and %lex-param instead of obsolescent
34812         YYPARSE_PARAM and YYLEX_PARAM.
34813         (meridian_table, month_and_day_table, time_units_table,
34814         relative_time_table, time_zone_table, military_table,
34815         lookup_zone, lookup_word, get_date):
34816         Use NULL instead of 0 where appropriate.
34817         (to_hour): Avoid abort (), to avoid a dependency on
34818         stdlib.h.
34819         (yyerror, yylex): Now accepts parser_control * arg.
34820         (main) [TEST]: Use '\0' rather than 0 for char.
34821
34822 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34823
34824         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34825
34826 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34827
34828         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34829         It's now the caller's responsibility to handle the case where
34830         !HAVE_GETPAGESIZE && !defined getpagesize.
34831
34832         * lib/mktime.c (leapyear): Arg is long int, not int.
34833
34834 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
34835
34836         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34837
34838 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34839
34840         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34841         missing.  Problem reported by James Youngman.
34842
34843 2004-10-16  Simon Josefsson  <jas@extundo.com>
34844
34845         * gnulib-tool: Fix comments.  Fix parse problem.
34846         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34847
34848 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34849
34850         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34851         implementation of getopt_long.  Problem reported by Alexander Taler in:
34852         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34853
34854 2004-10-15  Bruno Haible  <bruno@clisp.org>
34855
34856         * gnulib-tool: Untabify. Initialize supplied_libname.
34857         (func_usage): More homogenous output.
34858         (func_modules_transitive_closure, func_modules_to_filelist,
34859         func_emit_lib_Makefile_am): New functions.
34860         (func_import): New function, extracted from big case statement. Use
34861         func_get_license, func_modules_transitive_closure,
34862         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
34863         opt_lgpl. Don't use test -a, as it's not portable.
34864         (func_create_testdir): Use func_modules_transitive_closure,
34865         func_modules_to_filelist, func_emit_lib_Makefile_am.
34866
34867 2004-10-15  Bruno Haible  <bruno@clisp.org>
34868
34869         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
34870
34871 2004-10-15  Bruno Haible  <bruno@clisp.org>
34872
34873         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
34874         the portions belonging to each module.
34875         Suggested by Derek Robert Price <derek@ximbiot.com>.
34876
34877 2004-10-12  Simon Josefsson  <jas@extundo.com>
34878
34879         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34880         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
34881         to real functions.
34882
34883 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34884
34885         * modules/vsnprintf: New file.
34886
34887 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34888
34889         * m4/vsnprintf.m4: New file.
34890
34891 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34892
34893         * lib/vsnprintf.h: New file.
34894         * lib/vsnprintf.c: New file.
34895
34896 2004-10-11  Bruno Haible  <bruno@clisp.org>
34897
34898         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
34899         vsnprintf.
34900
34901 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34902
34903         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
34904
34905 2004-10-07  Bruno Haible  <bruno@clisp.org>
34906
34907         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
34908         fits into the provided buffer.
34909
34910 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34911
34912         * lib/diacrit.c, diacrit.h: Add GPL notice.
34913
34914         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
34915         notice.
34916         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
34917         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
34918         This avoids a potential constant-folding bug.
34919
34920 2004-10-05  Bruno Haible  <bruno@clisp.org>
34921
34922         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
34923         for the declaration of strsep.
34924
34925 2004-10-05  Bruno Haible  <bruno@clisp.org>
34926
34927         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
34928
34929 2004-10-04  Simon Josefsson  <jas@extundo.com>
34930
34931         * modules/memmem: New file.
34932         * tests/test-memmem.c: New file.
34933         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
34934
34935 2004-10-04  Simon Josefsson  <jas@extundo.com>
34936
34937         * m4/memmem.m4: New file.
34938
34939 2004-10-04  Simon Josefsson  <jas@extundo.com>
34940
34941         * lib/memmem.h: New file.
34942         * lib/memmem.c: New file, taken from glibc.
34943
34944 2004-10-04  Simon Josefsson  <jas@extundo.com>
34945
34946         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
34947         '#ifdef USE_UNLOCKED_IO'.
34948
34949 2004-10-04  Simon Josefsson  <jas@extundo.com>
34950
34951         * config/srclist.txt: Add memmem from glibc.
34952
34953 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34954
34955         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
34956
34957         * modules/argmatch, modules/argp, modules/closeout, modules/error,
34958         modules/exclude, modules/getdate, modules/getline,
34959         modules/getndelim2, modules/getpass, modules/getpass-gnu,
34960         modules/getusershell, modules/linebuffer, modules/md5,
34961         modules/mountlist, modules/posixtm, modules/readtokens,
34962         modules/readutmp, modules/regex, modules/sha1,
34963         modules/version-etc, modules/yesno:
34964         Remove dependency on unlocked-io.
34965
34966 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34967
34968         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
34969
34970         * m4/unlocked-io.m4: Add copyright notice.
34971         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
34972
34973 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34974
34975         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
34976         * lib/xmalloc.c (xmemdup): Likewise.
34977         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
34978         XFREE): Remove these long-obsolescent macros.
34979         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
34980         * lib/xstrdup.c: Remove.
34981
34982         * lib/regex.c (re_comp): Cast gettext return value to char *,
34983         Problem reported by Martin Neitzel via Mark D. Baushke.
34984
34985 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34986
34987         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
34988         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
34989         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
34990         regex.c, sha1.c, version-etc.c, yesno.c:
34991         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
34992         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
34993         the includer's responsibility.
34994
34995         Sync from coreutils.
34996
34997         * lib/modechange.c (mode_compile): Don't decrement a pointer that
34998         points to the start of a string, as the C Standard says the
34999         resulting behavior is undefined.
35000
35001         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35002         simple -> simple_backups, numbered_existing ->
35003         numbered_existing_backups, numbered -> numbered_backups
35004         to avoid shadowing problems.  All uses changed.
35005         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35006         * lib/backupfile.c (check_extension, numbered_backup):
35007         Rename locals to avoid shadowing 'basename'.
35008         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35009         once.
35010
35011         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35012         * lib/.cvsignore: Add getopt.h.
35013
35014 2004-10-04  Bruno Haible  <bruno@clisp.org>
35015
35016         * modules/README: New file.
35017         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35018         not a module.
35019
35020 2004-10-02  Jim Meyering  <jim@meyering.net>
35021
35022         * lib/dirfd.h, getpagesize.h: Add copyright notice.
35023
35024 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35025
35026         * modules/strsep: New file.
35027
35028 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35029
35030         * m4/strsep.m4: New file.
35031
35032 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35033
35034         * lib/strsep.h: New file.
35035         * lib/strsep.c: New file.
35036
35037 2004-10-01  Simon Josefsson  <jas@extundo.com>
35038
35039         * lib/snprintf.c (snprintf): Handle size==0.
35040
35041 2004-10-01  Simon Josefsson  <jas@extundo.com>
35042             Bruno Haible  <bruno@clisp.org>
35043
35044         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35045         (snprintf): Declare 'args'.
35046
35047 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
35048
35049         * lib/snprintf.c: Remove comments as to why each header is needed.
35050
35051 2004-10-01  Bruno Haible  <bruno@clisp.org>
35052
35053         * MODULES.html.sh: Add strsep.
35054
35055 2004-09-30  Simon Josefsson  <jas@extundo.com>
35056
35057         * modules/snprintf: New file.
35058
35059 2004-09-30  Simon Josefsson  <jas@extundo.com>
35060
35061         * m4/snprintf.m4: New file.
35062
35063 2004-09-30  Simon Josefsson  <jas@extundo.com>
35064
35065         * lib/snprintf.h, lib/snprintf.c: New files.
35066
35067 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35068
35069         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
35070         (hol_entry_help): Never translate an empty string.
35071         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
35072         * lib/argp.h (OPTION_NO_TRANS): New option.
35073
35074 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35075
35076         * modules/argp (Maintainer): Replace Simon Josefsson
35077         by Sergey Poznyakoff.
35078
35079 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35080
35081         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
35082         changes merged back into glibc.
35083
35084 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35085
35086         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
35087
35088 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35089
35090         * lib/xvasprintf.c: Include xalloc.h.
35091         (xvasprintf): Use xalloc_die, not xmalloc_die.
35092
35093 2004-09-29  Bruno Haible  <bruno@clisp.org>
35094
35095         * modules/alloca-opt: New file, derived from modules/alloca.
35096         * modules/allocsa: Depend on alloca-opt instead of alloca.
35097         * modules/setenv: Likewise.
35098         * modules/vasnprintf: Likewise.
35099         * MODULES.html.sh: Add alloca-opt.
35100
35101 2004-09-28  Simon Josefsson  <jas@extundo.com>
35102
35103         * gnulib-tool: New parameter --lgpl, to asseert that modules are
35104         LGPL, and to replace license template from GPL to LGPL.
35105
35106 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35107
35108         * modules/dummy: Change license to LGPL.
35109
35110 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35111
35112         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
35113
35114 2004-09-24  Simon Josefsson  <jas@extundo.com>
35115
35116         * modules/minmax (License): Change from GPL to LGPL.
35117
35118 2004-09-23  Simon Josefsson  <jas@extundo.com>
35119
35120         * gnulib-tool (--import): Typo.
35121
35122 2004-09-23  Simon Josefsson  <jas@extundo.com>
35123
35124         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
35125
35126 2004-09-22  Bruno Haible  <bruno@clisp.org>
35127
35128         * modules/*: Add 'License' field.
35129         * gnulib-tool: Accept --extract-license option.
35130         (func_get_license): New function.
35131
35132 2004-09-21  Bruno Haible  <bruno@clisp.org>
35133
35134         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35135         Reported by Simon Josefsson.
35136
35137 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35138
35139         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35140         gl_AC_TYPE_LONG_LONG.
35141
35142 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35143
35144         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35145
35146 2004-09-18  Simon Josefsson  <jas@extundo.com>
35147         and  Paul Eggert  <eggert@cs.ucla.edu>
35148
35149         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35150         calls with autoreconf.  Define GL_LIB.
35151
35152 2004-09-14  Karl Berry  <karl@gnu.org>
35153
35154         * config/srclist.txt: unsync setenv.c, sigh.
35155
35156 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35157
35158         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35159         Problem reported by Bruno Haible in:
35160         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35161
35162 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35163
35164         * config/srclist.txt: Comment out argp-pvh.c.
35165
35166 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
35167
35168         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35169         in case some system header has #define'd it.  Problem reported by
35170         Soeren D. Schulze in
35171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35172
35173 2004-09-09  Karl Berry  <karl@gnu.org>
35174
35175         * regex.[ch]: delete from the root.  These were supposed to be
35176                 synced with emacs cvs, but this has not happened for about
35177                 a year, and anyway nothing else uses emacs regex.[ch].
35178                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35179                 lib/regex[.ch] is untouched.
35180
35181 2004-09-09  Bruno Haible  <bruno@clisp.org>
35182
35183         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35184
35185 2004-09-09  Bruno Haible  <bruno@clisp.org>
35186
35187         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35188         modifications.
35189         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35190
35191 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35192
35193         * modules/xvasprintf: New file.
35194         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35195
35196 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35197
35198         * lib/xvasprintf.h: New file.
35199         * lib/xvasprintf.c: New file.
35200         * lib/xasprintf.c: New file.
35201
35202 2004-09-08  Bruno Haible  <bruno@clisp.org>
35203
35204         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35205
35206 2004-09-08  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35209         length is > INT_MAX.
35210         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35211         more.
35212
35213 2004-09-08  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/stdint_.h: New file, taken from GNU clisp.
35216
35217 2004-09-08  Bruno Haible  <bruno@clisp.org>
35218             Oskar Liljeblad  <oskar@osk.mine.nu>
35219
35220         * modules/stdint: New file.
35221         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35222
35223 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35224
35225         Import from coreutils.
35226         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35227         strings on unbounded length.  alloca's performance benefits aren't
35228         that important here.
35229         (V_STRDUP): Remove.
35230         (parse_with_separator): New function, with most of the internals
35231         of the old parse_user_spec.  Allow user to omit both user and group,
35232         for compatibility with FreeBSD.
35233         Clone only the user name, not the entire spec.
35234         Do not set *uid, *gid unless entirely successful.
35235         Avoid memory leak in some failing cases.
35236         Fix regression for USER.GROUP reported by Dmitry V. Levin in
35237         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35238         (parse_user_spec): Rewrite to use parse_with_separator.
35239
35240 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35241
35242         * modules/userspec: Don't depend on alloca.
35243
35244 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35245
35246         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35247
35248 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35249
35250         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35251         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35252         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
35253
35254 2004-08-16  Simon Josefsson  <jas@extundo.com>
35255
35256         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35257         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35258         Add --dry-run for --import.
35259         Let user provided command line parameters override configure.ac
35260         settings.
35261
35262 2004-08-12  Simon Josefsson  <jas@extundo.com>
35263
35264         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35265         as discussed with Paul Eggert in threads rooted at
35266         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35267         and
35268         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35269         Before, the test was empty, and relied on ELIDE_CODE in source
35270         code.)
35271         (gl_PREREQ_GETOPT): New macro.
35272         (gl_GETOPT): Use them.
35273
35274 2004-08-12  Simon Josefsson  <jas@extundo.com>
35275
35276         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35277         * lib/getopt_.h: Renamed from getopt.h.
35278
35279 2004-08-12  Simon Josefsson  <jas@extundo.com>
35280
35281         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35282         Change default library name from libfoo to libgnu.
35283         Now, if you have a configure.ac that says:
35284                 gl_SOURCE_BASE(gl)
35285                 gl_M4_BASE(gl/m4)
35286                 gl_MODULES(error getopt etcetera)
35287                 gl_INIT
35288         you can import all you need by running:
35289                 ../gnulib/gnulib-tool --import
35290
35291         * modules/getopt (Files): Rename getopt.h to getopt_.h.
35292         (Makefile.am): Rewrite, use logic from argz.
35293         (Include): Use <getopt.h> instead of "getopt.h".
35294
35295 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35296
35297         * modules/argp (Files): Add m4/unlocked-io.m4.
35298         (Depends-on): Add extensions.
35299
35300 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35301
35302         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35303         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35304         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35305         Check for program_invocation_name, program_invocation_short_name,
35306         flockfile, funlockfile, features.h, _getopt_long_only_r.
35307
35308 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35309
35310         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35311         its complicated substitute.
35312         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35313         and program_invocation_name.
35314         (__argp_basename) [!_LIBC]: Remove; the only use was
35315         replaced by its body.
35316         (__argp_short_program_name): Change condition from
35317         !defined __argp_short_program_name to
35318         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35319         to match argp-namefrob.h.
35320         (__argp_failure): Don't assume strerror_r returns char *.
35321         * lib/argp-parse.c (N_): Define unconditionally.
35322         (argp_default_options): Fill out initializers with 0 to avoid
35323         gcc warnings.
35324
35325 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35326
35327         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35328         getopt1.c.
35329
35330 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35331
35332         Merge from coreutils.
35333
35334         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35335
35336         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35337         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35338
35339 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35340
35341         Merge from coreutils.
35342
35343         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35344         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
35345         for Reliant Unix 5.43.
35346
35347         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35348         (union fooround): Use uintmax_t, not long int.
35349         The rest is a merge from libc:
35350         [defined _LIBC]: Include <shlib-compat.h>.
35351         (_obstack) [defined _LIBC]: Remove after 2.3.4.
35352
35353         * lib/settime.c (settime): Recode to avoid warning with
35354         Sun Forte C 6U2.
35355
35356         * lib/strverscmp.c: Convert to UTF-8.
35357
35358 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35359
35360         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35361         m4/uintmax_t.m4.
35362
35363 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35364
35365         * modules/xalloc-die: New file.
35366         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35367
35368         * modules/md5 (Files): Add m4/uint32_t.m4.
35369         * modules/sha1: Renamed from modules/sha.
35370         (Files):
35371         Rename lib/sha.h to lib/sha1.h.
35372         Rename lib/sha.c to lib/sha1.c.
35373         Rename m4/sha.m4 to m4/sha1.m4.
35374         (lib_SOURCES): Likewise.
35375         (configure.ac): Rename gl_SHA to gl_SHA1.
35376         (Include): sha.h -> sha1.h.
35377
35378 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35379
35380         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35381         * m4/sha1.m4: Renamed from sha.m4.
35382         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
35383
35384 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35385
35386         * lib/obstack.h (obstack_empty_p):
35387         Don't assume that chunk->contents is suitably aligned.
35388         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35389         Likewise. Problem reported by Benno in
35390         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35391
35392         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35393         readable.  This could be improved further but it'd take some work.
35394
35395 2004-08-08  Simon Josefsson  <jas@extundo.com>
35396
35397         * modules/xgethostname (Depends-on): Remove exit and error (not
35398         used).
35399
35400         * modules/getpass-gnu: Add getpass.h.
35401         (Depends-on): Add stdbool.
35402         * modules/getpass: Add getpass.h.
35403
35404 2004-08-08  Simon Josefsson  <jas@extundo.com>
35405
35406         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35407         Check getpass declaration.
35408
35409 2004-08-08  Simon Josefsson  <jas@extundo.com>
35410
35411         * lib/xgethostname.c: Don't include error.h (not used).
35412
35413         * lib/getpass.h: Add.
35414         * lib/getpass.c: Include getpass.h first.
35415
35416 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
35417
35418         * lib/xalloc-die.c: New file.
35419         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35420         All uses removed.
35421         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35422         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35423         xalloc-die.c.
35424         (_, N_, xalloc_die): Move to xalloc-die.c.
35425         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35426         so that we needn't mess with xalloc_msg_memory_exhausted.
35427
35428         * lib/sha1.h: Renamed from sha.h.
35429         (SHA1_H): Renamed from _SHA_H.
35430         (sha1_ctx): Renamed from sha_ctx.
35431         (sha1_init_ctx): Renamed from sha_init_ctx.
35432         (sha1_process_block): Renamed from sha_process_block.
35433         (sha1_process_bytes): Renamed from sha_process_bytes.
35434         (sha1_finish_ctx): Renamed from sha_finish_ctx.
35435         (sha1_read_ctx): Renamed from sha_read_ctx.
35436         (sha1_stream): Renamed from sha_stream.
35437         (sha1_buffer): Renamed from sha_buffer.
35438         * lib/sha1.c: Likewise; renamed from sha.c.
35439         Do not include <sys/types.h>.
35440         Include <stddef.h> rather than <stdlib.h>.
35441
35442 2004-08-08  Bruno Haible  <bruno@clisp.org>
35443
35444         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35445         FILESYSTEM_PREFIX_LEN.
35446         * lib/progreloc.c: Likewise.
35447         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35448
35449 2004-08-06  Simon Josefsson  <jas@extundo.com>
35450
35451         * modules/progname (Depends-on): Don't depend on stdbool.
35452
35453 2004-08-06  Simon Josefsson  <jas@extundo.com>
35454
35455         * modules/getsubopt: New file.
35456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35457         getsubopt.
35458
35459 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35460
35461         More merge from coreutils.
35462
35463         * m4/utimens.m4, m4/utimecmp.m4: New files.
35464         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35465         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35466         prereq.m4, sha.m4: Import changes from coreutils.
35467
35468 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35469
35470         More merge from coreutils.
35471         * modules/raise, modules/readtokens0, modules/utimens:
35472         * modules/utimecmp, module/xnanosleep: New files.
35473         * modules/strftime: Add lib/strftime.h.
35474         Change include from <time.h> to "strftime.h".
35475         * modules/yesno: Add lib/yesno.h.
35476         * modules/backupfile: Remove lib/addext.c.
35477         * modules/euidaccess: Add stat-macros.h.
35478         * modules/canonicalize, modules/euidaccess,
35479         modules/filemode, modules/lchown, modules/makepath,
35480         modules/rmdir, modules/stat: Likewise.
35481
35482 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35483
35484         Merge from tar.
35485         * lib/argp-help.c (make_hol, hol_append): Don't assume that
35486         SIZE_MAX is a valid preprocessor constant.
35487         (__argp_basename): Change from "#ifndef _LIBC"
35488         to "#ifndef __argp_short_program_name", so that
35489         we don't compile these functions for tar.
35490
35491         More merges from coreutils.
35492         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35493         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35494         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35495         * lib/addext.c: Remove; no longer needed.
35496         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35497         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35498         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35499         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35500         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35501         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35502         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35503         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35504         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35505         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35506         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35507         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35508         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35509         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35510         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35511         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35512         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35513         Import changes from coreutils.
35514
35515 2004-08-05  Simon Josefsson  <jas@extundo.com>
35516
35517         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35518
35519 2004-08-05  Simon Josefsson  <jas@extundo.com>
35520
35521         * m4/getsubopt.m4: New file.
35522
35523 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35524
35525         Merge from coreutils.
35526
35527         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35528         * m4/getcwd-path-max.m4: New files.
35529
35530         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35531         FILESYSTEM_PREFIX_LEN ->
35532         FILE_SYSTEM_PREFIX_LEN.
35533         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35534         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35535         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35536         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35537
35538         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35539         prerequisite modules now handle the DOS stuff.
35540         Don't check for unistd.h.
35541
35542 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         Merge from coreutils.
35545
35546         * lib/.gdb-history: Remove; this doesn't belong here.
35547
35548         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35549         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35550         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35551         * lib/getcwd.c: New files.
35552
35553         * lib/dirname.h: Include <stdbool.h>.
35554         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35555         for consistency with POSIX terminology.  All uses changed.
35556         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35557         (strip_trailing_slashes): Use bool for booleans.
35558         * lib/stripslash.c (strip_trailing_slashes): Likewise.
35559
35560         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35561         sometimes returns a positive errno value even when it succeeds.
35562         (print_errno_message) [!LIBC]: Fall back on strerror if
35563         __strerror_r fails.
35564
35565         * lib/path-concat.c (mempcpy): Don't define if a system header defines
35566         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35567         (longest_relative_suffix): New function.
35568         (path_concat): Use it.  Assume first argument is not NULL.
35569         Port to DOS.  Omit redundant separators.
35570         Report an error instead of returning NULL.
35571         Use mempcpy instead of memcpy.
35572         (xpath_concat): Remove: not declared or used.
35573
35574         * lib/same.h: Include <stdbool.h>
35575         (same_name): Return bool, not int.
35576         * lib/same.c (same_name): Likewise.
35577         (errno): Don't declare; we assume C89 or better now.
35578
35579         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35580         if not already defined.
35581
35582         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35583         * lib/dup-safer.c (errno): Likewise.
35584
35585 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35586
35587         Merge from coreutils.
35588         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35589         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35590         * modules/path-concat: Don't depend on strdup.
35591
35592 2004-08-03  Simon Josefsson  <jas@extundo.com>
35593
35594         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35595         * lib/progname.h: Don't include stdbool.h.
35596
35597 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35598
35599         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35600         * MODULES.html.sh (func_all_modules): Remove fatal.
35601
35602 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35603
35604         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35605
35606 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35607
35608         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35609         working.
35610
35611 2004-08-02  Simon Josefsson  <jas@extundo.com>
35612
35613         * lib/getsubopt.h: New file, with comments from Bruno Haible.
35614         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35615         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35616
35617 2004-08-01  Simon Josefsson  <jas@extundo.com>
35618
35619         * lib/xgetdomainname.c: Include stdlib.h, for free().
35620
35621 2004-07-19  Bruno Haible  <bruno@clisp.org>
35622
35623         * MODULES.html.sh (func_all_modules): Add dummy.
35624
35625 2004-07-16  Simon Josefsson  <jas@extundo.com>
35626
35627         * modules/dummy: New file.
35628
35629 2004-07-16  Simon Josefsson  <jas@extundo.com>
35630
35631         * lib/dummy.c: New file.
35632
35633 2004-07-16  Bruno Haible  <bruno@clisp.org>
35634
35635         * lib/backupfile.h: Add extern "C" for C++.
35636         * lib/closeout.h: Likewise.
35637         * lib/copy-file.h: Likewise.
35638         * lib/findprog.h: Likewise.
35639         * lib/full-write.h: Likewise.
35640         * lib/pathname.h: Likewise.
35641         * lib/progname.h: Likewise.
35642         * lib/stpcpy.h: Likewise.
35643         * lib/stpncpy.h: Likewise.
35644         * lib/strcase.h: Likewise.
35645         * lib/strstr.h: Likewise.
35646         * lib/xalloc.h: Likewise.
35647
35648         * lib/mbswidth.h: Add extern "C" for C++.
35649         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35650
35651 2004-07-13  Robert Millan  <robertmh@gnu.org>
35652
35653         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35654
35655 2004-07-09  Simon Josefsson  <jas@extundo.com>
35656
35657         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
35658         failed without this.)
35659
35660 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35661
35662         * modules/chown (Files): Add lib/fchown-stub.c, since
35663         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35664
35665 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35666
35667         * lib/fchown-stub.c: New file.
35668
35669 2004-06-24  Jim Meyering  <jim@meyering.net>
35670
35671         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35672
35673 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35674
35675         * modules/argz: Omit "#include".
35676
35677         * MODULES.html.sh (func_all_modules): Add calloc, to match
35678         2004-06-01 addition of calloc module.
35679
35680 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35681
35682         * m4/argz.m4: New file, which is autoupdated from libtool.
35683
35684 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35685
35686         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35687         libtool.
35688
35689 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35690
35691         * config/srclist-update: Don't insist on "USA." before the
35692         close-comment, as libtool omits the period and puts the */ on a
35693         separate line.
35694         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35695         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35696
35697 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
35698
35699         * modules/argz: New file.
35700         * MODULES.html.sh (func_all_modules): Add argz.
35701
35702 2004-06-12  Jim Meyering  <jim@meyering.net>
35703         and  Paul Eggert  <eggert@cs.ucla.edu>
35704
35705         * modules/hash (Files): Add lib/xalloc.h.
35706         * modules/pipe (Depends-on): Add wait-process.
35707         * modules/stat (Depends-on): Add xalloc.
35708         * modules/userspec (Files): Add lib/userspec.h.
35709         * modules/xstrto
35710
35711         Upgrade from gettext-0.13.
35712         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35713         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35714         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35715
35716 2004-06-10  Jim Meyering  <jim@meyering.net>
35717
35718         * lib/calloc.c: New file.
35719
35720 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35721
35722         * lib/getdate.y (yylex): Allow space between sign and number.
35723         Problem reported by Dan Jacobson.
35724
35725 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35726
35727         Merge from coreutils CVS.
35728
35729         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35730         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35731         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35732         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35733         xstrtol.m4: Fix copyright date and/or serial number.
35734
35735         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35736         See if we need an fchown replacement.
35737         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35738         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35739         and use the replacement function if we detect either defect.
35740
35741         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35742         gl_UTIMECMP.
35743
35744 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35745         and  Jim Meyering  <jim@meyering.net>
35746
35747         Merge from coreutils CVS.
35748
35749         * lib/stat-macros.h: New file, with contents from file-type.h
35750         and coreutils' system.h.
35751         * lib/file-type.c: Include "stat-macros.h".
35752         * lib/file-type.h (file_type): Move all macro definitions to new file,
35753         stat-macros.h.
35754
35755         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35756         Wrap old code with this conditional.
35757         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35758         function that does not dereference symlinks.
35759         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35760
35761         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35762         dependency problems.
35763         (xreadlink): Accept new arg SIZE, for efficiency.
35764         All decls and uses changed.
35765         * lib/xreadlink.h: Include <stddef.h>, for size_t.
35766
35767         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35768         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35769
35770         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35771         sysexits.h.
35772
35773 2004-06-01  Jim Meyering  <jim@meyering.net>
35774
35775         * m4/calloc.m4: New file.
35776
35777 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
35778
35779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35780         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
35781         Also, fix a typo in a diagnostic.
35782
35783 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35784
35785         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35786         or AC_FUNC_REALLOC.
35787
35788 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
35789
35790         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35791         macros to be defined.
35792         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35793         the allocator returns NULL because the requested size is zero.
35794
35795 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35796
35797         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35798         var.  Add comment explaining why libc still defines it.  This
35799         merges the following patch from glibc:
35800         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35801
35802 2004-05-20  Andreas Schwab  <schwab@suse.de>
35803
35804         * m4/free.m4: Replace free if it not known to work, not the other
35805         way round.
35806
35807 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35808
35809         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
35810         present in glibc since revision 1.1 of this file.
35811         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35812         obstack_alignment_mask, obstack_alloc, obstack_base,
35813         obstack_blank, obstack_blank_fast, obstack_chunk_size,
35814         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35815         obstack_grow0, obstack_init, obstack_int_grow,
35816         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35817         obstack_next_free, obstack_object_size, obstack_ptr_grow,
35818         obstack_ptr_grow_fast, obstack_room): Remove declarations of
35819         nonexistent functions.
35820
35821 2004-05-18  Karl Berry  <karl@gnu.org>
35822
35823         * config/srclist.txt: break link for vasnprintf.c.
35824
35825 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35826
35827         Port obstack to the AS/400, where pointers are 16 bytes wide and
35828         you cannot cast an integer to a valid pointer.  This patch is
35829         currently waiting to be integrated into glibc; see
35830         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35831
35832         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35833         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35834         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35835         (struct obstack): temp member is now a union of a pointer and
35836         an integer, instead of an integer.  All integer uses changed.
35837         This does not affect the physical layout of struct obstack,
35838         except on hosts (like the AS/400) where the size or alignment of
35839         void * is greater than that of ptrdiff_t.
35840         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35841         __STDC__)]: Store temporary in pointer member of union, not
35842         integer member.
35843         * lib/obstack.c: Include <stddef.h>, for offsetof.
35844         (struct fooalign): Remove; it doesn't need a name.
35845         (union fooround): Change double to long double, and add void *.
35846         (DEFAULT_ALIGNMENT): Use offsetof to compute.
35847         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35848         not a macro.  Hence the values are always int; so remove all
35849         casts-to-int in uses.
35850
35851 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35852
35853         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35854         we can get this patch merged into glibc.
35855
35856 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35857             Paul Eggert  <eggert@cs.ucla.edu>
35858
35859         * m4/argp: Depend on alloca.
35860
35861 2004-05-17  Derek R. Price  <derek@ximbiot.com>
35862             Paul Eggert  <eggert@cs.ucla.edu>
35863
35864         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
35865         freecoding.
35866
35867 2004-05-17  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
35870         precision that consists of a '.' followed by an empty digit string.
35871         Patch by Tor Lillqvist <tml@iki.fi>.
35872
35873 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35874
35875         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
35876         for backward compatibility with older code.  We need our own
35877         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
35878         it under some other name, and our alloca.h will define it.
35879
35880 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35881             Derek Price  <derek@ximbiot.com>
35882
35883         * lib/alloca.c: Include <alloca.h>, to get our interface.
35884         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
35885         include <alloca.h> first.  Use C89 prototype for alloca; this
35886         requires including <stddef.h> for size_t.  Use extern "C" if C++.
35887         Use #elif for simplicity, since we can assume C89 now.
35888         Don't try to source the system alloca.h since it will not be found
35889         and to prevent recursively including its replacement.
35890         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
35891         * lib/regex.c: Likewise.
35892
35893 2004-05-16  Derek Price  <derek@ximbiot.com>
35894             Paul Eggert  <eggert@cs.ucla.edu>
35895
35896         getline cleanup.  This changes the getndelim2 API: both order of
35897         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
35898         no delimiter).
35899
35900         * lib/getline.c: Don't include stddef.h or stdio.h, since our
35901         interface does that.
35902         (getline): Always use getdelim, so that we don't have two
35903         copies of this code.
35904         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
35905         if available.
35906         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
35907         (GETNDELIM2_MAXIMUM): New macro.
35908         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
35909         instead of the old practice of delim2==0.  All callers changed.
35910         Return -1 on overflow, instead of returning junk.
35911         Do not set *linesize unless allocation succeeds.
35912         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
35913         that we include sys/types.h.
35914         * lib/getnline.h: Likewise.
35915         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
35916         (getndelim2): Reorder arguments.
35917         * lib/getnline.c (getnline, getndelim):
35918         Don't discard the NMAX argument.
35919         (getnline): Invoke getndelim, to avoid code duplication.
35920         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
35921         of (size_t) -1 by callers of the getnline family.
35922
35923 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35924
35925         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
35926         Check for gettimeofday.
35927         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
35928         Check for settimeofday, stime.
35929
35930 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35931
35932         * lib/nanosleep.c (suspended): Change its type from int to
35933         sig_atomic_t volatile.
35934         (first_call): Make it private to rpl_nanosleep, and have it
35935         be zero initially as that's a bit faster.
35936         (my_usleep): Round up fractional times instead of truncating them,
35937         as this is the usual meaning for 'sleep'.
35938
35939         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
35940         doesn't work.
35941         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
35942         (ENOSYS): Define if not defined.
35943         (settime): Fall back on stime if it exists and settimeofday fails.
35944         But don't bother with fallbacks if a method fails with errno == EPERM.
35945
35946 2004-05-11  Jim Meyering  <jim@meyering.net>
35947
35948         Prior to this change, the save_cwd caller required read access to the
35949         current directory on most systems (ones with the fchdir function).
35950
35951         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
35952         fails, try write-only, and finally, resort to using xgetcwd.
35953
35954 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35955
35956         * lib/obstack.c, obstack.h: Import changes from libc.
35957
35958 2004-04-28  Bruno Haible  <bruno@clisp.org>
35959
35960         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
35961         also implicitly appends .exe to executables.
35962         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
35963         accepts Windows pathnames.
35964         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35965         Treat Cygwin like Windows, since it now accepts Windows pathnames.
35966         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
35967         Treat Cygwin like Windows, since it now accepts Windows pathnames.
35968         Reported by Derek Robert Price <derek@ximbiot.com>.
35969
35970 2004-04-21  Karl Berry  <karl@gnu.org>
35971
35972         * config/srclist.txt (localcharset.c): break sync.
35973
35974 2004-04-20  Paul Eggert  <eggert@twinsun.com>
35975
35976         * m4/host-os.m4: Add a copyright notice.
35977
35978 2004-04-20  Jim Meyering  <jim@meyering.net>
35979
35980         Change UTILS_ to gl_ in AC_DEFINE'd names.
35981         Change utils_- and jm_-prefixed variables, too.
35982         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
35983         UTILS_FUNC_MKDIR_TRAILING_SLASH.
35984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
35985
35986         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
35987         Don't emit trailing blanks.
35988         Also rename jm_-prefixed variables to have gl_ prefix.
35989
35990         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
35991         Also rename jm_-prefixed variables to have gl_ prefix.
35992
35993         * m4/jm-macros.m4: Reflect the renamings.
35994         * m4/prereq.m4: Likewise.
35995
35996 2004-04-20  Jim Meyering  <jim@meyering.net>
35997
35998         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
35999         memory.
36000
36001 2004-04-20  Jim Meyering  <jim@meyering.net>
36002             Bruno Haible  <bruno@clisp.org>
36003
36004         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36005         memory when realloc fails.
36006
36007 2004-04-19  Jim Meyering  <jim@meyering.net>
36008
36009         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36010         now that readutmp.c may call `free (0)'.
36011
36012 2004-04-19  Bruno Haible  <bruno@clisp.org>
36013
36014         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36015         * m4/inttypes_h.m4: Likewise.
36016         * m4/stdint_h.m4: Likewise.
36017         * m4/intmax_t.m4: Likewise.
36018         * m4/uintmax_t.m4: Likewise.
36019
36020 2004-04-18  Jim Meyering  <jim@meyering.net>
36021
36022         * m4/prereq.m4: Don't forbid jm_ prefix.
36023
36024         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36025         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36026         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36027         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36028         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36029         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36030         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36031         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36032         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36033         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36034         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36035         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36036         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36037         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36038         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36039         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36040         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36041         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36042         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36043
36044 2004-04-18  Jim Meyering  <jim@meyering.net>
36045
36046         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36047         failure, don't leak memory and do call END_UTMP_ENT.
36048
36049 2004-04-16  Jim Meyering  <jim@meyering.net>
36050
36051         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
36052         coreutils' stat program.
36053         (gl_PREREQ): Don't require jm_PREREQ_STAT.
36054
36055 2004-04-11  Paul Eggert  <eggert@twinsun.com>
36056
36057         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36058         C89.
36059         (CHAR_BIT): Remove, since we assume C89.
36060         Include <stdint.h> if available, as per current Autoconf CVS advice.
36061
36062 2004-03-31  Jim Meyering  <jim@meyering.net>
36063
36064         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
36065         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
36066         * m4/xalloc.m4: Likewise.
36067
36068 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36069
36070         Merge from coreutils.
36071
36072         * m4/inttostr.m4: New file.
36073         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
36074         Require AM_STDBOOL_H and gl_TIMESPEC instead.
36075         Require gl_CLOCK_TIME.
36076         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
36077
36078 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36079
36080         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
36081         not bool, to be more consistent with Unix conventions.
36082         Suggested by Bruno Haible.
36083
36084         Merge from coreutils.
36085
36086         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
36087         * lib/umaxtostr.c: New files.
36088
36089         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
36090         the usual <time.h> dance.
36091         (get_date): Change signature to support fractional time stamps.
36092         All callers changed.
36093         * lib/getdate.y: Include "getdate.h" first, as we can now
36094         assume C89 and don't need to worry about 'const'.
36095         Similarly, include "unlocked-io.h" near start, not in middle.
36096         Include <limits.h>.
36097         (textint.value): Use long int rather than int.
36098         (textint.digits): Use size_t rather than int.
36099         (BILLION, LOG10_BILLION): New constants.
36100         (parser_control): New member rel_ns.  Members day_ordinal,
36101         time_zone, month, day, hour, minutes, rel_year, rel_month,
36102         rel_day, rel_hour, rel_minutes, rel_seconds
36103         are now long int, not int.  Member seconds is now struct timespec,
36104         not int.  New member timespec_seen.  Members dates_seen, days_seen,
36105         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
36106         not int.
36107         (%union.intval): Now long int, not int.
36108         New member timespec.
36109         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
36110         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
36111         (spec): Now is a timespec or an item list.
36112         (timespec, items): New nonterminals.
36113         (time, rel, relunit, number, get_date):
36114         Add support for fractional seconds.
36115         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
36116         (gmtime, localtime, mktime): Remove decls; not needed with C89.
36117         (to_hour): First arg is now long int, not int.
36118         (to_year): Returns long int, not int.
36119         Don't treat year -70 like 70.
36120         (tm_diff): Returns long int, not int.
36121         (lookup_word): Use bool instead of int when appropriate.
36122         (yylex): Use size_t for count, not int.
36123         Detect overflow when parsing large integer constants.
36124         Add support for fractions.
36125         (get_date): Make pointers 'const' if possible.
36126         Use more-portable code to detect integer overflow.
36127         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
36128         Don't use ctime; it's not reliable if the year has >4 digits.
36129
36130         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
36131         This is for compatibility with BSD.
36132
36133         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
36134         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
36135         From coreutils' system.h.
36136
36137         * lib/userspec.c: Don't include "posixver.h".
36138         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36139         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36140         compatible extension.  Simplify code by removing a boolean int
36141         that was always nonzero if a string was nonnull.
36142
36143 2004-03-30  Jim Meyering  <jim@meyering.net>
36144
36145         Merge from coreutils.
36146
36147         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36148         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36149         on some systems one must include <grp.h> before it.
36150         Reported by Christian Krackowizer.
36151
36152 2004-03-30  Jim Meyering  <jim@meyering.net>
36153
36154         Merge from coreutils.
36155
36156         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36157
36158         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36159         an empty input stream.
36160
36161         * lib/readtokens.c: Include <stdbool.h>.
36162         (readtoken): Use `size_t' rather than int/long.
36163         All callers adjusted.
36164         Use `bool' rather than `int' where appropriate.
36165         Use memset rather than an explicit loop.
36166         Use x2nrealloc rather than xrealloc.
36167         Allow the use of `\0' as a delimiter.
36168         (readtokens): Likewise.
36169         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36170
36171 2004-03-30  Jim Meyering  <jim@meyering.net>
36172
36173         * m4/realloc.m4: Remove file, since now it does no more than
36174         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36175         the `configure.ac' section of module/realloc.
36176         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36177
36178 2004-03-30  Bruno Haible  <bruno@clisp.org>
36179
36180         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36181         nonnull.
36182
36183 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36184
36185         Merge changes to getloadavg.c from coreutils and Emacs.
36186
36187         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36188         Define to an expression, not to the empty string.
36189         Include cloexec.h and xalloc.h.
36190         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36191         Use set_cloexec_flag rather than rolling our own.
36192         * lib/cloexec.c, lib/cloexec.h: New files.
36193
36194 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36195
36196         * m4/cloexec.m4: New file.
36197
36198 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36199
36200         * lib/getopt.h: Sync with libc CVS.
36201
36202 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36203             Bruno Haible  <bruno@clisp.org>
36204
36205         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36206         mbswidth.
36207
36208 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36209             Bruno Haible  <bruno@clisp.org>
36210
36211         * lib/mbswidth.h: Include <wchar.h> only if
36212         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36213         <wchar.h>.
36214         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36215
36216 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36217
36218         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36219         Sync with libc CVS.
36220         * lib/getopt_int.h: New file, also synced from libc.
36221
36222 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36223
36224         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36225         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
36226         Bring back getopt.c, getopt.h, getopt1.c.
36227
36228 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36229
36230         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36231         All uses changed.  Check for sa_sigaction member; this fixes
36232         a bug first reported by Jason Andrade in
36233         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36234
36235 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36236
36237         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
36238         '#if' expressions.  Unlike the code it replaces, it does not
36239         depend on (defined _SC_PAGESIZE).  However, it does depend on
36240         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36241         first reported by Jason Andrade in
36242         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36243
36244 2004-02-25  Simon Josefsson  <jas@extundo.com>
36245
36246         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36247
36248 2004-02-25  Simon Josefsson  <jas@extundo.com>
36249
36250         * lib/strdup.h: New file.
36251         * lib/strdup.c: Include it.
36252         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36253         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36254
36255 2004-02-23  Karl Berry  <karl@gnu.org>
36256
36257         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36258         (from fencepost.gnu.org:/gd/gnuorg).
36259
36260 2004-02-23  Karl Berry  <karl@gnu.org>
36261
36262         * config/srclistvars.sh (GNUORG) [karl]: redefine.
36263         * config/srclist.txt: add maintain/standards documents.
36264
36265 2004-02-18  Bruno Haible  <bruno@clisp.org>
36266
36267         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36268         Reported by Derek Robert Price <derek@ximbiot.com>.
36269
36270 2004-02-16  Karl Berry  <karl@gnu.org>
36271
36272         * config/mkinstalldirs, install-sh: update from automake.
36273
36274 2004-02-06  Karl Berry  <karl@gnu.org>
36275
36276         * m4/po.m4: update from gettext 0.14.1.
36277
36278 2004-02-06  Karl Berry  <karl@gnu.org>
36279
36280         * lib/config.charset: update from gettext 0.14.1.
36281
36282 2004-02-05  Paul Eggert  <eggert@twinsun.com>
36283
36284         Add comments and code, prompted by suggestions from Bruno Haible
36285         for sh-quote.
36286         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
36287         describing the enum quoting_style values.
36288         * lib/quotearg.c (quotearg_alloc): New function.
36289         (quotearg_buffer_restyled): Treat lone { and } as special.
36290         Treat = as special.  Work around bug with older shells
36291         that "see" a '\' that is really the 2nd byte of a multibyte char.
36292         Quote empty string with shell_quoting_style.
36293
36294 2004-02-03  Bruno Haible  <bruno@clisp.org>
36295
36296         * m4/pipe.m4: New file, from GNU gettext.
36297
36298 2004-02-03  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/pipe.h: New file, from GNU gettext.
36301         * lib/pipe.c: New file, from GNU gettext.
36302
36303 2004-01-27  Bruno Haible  <bruno@clisp.org>
36304
36305         * m4/execute.m4: New file, from GNU gettext.
36306
36307 2004-01-27  Bruno Haible  <bruno@clisp.org>
36308
36309         * lib/execute.h: New file, from GNU gettext.
36310         * lib/execute.c: New file, from GNU gettext.
36311         * lib/w32spawn.h: New file, from GNU gettext.
36312
36313 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36314
36315         Merge from diffutils.
36316
36317         * lib/file-type.c (file_type): Add typed memory objects.
36318         * lib/file-type.h (S_TYPEISTMO): New macro.
36319
36320         * lib/c-stack.h (c_stack_action): Remove argv argument.
36321         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
36322         (die): Don't calculate message unless segv_action returns.
36323         (get_stack_location, min_address_from_argv, max_address_from_argv,
36324         volatile stack_base, volatile_stack_size): Remove.
36325         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36326         that every segmentation violation is a stack overflow.  (Ouch!)
36327         See Debian bug 136249 (still outstanding) for more info about why
36328         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36329
36330 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36331
36332         Exit-status fix from coreutils.
36333
36334         Use exit_failure consistently in place of EXIT_FAILURE,
36335         so that program exit statuses are consistent on failure.
36336
36337         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36338         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36339         * lib/argmatch.h: Comment fix to match the above.
36340         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36341         Now a macro referring to exit_failure, instead of a separate
36342         variable.  Include "exitfail.h" to get it.
36343         * lib/xstrtol.h: Include "exitfail.h".
36344         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36345
36346         * lib/long-options.c (parse_long_options): Use prototype
36347         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
36348         for clarity.
36349
36350 2004-01-21  Jim Meyering  <jim@meyering.net>
36351
36352         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36353         so as not to conflict with a different-sized __mktime_internal
36354         function in GNU libc.
36355         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36356         Problem building statically-linked `ls' reported by Michael Brunnbauer.
36357
36358 2004-01-20  Karl Berry  <karl@gnu.org>
36359
36360         * config/config.guess: update from config.
36361
36362         * config/srclistvars.sh: GNUWWWLICENSES for karl.
36363
36364 2004-01-20  Bruno Haible  <bruno@clisp.org>
36365
36366         Safer stack allocation.
36367         * lib/setenv.c: Include allocsa.h.
36368         (alloca): Remove fallback definition.
36369         (freea): Remove macro.
36370         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36371         instead of freea.
36372
36373 2004-01-20  Bruno Haible  <bruno@clisp.org>
36374
36375         * m4/eealloc.m4: New file, from GNU gettext.
36376
36377 2004-01-20  Bruno Haible  <bruno@clisp.org>
36378
36379         * m4/allocsa.m4: New file, from GNU gettext.
36380
36381 2004-01-20  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/xallocsa.h: New file, from GNU gettext.
36384         * lib/xallocsa.c: New file, from GNU gettext.
36385
36386 2004-01-20  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36389
36390 2004-01-20  Bruno Haible  <bruno@clisp.org>
36391
36392         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36393         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36394         specially.
36395
36396 2004-01-20  Bruno Haible  <bruno@clisp.org>
36397
36398         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36399         patch.
36400
36401 2004-01-20  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36404
36405 2004-01-20  Bruno Haible  <bruno@clisp.org>
36406
36407         * lib/eealloc.h: New file.
36408
36409 2004-01-20  Bruno Haible  <bruno@clisp.org>
36410
36411         * lib/binary-io.h: Avoid warnings on Cygwin.
36412
36413 2004-01-20  Bruno Haible  <bruno@clisp.org>
36414
36415         * lib/allocsa.h: New file, from GNU gettext.
36416         * lib/allocsa.c: New file, from GNU gettext.
36417
36418 2004-01-18  Karl Berry  <karl@gnu.org>
36419
36420         * doc/gpl.texi, doc/lgpl.texi: new files.
36421
36422 2004-01-18  Karl Berry  <karl@gnu.org>
36423
36424         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36425         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36426
36427 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36428
36429         Merge from coreutils.
36430
36431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36432         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36433         (gl_DEFAULT_POSIX2_VERSION): Move
36434         the documentation from 'configure' into 'config.hin',
36435         so that 'configure --help' isn't burdened by it and
36436         we don't have to worry about its formatting there.
36437         Reword the documentation so that it's more succinct
36438         and can be run together into a single paragraph.
36439         * m4/same.m4 (gl_SAME): Check for pathconf.
36440
36441 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36442
36443         Merge from coreutils.
36444
36445         * lib/posixver.c: Include posixver.h.
36446
36447         * lib/same.c: Include <stdbool.h>, <limits.h>.
36448         (_POSIX_NAME_MAX): Define if not defined.
36449         (MIN): New macro.
36450         (same_name): If file names are silently truncated, report
36451         that the file names are the same if they are the same after
36452         the silent truncation.
36453
36454         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36455         conversion function.
36456         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
36457         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
36458         longer needed.
36459
36460 2004-01-15  Jim Meyering  <jim@meyering.net>
36461
36462         Merge from coreutils.
36463
36464         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36465         if no library is required.
36466         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36467         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36468         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36469         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36470         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36471         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36472         value, $ac_cv_search_crypt, if it's "none required".
36473         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36474         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36475         not gl_FUNC_GETLOADAVG.
36476         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36477         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36478
36479 2004-01-15  Jim Meyering  <jim@meyering.net>
36480
36481         Merge from coreutils.
36482
36483         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
36484         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
36485         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36486
36487         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36488         optional configure-time default.
36489
36490         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36491
36492         * lib/xreadlink.c (xreadlink): Correct outdated comment.
36493
36494 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
36495
36496         Merge from coreutils.
36497
36498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36499         value, $ac_cv_search_nanosleep, if it's "none required".
36500
36501 2004-01-14  Paul Eggert  <eggert@twinsun.com>
36502
36503         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36504         with like-named macro in fnmatch.c.
36505         (EXT): Use an internal constant instead.
36506
36507         Merge fnmatch patches from glibc.
36508         * lib/fnmatch.c (mbsinit): Remove define.
36509         Add libc_hidden_ver (__fnmatch, fnmatch).
36510         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36511         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36512
36513 2004-01-14  Karl Berry  <karl@gnu.org>
36514
36515         * config/install-sh: update from automake.
36516
36517 2004-01-13  Karl Berry  <karl@gnu.org>
36518
36519         * config/install-sh: update from automake.
36520
36521 2004-01-09  Karl Berry  <karl@gnu.org>
36522
36523         * config/install-sh: update from automake.
36524
36525 2004-01-05  Karl Berry  <karl@gnu.org>
36526
36527         * config/config.{sub,guess}: update from config.
36528
36529 2003-12-31  Karl Berry  <karl@gnu.org>
36530
36531         * config/depcomp: update from automake.
36532
36533 2003-12-14  Karl Berry  <karl@gnu.org>
36534
36535         * lib/config.charset: update from gettext-runtime.
36536
36537 2003-12-03  Paul Eggert  <eggert@twinsun.com>
36538
36539         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36540         Bug reported by Alfred M. Szmidt.
36541
36542 2003-12-03  Bruno Haible  <bruno@clisp.org>
36543
36544         * m4/gettext.m4: Upgrade from gettext-0.13.
36545         * m4/po.m4: Upgrade from gettext-0.13.
36546         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36547         * m4/intmax.m4: New file, from gettext-0.13.
36548         * m4/printf-posix.m4: New file, from gettext-0.13.
36549
36550 2003-11-29  Karl Berry  <karl@gnu.org>
36551
36552         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36553
36554 2003-11-25  Paul Eggert  <eggert@twinsun.com>
36555             Bruno Haible  <bruno@clisp.org>
36556
36557         * lib/printf-parse.h: Don't include sys/types.h.
36558         (ARG_NONE): New macro.
36559         (char_directive): Change type of *arg_index fields to size_t.
36560         * lib/printf-parse.c: Don't include sys/types.h.
36561         (SSIZE_MAX): Remove macro.
36562         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36563         Remove unnecessary overflow check.
36564         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36565         fields.
36566
36567 2003-11-25  Bruno Haible  <bruno@clisp.org>
36568
36569         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36570
36571 2003-11-25  Bruno Haible  <bruno@clisp.org>
36572
36573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36574         gt_TYPE_SSIZE_T.
36575
36576 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36577
36578         * modules/alloca: Remove dependency on xalloc.
36579
36580 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36581
36582         * lib/alloca.c: Remove dependency on xalloc module.
36583         (xalloc_die): Remove.
36584         (memory_full) [!defined emacs]: New macro.
36585         [!defined emacs]: Don't include xalloc.h.
36586         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36587         address arithmetic overflows.  Change datatypes a bit to avoid
36588         unnecessary casts.
36589
36590 2003-11-22  Jim Meyering  <jim@meyering.net>
36591
36592         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36593         s/size/size_t/.
36594
36595 2003-11-21  Karl Berry  <karl@gnu.org>
36596
36597         * config/config.{sub,guess}: update from config.
36598
36599 2003-11-18  Karl Berry  <karl@gnu.org>
36600
36601         * config/config.{sub,guess}: update from config.
36602
36603         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36604
36605 2003-11-17  Paul Eggert  <eggert@twinsun.com>
36606
36607         * README: Mention that S+T cannot overflow if S is the size of
36608         an existing object and T is sufficiently small.
36609
36610 2003-11-17  Jim Meyering  <jim@meyering.net>
36611
36612         On systems without utime and without a utimes function capable of
36613         dealing with a NULL struct utimbuf* argument, this utime replacement
36614         could -- in unusual circumstances -- leak a file descriptor.
36615         * lib/utime.c: Include <unistd.h> and <errno.h>.
36616         (utime_null): Be sure to close `fd' and to preserve errno.
36617         Reported by Geoff Collyer via Arnold Robbins.
36618
36619 2003-11-17  Bruno Haible  <bruno@clisp.org>
36620
36621         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36622         (Depends-on): Add xsize.
36623
36624 2003-11-17  Bruno Haible  <bruno@clisp.org>
36625
36626         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36627
36628 2003-11-17  Bruno Haible  <bruno@clisp.org>
36629
36630         * lib/vasnprintf.c (alloca): Remove fallback definition.
36631         (freea): Remove definition.
36632         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36633         Reported by Paul Eggert.
36634
36635 2003-11-16  Paul Eggert  <eggert@twinsun.com>
36636             Bruno Haible  <bruno@clisp.org>
36637
36638         Protect against address arithmetic overflow.
36639         * lib/printf-args.h: Include stddef.h.
36640         (arguments): Change type of field 'count' to size_t.
36641         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36642         'unsigned int' where appropriate.
36643         * lib/printf-parse.h: Include sys/types.h.
36644         (char_directive): Change type of *arg_index fields to ssize_t.
36645         (char_directives): Change type of fields 'count', max_*_length to
36646         size_t.
36647         * lib/printf-parse.c: Include sys/types.h and xsize.h.
36648         (SSIZE_MAX): Define fallback value.
36649         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36650         instead of 'int' where appropriate. Check a_allocated, d_allocated
36651         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36652         * lib/vasnprintf.c: Include xsize.h.
36653         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36654         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36655         overflow. Avoid wraparound when converting a width or precision from
36656         decimal to binary.
36657
36658 2003-11-16  Bruno Haible  <bruno@clisp.org>
36659
36660         Update from GNU gettext.
36661         * lib/printf-parse.c: Generalize to it can be compiled for wide
36662         strings.
36663         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36664         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36665         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36666         SNPRINTF): New macros.
36667         Don't include <alloca.h> if the file is used inside libintl.
36668         (local_wcslen): New function, for Solaris 2.5.1.
36669         (VASNPRINTF): Use it instead of wcslen.
36670
36671 2003-11-16  Bruno Haible  <bruno@clisp.org>
36672
36673         * lib/xsize.h (xmax): New function.
36674         (xsum, xsum3, xsum4): Declare as "pure" functions.
36675
36676 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36677
36678         * modules/xalloc (Files): Undo latest change, since xalloc.h
36679         no longer needs SIZE_MAX or PTRDIFF_MAX.
36680
36681 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36682
36683         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36684         gl_PTRDIFF_MAX.
36685
36686 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36687
36688         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36689         "return", to pacify some unknown compiler.  Problem reported
36690         by Joerg Schilling.
36691
36692 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36693
36694         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36695         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36696         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
36697         heuristic is just as accurate as far as we know, and it removes a
36698         dependency on size_max.m4 and ptrdiff_max.m4.
36699
36700 2003-11-11  Bruno Haible  <bruno@clisp.org>
36701
36702         * modules/xsize (Files): Add m4/size_max.m4.
36703         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36704
36705 2003-11-11  Bruno Haible  <bruno@clisp.org>
36706
36707         * m4/size_max.m4: New file.
36708         * m4/ptrdiff_max.m4: New file.
36709         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36710         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36711         (gl_XALLOC): Invoke it.
36712
36713 2003-11-11  Bruno Haible  <bruno@clisp.org>
36714
36715         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36716         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36717         defined.
36718
36719 2003-11-10  Paul Eggert  <eggert@twinsun.com>
36720
36721         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36722         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36723         rejected some allocations of exactly SIZE_MAX - 2 bytes.
36724         From Bruno Haible.
36725         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36726         not (size_t) -1, since it's defined here.
36727
36728 2003-11-09  Karl Berry  <karl@gnu.org>
36729
36730         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36731
36732 2003-11-06  Paul Eggert  <eggert@twinsun.com>
36733
36734         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36735         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36736         Reject sizes of exactly SIZE_MAX bytes.
36737         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36738         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36739
36740 2003-11-05  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/xsize.h: Include limits.h, to avoid a possible collision with
36743         SIZE_MAX defined in <limits.h> on Solaris.
36744
36745 2003-11-04  Jim Meyering  <jim@meyering.net>
36746
36747         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36748         variable names, rather than @VAR@.
36749         * modules/poll: Likewise.
36750
36751 2003-11-04  Bruno Haible  <bruno@clisp.org>
36752
36753         * modules/xsize: New file.
36754         * modules/linebreak: Depend on xsize.
36755         * MODULES.html.sh (func_all_modules): Add xsize.
36756
36757 2003-11-04  Bruno Haible  <bruno@clisp.org>
36758
36759         * m4/xsize.m4: New file.
36760
36761 2003-11-04  Bruno Haible  <bruno@clisp.org>
36762
36763         * lib/xsize.h: New file.
36764         * lib/linebreak.c: Include xsize.h.
36765         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36766         argument for overflow.
36767         Suggested by Paul Eggert.
36768
36769 2003-11-03  Karl Berry  <karl@gnu.org>
36770
36771         * config/config.{guess,sub}: update from config.
36772
36773 2003-11-03  Jim Meyering  <jim@meyering.net>
36774
36775         * modules/userspec (lib_SOURCES): Add userspec.h.
36776         (Include): Add "userspec.h".
36777         Improve description.
36778
36779 2003-11-03  Jim Meyering  <jim@meyering.net>
36780
36781         * lib/userspec.c: Include "userspec.h".
36782         * lib/userspec.h: New file.
36783
36784 2003-11-03  Bruno Haible  <bruno@clisp.org>
36785
36786         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36787
36788 2003-11-03  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36791         available, to avoid (extremely rare) race condition.
36792         Suggested by Paul Eggert.
36793
36794 2003-11-02  Karl Berry  <karl@gnu.org>
36795
36796         * config/srclist.txt (vasprintf.c): sync broken, sigh.
36797
36798 2003-10-31  Paul Eggert  <eggert@twinsun.com>
36799
36800         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36801         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36802         (read_filesystem_list): Set and use me_type_malloced.
36803         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36804         whatever the type happens to be), for brevity and consistency.
36805         Check for size calculation overflow on Alphas running OSF/1.
36806
36807 2003-10-31  Jim Meyering  <jim@meyering.net>
36808
36809         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36810
36811         * lib/linebuffer.c: Include <string.h> for declaration of memset.
36812
36813 2003-10-30  Paul Eggert  <eggert@twinsun.com>
36814             Bruno Haible  <bruno@clisp.org>
36815
36816         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36817         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36818
36819 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36820
36821         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36822         netbsd*-gnu*.  Suggested by Robert Millan.
36823
36824 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36825
36826         * modules/group-member: Depend on stdbool.
36827
36828 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36829
36830         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36831
36832 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36833
36834         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
36835         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
36836         after the 'gnu' in these cases.  This fixes some bugs in the
36837         previous change, and is based on suggestions by Robert Millan.
36838
36839 2003-10-29  Paul Eggert  <eggert@twinsun.com>
36840
36841         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36842         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
36843         no longer needed.
36844         * lib/quotearg.c (quotearg_n_options): Use it.
36845         * lib/group-member.c: Include <stdbool.h>.
36846         (free_group_info): Arg is now const *; don't free arg.
36847         (get_group_info): Now returns bool and accepts struct group_info *,
36848         rather than returning a malloc'ed struct group_info *.
36849         All uses changed.  Check for overflow in internal size calculation.
36850
36851         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36852         rather than xmalloc/xrealloc.
36853         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36854         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
36855         conformance bug: the old code used a pointer after freeing the
36856         storage that it addressed.
36857         * lib/hash.c (hash_initialize): Simplify the code by using
36858         xalloc_oversized rather than doing it by hand.
36859         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36860         the buffer preserved.  Use free and xmalloc instead.
36861         * lib/quotearg.c (quotearg_n_options): Likewise.
36862         Use a simpler test for size overflow.  Don't use xalloc_oversized
36863         because unsigned int might be wider than size_t (!); this suggests
36864         that we should switch from unsigned int to size_t for slot numbers.
36865
36866 2003-10-28  Paul Eggert  <eggert@twinsun.com>
36867
36868         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
36869         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
36870         NetBSD kernels.  Requested by Richard Stallman.
36871
36872 2003-10-27  Paul Eggert  <eggert@twinsun.com>
36873
36874         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
36875         to allocate the returned structure.  Do not allocate a subarray,
36876         as x2nrealloc will do that.
36877         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
36878         instead of xnrealloc.
36879         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
36880
36881 2003-10-27  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/stdbool_.h: Better support for BeOS.
36884
36885 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36886
36887         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
36888         now uses inline.
36889
36890 2003-10-26  Paul Eggert  <eggert@twinsun.com>
36891
36892         * lib/xalloc.h (xalloc_oversized): New static inline function, for
36893         callers that want to do their own size-overflow checking.  Include
36894         <stdbool.h>, since xalloc_oversized returns bool.
36895         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
36896         to use xalloc_oversized.
36897
36898         Add two functions x2realloc, x2nrealloc, for programs that grow
36899         arrays dynamically by doubling their sizes.
36900         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
36901         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
36902         New functions.
36903
36904         Port to C99 semantics for 'inline' of external functions.
36905         Bug reported by Bruno Haible.
36906         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
36907         with the old contents of xnmalloc.
36908         (xnmalloc, xmalloc): Use it.
36909         (xnrealloc_inline): New static inline function,
36910         with the old contents of xnrealloc.
36911         (xnrealloc, xrealloc): Use it.
36912
36913         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
36914         that.
36915
36916 2003-10-26  Karl Berry  <karl@gnu.org>
36917
36918         * config/srclist.txt (COPYING.DOC): no longer available from
36919         /gd/gnuorg; don't know where the ultimate source is.
36920
36921 2003-10-25  Paul Eggert  <eggert@twinsun.com>
36922
36923         Fix several address-calculation bugs in the hash modules,
36924         plus some minor code cleanup.
36925
36926         * lib/hash.h: Include <stdbool.h>, for bool.
36927         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
36928         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
36929         hash_get_n_entries, hash_get_max_bucket_length,
36930         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
36931         hash_rehash): Use size_t rather than unsigned.
36932         * lib/hash.c (struct hash_table, hash_get_n_buckets,
36933         hash_get_n_buckets_used, hash_get_n_entries,
36934         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
36935         hash_get_entries, hash_do_for_each, hash_string, is_prime,
36936         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
36937         Likewise.
36938         (SIZE_MAX): Define if not defined.
36939         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
36940         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
36941         hash_print):
36942         Use const * when possible.
36943         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
36944         (check_tuning): Fix bug: if tuning parameters were very close to
36945         0 or 1, rounding errors could have caused subscript violations.
36946         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
36947         (hash_initialize): Add 'fail:' label
36948         to free table and return NULL, and use it to simplify code.
36949         Use calloc rather than clearing the storage ourself.
36950         (hash_initialize, hash_rehash): Check for arithmetic overflow in
36951         buffer size calculations.
36952         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
36953         Include <stddef.h>, for size_t.
36954         * lib/hash-pjw.c (hash_pjw): Likewise.
36955         Switch to method described by Bruno Haible.
36956         Include <limits.h>, for CHAR_BIT.
36957         (SIZE_BITS): New macro.
36958
36959 2003-10-23  Paul Eggert  <eggert@twinsun.com>
36960
36961         * m4/getline.m4 (AM_FUNC_GETLINE):
36962         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
36963         hosts.  Problem reported by Derek Robert Price in
36964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
36965         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
36966         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
36967
36968 2003-10-21  Paul Eggert  <eggert@twinsun.com>
36969
36970         * lib/getndelim2.c (getndelim2): When size calculation overflows,
36971         ceiling the allocation at NMAX bytes rather than silently
36972         discarding input bytes before NMAX is reached.  This makes
36973         a difference only if NMAX exceeds SIZE_MAX / 2.
36974
36975         * lib/obstack.c: Merge from glibc.
36976         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
36977         Add libc_hidden_def (_obstack_newchunk).
36978         (_obstack_free) [! defined _LIBC]: Remove.
36979         [defined _LIBC]: Make a strong alias from obstack_free, rather than
36980         a clone of the function body.
36981         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
36982         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
36983
36984         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
36985         glibc.
36986         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
36987         arg to memcpy.
36988
36989         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
36990         (obstack_ptr_grow_fast, obstack_int_grow_fast):
36991         Don't use lvalue casts, as GCC plans to remove support for them
36992         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
36993         was also present in the non-GCC version, indicating that this
36994         code had always been buggy and had never been widely used.
36995         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
36996         Use the fast variant of each macro, rather than copying the
36997         definiens of the fast variant; that way, we'll be more likely to
36998         catch future bugs in the fast variants.
36999
37000 2003-10-20  Bruno Haible  <bruno@clisp.org>
37001
37002         * modules/wait-process: New file.
37003         * MODULES.html.sh (func_all_modules): Add wait-process.
37004
37005 2003-10-20  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/wait-process.m4: New file.
37008
37009 2003-10-20  Bruno Haible  <bruno@clisp.org>
37010
37011         * lib/wait-process.h: New file, from GNU gettext.
37012         * lib/wait-process.c: New file, from GNU gettext.
37013
37014 2003-10-19  Jim Meyering  <jim@meyering.net>
37015
37016         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37017         HPUX 10.20.
37018
37019 2003-10-18  Karl Berry  <karl@gnu.org>
37020
37021         * config/config.guess: update from config.
37022
37023 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37024
37025         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37026         (getgroups): First arg is int, not size_t.
37027         Don't let 'free' mangle errno.
37028
37029 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37030
37031         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37032
37033 2003-10-16  Karl Berry  <karl@gnu.org>
37034
37035         * config/config.{guess,sub}: update from config.
37036
37037 2003-10-16  Jim Meyering  <jim@meyering.net>
37038
37039         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37040         memcpy.
37041
37042 2003-10-15  Paul Eggert  <eggert@twinsun.com>
37043
37044         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37045         (SIZE_MAX): Remove.
37046         (new_exclude, add_exclude_file): Initial size no longer needs to
37047         be a power of 2.
37048         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37049         our own address arithmetic overflow checking.
37050
37051         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37052         (fnmatch): Do not alloca more than 2000 wide characters;
37053         instead, use malloc for large buffers.
37054         Check for address arithmetic overflow, and return -1
37055         with errno set to ENOMEM in that case.
37056         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37057         (NEW_PATTERN): Do not alloca more than 8000 bytes;
37058         instead, return -1.  Check for address arithmetic overflow.
37059
37060 2003-10-14  Paul Eggert  <eggert@twinsun.com>
37061
37062         Handle invalid suffixes and overflow independently, so that
37063         callers can treat them independently as needed.  Fix some bugs in
37064         suffix handling, e.g., "100k@" was not diagnosed as an invalid
37065         suffix for a human-readable blocksize.  The major caller-visible
37066         change is the addition of a new
37067         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
37068         that both overflow and suffix chars were found.
37069
37070         * lib/human.c (humblock): Don't check separately for invalid suffix
37071         char; that is xstrtoumax's job (now that its bug is fixed).
37072         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
37073         INTMAX_MAX]: New macros.
37074         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
37075         TYPE_MAXIMUM): New macros.
37076         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
37077         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
37078         if overflow occurs, as it's what __strtol does and it's more useful
37079         in practice.
37080         (__xstrtol): If __strtol reports some error other than ERANGE,
37081         reflect it to the caller as LONGINT_INVALID.  If it reports
37082         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
37083         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
37084         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
37085         value.
37086         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
37087         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
37088         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
37089         [defined UINTMAX_MAX]: New macros.
37090
37091 2003-10-14  Bruno Haible  <bruno@clisp.org>
37092
37093         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
37094
37095 2003-10-14  Bruno Haible  <bruno@clisp.org>
37096
37097         * m4/sig_atomic_t: New file, from GNU gettext.
37098         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
37099
37100 2003-10-14  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
37103         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
37104         Also use volatile where needed.
37105
37106 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37107
37108         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
37109         Change maintainer from Bruno Haible to 'all'.
37110
37111 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37112
37113         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
37114
37115 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37116
37117         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
37118         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
37119         and define in terms of the other primitives.
37120         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
37121         (SIZE_MAX): Define if not already defined.
37122         (array_size_overflow): New function.
37123         (xalloc_die): Abort instead of exiting if 'error' returns.
37124         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
37125         (xmalloc, xrealloc): Use them.
37126         (xcalloc): Check for address arithmetic overflow.
37127         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
37128         a bit faster than strcpy.
37129
37130 2003-10-10  Simon Josefsson  <jas@extundo.com>
37131
37132         * modules/argp (Depends-on): Add restrict and strcase.
37133
37134 2003-10-10  Simon Josefsson  <jas@extundo.com>
37135
37136         * m4/argp.m4: Add AC_C_INLINE.
37137
37138 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37139
37140         Merge getpass from libc, plus a few fixes.
37141
37142         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37143         Include <stdbool.h>.
37144         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37145         __fsetlocking to empty.
37146         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37147         do include <bits/libc-lock.h>.
37148         Do not include <fcntl.h>; not needed.
37149         [_LIBC]: Include <wchar.h>.
37150         (NOTCANCEL_MODE): New macro.
37151         (flockfile, funlockfile) [_LIBC]: New macros.
37152         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37153         [!_LIBC]: New macros.
37154         (call_fclose): New function.
37155         (getpass): Use it.  Save tty stream separately; this simplifies the
37156         code and makes it more reliable if stdin happens to equal stdout.
37157         Invoke __fsetlocking on tty.
37158         Handle thread cancellation if needed.
37159         Namespace cleanup (use __tcgetattr, __getline).
37160         Use bool for Booleans.
37161         [USE_IN_LIBIO]: Handle wide streams.
37162         [!_LIBC]: Unconditionally do the fseek, since we don't know what
37163         stream might go where.
37164
37165         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37166         doesn't have to include <stdio.h> before us.
37167         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37168         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37169         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37170         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37171         if not declared, so that we can use getpass.c code from libc without
37172         rewriting it.
37173         (flockfile, ftrylockfile, funlockfile): New macros.
37174
37175 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37176
37177         * modules/getpass: Depend on stdbool.
37178
37179 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37180
37181         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37182
37183 2003-10-07  Karl Berry  <karl@gnu.org>
37184
37185         * config/config.{guess,sub}: update from config.
37186
37187 2003-10-06  Jim Meyering  <jim@meyering.net>
37188             Bruno Haible  <bruno@clisp.org>
37189
37190         This lets translators provide better translations for the
37191         "Written by ..." part of --version output.
37192         * lib/version-etc.h: Include stdarg.h.
37193         (version_etc_copyright): Declare as readonly.
37194         (version_etc): Make this function variadic with a NULL-terminated list
37195         of author name strings.
37196         (version_etc_va): New declaration.
37197         * lib/version-etc.c: Include stdarg.h, stdlib.h.
37198         (version_etc_copyright): Declare as readonly.
37199         (version_etc_va): New function. Provide a different translatable string
37200         for each possible number of authors < 10. Abbreviate when there are 10
37201         authors or more.
37202         (version_etc): Make this function variadic. Call version_etc_va.
37203         Suggestion from Gary V. Vaughan.
37204
37205         * lib/long-options.h (parse_long_options): Change prototype: the
37206         authors string is moved to the end and becomes variadic.
37207         * lib/long-options.c: Include stdarg.h.
37208         (parse_long_options): Make this function variadic, too.
37209         Call version_etc_va, not version_etc.
37210
37211 2003-10-06  Bruno Haible  <bruno@clisp.org>
37212
37213         * modules/version-etc-2: Remove file.
37214         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37215
37216 2003-10-06  Bruno Haible  <bruno@clisp.org>
37217
37218         * modules/fatal-signal: New file.
37219         * MODULES.html.sh (func_all_modules): Add fatal-signal.
37220
37221 2003-10-06  Bruno Haible  <bruno@clisp.org>
37222
37223         * m4/fatal-signal.m4: New file.
37224         * m4/signalblocking.m4: New file, from GNU gettext.
37225
37226 2003-10-06  Bruno Haible  <bruno@clisp.org>
37227
37228         * lib/version-etc-2.h: Remove file.
37229         * lib/version-etc-2.c: Remove file.
37230
37231 2003-10-06  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/fatal-signal.h: New file, from GNU gettext.
37234         * lib/fatal-signal.c: New file, from GNU gettext.
37235
37236 2003-10-05  Paul Eggert  <eggert@twinsun.com>
37237
37238         * README: Rework advice for preventing empty .o files.
37239         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
37240         not <sys/types.h>.
37241
37242 2003-10-04  Karl Berry  <karl@gnu.org>
37243
37244         * lib/argp*: update from libc.
37245
37246 2003-10-04  Karl Berry  <karl@gnu.org>
37247
37248         * config/config.{guess,sub}: update from config.
37249
37250 2003-10-02  Bruno Haible  <bruno@clisp.org>
37251
37252         * modules/lchown (Include): Add lchown.h.
37253         * modules/time_r (Include): Use "..." syntax.
37254         * modules/xgetdomainname (Include): Add xgetdomainname.h.
37255
37256 2003-10-01  Simon Josefsson  <jas@extundo.com>
37257
37258         * MODULES.html.sh (func_all_modules): Move gethostname from section
37259         'based on' to section 'lacking' POSIX:2001.
37260
37261 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
37262
37263         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37264         to output mode on the same stream.
37265
37266 2003-09-29  Paul Eggert  <eggert@twinsun.com>
37267
37268         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37269         Fix arg typo in previous patch.
37270
37271 2003-09-28  Jim Meyering  <jim@meyering.net>
37272
37273         * lib/error.c: Correct cpp indentation.
37274
37275 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37276
37277         * modules/free: New file.
37278
37279 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37280
37281         * m4/free.m4: New file.
37282
37283 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37284
37285         * lib/minmax.h (MIN, MAX)
37286         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37287         Omit the special code that used __typeof__, since we worry that
37288         it could be more trouble than it's worth.  See:
37289         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37290         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37291
37292         * lib/free.c: New file.
37293
37294 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
37295
37296         Trivial fixes to Makefile.am parts of module listings.
37297         * modules/strstr: Append strstr.h to lib_SOURCES.
37298         * modules/strcase: Likewise, for strcase.h.
37299
37300 2003-09-27  Karl Berry  <karl@gnu.org>
37301
37302         * config/mkinstalldirs: update from automake.
37303
37304 2003-09-26  Paul Eggert  <eggert@twinsun.com>
37305
37306         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37307         (error_tail): Do not loop, reallocating temporary buffer, since
37308         the output cannot contain more wide characters than the input
37309         contains bytes, the size must be big enough already.  This avoids
37310         one potential size overflow calculation.  Check for size overflow
37311         when calculating temporary buffer size.  Free temporary buffer
37312         when done, if it was allocated with malloc; this plugs a memory
37313         leak.  Remove casts from void * to pointers, that are no longer
37314         needed now that we're assuming C89 or better.
37315
37316         Merge error changes from glibc.
37317
37318         * lib/error.c, error.h: Update copyright notice header to match glibc.
37319         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37320         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37321         Disable cancellation while printing error.
37322         * lib/error.h: Prepend __ to parameter names.
37323
37324 2003-09-26  Jim Meyering  <jim@meyering.net>
37325
37326         * lib/error.c (error_tail): Move some declarations
37327         into inner scope where the local variables are used.
37328
37329 2003-09-26  Bruno Haible  <bruno@clisp.org>
37330
37331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37332         stpncpy().
37333         Don't define stpncpy through config.h; it's now done through stpncpy.h.
37334
37335 2003-09-26  Bruno Haible  <bruno@clisp.org>
37336
37337         * lib/stpncpy.h (gnu_stpncpy): New declaration.
37338         (stpncpy): Define as alias for gnu_stpncpy.
37339         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37340
37341 2003-09-25  Simon Josefsson  <jas@extundo.com>
37342
37343         * lib/xgetdomainname.h: New file.
37344         * lib/xgetdomainname.c: New file.
37345
37346 2003-09-25  Simon Josefsson  <jas@extundo.com>
37347             Bruno Haible  <bruno@clisp.org>
37348
37349         * modules/getdomainname: New file.
37350         * modules/xgetdomainname: New file.
37351         * MODULES.html.sh (func_all_modules): Add getdomainname,
37352         xgetdomainname.
37353
37354 2003-09-25  Simon Josefsson  <jas@extundo.com>
37355             Bruno Haible  <bruno@clisp.org>
37356
37357         * m4/getdomainname.m4: New file.
37358
37359 2003-09-25  Simon Josefsson  <jas@extundo.com>
37360             Bruno Haible  <bruno@clisp.org>
37361
37362         * lib/getdomainname.h: New file.
37363         * lib/getdomainname.c: New file.
37364
37365 2003-09-25  Karl Berry  <karl@gnu.org>
37366
37367         * lib/argp-fmtstream.c, argp-help.c: update from libc.
37368
37369 2003-09-25  Karl Berry  <karl@gnu.org>
37370
37371         * config/install-sh: update from automake.
37372
37373 2003-09-25  Bruno Haible  <bruno@clisp.org>
37374
37375         * modules/version-etc-2: New file, from modules/version-etc with
37376         modifications.
37377         * MODULES.html.sh (func_all_modules): Add version-etc-2.
37378
37379 2003-09-25  Bruno Haible  <bruno@clisp.org>
37380
37381         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37382         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37383
37384 2003-09-24  Simon Josefsson  <jas@extundo.com>
37385
37386         * modules/xgethostname: Add xgethostname.h.
37387
37388 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37389
37390         * lib/linebuffer.c (freebuffer): Don't free the argument, just
37391         the buffer associated with the argument.  Bug reported by
37392         Simon Josefsson.
37393
37394 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37395
37396         * README: Document assumptions that 'int' is at least 32 bits
37397         wide, that integer arithmetic is 2's complement without overflow,
37398         that there are no holes in integer values, that adding sizes of
37399         two nonoverlapping objects can't overflow, and that all-bits-zero
37400         yields scalar zero.  Fix spelling and capitalization typos.
37401
37402 2003-09-19  Karl Berry  <karl@gnu.org>
37403
37404         * lib/argp.h: update from libc.
37405
37406 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37407
37408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37409         to avoid spurious warnings like "AC_RUN_IFELSE was called before
37410         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37411
37412 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37413
37414         * gnulib-tool: Use "test -h", not "test -L", for portability
37415         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
37416         (tags_regexp): Remove, since \| doesn't conform to POSIX.
37417         (sed_extract_prog): Issue s commands one-by-one, rather than
37418         using \| in one s command.
37419
37420 2003-09-16  Paul Eggert  <eggert@twinsun.com>
37421
37422         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37423         input error, instead of returning NULL the next time we are called
37424         (and therefore losing track of errno).
37425
37426 2003-09-16  Bruno Haible  <bruno@clisp.org>
37427
37428         * gnulib-tool (func_create_testdir): Warn about duplicated
37429         dependencies.
37430
37431 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37432
37433         * modules/argmatch, modules/fatal, modules/obstack,
37434         modules/xalloc, modules/xgethostname: Sort dependencies by
37435         importance, not alphabetically.
37436
37437 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37438
37439         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37440         fails, so that the caller gets the proper errno.
37441
37442         * lib/readutmp.c (read_utmp): Likewise.
37443         Check for fstat error.  Close stream and free storage
37444         when failing.
37445
37446 2003-09-14  Karl Berry  <karl@gnu.org>
37447
37448         * config/srclist.txt (strdup.c): disable for c89 changes.
37449
37450 2003-09-14  Jim Meyering  <jim@meyering.net>
37451
37452         * lib/getloadavg.c: Correct cpp indentation.
37453         * lib/strdup.c: Likewise.
37454         * lib/vasnprintf.c: Likewise.
37455
37456 2003-09-14  Bruno Haible  <bruno@clisp.org>
37457
37458         * modules/fwriteerror: New file.
37459         * MODULES.html.sh (func_all_modules): Add fwriteerror.
37460
37461 2003-09-14  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/fwriteerror.h: New file.
37464         * lib/fwriteerror.c: New file.
37465
37466 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37467
37468         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37469         modules/xgethostname, modules/xalloc: Depend on exit.
37470
37471 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37472
37473         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37474
37475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37476         and AC_MINIX, too, so that their extensions are available.
37477
37478         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
37479         This macro has been superseded by gl_BACKUPFILE.
37480
37481         More patches to assume C89 or better.
37482
37483         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37484
37485         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37486         unconditionally.
37487         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37488         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37489         Include <string.h>, <stdlib.h> unconditionally.
37490         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37491         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37492         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37493         headers or for string.h.
37494         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37495         or strtoul.
37496
37497         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37498         headers.
37499         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37500         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37501         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37502         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37503         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37504         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37505         memcpy, memset.
37506         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37507         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37508         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37509         strtol.
37510         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37511         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37512         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37513         strtoul.
37514
37515 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37516
37517         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37518         * lib/obstack.c [!defined _LIBC]: Likewise.
37519         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37520         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37521         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37522
37523         More changes to assume C89 or better.
37524
37525         * lib/error.c (error_tail): Assume vprintf.
37526
37527         * lib/argmatch.c (getenv): Remove decl.
37528         * lib/progreloc.c (get_full_program_name): Define via prototype.
37529         * lib/setenv.c (clearenv): Likewise.
37530         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37531         needed.
37532         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37533         (malloc, memcpy): Remove decls.
37534         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37535         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37536         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37537         (memcpy): Remove macro.
37538         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37539         (__P): Remove.  All uses removed.
37540         (PTR): Remove.  All uses changed to void *.
37541         (CHAR_BIT, NULL): Remove.
37542         (spaces, zeros, memset_space, memset_zero)
37543         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37544         Remove.
37545         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37546         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37547         Define with prototype.
37548         Remove now-unnecessary prototype decl.
37549         (extra_args_spec): Assume ANSI C.  All uses changed.
37550         (extra_args_spec_iso): Remove.
37551         (my_strftime, emacs_strftimeu): Define via prototype.
37552         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37553         unconditionally.
37554         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37555         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37556         (strtoul, strtol): Remove decls.
37557         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37558         LONG_MAX): Remove.
37559         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37560         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
37561         (LOCALE_PARAM_PROTO): New macro.
37562         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37563         (INTERNAL (strtol), strtol): Define with a prototype.
37564         (PARAMS): Remove.  All uses removed.
37565         * lib/tempname.c: Include <string.h> unconditionally.
37566         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37567         * lib/xgethostname.c (main): Define with a prototype.
37568         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37569         Include <stdlib.h> unconditionally.
37570         (calloc, malloc, realloc, free): Remove decls.
37571         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37572         Include <stdlib.h> unconditionally.  Sort include file names.
37573         (strtod): Remove.
37574         (xstrtod): Define with a prototype.
37575         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37576         (strtol, strtoul): Remove decls.
37577
37578 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37579
37580         More patches to assume C89 or better.
37581         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37582         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37583         string.h, memchr, STDC_HEADERS.
37584
37585 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37586
37587         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37588         Include <stdlib.h>, <string.h> unconditionally.
37589         Remove now-unnecessary cast to char *.
37590         * lib/strnlen.c: Include <string.h> unconditionally.
37591         * lib/yesno.c (yesno): Define with a prototype.
37592
37593 2003-09-11  Bruno Haible  <bruno@clisp.org>
37594
37595         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37596
37597 2003-09-10  Jim Meyering  <jim@meyering.net>
37598
37599         * lib/error.c: Correct indentation of cpp directives.
37600
37601 2003-09-10  Bruno Haible  <bruno@clisp.org>
37602
37603         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37604         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37605         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37606         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37607         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37608         <stdlib.h> and <string.h> checks.
37609         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37610         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37611
37612 2003-09-10  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/strcspn.c: Include <string.h> unconditionally.
37615         * lib/strpbrk.c: Include <string.h> unconditionally.
37616         * lib/strstr.c: Include <string.h> unconditionally.
37617         * lib/unicodeio.c: Include <string.h> unconditionally.
37618         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37619         * lib/unsetenv.c: Likewise.
37620         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37621         * lib/yesno.c: Include <stdlib.h> unconditionally.
37622         (rpmatch): Add prototype.
37623
37624 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37625
37626         More patches to assume C89 or better.
37627         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37628         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37629         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37630         or for string.h.
37631         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37632         stdlib.h.
37633         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37634         C headers.
37635         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37636         string.h.
37637         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37638         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37639         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37640         or for string.h.
37641         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37642         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37643         C headers.
37644         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37645         memcpy.
37646         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37647         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37648         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37649         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37650         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37651         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37652         string.h, free.
37653         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37654         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37655         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37656         C headers, or for string.h.
37657         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37658         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37659         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37660         headers, memory.h, stdlib.h, string.h, strings.h.
37661         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37662         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37663         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37664         strchr.
37665         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37666         headers, memory.h, string.h.
37667         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37668         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37669         free.
37670         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37671         headers.
37672         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37673         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37674         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37675         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37676         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37677
37678 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37679
37680         More K&R removal.
37681
37682         * lib/acosl.c (main): Use a prototype.
37683         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37684         tanl.c: Likewise.
37685
37686         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37687
37688         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37689         (getopt, etopt_long, getopt_long_only, _getopt_internal)
37690         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37691         with a prototype.
37692         * lib/getopt.c (const): Remove macro.
37693         Include <string.h> unconditionally.
37694         (my_index): Remove; all uses changed to strchr.
37695         (strlen): Remove decl.
37696         (exchange): Remove forward decl; no longer needed.
37697         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37698         Define with prototype.
37699         * lib/getopt1.c (const): Remove macro.
37700         (getopt_long, getopt_long_only, main): Define with prototype.
37701
37702         * lib/getugroups.c: Include <string.h> unconditionally.
37703
37704         * lib/getusershell.c: Include <stdlib.h> unconditionally.
37705         (getusershell, setusershell, endusershell, readname, main):
37706         Define with prototypes.
37707
37708         * lib/group-member.c: Include group-member.h first.
37709         Include <stdlib.h> unconditionally.
37710
37711         * lib/hard-locale.c: Include hard-locale.h first.
37712         Include <stdlib.h>, <string.h> unconditionally.
37713
37714         * lib/hash.c (free, malloc): Remove decls.
37715         Include <stdlib.h> unconditionally.
37716
37717         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37718         (getenv): Do not declare.
37719
37720         * lib/idcache.c: Include <string.h> unconditionally.
37721
37722         * lib/long-options.c: Include long-options.h first, to test interface.
37723         Include <stdlib.h> unconditionally.
37724
37725         * lib/makepath.c: Include makepath.h first, to test interface.
37726         Include <stdlib.h> and <string.h> unconditionally.
37727
37728         * lib/linebuffer.c: Include <stdlib.h>.
37729         (free): Remove decl.
37730
37731         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37732         stddef.h. rpl_malloc returns void *, not char *.
37733         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
37734         prototype.
37735
37736         * lib/md5.h: Include <limits.h> unconditionally.
37737         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37738         (__P): Remove; all uses removed.
37739         * lib/md5.c: Include "md5.h" first.
37740         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37741         md5_buffer, md5_process_bytes, md5_process_block):
37742         Define with prototypes.
37743         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
37744         * lib/sha.c: Include "sha.h" first.
37745         Include <stdlib.h>, <string.h> unconditionally.
37746
37747         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37748         * lib/memcmp.c (__ptr_t): Likewise.
37749         * lib/memrchr.c (__ptr_t): Likewise.
37750         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37751         Include <string.h> unconditionally.
37752         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37753         * lib/memchr.c: Include <stdlib.h> unconditionally.
37754         * lib/memchr.c (LONG_MAX): Remove.
37755         * lib/memrchr.c (LONG_MAX): Likewise.
37756         * lib/memchr.c (__memchr): Define via a prototype.
37757         * lib/memrchr.c (__memrchr): Likewise.
37758         * lib/memcmp.c (__P): Remove, and remove all uses.
37759         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37760         Remove forward decls; no longer needed.
37761         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37762         Use types required by C89 in prototype.
37763
37764         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37765         * lib/savedir.c: Likewise.
37766         * lib/mkdir.c (free): Remove decl.
37767         * lib/rmdir.c (rmdir): Define with a prototype.
37768         * lib/savedir.c: Include savedir.h first, to test interface.
37769
37770         * lib/mktime.c (STDC_HEADERS): Remove.
37771         Include <stdlib.h>, <string.h> unconditionally.
37772
37773         * lib/modechange.c: Include <stdlib.h> unconditionally.
37774         (malloc): Remove decl.
37775
37776         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37777         (free): Remove decl.
37778
37779         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37780         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37781         (This type really should be intptr_t, but that's a C99ism.)
37782         (_obstack_memcpy): Remove: all uses changed to memcpy.
37783         Include <string.h> unconditionally.
37784         (struct obstack): Assume __STDC__ for types of members
37785         chunkfun, freefun, extra_arg.
37786         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37787         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37788         obstack_begin, obstack_specify_allocation,
37789         obstack_specify_allocation_with_arg, obstack_chunkfun,
37790         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37791         Remove unprototyped decls and the macros that use them.
37792         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
37793         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37794         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37795         (defined __STDC__ && __STDC__)]:
37796         Remove nonprototyped code.
37797         Include <stdlib.h> unconditionally.
37798         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37799         _obstack_allocated_p, _obstack_free, obstack_free,
37800         _obstack_memory_used, print_and_abort):
37801         Define using prototypes.
37802         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37803         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37804         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37805         obstack_next_free, obstack_object_size, obstack_room) [0]:
37806         Remove unused, unprototyped code.
37807
37808         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37809
37810         * lib/physmem.c (physmem_total, physmem_available, main): Define
37811         with prototypes.
37812
37813         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37814         (main): Define with a prototype.
37815
37816         * lib/posixver.c (getenv): Remove decl.
37817
37818         * lib/putenv.c (malloc): Returns void *, not char *.
37819         Include <string.h> unconditionally.
37820         (strchr, memcpy, NULL): Do not define.
37821
37822         * lib/readtokens.c: Include readtokens.h first, to test interface.
37823         Include <stdlib.h>, <string.h> unconditionally.
37824         (init_tokenbuffer): Define with a prototype.
37825
37826         * lib/regex.c (PARAMS): Remove.  All uses removed.
37827         All uses of _RE_ARGS removed, too.
37828         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37829         unconditionally.
37830         (bzero): Assume memset exists.
37831         (memcmp, memcpy, NULL): Remove.
37832         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37833         char, or assignments to local vars of type signed char.
37834         (init_syntax_once, PREFIX(extract_number_and_incr),
37835         PREFIX(print_partial_compiled_pattern),
37836         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37837         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37838         PREFIX(regex_grow_registers), PREFIX(regex_compile),
37839         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37840         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37841         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37842         wcs_compile_range, byte_compile_range, truncate_wchar,
37843         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37844         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37845         count_mbs_length, wcs_re_match_2_internal,
37846         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37847         PREFIX(alt_match_null_string_p),
37848         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37849         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37850         regfree, PREFIX(extract_number)): Define with prototype.  Remove
37851         now-unnecessary declaration, if any.
37852         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37853         regcomp, regexec):
37854         Remove now-unnecessary casts among pointer types.
37855         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
37856
37857         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37858         (free): Remove decl.
37859
37860         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37861
37862         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
37863         (free): Remove decl.
37864
37865         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
37866         * lib/xgetcwd.c: Likewise.
37867
37868         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
37869         (free): Remove decl.
37870
37871         * lib/strchrnul.c (strchrnul): Define with a prototype.
37872         Fix bug: c_in was not converted to char before searching.
37873
37874         The following changes are not K&R related:
37875
37876         * lib/group-member.h: Include <sys/types.h>, so that this file is
37877         self-contained.
37878         * lib/makepath.h: Likewise.
37879
37880         * lib/getusershell.c (readname, default_index, line_size, readname):
37881         Use size_t, not int, for sizes.
37882         (readname): If the size overflows, report an error instead of
37883         looping forever.
37884
37885 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37886
37887         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
37888         libc.
37889
37890 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37891
37892         * README: New section: portability guidelines.
37893
37894 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
37895
37896         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
37897         C89 spec.
37898
37899 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
37900
37901         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
37902
37903 2003-09-08  Paul Eggert  <eggert@twinsun.com>
37904
37905         Assume C89 or better; remove K&R cruft.
37906         A few of these changes were first proposed by Derek Robert Price
37907         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
37908
37909         * lib/addext.c: Include <string.h> unconditionally.
37910         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
37911         Don't declare getenv or malloc.
37912
37913         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
37914         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
37915         (NULL): Remove.
37916         (find_stack_direction, alloca): Use prototypes.
37917
37918         * lib/atexit.c (atexit): Define using a prototype.
37919
37920         * lib/basename.c, dirname.c, stripslash.c:
37921         Include <string.h> unconditionally.
37922
37923         * lib/bcopy.c: Include <stddef.h>.
37924         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
37925
37926         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
37927
37928         * lib/error.h (error, error_at_line, error_print_progname)
37929         [! (defined (__STDC__) && __STDC__)]: Remove decls.
37930         * lib/error.c: Include error.h first, to check interface.
37931         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37932         (VA_START): Remove; all uses changeed to va_start.
37933         (exit, strerror): Remove decls.
37934         (error_print_progname): Prototype uncondionally.
37935         Don't include <errno.h>; no longer needed.
37936         (private_strerror): Remove.
37937         (error_tail): Always define.
37938         (error, error_at_line): Assume C89 or better; always use prototypes.
37939         * lib/fatal.c: Include "fatal.h" first, to test interface.
37940         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
37941         (VA_START): Remove; all uses changed to va_start.
37942         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
37943         this case.
37944         (exit): Remove decl.
37945         (fatal): Prototype unconditionally.  Assume va_start works.
37946         Abort at end, to pacify gcc.
37947
37948         * lib/euidaccess.c (main): Define with a prototype.
37949
37950         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
37951
37952         * lib/exitfail.c: Include <stdlib.h> unconditionally.
37953
37954         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
37955         prototypes.
37956         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
37957         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
37958         (getenv): Remove decl.
37959         (fnmatch): Define using a prototype.
37960         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
37961         (FCT): Define using a prototype.
37962
37963         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
37964
37965         * lib/gethostname.c: Include <stddef.h>.
37966         (gethostname): Define with prototype.  Length is size_t, not int.
37967
37968 2003-09-08  Paul Eggert  <eggert@twinsun.com>
37969
37970         Assume C89 or better; remove K&R cruft.
37971         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
37972         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
37973         string.h, getenv, malloc.
37974         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
37975         headers.
37976         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
37977         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
37978         do not check for strerror.
37979         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
37980         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
37981         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
37982         do not check for doprnt or vprintf.
37983         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
37984         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
37985
37986 2003-09-08  Paul Eggert  <eggert@twinsun.com>
37987
37988         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
37989         getversion.c should have been removed then, but was accidentally
37990         preserved.
37991
37992         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
37993         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
37994
37995 2003-09-08  Karl Berry  <karl@gnu.org>
37996
37997         * config/config.sub, config.guess, srclistvars.sh: update from savannah
37998                 config, forget about prep.
37999
38000         * config/depcomp, missing: update from automake.
38001
38002 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38003
38004         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
38005         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38006
38007 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38008
38009         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38010         copy_tm_result.  Bug reported by Simon Josefsson in
38011         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38012
38013 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38014
38015         * m4/time_r.m4: New file.
38016         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38017         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38018         is. Check for timegm declaration.
38019         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38020         Do not check for gmtime_r.
38021         Replace mktime if __mktime_internal does not exist and if mktime
38022         hasn't been replaced already.
38023
38024 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38025
38026         * lib/time_r.c, lib/time_r.h: New files.
38027
38028         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38029         __localtime_r.
38030         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
38031         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38032
38033         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38034         __gmtime_r.
38035         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38036         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38037         Include <time_r.h>.
38038
38039         * lib/timegm.c: Switch to glibc implementation, with the following
38040         changes:
38041         [defined HAVE_CONFIG_H]: Include <config.h>.
38042         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38043         (__mktime_internal) [!defined _LIBC]: New decl.
38044         (__gmtime_r) [!defined _LIBC]: New macro and function.
38045         (timegm): Use a prototype, since gnulib assumes C89.
38046         Do not bother declaring tmp to be const, as it's not really usefu.
38047         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38048         (timegm): Declare only if HAVE_DECL_TIMEGM.
38049
38050 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38051
38052         * MODULES.html.sh (func_all_modules): Add time_r.
38053         * modules/time_r: New file.
38054         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38055         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
38056
38057 2003-09-03  Paul Eggert  <eggert@twinsun.com>
38058
38059         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38060         Bug reported by Lute Kamstra in
38061         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
38062
38063         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
38064         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
38065         course with correspondingly smaller numbers for tomorrow and
38066         yesterday.  From Tadayoshi Funaba.  Originally installed into
38067         sh-utils on 1999-08-07, but the patch got lost (I guess during the
38068         coreutils merge?).
38069
38070 2003-08-31  Simon Josefsson  <jas@extundo.com>
38071
38072         * modules/timegm: New file.
38073         * MODULES.html.sh (func_all_modules): Add timegm.
38074
38075 2003-08-31  Simon Josefsson  <jas@extundo.com>
38076
38077         * m4/timegm.m4: New file.
38078
38079 2003-08-31  Simon Josefsson  <jas@extundo.com>
38080
38081         * lib/timegm.h: New file.
38082         * lib/timegm.c: New file.  Based on
38083         wget-1.8.2/src/http.c:mktime_from_utc.
38084
38085 2003-08-31  Karl Berry  <karl@gnu.org>
38086
38087         * lib/argp.h: update from libc.
38088
38089 2003-08-28  Bruno Haible  <bruno@clisp.org>
38090
38091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
38092         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
38093         followed by '#define fnmatch fnmatch_posix' gives an error.
38094
38095 2003-08-28  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
38098         warning on QNX, which defines O_BINARY to 000000.
38099
38100 2003-08-27  Jim Meyering  <jim@meyering.net>
38101
38102         * m4/mkstemp.m4: Require that the system mkstemp be able to create
38103         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
38104         would fail after 32.  Reported by Danny Levinson.  Details here:
38105         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
38106
38107 2003-08-24  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
38110         MSVC7 <stdio.h> is included later.
38111
38112 2003-08-22  Simon Josefsson  <jas@extundo.com>
38113
38114         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
38115
38116 2003-08-20  Karl Berry  <karl@gnu.org>
38117
38118         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
38119
38120 2003-08-20  Bruno Haible  <bruno@clisp.org>
38121
38122         * modules/progname: New file.
38123         * MODULES.html.sh (func_all_modules): Add progname.
38124
38125 2003-08-20  Bruno Haible  <bruno@clisp.org>
38126
38127         * lib/progname.h: New file, from GNU gettext.
38128         * lib/progname.c: New file, from GNU gettext.
38129         * lib/progreloc.c: New file, from GNU gettext.
38130
38131 2003-08-19  Jim Meyering  <jim@meyering.net>
38132
38133         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
38134         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
38135
38136 2003-08-19  Bruno Haible  <bruno@clisp.org>
38137
38138         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38139         more.
38140
38141 2003-08-19  Bruno Haible  <bruno@clisp.org>
38142
38143         * lib/xstrdup.c: Assume <string.h> exists.
38144
38145 2003-08-18  Paul Eggert  <eggert@twinsun.com>
38146
38147         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
38148         in makefile rules.
38149
38150 2003-08-18  Jim Meyering  <jim@meyering.net>
38151
38152         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38153         * m4/lib-ld.m4: Likewise.
38154
38155 2003-08-18  Jim Meyering  <jim@meyering.net>
38156
38157         * lib/setenv.h: Indent nested cpp directive.
38158         * lib/vasnprintf.c: Remove trailing blanks.
38159
38160 2003-08-17  Simon Josefsson  <jas@extundo.com>
38161
38162         * modules/xstrndup: New file.
38163         * MODULES.html.sh (func_all_modules): Add xstrndup.
38164
38165 2003-08-17  Simon Josefsson  <jas@extundo.com>
38166
38167         * modules/argp: Fix autoconf macro name. Add more dependencies.
38168
38169 2003-08-17  Simon Josefsson  <jas@extundo.com>
38170
38171         * m4/xstrndup.m4: New file.
38172
38173 2003-08-17  Simon Josefsson  <jas@extundo.com>
38174
38175         * m4/argp.m4: New file.
38176
38177 2003-08-17  Simon Josefsson  <jas@extundo.com>
38178             Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/xstrndup.h: New file.
38181         * lib/xstrndup.c: New file.
38182
38183 2003-08-17  Bruno Haible  <bruno@clisp.org>
38184
38185         * modules/strndup (Files, Include): Add lib/strndup.h.
38186
38187 2003-08-17  Bruno Haible  <bruno@clisp.org>
38188
38189         * modules/euidaccess (Files): Add lib/euidaccess.h.
38190
38191 2003-08-17  Bruno Haible  <bruno@clisp.org>
38192
38193         * lib/strndup.h: New file.
38194
38195 2003-08-17  Bruno Haible  <bruno@clisp.org>
38196
38197         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38198         like AC_GNU_SOURCE.
38199         * modules/extensions (configure.ac): Comment out the invocation of
38200         gl_USE_SYSTEM_EXTENSIONS.
38201
38202 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38203
38204         Merges from coreutils, etc.
38205         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38206         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
38207         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38208         fixing a typo.
38209         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38210         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38211
38212 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38213
38214         Document merge from coreutils.
38215         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38216         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38217         * modules/utime: Add m4/utimes-null.m4.
38218
38219 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38220
38221         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38222         space, undoing this 2003-08-12 change:
38223         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38224
38225 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38226
38227         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38228         strtoul.c from libc, undoing this 2003-08-12 change:
38229         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38230
38231 2003-08-16  Jim Meyering  <jim@meyering.net>
38232
38233         Merges from coreutils.
38234         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38235         prefix.  Adjust cache variables similarly.  Create 500 rather than
38236         just 300 files, to exercise bug on Darwin6.5, too.
38237         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38238         $missing_dir.
38239         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38240         AM_SYS_POSIX_TERMIOS.
38241         Reported by mkc@mathdogs.com.
38242         Also change use of $am_cv_sys_posix_termios
38243         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
38244         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38245         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38246         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38247         in /proc/mounts until it finds one with matching device number.  This
38248         is unnecessary when the FILE argument *is* a mount point.  No stat call
38249         is necessary in that case.  So, disable the statvfs-testing code on
38250         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
38251         as RedHat bug# 84846.
38252         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38253         to 1MB, so as not to render systems with no stack size limit (e.g.,
38254         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38255         Include <unistd.h>.  On some systems,
38256         it is required for the definition of _SC_PAGESIZE.
38257
38258 2003-08-16  Jim Meyering  <jim@meyering.net>
38259
38260         Merge from coreutils.
38261         * lib/xstrtoimax.c: #else #if -> #elif.
38262         * lib/xstrtoumax.c: Likewise.
38263
38264 2003-08-16  Jim Meyering  <jim@meyering.net>
38265
38266         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38267         * m4/utimes.m4: Removed.
38268         * m4/utimes-null.m4: Renamed from utimes.m4.
38269
38270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38271         to 1MB, so as not to render systems with no stack size limit (e.g.,
38272         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38273         Include <unistd.h>.  On some systems,
38274         it is required for the definition of _SC_PAGESIZE.
38275
38276 2003-08-16  Jim Meyering  <jim@meyering.net>
38277         and Paul Eggert  <eggert@cs.ucla.edu>
38278
38279         Merges from coreutils, etc.
38280
38281         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38282         using the latest version from cvs.  This avoids problems with #line
38283         directives using a vendor (Sun) compiler.
38284         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38285         Don't set GETGROUPS_LIB here; now it's
38286         done via getgroups.m4's wrapper function.
38287         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38288         rather than just in sh-util/configure.in, so that the
38289         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38290         same.
38291         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38292         AC_FUNC_GETLOADAVG where to find getloadavg.c.
38293         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38294         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38295         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38296         Remove code that is now done by the newly-required macros.
38297         Append $(EXEEXT) to DF_PROG.
38298         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38299         Do not invoke or require the following here,
38300         since prereq.m4 or some gnulib .m4 now does this for us:
38301         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38302         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38303         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38304         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38305         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38306         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38307         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38308         AC_FUNC_OBSTACK.
38309         Do not replace the following functions, as this is now the job
38310         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38311         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38312         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38313         atexit getpass, strdup, getpagesize.
38314         Replace 'raise'.
38315         Do not check for the following functions, as this is now the job
38316         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38317         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
38318         setregid.
38319         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38320         Check for sys/sysctl.h.
38321         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38322         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
38323         of checking for ssize_t ourselves.
38324
38325         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38326         Require every macro that gnulib/modules/* suggests for us.
38327         (jm_PREREQ_ADDEXT): New macro.
38328         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38329         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38330
38331         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38332         (gl_PHYSMEM): Use it.
38333         Also check for `table' function.
38334         Check for new headers and functions.
38335         Add check for sys/sysmp.h.
38336         With suggestions from Kaveh Ghazi.
38337         Ignore headers that are present but cannot be compiled.  This
38338         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38339         C 5.4.
38340
38341 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38342
38343         Document merge from coreutils.
38344         * modules/userspec: Depend on posixver.
38345         * modules/strftime: Depend on tzset.
38346
38347 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38348
38349         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38350         rather than tab, after '#' in shell-script copyright notices.
38351         Suggested by Bruno Haible.
38352
38353 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38354
38355         * config/srclist-update: Use three spaces, rather than tab, after '#'
38356         in shell-script copyright notices.  Suggested by Bruno Haible.
38357         Remove unnecessary parenthesization in regular expression.
38358
38359 2003-08-15  Jim Meyering  <jim@meyering.net>
38360
38361         Merge from coreutils.
38362         * lib/xgethostname.c: Include <stdlib.h>.
38363         (xghostname): Don't exit for anything other than memory-related
38364         failure; just return NULL.
38365         * lib/userspec.c: Include "posixver.h".
38366         (parse_user_spec): Accept `.' as a separator only
38367         in pre-POSIX-200112 mode.
38368         * lib/strtoimax.c: Use #elif rather than #else #if.
38369         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38370         Remove function, now that we can rely on a working tzset function.
38371         [!_LIBC]: Ensure that the required autoconf test has been run.
38372         [!defined _NL_CURRENT && HAVE_STRFTIME]:
38373         Use underlying_strftime for %r.
38374         * lib/sha.c: Merge in some clean-up and optimization changes from
38375         glibc.
38376         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38377         Ensure that it is a multiple of 64.
38378         Rearrange loop exit tests so as to avoid performing an
38379         additional fread after encountering an error or EOF.
38380         * lib/realloc.c: Update copyright date.
38381
38382 2003-08-15  Jim Meyering  <jim@meyering.net>
38383         and Paul Eggert  <eggert@twinsun.com>
38384
38385         Merge from coreutils.
38386         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38387         member but strut utmpx does not.  Needed for AIX 4.3.3.
38388         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38389
38390 2003-08-15  Jim Meyering  <jim@meyering.net>
38391         and Paul Eggert  <eggert@cs.ucla.edu>
38392
38393         Merges from coreutils, etc.
38394         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38395         Require gl_FUNC_TZSET_CLOBBER.
38396         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38397         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38398         members.
38399
38400 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38401
38402         Help the merge from coreutils.
38403         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38404         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38405         * m4/tzset.m4: Use it too.
38406
38407 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38408
38409         * modules/tzset: New file.
38410
38411 2003-08-14  Jim Meyering  <jim@meyering.net>
38412
38413         Merges from coreutils.
38414         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38415         variable names, rather than @FNMATCH_H@.
38416         * modules/alloca: Likewise for $(ALLOCA_H).
38417
38418         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38419         the three copies of the literal target, `fnmatch.h'.
38420         * modules/alloca (alloca.h): Likewise.
38421
38422 2003-08-14  Jim Meyering  <jim@meyering.net>
38423
38424         Merge from coreutils.
38425         * m4/tzset.m4: New file.
38426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38427         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38428         otherwise, AIX 5.1 systems would end up using the latter.
38429         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38430         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
38431         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38432         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
38433
38434 2003-08-14  Jim Meyering  <jim@meyering.net>
38435
38436         Merge from coreutils.
38437         * lib/obstack.h: Whitespace changes.
38438         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38439         and xcalloc return values.
38440         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38441         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
38442         hang on OSF/1 5.1 for DIR on both local and remote file systems.
38443         Reported by (and fix confirmed by) Nelson H. F. Beebe.
38444         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38445         error from mntctl.
38446         Use mntctl's return value to drive the entry-processing loop, since
38447         we can't rely on the value of the vmt_length member in the last
38448         entry.  On some systems doing so could result in exhausting
38449         virtual memory.  Based in part on a patch from Mike Jetzer.
38450
38451 2003-08-14  Jim Meyering  <jim@meyering.net>
38452         and Paul Eggert  <eggert@twinsun.com>
38453
38454         Merges from coreutils, plus other fixes.
38455         * lib/physmem.c: Merge in portability changes from gcc/libiberty
38456         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
38457         for credits and details.  Thanks to Kaveh Ghazi for helping
38458         to keep these files in sync.
38459         (ARRAY_SIZE): Define it.
38460         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38461         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38462         (memcasecmp): Don't assume size_t fits in unsigned int.
38463         Remove casts and duplicate code.
38464         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38465         (memcpy): Remove definition.
38466         Merge in some clean-up and optimization changes from glibc.
38467         [BLOCKSIZE]: Move definition to top of file.
38468         Ensure that it is a multiple of 64.
38469         Rearrange loop exit tests so as to avoid performing an
38470         additional fread after encountering an error or EOF.
38471         * lib/md5.h (md5_uintptr): Define.
38472         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38473         return to the initial working directory.  Preserve errno
38474         for caller.
38475         * lib/idcache.c: Include "xalloc.h".
38476         (xmalloc, xrealloc): Remove decls.
38477         (getuser): Remove casts no longer required in C89.
38478         * lib/human.c: Include stdio.h, for sprintf.
38479         * lib/group-member.c: Include "xalloc.h".
38480         (xmalloc, xrealloc): Remove decls.
38481         (get_group_info): Remove casts no longer required in C89.
38482         * lib/getusershell.c (readname): Remove casts no longer required in
38483         C89.
38484         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38485         * lib/getline.c: Whitespace fix, from coreutils.
38486
38487 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38488
38489         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38490         Check for isascii.
38491
38492         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38493         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38494         Undo previous (whitespace-only) change.
38495
38496 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38497
38498         * lib/exclude.c: Include <ctype.h>
38499         (IN_CTYPE_DOMAIN): New macro.
38500         (is_space): New fn.
38501         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38502         and empty lines.
38503
38504         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38505         Undo previous (whitespace-only) change.
38506
38507 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38508
38509         * config/srclist-update: Change update back to the old behavior,
38510         leaving whitespace alone.  Use one 'sed' command rather than a
38511         pipeline.
38512         (fixlicense): Now a variable, not a function.
38513         (remove_trailing_blanks): Remove.
38514         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38515         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38516         Undo previous (whitespace-only) change.
38517
38518 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38519
38520         Merge from coreutils.
38521         * modules/euidaccess: Add lib_SOURCES, include for new
38522         file euidaccess.h
38523
38524 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38525
38526         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38527         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38528         Normalize leading white space and remove trailing white space.
38529
38530         Merge from coreutils
38531         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38532
38533         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38534         0.12.1.  These files are now being upgraded automatically by
38535         ../config/srclist-update.
38536
38537 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38538
38539         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38540         Normalize leading white space and remove trailing white space.
38541         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38542         notice, as per ../config/srclist-update.
38543
38544         Merge from coreutils.
38545         * lib/euidaccess.h: New file.
38546         * lib/euidaccess.c: Include it.
38547         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38548         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
38549         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38550
38551 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38552
38553         * config/srclist-update: Add copyright notice.
38554         (remove_id_lines, remove_trailing_blanks): New constants.
38555         (fixfile): Use them to normalize spacing a bit in copied files.
38556         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38557         Normalize leading white space and remove trailing white space.
38558
38559         * config/texinfo.tex: Sync with texinfo.
38560
38561         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38562         strtoul.c from libc, to merge coreutils whitespace changes.
38563
38564         * config/srclist.txt: Get the following m4 files from gettext:
38565         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38566         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38567         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38568         wint_t.m4.
38569
38570 2003-08-12  Karl Berry  <karl@gnu.org>
38571
38572         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38573         been made.
38574
38575 2003-08-11  Paul Eggert  <eggert@twinsun.com>
38576
38577         * modules/gnu-source, m4/gnu-source.m4:
38578         Remove; we're assuming Autoconf 2.54 or later now.
38579         Suggested by Bruno Haible.
38580         * MODULES.html.sh (func_all_modules): Remove gnu-source.
38581
38582 2003-08-11  Bruno Haible  <bruno@clisp.org>
38583
38584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38585
38586 2003-08-11  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38589         (vasnprintf): Use it instead of wcslen.
38590
38591 2003-08-11  Bruno Haible  <bruno@clisp.org>
38592
38593         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38594         value to ensure that _Bool promotes to int. Use #define for _Bool when
38595         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38596
38597 2003-08-10  Karl Berry  <karl@gnu.org>
38598
38599         * lib/regex.h: update from libc (whitespace fix).
38600
38601 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38602
38603         Merge some files from coreutils.  These changes were
38604         originally made by Jim Meyering.
38605         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38606         many older Unixes require this.
38607         * lib/alloca.c (alloca): Remove cast to argument of free;
38608         no longer needed in C89.
38609         * lib/alloca_.h, regex.h: Fix white space to match
38610         what GNU indent does.
38611
38612 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38613
38614         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38615         apparently Emacs's Unicode mode got confused before my 2003-08-05
38616         checkin.
38617
38618 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38619
38620         * m4/extensions.m4: New file.
38621         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38622         Require gl_USE_SYSTEM_EXTENSIONS.
38623         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38624         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38625
38626 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38627
38628         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38629         * modules/extensions, modules/gnu-source: New files.
38630         * modules/timespec, modules/unlocked-io: Depend on extensions.
38631
38632 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38633
38634         * modules/restrict: New file.
38635         * MODULES.html.sh (func_all_modules): Add restrict.
38636         * modules/regex: Depend on restrict.
38637
38638 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38639
38640         * m4/restrict.m4: New file.
38641         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38642
38643 2003-08-07  Bruno Haible  <bruno@clisp.org>
38644
38645         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38646         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38647
38648 2003-08-07  Bruno Haible  <bruno@clisp.org>
38649
38650         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38651         makes the module 'getndelim2' compatible with the module 'getline'.
38652
38653 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38654
38655         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38656         byte with "\201" to avoid glitches when editing that source file
38657         with multi-gnome-terminal.
38658
38659 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38660
38661         * lib/bumpalloc.h: Remove.
38662
38663 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38664
38665         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38666         * modules/bumpalloc: Remove.
38667
38668 2003-08-04  Paul Eggert  <eggert@twinsun.com>
38669
38670         * lib/getloadavg.c: Change copyright notice and spacing to conform to
38671         GNU coding style.
38672
38673         Merge from coreutils.
38674         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38675         1. From glibc.
38676         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38677         from Karl Berry, implemented by Jim Meyering.
38678         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38679         from Dmitry V. Levin.
38680         Remove anachronistic cast of xrealloc.
38681         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
38682         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38683         type. Otherwise, it wouldn't compile with at least /bin/cc on
38684         ymp-cray-unicos9.0.2.X.
38685         Combine two mostly-identical uses of alloca into one.
38686         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38687
38688 2003-08-04  Dave Love  <d.love@dl.ac.uk>
38689
38690         [From Emacs.]
38691
38692         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
38693         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
38694         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38695         obsolete NLIST_NAME_UNION.
38696         [__GNU__]: Undef BSD and FSCALE.
38697         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38698
38699 2003-08-03  Paul Eggert  <eggert@twinsun.com>
38700
38701         * lib/stdbool_.h (_Bool): Make it signed char, instead of
38702         an enum type, so that it's guaranteed to promote to int.  See:
38703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38704
38705 2003-08-03  Karl Berry  <karl@gnu.org>
38706
38707         * config/depcomp: update from automake.
38708
38709 2003-07-31  Paul Eggert  <eggert@twinsun.com>
38710
38711         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
38712         (strerror): Don't assume that a printable int fits in 14 bytes.
38713
38714 2003-07-31  Bruno Haible  <bruno@clisp.org>
38715
38716         * modules/getpass-gnu: New file.
38717         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38718
38719 2003-07-31  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38722
38723 2003-07-24  Karl Berry  <karl@gnu.org>
38724
38725         * config/missing: update from automake.
38726
38727 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
38728             Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38731         * lib/getline.c (getline, getdelim): Likewise.
38732         Remove _GNU_SOURCE define; now it's defined in config.h through
38733         m4/getline.m4.
38734
38735 2003-07-23  Karl Berry  <karl@gnu.org>
38736
38737         * config/config.sub: update from prep.
38738
38739 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38740
38741         * modules/xalloc (Depends-on): Add exitfail.
38742         * modules/xmemcoll: Likewise.
38743
38744 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38745
38746         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38747         over-parenthesization in macros.
38748
38749         Sync with coreutils.
38750
38751         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38752         required by C99.
38753
38754         Use `exit_failure' for xalloc and xmemcoll instead of their own
38755         private exit-failure variables.
38756         * lib/xalloc.h (xalloc_exit_failure): Remove.
38757         * lib/xmalloc.c: Likewise.  Include exitfail.h.
38758         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38759         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38760         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
38761         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38762
38763 2003-07-20  Jim Meyering  <jim@meyering.net>
38764
38765         * modules/closeout (Depends-on): Add exitfail.
38766         Suggestion from Bruno Haible.
38767
38768 2003-07-19  Karl Berry  <karl@gnu.org>
38769
38770         * config/config.sub: update from prep.
38771
38772 2003-07-18  Paul Eggert  <eggert@twinsun.com>
38773
38774         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38775         Remove.
38776         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
38777         to test that it can stand by itself.  Include "exitfail.h".
38778         Clients should set exit_failure instead.
38779         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
38780
38781 2003-07-18  Bruno Haible  <bruno@clisp.org>
38782
38783         * modules/getndelim2: New file.
38784         * modules/getline: Share files with module getndelim2.
38785         * modules/getnline: Depend on getndelim2 instead of sharing files with
38786         it. Add getnline.c to lib_SOURCES.
38787         * MODULES.html.sh (func_all_modules): Add getndelim2.
38788
38789 2003-07-18  Bruno Haible  <bruno@clisp.org>
38790
38791         * m4/getndelim2.m4: New file.
38792         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38793         invoke gl_PREREQ_GETNDELIM2.
38794         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38795         gl_PREREQ_GETNDELIM2.
38796         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38797         gl_GETNDELIM2.
38798
38799 2003-07-18  Bruno Haible  <bruno@clisp.org>
38800
38801         * lib/getndelim2.h: New file.
38802         * lib/getndelim2.c: Make into a module of its own. Include config.h,
38803         getndelim2.h.
38804         (getndelim2): Make non-static. Change return type to ssize_t.
38805         * lib/getline.h: Change argument names.
38806         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38807         * lib/getnline.c: Include getndelim2.h.
38808
38809 2003-07-18  Andreas Schwab  <schwab@suse.de>
38810
38811         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38812
38813 2003-07-17  Karl Berry  <karl@gnu.org>
38814
38815         * config/config.sub: update from prep.
38816
38817 2003-07-17  Bruno Haible  <bruno@clisp.org>
38818
38819         * modules/getnline: New file.
38820         * modules/getline: Add lib/getndelim2.c to source file list.
38821         * MODULES.html.sh (func_all_modules): Add getnline.
38822
38823 2003-07-17  Bruno Haible  <bruno@clisp.org>
38824
38825         * m4/getnline.m4: New file.
38826
38827 2003-07-17  Bruno Haible  <bruno@clisp.org>
38828
38829         * m4/Makefile.am.in: Remove file.
38830         * m4/Makefile.am: Remove file.
38831         * m4/Makefile.in: Remove file.
38832
38833 2003-07-17  Bruno Haible  <bruno@clisp.org>
38834
38835         * lib/getnline.h: New file.
38836         * lib/getnline.c: New file.
38837         * lib/getndelim2.c: New file, extracted from getline.c.
38838         (getndelim2): Renamed from getdelim2, with added nmax argument.
38839         * lib/getline.c: Include getndelim2.c.
38840         (getdelim2): Moved out to getndelim2.c.
38841         (getline, getdelim): Update.
38842
38843 2003-07-17  Bruno Haible  <bruno@clisp.org>
38844
38845         * lib/Makefile.am: Remove file.
38846         * lib/Makefile.in: Remove file.
38847
38848 2003-07-17  Bruno Haible  <bruno@clisp.org>
38849
38850         * configure.in: Remove file.
38851         * Makefile.in: Remove file.
38852
38853 2003-07-17  Bruno Haible  <bruno@clisp.org>
38854
38855         * MODULES.html.sh: Put the </BODY> right before </HTML>.
38856
38857 2003-07-16  Karl Berry  <karl@gnu.org>
38858
38859         * config/srclist-update: was running fixlicense twice, which caused
38860                 texinfo.tex to be nullified for some reason.  Simplify,
38861                 $gplsrc is no longer needed as far as I can see?
38862
38863 2003-07-16  Jim Meyering  <jim@meyering.net>
38864
38865         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
38866
38867 2003-07-15  Paul Eggert  <eggert@twinsun.com>
38868
38869         * config/srclist.txt: Get the following files from gettext-runtime/intl
38870         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
38871         ref-del.sin.  From Bruno Haible.
38872         * config/srclist-update (fixfile): Change grep pattern again, since the
38873         previous fix didn't work (there was another trailing $).  Use
38874         '[$]' to escape the $s.
38875
38876 2003-07-15  Karl Berry  <karl@gnu.org>
38877
38878         * lib/vasnprintf.c: update from gettext.
38879
38880 2003-07-15  Karl Berry  <karl@gnu.org>
38881
38882         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
38883         gets expanded when surrounded by '$'.
38884
38885 2003-07-15  Jim Meyering  <jim@meyering.net>
38886
38887         * modules/save-cwd: Don't depend on error.  From Derek Price.
38888
38889 2003-07-15  Jim Meyering  <jim@meyering.net>
38890
38891         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
38892
38893 2003-07-14  Simon Josefsson  <jas@extundo.com>
38894
38895         * modules/mempcpy: New file.
38896         * MODULES.html.sh (func_all_modules): Add mempcpy.
38897
38898 2003-07-14  Simon Josefsson  <jas@extundo.com>
38899
38900         * m4/mempcpy.m4: New file.
38901
38902 2003-07-14  Simon Josefsson  <jas@extundo.com>
38903
38904         * lib/mempcpy.h: New file.
38905         * lib/mempcpy.c: New file.
38906
38907 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38908
38909         * modules/getdate, modules/posixtm: Depend on mktime.
38910
38911 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38912
38913         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
38914         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
38915         unicodeio.c, unicodeio.h, unlocked-io.h:
38916         Switch from LGPL to GPL.
38917
38918 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38919
38920         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
38921         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
38922         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
38923         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
38924         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
38925         updated automatically by ../config/srclist-update.  This changes
38926         their license from LPGL to GPL.
38927
38928 2003-07-14  Paul Eggert  <eggert@twinsun.com>
38929
38930         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
38931         assumed to refer to the root of the most recent stable gettext version.
38932         * config/srclistvars.sh: Add defaults for eggert.
38933         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
38934         Match "This program" as well as "The program".  This is needed
38935         for gettext.
38936
38937 2003-07-14  Jim Meyering  <jim@meyering.net>
38938
38939         Don't emit diagnostics.  Let callers do that.
38940         * lib/save-cwd.c: Don't include "error.h".
38941         (save_cwd): Don't call error.  Ensure that errno is valid
38942         when returning nonzero.
38943
38944         * lib/save-cwd.h (restore_cwd): Update prototype.
38945         * lib/save-cwd.c (restore_cwd): Remove two parameters.
38946         Simplify.  Don't call error upon failure.  Let callers do that.
38947         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
38948         when auditing is enabled.  But don't bother updating the #if.
38949
38950 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
38951
38952         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
38953         it breaks C++ compilation.
38954         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
38955
38956 2003-07-10  Simon Josefsson  <jas@extundo.com>
38957
38958         * modules/strchrnul (Makefile.am): Add strchrnul.h.
38959
38960 2003-07-10  Jim Meyering  <jim@meyering.net>
38961
38962         * m4/clock_time.m4: Remove trailing blank.
38963         * m4/intmax_t.m4: Likewise.
38964
38965 2003-07-10  Jim Meyering  <jim@meyering.net>
38966
38967         * lib/vasnprintf.c: Remove trailing blanks.
38968         Make cpp indentation consistent.
38969
38970 2003-07-09  Paul Eggert  <eggert@twinsun.com>
38971
38972         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
38973         posixver.c, strftime.c, strnlen.c, strverscmp.c:
38974         Switch from LGPL to GPL.
38975
38976 2003-07-09  Paul Eggert  <eggert@twinsun.com>
38977
38978         * config/srclist.txt: Sort sublists.  Add
38979         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
38980         that differ from gnulib for one reason or another; we'd like this list
38981         to be smaller but for now let's document what we have.
38982
38983 2003-07-08  Paul Eggert  <eggert@twinsun.com>
38984
38985         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
38986         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
38987         and sweeter "eval x=$x".
38988         * config/srclist.txt: Get lib/argp* from glibc.
38989
38990 2003-07-07  Paul Eggert  <eggert@twinsun.com>
38991
38992         * lib/mktime.c: Fix some boundary cases and remove need for floating
38993         point.
38994
38995         Issue a compile-time diagnostic if time_t is floating point, or if
38996         two's complement arithmetic is not in effect, or if arithmetic
38997         right shift does not propagate the sign.  These assumptions were
38998         all in the original code but they weren't checked.
38999
39000         (TIME_T_MIDPOINT, verify): New macros.
39001         (__isleap): Remove; it has integer overflow problems.
39002         (leapyear): New function, without those problems.
39003         (ydhms_tm_diff): Remove; splitting into two parts.
39004         (ydhms_diff): New function, containing the arithmetic part of
39005         the old ydhms_tm_diff function.  Issue a compile-time
39006         diagnostic if we are not using C99 integer division.
39007         Avoid casts when possible.
39008         (guess_time_tm): New function, containing the checking part of
39009         the old ydhms_tm_diff function.  Return the new value, rather than
39010         the difference between it and the old.  Accept a new argument T
39011         so that *T specifies the old value.  Check for overflow in the result.
39012
39013         (__mktime_internal): Use a time_t offset, not a long int offset.
39014         This undoes the 2003-06-04 change, which is no longer needed now
39015         that we have better overflow checking.
39016         (localtime_offset): Likewise.
39017
39018         (__mktime_internal): Avoid harmful overflow on hosts where time_t
39019         and long are 64-bit but int is only 32-bit.
39020         (ydhms_diff): Use long int to store year1 and yday1.
39021         Issue a compile-time diagnostic if long int is not wide enough.
39022
39023         (__mktime_internal): Use long int to store adjusted year and yday.
39024         Use plain C rather than preprocessor commands, if that doesn't
39025         affect efficiency.
39026         Check for overflow (and try to repair) after each probe
39027         rather than checking only at the very end.  This avoids some bugs
39028         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39029         does not equal GMT offset at maximum time).
39030         Use integer to check for overflow rather than floating point; this
39031         is more portable to non-IEEE hosts, and is a tad faster.
39032         When we detect that we are oscillating between two values,
39033         don't check whether tm_isdst has the requested value, since
39034         we already know the answer.  When tm_isdst has the wrong value,
39035         use a different heuristic to find the right one, based on the
39036         extreme values actually observed in practice in tz2003a,
39037         rather than the (overly optimistic) "previous 3 calendar quarters".
39038
39039         (not_equal_tm, print_tm, check_result): Use "const T" rather than
39040         "T const" to accommodate glibc style.
39041         (check_result): Use less-confusing report format.  "long" -> "long int.
39042         (main): Likewise.
39043         Don't loop if the iteration overflows time_t.
39044         Allow a negative step in the iteration.
39045
39046 2003-07-06  Karl Berry  <karl@gnu.org>
39047
39048         * config/depcomp: update from automake.
39049         * config/config.sub: update from prep.
39050
39051 2003-07-03  Karl Berry  <karl@gnu.org>
39052
39053         * config/config.guess: update from prep.
39054
39055 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39056
39057         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39058         xreadlink.c now includes it unconditionally.
39059
39060 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39061
39062         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
39063         having it depend on HAVE_SYS_TYPES_H.
39064
39065 2003-07-01  Bruno Haible  <bruno@clisp.org>
39066
39067         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
39068         <sys/types.h> should be sufficient.
39069         Reported by Paul Eggert.
39070
39071 2003-06-26  Karl Berry  <karl@gnu.org>
39072
39073         * config/depcomp: update from automake.
39074
39075 2003-06-26  Bruno Haible  <bruno@clisp.org>
39076
39077         * modules/human: Depend on module stdbool.
39078
39079 2003-06-25  Bruno Haible  <bruno@clisp.org>
39080
39081         * modules/readlink: New file.
39082         * modules/xreadlink: Depend on it.
39083         * MODULES.html.sh (func_all_modules): Add readlink.
39084
39085 2003-06-25  Bruno Haible  <bruno@clisp.org>
39086
39087         * m4/readlink.m4: New file.
39088
39089 2003-06-25  Bruno Haible  <bruno@clisp.org>
39090
39091         * lib/readlink.c: New file.
39092
39093 2003-06-22  Karl Berry  <karl@gnu.org>
39094
39095         * config/srclist.txt: update mkinstalldirs from automake.
39096         * config/mkinstalldirs: update.
39097
39098 2003-06-22  Bruno Haible  <bruno@clisp.org>
39099
39100         Portability to mingw32.
39101         * m4/ssize_t.m4: New file, from GNU gettext.
39102         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
39103         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
39104
39105 2003-06-22  Bruno Haible  <bruno@clisp.org>
39106
39107         * modules/safe-read: Add m4/ssize_t.m4.
39108         * modules/xreadlink: Add m4/ssize_t.m4.
39109
39110 2003-06-20  Bruno Haible  <bruno@clisp.org>
39111
39112         Assume C89, so PARAMS isn't needed.
39113         * lib/unicodeio.h (PARAMS): Remove.
39114         * lib/unicodeio.c: Don't use PARAMS.
39115
39116 2003-06-18  Karl Berry  <karl@gnu.org>
39117
39118         * config/config.{guess,sub}: update from prep.
39119
39120 2003-06-18  Jim Meyering  <jim@meyering.net>
39121
39122         Merge changes from coreutils.
39123         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
39124         Remove explicit declarations of xmalloc and realloc.
39125         Include xalloc.h.
39126         (read_utmp): Remove anachronistic cast of xmalloc.
39127
39128 2003-06-17  Paul Eggert  <eggert@twinsun.com>
39129
39130         Assume C89, so PARAMS isn't needed.
39131         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
39132         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
39133         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
39134         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
39135         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
39136         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39137         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39138         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39139         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39140         lib/xstrtod.h, lib/xstrtol.h: Likewise.
39141         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39142         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39143         no longer needed. Anyway, config.h should always be included before any
39144         other file.
39145
39146 2003-06-11  Simon Josefsson  <jas@extundo.com>
39147
39148         * modules/sysexits: New file.
39149         * MODULES.html.sh (func_all_modules): Add sysexits.
39150
39151 2003-06-11  Simon Josefsson  <jas@extundo.com>
39152
39153         * lib/sysexit_.h: New file.
39154
39155 2003-06-11  Derek Price  <derek@ximbiot.com>
39156
39157         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39158         necessary.
39159
39160 2003-06-11  Bruno Haible  <bruno@clisp.org>
39161
39162         * m4/sysexits.m4: New file.
39163
39164 2003-06-10  Simon Josefsson  <jas@extundo.com>
39165
39166         * lib/argp.h: New file, from glibc.
39167         * lib/argp-ba.c: New file, from glibc.
39168         * lib/argp-eexst.c: New file, from glibc.
39169         * lib/argp-fmtstream.c: New file, from glibc.
39170         * lib/argp-fmtstream.h: New file, from glibc.
39171         * lib/argp-fs-xinl.c: New file, from glibc.
39172         * lib/argp-help.c: New file, from glibc.
39173         * lib/argp-namefrob.h: New file, from glibc.
39174         * lib/argp-parse.c: New file, from glibc.
39175         * lib/argp-pv.c: New file, from glibc.
39176         * lib/argp-pvh.c: New file, from glibc.
39177         * lib/argp-xinl.c: New file, from glibc.
39178
39179 2003-06-10  Simon Josefsson  <jas@extundo.com>
39180
39181         * modules/strchrnul: New file.
39182
39183 2003-06-10  Simon Josefsson  <jas@extundo.com>
39184
39185         * modules/argp: New file.
39186
39187 2003-06-10  Simon Josefsson  <jas@extundo.com>
39188
39189         * m4/strchrnul.m4: New file.
39190
39191 2003-06-10  Simon Josefsson  <jas@extundo.com>
39192
39193         * lib/strchrnul.h: New file.
39194         * lib/strchrnul.c: New file.
39195
39196 2003-06-10  Bruno Haible  <bruno@clisp.org>
39197
39198         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39199
39200 2003-06-07  Karl Berry  <karl@gnu.org>
39201
39202         * config/config.{guess,sub}: update from prep.
39203
39204 2003-06-07  Jim Meyering  <jim@meyering.net>
39205
39206         * modules/strtod: Use $(...) notation, not @...@ for
39207         AC_REPLACE'd variables.
39208         * modules/localcharset: Likewise.
39209
39210 2003-06-07  Jim Meyering  <jim@meyering.net>
39211
39212         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39213         in place of my name in the copyright comment.
39214         Remove definition and uses of __P.
39215
39216         From coreutils.
39217         * lib/stat.c: Don't declare xmalloc explicitly.
39218         Instead, include "xalloc.h".
39219         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39220         xrealloc, and xcalloc return values.
39221         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39222         Improve comment.
39223         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39224
39225 2003-06-07  Bruno Haible  <bruno@clisp.org>
39226
39227         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39228         avoid AC_CONFIG_LINKS.
39229         * modules/fnmatch (Makefile.am): Use explicit creation rule for
39230         fnmatch.h, to avoid AC_CONFIG_LINKS.
39231         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39232
39233 2003-06-07  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39236         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39237         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39238         directory.
39239         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39240         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39241         directory.
39242
39243 2003-06-06  Jim Meyering  <jim@meyering.net>
39244
39245         Merge from coreutils.
39246         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39247         Consolidate declarations and initializations of *_base* locals.
39248
39249         Merge from coreutils.
39250         This avoids a core dump on systems without GNU putenv,
39251         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39252         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39253         (unsetenv): New static function, from GNU libc.
39254         (rpl_putenv): Use it.
39255
39256         * lib/modechange.c: Remove trailing blanks.
39257
39258         Merge from coreutils.
39259         * lib/fsusage.c: Remove declaration of statfs.
39260         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39261
39262         * lib/posixtm.c: Include <stdbool.h> unconditionally.
39263
39264 2003-06-06  Jim Meyering  <jim@meyering.net>
39265
39266         * lib/stdbool_.h: Renamed from stdbool.h.in.
39267
39268 2003-06-06  Jim Meyering  <jim@meyering.net>
39269             Bruno Haible  <bruno@clisp.org>
39270
39271         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39272         Adjust Makefile.am snippet not to redirect directly to target.
39273         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39274
39275 2003-06-05  Paul Eggert  <eggert@twinsun.com>
39276
39277         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39278         mismatch, look in future quarters as well as past.  This fixes a
39279         bug when processing fall-backwards gaps immediately after a long
39280         period of daylight-saving time.
39281
39282         * lib/mktime.c: Assume freestanding C89 or better.
39283         (HAVE_LIMITS_H): Remove.  Assume it's 1.
39284         (__P): Remove; not used.
39285         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39286         (mktime, not_equal_tm, print_tm, check_result,
39287         main): Use prototypes.  Use const * where appropriate.
39288         (main): Fix typo in testing code that uncovered by above changes.
39289         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39290
39291 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39292
39293         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
39294         locale.h, localeconv.  This merges changes from coreutils.
39295
39296         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39297         It can be removed after the next Autoconf is released.
39298         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39299         needed.
39300
39301 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39302
39303         * lib/mktime.c: Fix Debian bug 177940
39304         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39305         (localtime_offset): Now long int, not time_t, because we want it
39306         to be guaranteed to be signed.  All uses changed.
39307         (__mktime_internal): If overflow would occur when adding offset,
39308         don't add it.
39309
39310         Merge 'human' changes from coreutils.  Rewrite to support
39311         locale-specific notations like thousands separators.
39312         * lib/human.c: Simplify authorship notice.
39313         Include human.h immediately after config.h.
39314         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39315         <limits.h>: Do not include, since human.h does.
39316         (SIZE_MAX, UINTMAX_MAX): New macros.
39317         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39318         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39319         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39320         (power_letter): Renamed from suffixes.
39321         (generate_suffix_backwards): Remove.
39322         (adjust_value): Now takes int style (because of human.h changes)
39323         and long double value (for greater precision on some platforms).
39324         (group_number): New function.
39325         (human_readable): Use it.  Use integer options, not enum.
39326         Put the options before the sizes in the arg list.
39327         Support all the new options.
39328         The old human_readable function has been removed;
39329         use inttostr.h instead.
39330         (human_readable, default_block_size, humblock):
39331         Use uintmax_t, not int, for block sizes.
39332         (human_readable_inexact, block_size_types): Remove.
39333         (block_size_opts): New constant.
39334         (human_options): Renamed from human_block_size, with new signature
39335         that allows block sizes up to UINTMAX_MAX.  All callers changed.
39336         * lib/human.h: Add copyright and authorship notice.
39337         Include <limits.h> and <stdbool.h> unconditionally.
39338         (PARAMS): Remove.  All uses removed.
39339         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39340         (enum human_inexact_style): Remove tag; now a nameless enum.
39341         (human_floor, human_ceiling, human_round_to_even): Now have
39342         values 2, 0, 1 rather than -1, 1, 0.
39343         (human_group_digits, human_suppress_point_zero, human_autoscale,
39344         human_base_1024, human_SI, human_B): New constants.
39345         (human_readable_inexact, human_block_size): Remove.
39346         (human_readable): Size args are now uintmax_t, not int.
39347         (human_options): New decl.
39348
39349         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39350         unnecessary now that we assume C89 or better.  This change
39351         imported from coreutils.
39352
39353         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39354         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
39355         in the 2003-05-30 sync from glibc.
39356
39357         .h files should stand alone, but we shouldn't include <sys/types.h>
39358         if we can get away with just <stddef.h>.
39359
39360         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39361         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39362         rather than <sys/types.h>, as we merely need size_t.
39363         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39364         to get size_t.
39365         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39366         Include <stdio.h>, to get FILE.
39367         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39368         memcasecmp.h has included <stddef.h> and all we need is size_t.
39369         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39370         our interface, instead of including <sys/types.h>
39371
39372 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39373
39374         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39375         now, as glibc mktime is buggy on non-glibc systems.
39376
39377 2003-06-03  Karl Berry  <karl@gnu.org>
39378
39379         * config/config.sub: update from prep.
39380
39381 2003-06-02  Paul Eggert  <eggert@twinsun.com>
39382
39383         [from coreutils]
39384         Fix some minor time-related bugs with POSIX time arguments.
39385         Some valid time stamps were being rejected (notably -1, and
39386         time stamps before 1900 on 64-bit hosts).  And some invalid
39387         time stamps were being accepted, e.g. September 31.
39388
39389         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39390         that we can return (time_t) -1 successfully.
39391         * lib/posixtm.c: Likewise.
39392         [HAVE_STDBOOL_H]: Include <stdbool.h>.
39393         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39394         (t): Remove static var.
39395         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39396         of static var.  All uses changed.
39397         (year): Do not reject years before 1900; they can occur with
39398         64-bit time_t.
39399         (posix_time_parse): Do not check for out-of-range components;
39400         that is now the caller's responsibility, since our checks were
39401         only approximations.
39402         (posixtime): Use mktime to check for out-of-range components,
39403         since it knows them exactly.
39404         If mktime returns (time_t) -1, check whether an error actually occurred
39405         by invoking localtime on -1.
39406         (main) [TEST_POSIXTIME]: Check for input data errors, and report
39407         posixtime failures better.
39408         Improve the test data (in comments only).
39409
39410 2003-06-02  Karl Berry  <karl@gnu.org>
39411
39412         * config/mkinstalldirs (version): new variable.
39413         (--version): new option.
39414         (usage): improve message.
39415
39416 2003-05-30  Karl Berry  <karl@gnu.org>
39417
39418         * lib/mktime.c: update from libc.
39419
39420 2003-05-30  Bruno Haible  <bruno@clisp.org>
39421
39422         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39423         * config/config.rpath: Upgrade to gettext-0.12.1.
39424
39425 2003-05-30  Bruno Haible  <bruno@clisp.org>
39426
39427         * m4/gettext.m4: Upgrade to gettext-0.12.1.
39428         * m4/nls.m4: New file, from gettext-0.12.1.
39429         * m4/po.m4: New file, from gettext-0.12.1.
39430         * m4/progtest.m4: Upgrade to gettext-0.12.1.
39431
39432 2003-05-30  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39435         * lib/localcharset.h: Likewise.
39436         * lib/localcharset.c: Likewise.
39437
39438 2003-05-29  Karl Berry  <karl@gnu.org>
39439
39440         * config/config.rpath: update from gettext.
39441
39442 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39443
39444         Assume the headers required for C89 freestanding compilers.
39445         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39446         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39447         * m4/human.m4 (gl_HUMAN): Likewise.
39448         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39449         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39450         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39451         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39452         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39453         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39454
39455 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39456
39457         Assume the headers required for C89 freestanding compilers.
39458         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39459         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39460         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39461         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39462         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39463         define, since <limits.h> is guaranteed to do that.
39464         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39465         * lib/exclude.c: Include <stdbool.h> unconditionally.
39466         * lib/tempname.c: Include <stddef.h> unconditionally.
39467         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39468         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39469         <stddef.h> does that.
39470         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39471         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39472         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39473         needed.
39474         * lib/xstrtol.c: Likewise.
39475         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39476         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39477
39478         * lib/addext.c (addext): Use assignment rather than cast, to avoid
39479         warnings on some platforms.
39480
39481         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39482         arbitrarily.
39483
39484 2003-05-26  Jim Meyering  <jim@meyering.net>
39485
39486         Merge in a change from coreutils:
39487         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39488         that is guaranteed to be `no'.  Use `no_such_member' to indicate
39489         that condition, rather than `-1' which is slightly misleading.
39490         Change the name of the cache variable to have the gl_ prefix.
39491         Prompted by a patch from Richard Dawe for DJGPP.
39492
39493 2003-05-24  Karl Berry  <karl@gnu.org>
39494
39495         * config/config.guess: update from prep.
39496
39497 2003-05-22  Karl Berry  <karl@gnu.org>
39498
39499         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39500
39501 2003-05-20  Karl Berry  <karl@gnu.org>
39502
39503         * config/config.guess: update from prep.
39504
39505 2003-05-18  Karl Berry  <karl@gnu.org>
39506
39507         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39508         might actually be set by the user.
39509
39510         * config/depcomp, install-sh, mdate-sh: update from automake.
39511
39512 2003-05-17  Bruno Haible  <bruno@clisp.org>
39513
39514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39515         invalid expansion for AC_EGREP_CPP.
39516         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39517         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39518         Suggested by Akim Demaille <akim@epita.fr> in
39519         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39520
39521 2003-05-12  Jim Meyering  <jim@meyering.net>
39522
39523         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39524         the space-padded-by-default conversion specifiers, %e, %k, %l.
39525
39526 2003-05-12  Bruno Haible  <bruno@clisp.org>
39527
39528         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39529         the string is longer than 4 KB.
39530
39531 2003-05-11  Karl Berry  <karl@gnu.org>
39532
39533         * config/config.{guess,sub}: update from prep.
39534
39535 2003-05-09  Bruno Haible  <bruno@clisp.org>
39536
39537         * modules/error: Add m4/strerror_r.m4 to file list.
39538
39539 2003-05-03  Bruno Haible  <bruno@clisp.org>
39540
39541         Upgrade to Unicode-4.0.
39542         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39543         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39544         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39545         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39546         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39547         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39548         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39549         Change width of U+E0100..U+E01EF from 1 to 0.
39550
39551 2003-04-25  Jim Meyering  <jim@meyering.net>
39552
39553         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39554         of type size_t, not int.
39555
39556 2003-04-25  Bruno Haible  <bruno@clisp.org>
39557
39558         * lib/copy-file.c: Include <stddef.h>, for size_t.
39559
39560 2003-04-21  Paul Eggert  <eggert@twinsun.com>
39561
39562         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39563         code which expansion is under static control.  Patch imported from
39564         Akim Demaille's patch to Bison; see
39565         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39566
39567 2003-04-14  Bruno Haible  <bruno@clisp.org>
39568
39569         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39570
39571 2003-04-11  Jim Meyering  <jim@meyering.net>
39572
39573         Merge changes from Coreutils.
39574
39575         2003-03-22  Jim Meyering  <jim@meyering.net>
39576
39577         * lib/strftime.c (widen): Cast alloca return value to proper type.
39578
39579         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
39580
39581         From GNU libc.
39582         * lib/strftime.c (my_strftime): Handle very large width
39583         specifications for numeric values correctly.  Improve checks for
39584         overflow.
39585
39586         2003-01-19  Jim Meyering  <jim@meyering.net>
39587
39588         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39589         definitions.
39590         (nl_get_alt_digit) [! defined my_strftime]: Define.
39591         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39592         _nl_get_alt_digit and _nl_get_walt_digit.
39593
39594         * lib/strftime.c (my_strftime): Merge in locale-related changes from
39595         libc. These changes have no effect outside of _LIBC.
39596
39597 2003-04-10  Bruno Haible  <bruno@clisp.org>
39598
39599         * modules/findprog: New file.
39600         * MODULES.html.sh (func_all_modules): Add it.
39601
39602 2003-04-10  Bruno Haible  <bruno@clisp.org>
39603
39604         * m4/findprog.m4: New file.
39605         * m4/eaccess.m4: New file.
39606
39607 2003-04-10  Bruno Haible  <bruno@clisp.org>
39608
39609         * lib/findprog.h: New file, from GNU gettext.
39610         * lib/findprog.c: New file, from GNU gettext.
39611
39612 2003-04-05  Jim Meyering  <jim@meyering.net>
39613
39614         Merge changes from Coreutils.
39615
39616         * lib/exclude.h (PARAMS): Remove definition and uses.
39617         * lib/exclude.c: Remove uses of `PARAMS'.
39618
39619         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39620         Add test-cases for DOS filenames. Declare program_name.
39621         (main): Set up program_name.  Patch by Rich Dawe.
39622
39623         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39624         error from mntctl.
39625         Use mntctl's return value to drive the entry-processing loop, since
39626         we can't rely on the value of the vmt_length member in the last
39627         entry.  On some systems doing so could result in exhausting
39628         virtual memory.  Based in part on a patch from Mike Jetzer.
39629
39630 2003-04-04  Bruno Haible  <bruno@clisp.org>
39631
39632         * modules/linebreak: New file.
39633         * MODULES.html.sh (func_all_modules): Add it.
39634
39635 2003-04-04  Bruno Haible  <bruno@clisp.org>
39636
39637         * m4/linebreak.m4: New file.
39638
39639 2003-04-04  Bruno Haible  <bruno@clisp.org>
39640
39641         * lib/linebreak.h: New file, from GNU gettext.
39642         * lib/linebreak.c: New file, from GNU gettext with slight
39643         modifications.
39644         * lib/lbrkprop.h: New file, from GNU gettext.
39645
39646 2003-04-03  Bruno Haible  <bruno@clisp.org>
39647
39648         * modules/utf8-ucs4: New file.
39649         * modules/utf16-ucs4: New file.
39650         * modules/ucs4-utf8: New file.
39651         * modules/ucs4-utf16: New file.
39652         * MODULES.html.sh (func_all_modules): Add them.
39653
39654 2003-04-03  Bruno Haible  <bruno@clisp.org>
39655
39656         * m4/utf-ucs4.m4: New file.
39657         * m4/ucs4-utf.m4: New file.
39658
39659 2003-04-03  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/utf8-ucs4.h: New file, from GNU gettext.
39662         * lib/utf16-ucs4.h: New file, from GNU gettext.
39663         * lib/ucs4-utf8.h: New file, from GNU gettext.
39664         * lib/ucs4-utf16.h: New file, from GNU gettext.
39665
39666 2003-04-02  Bruno Haible  <bruno@clisp.org>
39667
39668         * modules/binary-io: New file.
39669         * MODULES.html.sh (func_all_modules): Add it.
39670
39671 2003-04-02  Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/binary-io.h: New file, from GNU gettext.
39674
39675 2003-04-01  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/pathname: New file.
39678         * MODULES.html.sh (func_all_modules): Add it.
39679
39680 2003-04-01  Bruno Haible  <bruno@clisp.org>
39681
39682         * lib/pathname.h: New file, from GNU gettext.
39683         * lib/concatpath.c: New file, from GNU gettext.
39684
39685 2003-03-30  Bruno Haible  <bruno@clisp.org>
39686
39687         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39688
39689 2003-03-30  Bruno Haible  <bruno@clisp.org>
39690
39691         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39692         function chown() doesn't exist.
39693
39694 2003-03-28  Bruno Haible  <bruno@clisp.org>
39695
39696         * modules/copy-file: New file.
39697         * MODULES.html.sh (func_all_modules): Add it.
39698
39699 2003-03-28  Bruno Haible  <bruno@clisp.org>
39700
39701         * m4/copy-file.m4: New file.
39702
39703 2003-03-28  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/copy-file.h: New file, from GNU gettext.
39706         * lib/copy-file.c: New file, from GNU gettext.
39707
39708 2003-03-18  Jim Meyering  <jim@meyering.net>
39709
39710         * lib/quote.c (quote_n): Fix typo in comment.
39711
39712 2003-03-18  Bruno Haible  <bruno@clisp.org>
39713
39714         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39715         checking.
39716         * m4/onceonly_2_57.m4: Likewise.
39717
39718 2003-03-17  Bruno Haible  <bruno@clisp.org>
39719
39720         * m4/onceonly.m4: Require autoconf 2.54 or newer.
39721         (m4_quote): Remove macro.
39722         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39723
39724 2003-03-14  Jim Meyering  <jim@meyering.net>
39725
39726         Merge changes from Coreutils.
39727         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39728         to be const, in order to avoid warnings.
39729         (obstack_room): Likewise.
39730         (obstack_empty_p): Likewise.
39731
39732 2003-03-14  Bruno Haible  <bruno@clisp.org>
39733
39734         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39735         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39736
39737 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39738
39739         Merge changes from Bison.
39740         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39741         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39742         when compiling Bison 1.875's `bitset bset = obstack_alloc
39743         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
39744         * lib/hash.c: Include <stdbool.h> unconditionally.
39745
39746 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39747
39748         * m4/onceonly.m4 (m4_quote): New macro.
39749         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39750         Quote AC_FOREACH variable-expansions properly.
39751
39752 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39753
39754         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39755
39756 2003-03-09  Paul Eggert  <eggert@twinsun.com>
39757
39758         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39759         Reported by Bruce Becker; see:
39760         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39761
39762 2003-03-03  Paul Eggert  <eggert@twinsun.com>
39763             Bruno Haible  <bruno@clisp.org>
39764
39765         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39766         Reported by John Hughes, see
39767         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39768
39769 2003-02-20  Bruno Haible  <bruno@clisp.org>
39770
39771         * MODULES.html.sh (func_all_modules): Add poll.
39772
39773 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39774
39775         * modules/poll: New file.
39776
39777 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39778
39779         * lib/poll_.h: New file.
39780         * lib/poll.c: New file.
39781
39782 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
39783
39784         * m4/poll.m4: New file.
39785
39786 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39787
39788         * modules/mathl: New file.
39789
39790 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39791
39792         * lib/mathl.h: New file.
39793         * lib/acosl.c: New file.
39794         * lib/asinl.c: New file.
39795         * lib/atanl.c: New file.
39796         * lib/ceill.c: New file.
39797         * lib/cosl.c: New file.
39798         * lib/expl.c: New file.
39799         * lib/floorl.c: New file.
39800         * lib/frexpl.c: New file.
39801         * lib/ldexpl.c: New file.
39802         * lib/logl.c: New file.
39803         * lib/sincosl.c: New file.
39804         * lib/sinl.c: New file.
39805         * lib/sqrtl.c: New file.
39806         * lib/tanl.c: New file.
39807         * lib/trigl.c: New file.
39808         * lib/trigl.h: New file.
39809
39810 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
39811
39812         * m4/mathl.m4: New file.
39813
39814 2003-02-18  Bruno Haible  <bruno@clisp.org>
39815
39816         * MODULES.html.sh (func_all_modules): Add mathl.
39817
39818 2003-02-17  Bruno Haible  <bruno@clisp.org>
39819
39820         * modules/mkdtemp: New module.
39821         * MODULES.html.sh (func_all_modules): Add it.
39822
39823 2003-02-17  Bruno Haible  <bruno@clisp.org>
39824
39825         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39826
39827 2003-02-17  Bruno Haible  <bruno@clisp.org>
39828
39829         * lib/mkdtemp.h: New file, from GNU gettext.
39830         * lib/mkdtemp.c: New file, from GNU gettext.
39831
39832 2003-02-02  Jim Meyering  <jim@meyering.net>
39833
39834         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39835         e.g. glibc-2.2.93.
39836
39837 2003-01-31  Bruno Haible  <bruno@clisp.org>
39838
39839         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39840         'rpl_rename'.
39841         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39842         'rpl_strnlen'.
39843         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39844         'rpl_strtod'.
39845         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39846         'rpl_utime'.
39847
39848 2003-01-31  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/rename.c: #undef rename before defining rpl_rename.
39851         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39852
39853 2003-01-30  Bruno Haible  <bruno@clisp.org>
39854
39855         * modules/vasnprintf, modules/vasprintf: New modules.
39856         * MODULES.html.sh (func_all_modules): Add them.
39857
39858 2003-01-30  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/signed.m4: New file, from GNU gettext.
39861         * m4/longdouble.m4: New file, from GNU gettext.
39862         * m4/wchar_t.m4: New file, from GNU gettext.
39863         * m4/wint_t.m4: New file, from GNU gettext.
39864         * m4/vasnprintf.m4: New file.
39865         * m4/vasprintf.m4: New file.
39866
39867 2003-01-30  Bruno Haible  <bruno@clisp.org>
39868
39869         * lib/printf-args.h: New file, from GNU gettext.
39870         * lib/printf-args.c: New file, from GNU gettext.
39871         * lib/printf-parse.h: New file, from GNU gettext.
39872         * lib/printf-parse.c: New file, from GNU gettext.
39873         * lib/vasnprintf.h: New file, from GNU gettext.
39874         * lib/vasnprintf.c: New file, from GNU gettext.
39875         * lib/asnprintf.c: New file, from GNU gettext.
39876         * lib/vasprintf.h: New file, from GNU gettext with modifications.
39877         * lib/vasprintf.c: New file, from GNU gettext.
39878         * lib/asprintf.c: New file, from GNU gettext.
39879
39880 2003-01-29  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/stpncpy: New module.
39883         * MODULES.html.sh (func_all_modules): Add it.
39884
39885 2003-01-29  Bruno Haible  <bruno@clisp.org>
39886
39887         * m4/stpncpy.m4: New file.
39888
39889 2003-01-29  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/stpncpy.h: New file, from GNU gettext with modifications.
39892         * lib/stpncpy.c: New file, from GNU gettext with modifications.
39893
39894 2003-01-28  Bruno Haible  <bruno@clisp.org>
39895
39896         * modules/c-ctype: New module.
39897         * MODULES.html.sh (func_all_modules): Add it.
39898
39899 2003-01-28  Bruno Haible  <bruno@clisp.org>
39900
39901         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
39902         Paul Eggert.
39903         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
39904         Paul Eggert.
39905
39906 2003-01-27  Bruno Haible  <bruno@clisp.org>
39907
39908         * modules/xsetenv: New module.
39909         * MODULES.html.sh (func_all_modules): Add it.
39910
39911 2003-01-27  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/xsetenv.h: New file, from GNU gettext.
39914         * lib/xsetenv.c: New file, from GNU gettext.
39915
39916 2003-01-23  Jim Meyering  <jim@meyering.net>
39917
39918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
39919         from working on systems without dirfd (at least Irix and OSF1/Tru64).
39920
39921 2003-01-23  Bruno Haible  <bruno@clisp.org>
39922
39923         * modules/minmax: New module.
39924         * MODULES.html.sh (func_all_modules): Add it.
39925
39926 2003-01-23  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
39929         Eggert.
39930
39931 2003-01-22  Bruno Haible  <bruno@clisp.org>
39932
39933         * modules/exit: New module.
39934         * MODULES.html.sh (func_all_modules): Add it.
39935
39936 2003-01-22  Bruno Haible  <bruno@clisp.org>
39937
39938         * lib/exit.h: New file, from GNU gettext.
39939
39940 2003-01-19  Bruno Haible  <bruno@clisp.org>
39941
39942         * gnulib-tool: Recognize option --extract-maintainer.
39943         (func_get_maintainer): New function.
39944         * modules/*: Add Maintainer entry.
39945
39946 2003-01-16  Jim Meyering  <jim@meyering.net>
39947
39948         * m4/regex.m4: The `regex' struct is both input and output.
39949         Initialize it before each use.  Patch by Tim Waugh.
39950
39951 2003-01-16  Bruno Haible  <bruno@clisp.org>
39952
39953         * MODULES.html.sh: Add a table of contents. Add the module name as
39954         leftmost column. Add hyperlinks.
39955
39956 2003-01-15  Bruno Haible  <bruno@clisp.org>
39957
39958         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
39959
39960 2003-01-15  Bruno Haible  <bruno@clisp.org>
39961
39962         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
39963         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
39964         suffix.
39965
39966 2003-01-15  Bruno Haible  <bruno@clisp.org>
39967
39968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
39969
39970 2003-01-15  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
39973         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
39974
39975 2003-01-14  Jim Meyering  <jim@meyering.net>
39976
39977         * lib/same.c (same_name): Tweak a comment.
39978
39979 2003-01-14  Bruno Haible  <bruno@clisp.org>
39980
39981         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
39982         when a string comparison is sufficient.
39983
39984 2003-01-14  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
39987         'unsigned int'.
39988
39989 2003-01-14  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/hash-pjw.c: Add comment about low quality of this function.
39992
39993 2003-01-13  Bruno Haible  <bruno@clisp.org>
39994
39995         * modules/stpcpy: Distribute lib/stpcpy.h.
39996         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
39997
39998 2003-01-13  Bruno Haible  <bruno@clisp.org>
39999
40000         * modules/*: Add a description.
40001         * modules/strpbrk: Fix Makefile.am snippet.
40002         * modules/strtoimax: Fix dependencies.
40003         * modules/strtoumax: Likewise.
40004
40005 2003-01-13  Bruno Haible  <bruno@clisp.org>
40006
40007         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40008         * modules/alloca (Makefile.am): All object files depend on alloca.h.
40009         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40010
40011 2003-01-13  Bruno Haible  <bruno@clisp.org>
40012
40013         * gnulib-tool (func_create_testdir): Store config/* files in the main
40014         directory.
40015         * config.rpath: Move to ...
40016         * config/config.rpath: ... here.
40017         * modules/gettext: Contains config/config.rpath, not config.rpath.
40018         * modules/iconv: Likewise.
40019
40020 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40021
40022         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40023         to avoid collisions with libcurses and libreadline.
40024
40025         * m4/getstr.m4: Remove.
40026         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40027
40028 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40029
40030         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40031         to avoid collisions with libcurses and libreadline.
40032
40033         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40034         * lib/getstr.h, getstr.c: Remove.
40035         * lib/getline.c: Include "getline.h", to check interface.
40036         Move body of old getstr.c here: this defines MIN_CHUNK and
40037         declares getdelim2, which is renamed from getstr.
40038         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40039
40040         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40041         All uses changed.
40042         * lib/linebuffer.h: Likewise.
40043         (readline): Remove backward-compatibility macro.
40044
40045 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40046
40047         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40048         to avoid collisions with libcurses and libreadline.
40049         * getstr: Remove.
40050         * MODULES.html.sh: Remove getstr.
40051         * modules/getline: Depend on unlocked-io, not getstr.
40052
40053 2003-01-12  Jim Meyering  <jim@meyering.net>
40054
40055         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
40056
40057 2003-01-10  Bruno Haible  <bruno@clisp.org>
40058
40059         * modules/alloca: Change Makefile.am requirements. Simplify Include
40060         requirements. Add lib/alloca_.h to file list.
40061
40062 2003-01-10  Bruno Haible  <bruno@clisp.org>
40063
40064         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
40065
40066 2003-01-10  Bruno Haible  <bruno@clisp.org>
40067
40068         * lib/alloca_.h: New file.
40069         * lib/getdate.y: Unconditionally include alloca.h.
40070         * lib/makepath.c: Likewise.
40071         * lib/setenv.c: Likewise.
40072         * lib/userspec.c: Likewise.
40073
40074 2003-01-09  Karl Berry  <karl@gnu.org>
40075
40076         * MODULES.html.sh: include `dirname $0` in PATH, to find
40077         gnulib-tool.
40078
40079 2003-01-09  Bruno Haible  <bruno@clisp.org>
40080
40081         * modules/stdbool: Change configure.ac, Makefile.am requirements.
40082         Simplify Include requirements. Add lib/stdbool.h.in to file list.
40083
40084 2003-01-09  Bruno Haible  <bruno@clisp.org>
40085
40086         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
40087
40088 2003-01-09  Bruno Haible  <bruno@clisp.org>
40089
40090         * lib/stdbool.h.in: New file.
40091
40092 2003-01-09  Bruno Haible  <bruno@clisp.org>
40093
40094         * gnulib-tool (func_all_modules): Ignore files ending in ~.
40095         * MODULES.html.sh: Likewise.
40096
40097 2003-01-08  Jim Meyering  <jim@meyering.net>
40098
40099         * lib/full-write.c: Undefine and define-away `const' after inclusion
40100         of errno.h, not before.  Suggestion from Bruno Haible.
40101
40102 2003-01-08  Bruno Haible  <bruno@clisp.org>
40103
40104         * modules/full-read: Depend on full-write.
40105
40106 2003-01-08  Bruno Haible  <bruno@clisp.org>
40107
40108         * lib/safe-read.c: Include specification header first, to ensure its
40109         selfcontainedness.
40110         * lib/full-write.c: Likewise.
40111
40112 2003-01-07  Jim Meyering  <jim@meyering.net>
40113
40114         * lib/full-write.c: Rework so that it may serve to define full_read,
40115         too.
40116         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
40117
40118 2003-01-07  Bruno Haible  <bruno@clisp.org>
40119
40120         * lib/strtoimax.c: Include <stdint.h> as an alternative to
40121         <inttypes.h>.
40122         * lib/xstrtol.h: Likewise.
40123         * lib/xstrtoimax.c: Likewise.
40124         * lib/xstrtoumax.c: Likewise.
40125         * lib/human.h: Likewise.
40126
40127         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
40128         on systems that have <inttypes.h> but not <stdint.h>.
40129
40130 2003-01-07  Bruno Haible  <bruno@clisp.org>
40131
40132         * MODULES.html.sh: Add copyright notice.
40133         (missed_files): Omit CVS directory entries.
40134         (func_module): Make it work with sed-3.02.
40135         * MODULES.txt: Remove file.
40136
40137 2003-01-06  Jim Meyering  <jim@meyering.net>
40138
40139         * lib/version-etc.c: Update year in translatable copyright string.
40140
40141 2003-01-03  Karl Berry  <karl@gnu.org>
40142
40143         * config/config.{guess,sub}: update from prep.
40144
40145 2003-01-02  Karl Berry  <karl@gnu.org>
40146
40147         * doc/COPYING.DOC: belatedly updated to 1.2.
40148
40149 2003-01-01  Karl Berry  <karl@gnu.org>
40150
40151         * gnulib-tool (func_verify_module): report module name $module in
40152         error message, not $1.
40153         * gnulib-tool (create-testdir): don't complain if destdir couldn't
40154         be created, only if it doesn't exist.
40155         * gnulib-tool (last_checkin_date): don't expand the $Date here.
40156
40157 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40158
40159         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40160
40161 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40162
40163         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40164         memcmp if strcoll doesn't work.
40165
40166 2002-12-31  Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/utime.c (utime_null): No need to call ftruncate if the file was
40169         nonempty.
40170
40171 2002-12-31  Bruno Haible  <bruno@clisp.org>
40172
40173         * lib/memcoll.c (STRCOLL): New macro.
40174         (memcoll): Use it.
40175
40176 2002-12-31  Bruno Haible  <bruno@clisp.org>
40177
40178         * lib/localcharset.h: New file.
40179         * lib/localcharset.c: Include it.
40180         * lib/unicodeio.c: Likewise.
40181
40182 2002-12-31  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40185         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40186
40187 2002-12-31  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/getline.h: Include <stddef.h>, for size_t.
40190
40191         * lib/unicodeio.h: Include <stddef.h>, for size_t.
40192         * lib/unicodeio.c: Don't include <stddef.h>.
40193
40194 2002-12-31  Bruno Haible  <bruno@clisp.org>
40195
40196         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40197         HAVE_TM_ZONE.
40198
40199 2002-12-24  Karl Berry  <karl@gnu.org>
40200
40201         * config/config.guess: update from prep.
40202
40203 2002-12-24  Bruno Haible  <bruno@clisp.org>
40204
40205         General infrasructure.
40206         * m4/README: Rewritten.
40207         * m4/onceonly.m4: New file.
40208         * m4/onceonly_2_57.m4: New file.
40209
40210         Module atexit.
40211         * m4/atexit.m4: New file.
40212
40213         Module strtod.
40214         * m4/strtod.m4: New file.
40215
40216         Module strtol.
40217         * m4/strtol.m4: New file.
40218
40219         Module strtoul.
40220         * m4/strtoul.m4: New file.
40221
40222         Module memchr.
40223         * m4/memchr.m4: New file.
40224
40225         Module memcmp.
40226         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40227         (jm_FUNC_MEMCMP): Invoke it.
40228
40229         Module memcpy.
40230         * m4/memcpy.m4: New file.
40231
40232         Module memmove.
40233         * m4/memmove.m4: New file.
40234
40235         Module memset.
40236         * m4/memset.m4: New file.
40237
40238         Module strcspn.
40239         * m4/strcspn.m4: New file.
40240
40241         Module strpbrk.
40242         * m4/strpbrk.m4: New file.
40243
40244         Module strstr.
40245         * m4/strstr.m4: New file.
40246
40247         Module strerror.
40248         * m4/strerror.m4: New file.
40249
40250         Module mktime.
40251         * m4/mktime.m4: Renamed from jm-mktime.m4.
40252         (gl_PREREQ_MKTIME): New macro.
40253         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40254
40255         Module malloc.
40256         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40257         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40258         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40259
40260         Module realloc.
40261         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40262         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40263         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40264
40265         Module strftime.
40266         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40267         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40268         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40269         gl_TM_GMTOFF.
40270         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40271
40272         Module xalloc.
40273         * m4/xalloc.m4: New file.
40274
40275         Module alloca.
40276         * m4/alloca.m4: New file.
40277
40278         Module putenv.
40279         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40280         (jm_FUNC_PUTENV): Invoke it.
40281
40282         Module setenv.
40283         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40284         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40285         when invoked twice.
40286         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40287         gt_FUNC_SETENV.
40288
40289         Module memrchr.
40290         * m4/memrchr.m4: New file.
40291
40292         Module stpcpy.
40293         * m4/stpcpy.m4: New file.
40294
40295         Module strcase.
40296         * m4/strcase.m4: New file.
40297
40298         Module strdup.
40299         * m4/strdup.m4: New file.
40300
40301         Module strnlen.
40302         * m4/strnlen.m4: New file.
40303
40304         Module strndup.
40305         * m4/strndup.m4: New file.
40306
40307         Module xstrtod.
40308         * m4/xstrtod.m4: New file.
40309
40310         Module xstrtol.
40311         * m4/xstrtol.m4: New file.
40312
40313         Module getdate.
40314         * m4/getdate.m4: New file.
40315
40316         Module unlocked-io.
40317         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40318         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40319         * m4/jm-glibc-io.m4n: Remove file.
40320
40321         Module long-options.
40322         * m4/long-options.m4: New file.
40323
40324         Module md5.
40325         * m4/md5.m4: New file.
40326
40327         Module sha.
40328         * m4/sha.m4: New file.
40329
40330         Module getstr.
40331         * m4/getstr.m4: New file.
40332
40333         Module getline.
40334         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40335         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40336         <sys/types.h>, for size_t. Use the function name gnu_getline, not
40337         simply getline. Infoke gl_PREREQ_GETLINE.
40338
40339         Module obstack.
40340         * m4/obstack.m4: New file.
40341
40342         Module hash.
40343         * m4/hash.m4: New file.
40344
40345         Module readtokens.
40346         * m4/readtokens.m4: New file.
40347
40348         Module strverscmp.
40349         * m4/strverscmp.m4: New file.
40350
40351         Module stdbool.
40352         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40353         OSF/1.
40354
40355         Module strtoll.
40356         * m4/strtoll.m4: New file.
40357
40358         Module strtoull.
40359         * m4/strtoull.m4: New file.
40360
40361         Module strtoimax.
40362         * m4/strtoimax.m4: New file.
40363
40364         Module strtoumax.
40365         * m4/strtoumax.m4: New file.
40366
40367         Module xstrtoimax.
40368         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40369         jm_AC_PREREQ_XSTRTOIMAX.
40370         Moved the strtol prerequisites to strtol.m4.
40371         Moved the strtoll prerequisites to strtoll.m4.
40372         Moved the strtoimax prerequisites to strtoimax.m4.
40373
40374         Module xstrtoumax.
40375         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40376         jm_AC_PREREQ_XSTRTOUMAX.
40377         Moved the strtoul prerequisites to strtoul.m4.
40378         Moved the strtoull prerequisites to strtoull.m4.
40379         Moved the strtoumax prerequisites to strtoumax.m4.
40380
40381         Module chown.
40382         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40383         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40384
40385         Module dup2.
40386         * m4/dup2.m4: New file.
40387
40388         Module ftruncate.
40389         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40390         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40391
40392         Module getgroups.
40393         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40394         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40395
40396         Module gettimeofday.
40397         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40398         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40399         gl_PREREQ_GETTIMEOFDAY.
40400
40401         Module mkdir.
40402         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40403         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40404
40405         Module mkstemp.
40406         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40407         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40408         jm_AC_TYPE_UINTMAX_T.
40409         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40410
40411         Module stat.
40412         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40413         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40414
40415         Module lstat.
40416         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40417         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40418
40419         Module timespec.
40420         * m4/timespec.m4 (gl_TIMESPEC): New macro.
40421         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40422         * m4/st_mtim.m4: Indentation.
40423
40424         Module nanosleep.
40425         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40426         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40427         gl_PREREQ_NANOSLEEP.
40428
40429         Module regex.
40430         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40431         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40432         (gl_REGEX): New macro.
40433
40434         Module rename.
40435         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40436         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40437
40438         Module rmdir.
40439         * m4/rmdir.m4: New file.
40440
40441         Module utime.
40442         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40443         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40444         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40445
40446         Module dirname.
40447         * m4/dirname.m4: New file.
40448
40449         Module getopt.
40450         * m4/getopt.m4: New file.
40451
40452         Module unistd-safer.
40453         * m4/unistd-safer.m4: New file.
40454
40455         Module fnmatch.
40456         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40457         declaration.
40458         (gl_PREREQ_FNMATCH_EXTRA): New macro.
40459         (gl_FUNC_FNMATCH_POSIX): New macro.
40460         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40461         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40462         simply fnmatch.
40463
40464         Module exclude.
40465         * m4/exclude.m4: New file.
40466
40467         Module human.
40468         * m4/human.m4: New file.
40469
40470         Module acl.
40471         * m4/acl.m4: Nop.
40472
40473         Module backupfile.
40474         * m4/backupfile.m4: New file.
40475         * m4/d-ino.m4: Indentation.
40476
40477         Module fsusage.
40478         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40479         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40480         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40481
40482         Module dirfd.
40483         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40484         requirements.
40485
40486         Module euidaccess.
40487         * m4/euidaccess.m4: New file.
40488
40489         Module file-type.
40490         * m4/file-type.m4: New file.
40491
40492         Module fileblocks.
40493         * m4/fileblocks.m4: New file.
40494
40495         Module filemode.
40496         * m4/filemode.m4: New file.
40497
40498         Module isdir.
40499         * m4/isdir.m4: New file.
40500
40501         Module lchown.
40502         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40503         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40504
40505         Module makepath.
40506         * m4/makepath.m4: New file.
40507
40508         Module modechange.
40509         * m4/modechange.m4: New file.
40510
40511         Module mountlist.
40512         * m4/mountlist.m4: New file.
40513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40514         Indentation.
40515
40516         Module path-concat.
40517         * m4/path-concat.m4: New file.
40518
40519         Module pathmax.
40520         * m4/pathmax.m4: New file.
40521
40522         Module same.
40523         * m4/same.m4: New file.
40524
40525         Module save-cwd.
40526         * m4/save-cwd.m4: New file.
40527
40528         Module savedir.
40529         * m4/savedir.m4: New file.
40530
40531         Module xgetcwd.
40532         * m4/xgetcwd.m4: New file.
40533         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40534
40535         Module xreadlink.
40536         * m4/xreadlink.m4: New file.
40537
40538         Module safe-read.
40539         * m4/safe-read.m4: New file.
40540
40541         Module safe-write.
40542         * m4/safe-write.m4: New file.
40543
40544         Module closeout.
40545         * m4/closeout.m4: New file.
40546
40547         Module stdio-safer.
40548         * m4/stdio-safer.m4: New file.
40549
40550         Module getpass.
40551         * m4/getpass.m4: New file.
40552
40553         Module getugroups.
40554         * m4/getugroups.m4: New file.
40555
40556         Module group-member.
40557         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40558         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40559
40560         Module idcache.
40561         * m4/idcache.m4: New file.
40562
40563         Module userspec.
40564         * m4/userspec.m4: New file.
40565
40566         Module gettime.
40567         * m4/clock_time.m4: New file.
40568         * m4/gettime.m4: New file.
40569
40570         Module settime.
40571         * m4/settime.m4: New file.
40572
40573         Module posixtm.
40574         * m4/posixtm.m4: New file.
40575
40576         Module gethostname.
40577         * m4/gethostname.m4: New file.
40578
40579         Module canon-host.
40580         * m4/canon-host.m4: New file.
40581
40582         Module gettext.
40583         * m4/codeset.m4: New file, from gettext-0.11.5.
40584         * m4/gettext.m4: New file, from gettext-0.11.5.
40585         * m4/glibc21.m4: New file, from gettext-0.11.5.
40586         * m4/iconv.m4: New file, from gettext-0.11.5.
40587         * m4/intdiv0.m4: New file, from gettext-0.11.5.
40588         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40589         * m4/inttypes.m4: New file, from gettext-0.11.5.
40590         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40591         * m4/isc-posix.m4: New file, from gettext-0.11.5.
40592         * m4/lcmessage.m4: New file, from gettext-0.11.5.
40593         * m4/lib-ld.m4: New file, from gettext-0.11.5.
40594         * m4/lib-link.m4: New file, from gettext-0.11.5.
40595         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40596         * m4/progtest.m4: New file, from gettext-0.11.5.
40597         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40598         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40599         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40600
40601         Module localcharset.
40602         * m4/localcharset.m4: New file.
40603
40604         Module hard-locale.
40605         * m4/hard-locale.m4: New file.
40606
40607         Module mbswidth.
40608         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40609         onceonly macros.
40610         * m4/mbrtowc.m4: Add comment.
40611
40612         Module memcasecmp.
40613         * m4/memcasecmp.m4: New file.
40614
40615         Module memcoll.
40616         * m4/memcoll.m4: New file.
40617
40618         Module unicodeio.
40619         * m4/unicodeio.m4: New file.
40620
40621         Module rpmatch.
40622         * m4/rpmatch.m4: New file.
40623
40624         Module yesno.
40625         * m4/yesno.m4: New file.
40626
40627         Module exitfail.
40628         * m4/exitfail.m4: New file.
40629
40630         Module c-stack.
40631         * m4/c-stack.m4 (gl_C_STACK): New macro.
40632         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40633
40634         Module error.
40635         * m4/error.m4 (gl_ERROR): New macro.
40636         (jm_PREREQ_ERROR): Use onceonly macros.
40637
40638         Module fatal.
40639         * m4/fatal.m4: New file.
40640
40641         Module getloadavg.
40642         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40643         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40644
40645         Module getpagesize.
40646         * m4/getpagesize.m4: New file.
40647
40648         Module getusershell.
40649         * m4/getusershell.m4: New file.
40650
40651         Module physmem.
40652         * m4/physmem.m4: New file.
40653
40654         Module posixver.
40655         * m4/posixver.m4: New file.
40656
40657         Module quotearg.
40658         * m4/quotearg.m4: New file.
40659
40660         Module quote.
40661         * m4/quote.m4: New file.
40662
40663         Module readutmp.
40664         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40665
40666         Module sig2str.
40667         * m4/sig2str.m4: New file.
40668
40669         Other.
40670         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40671         ulonglong.m4.
40672         * m4/intmax_t.m4: New file.
40673         * m4/d-type.m4: Indentation.
40674         * m4/jm-macros.m4: Update.
40675         * m4/prereq.m4 (jm_PREREQ): Update.
40676         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40677         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40678         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40679         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40680         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40681         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40682         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40683         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40684         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40685         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40686         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40687         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40688         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40689         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40690         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40691         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40692         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40693         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40694         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40695
40696 2002-12-24  Bruno Haible  <bruno@clisp.org>
40697
40698         * MODULES.txt: Update according to m4/ changes.
40699
40700         Module gettext.
40701         * config.rpath: New file, from gettext-0.11.5.
40702
40703         * modules/*: New module descriptions.
40704         * gnulib-tool: New file.
40705         * MODULES.html.sh: New file.
40706
40707 2002-12-21  Karl Berry  <karl@gnu.org>
40708
40709         * doc/fdl.texi: update to version 1.2.
40710
40711 2002-12-19  Karl Berry  <karl@gnu.org>
40712
40713         * config/config.guess: update from prep.
40714
40715 2002-12-18  Bruno Haible  <bruno@clisp.org>
40716
40717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40718         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40719
40720 2002-12-17  Bruno Haible  <bruno@clisp.org>
40721
40722         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40723         stdlib.h, string.h.
40724
40725 2002-12-17  Bruno Haible  <bruno@clisp.org>
40726
40727         * lib/canon-host.c (strdup): Remove unused declaration.
40728
40729         * lib/fsusage.c: Include full_read.h.
40730         (get_fs_usage): Use full_read instead of safe_read.
40731
40732         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40733
40734 2002-12-12  Karl Berry  <karl@gnu.org>
40735
40736         * config/config.guess: update from prep.
40737
40738 2002-12-11  Bruno Haible  <bruno@clisp.org>
40739
40740         * m4/setenv.m4: New file, from gettext-0.11.5.
40741
40742 2002-12-11  Bruno Haible  <bruno@clisp.org>
40743
40744         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40745         not unsetenv().
40746         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40747         modifications:
40748
40749         2002-12-11  Bruno Haible  <bruno@clisp.org>
40750
40751                 * setenv.c (alloca): Fall back to malloc.
40752                 (freea): New macro.
40753                 (setenv): Use freea() to free memory allocated with alloca().
40754
40755         2002-11-13  Bruno Haible  <bruno@clisp.org>
40756
40757                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40758                 function declarations.
40759                 * unsetenv.c (unsetenv): Likewise.
40760
40761         2002-03-04  Bruno Haible  <bruno@clisp.org>
40762
40763                 Portability to AIX 4.3.3.
40764                 * unsetenv.c: New file, extracted from setenv.c.
40765                 * setenv.c: Move the unsetenv() function to unsetenv.c.
40766
40767         2001-12-20  Bruno Haible  <bruno@clisp.org>
40768
40769                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40770                 use malloc instead. For SunOS 4.
40771
40772         2001-12-11  Bruno Haible  <bruno@clisp.org>
40773
40774                 * setenv.c: Declare alloca.
40775                 (compar_fn_t): New typedef.
40776                 (KNOWN_VALUE, STORE_VALUE): Use it.
40777
40778         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40779         setenv.h.
40780
40781 2002-12-10  Paul Eggert  <eggert@twinsun.com>
40782
40783         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40784         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40785         Choose values that are less likely to collide with system fnmatch
40786         options.
40787         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40788         defined (e.g., a pure POSIX system).
40789         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40790         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40791
40792 2002-12-06  Paul Eggert  <eggert@twinsun.com>
40793
40794         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40795         a pain in practice to deal with generated m4 files.  This change
40796         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40797
40798         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40799         and jm-glibc-io.m4, as they are no longer a special case.
40800         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40801         kludge and the auto-generation stuff.  Check only whether the
40802         functions are declared, not whether they exist, since older hosts
40803         that don't declare the functions can't use the optimization anyway.
40804
40805 2002-12-06  Jim Meyering  <jim@meyering.net>
40806
40807         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40808
40809         Merge in changes from libc's misc/error.c, in preparation
40810         for the merge of gnulib's changes back into libc.
40811
40812         * lib/error.c (_): Define only if not already defined.
40813         Move definition to follow all #include directives.
40814         Include unlocked-io.h only if !_LIBC.
40815         [_LIBC]: Include <libio/libioP.h>.
40816         [USE_IN_LIBIO]: Include <libio/iolibio.h>
40817         (fflush): Tweak definition to use INTUSE.
40818         (putc): Define.
40819
40820 2002-12-05  Paul Eggert  <eggert@twinsun.com>
40821
40822         * lib/alloca.c [defined emacs]: Include "lisp.h".
40823         (xalloc_die) [defined emacs]: New macro.
40824         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40825         [! defined emacs]: Include <xalloc.h>.
40826         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40827         (pointer): Typedef to POINTER_TYPE *.
40828         (malloc): Remove decl; we now always use xmalloc.
40829         (alloca): Use old-style definition, since Emacs needs this.
40830         Check for arithmetic overflow when computing combined size.
40831
40832 2002-12-04  Paul Eggert  <eggert@twinsun.com>
40833
40834         Do not generate unlocked-io.h automatically, since it's easier to
40835         maintain it by hand.
40836
40837         * lib/unlocked-io.h: New file, from GNU diffutils,
40838         but with proper copyright notice and attribution.
40839         * lib/gen-uio: Remove.
40840         * lib/Makefile.am: Add copyright notice.
40841         (libfetish_a_SOURCES): Add unlocked-io.h.
40842         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40843         (DISTCLEANFILES, io_functions): Remove macros.
40844         (EXTRA_DIST): Remove gen_uio.
40845         (unlocked-io.h): Remove rule.
40846
40847 2002-12-04  Jim Meyering  <jim@meyering.net>
40848
40849         Reflect the fact that stat.c and lstat.c are no longer generated.
40850         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40851         (DISTCLEANFILES): Likewise.
40852         (EXTRA_DIST): Likewise.
40853         (all_local): Don't depend on stat.c or lstat.c.
40854         (stat.c, lstat.c): Remove rules.
40855         (EXTRA_DIST): Remove xstat.in.
40856
40857         * lib/xstat.in: Remove file.  Contents moved into stat.c.
40858         * lib/stat.c: New file.  Contents mostly from xstat.in.
40859         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40860         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40861
40862         * lib/safe-read.c: Rework so that it may serve to define safe_write,
40863         too.
40864         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
40865
40866 2002-12-03  Jim Meyering  <jim@meyering.net>
40867
40868         * lib/safe-read.c, safe-write.c: Change variable names and comments,
40869         but not semantics, to minimize the differences between these two files.
40870         (safe_read): Change comment to mention SAFE_READ_ERROR.
40871
40872         * lib/safe-read.c (IS_EINTR): Define.
40873         (safe_read): Use IS_EINTR in place of in-function cpp directives.
40874
40875 2002-12-02  Jim Meyering  <jim@meyering.net>
40876
40877         * lib/safe-read.c (EINTR): Define.
40878         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40879         (INT_MAX): Provide fallback.
40880         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
40881
40882         * lib/safe-read.h (SAFE_READ_ERROR): Define.
40883
40884 2002-12-02  Bruno Haible  <bruno@clisp.org>
40885
40886         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
40887         Define, taken from safe-read.c.
40888         (INT_MAX): Provide fallback.
40889         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
40890         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
40891
40892         * lib/safe-read.c (EINTR): Remove definition.
40893         (safe_read): Don't use EINTR if it is absent.
40894
40895 2002-12-01  Jim Meyering  <jim@meyering.net>
40896
40897         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
40898         zero.
40899         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
40900
40901 2002-11-27  Paul Eggert  <eggert@twinsun.com>
40902
40903         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
40904         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
40905         with `if (! (value < limit)) abort ();', for readability.
40906
40907 2002-11-26  Karl Berry  <karl@gnu.org>
40908
40909         * lib/strdup.c: copy from libc again, with jim's ok.
40910         * lib/.cppi-disable: re-add strdup.c
40911
40912 2002-11-25  Karl Berry  <karl@gnu.org>
40913
40914         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
40915         instead of "strtol.c".
40916
40917 2002-11-25  Karl Berry  <karl@gnu.org>
40918
40919         * config/install-sh: update from automake for variable quoting, $0 in
40920         error msgs, etc.
40921
40922         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
40923         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
40924         entry.
40925
40926 2002-11-25  Jim Meyering  <jim@meyering.net>
40927
40928         * lib/mktime.c: Sync from libc, now that it has the latest fix.
40929
40930 2002-11-24  Karl Berry  <karl@gnu.org>
40931
40932         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
40933         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
40934
40935 2002-11-24  Jim Meyering  <jim@meyering.net>
40936
40937         Update from coreutils:
40938
40939         * lib/mktime.c: Merge in changes from libc.
40940
40941         Avoid a link-time failure on some Linux systems.
40942         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
40943         (otherwise).
40944         (__mon_yday): Declare with the STATIC attribute.
40945         (__mktime_internal): Likewise.
40946         Based on a report from Greg Schafer.
40947
40948 2002-11-23  Jim Meyering  <jim@meyering.net>
40949
40950         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
40951         Use `unsigned', not `int', as type of index.
40952
40953         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
40954
40955         * lib/fsusage.c: Remove unneeded parentheses around operands of
40956         `defined'.
40957
40958 2002-11-22  Paul Eggert  <eggert@twinsun.com>
40959
40960         * lib/quotearg.h: Allow multiple inclusion by surrounding with
40961         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
40962         so that we can be included first.
40963         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
40964         * lib/quotearg.c: Include quotearg.h immediately after config.h.
40965         No need to include stddef.h or sys/types.h any more.
40966         Surround local include files with "", not "<>".
40967         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
40968         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
40969         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
40970         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
40971         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
40972         (ISPRINT): Remove; no longer needed now that we assume C89.
40973
40974         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
40975         Preserve errno.
40976
40977         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
40978         quotearg_char): Use SIZE_MAX rather than
40979         (size_t) -1 when we are talking about "infinity".
40980
40981         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
40982
40983 2002-11-22  Paul Eggert  <eggert@twinsun.com>
40984
40985         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
40986         hint that one should use `if (! x) abort ();' rather than `assert
40987         (x);', and anyway it's one less thing to worry about configuring.
40988         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
40989         hash_rehash, hash_insert): Use abort rather than assert.
40990
40991 2002-11-22  Bruno Haible  <bruno@clisp.org>
40992
40993         * lib/safe-read.h: Assume C89. Add comments.
40994         (safe_read): Change return type to size_t.
40995         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
40996         byte counts > SSIZE_MAX correctly.
40997         * lib/safe-write.h: New file.
40998         * lib/safe-write.c: New file.
40999         * lib/full-read.h: New file.
41000         * lib/full-read.c: New file.
41001         * lib/full-write.h: Assume C89. Add comments.
41002         * lib/full-write.c: Include safe-write.h.
41003         (full_write): Rewritten to use safe_write.
41004         Suggested by Jim Meyering and Paul Eggert.
41005
41006 2002-11-21  Jim Meyering  <jim@meyering.net>
41007
41008         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41009
41010         Merge in changes from the coreutils.
41011
41012         2002-09-25  Paul Eggert  <eggert@twinsun.com>
41013         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41014         <stdint.h>.
41015         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41016         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41017         int.  Work more efficiently if X is the same width as uintmax_t.
41018         Do not compare X to -1, to avoid bogus compiler warning.
41019         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41020         Don't assume that f_frsize and f_bsize are the same type.
41021
41022         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41023         warning on FreeBSD.
41024
41025         * lib/makepath.c (make_path): Restore umask *before* creating the final
41026         component.
41027         (make_path): Minor reformatting.
41028
41029         * lib/xmalloc.c: Adjust to work with new autoconf macros,
41030         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41031         HAVE_MALLOC/HAVE_REALLOC.
41032
41033         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41034         dummy ones.  At least on GNU/Linux systems, `auto' means something
41035         else.
41036         From Michael Stone.
41037
41038 2002-11-21  Bruno Haible  <bruno@clisp.org>
41039
41040         Remove case insensitive option matching.
41041         * lib/argmatch.h (argcasematch): Remove declaration.
41042         (ARGCASEMATCH): Remove macro.
41043         (__xargmatch_internal): Remove case_sensitive argument.
41044         (XARGMATCH): Update.
41045         (XARGCASEMATCH): Remove macro.
41046         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41047         case_sensitive argument.
41048         (argcasematch): Remove function.
41049         (__xargmatch_internal): Remove case_sensitive argument.
41050         (main): Use XARGMATCH instead of XARGCASEMATCH.
41051
41052         * lib/xmalloc.c: Change compile-time error message. Add comment about
41053         required autoconf version.
41054
41055 2002-11-20  Paul Eggert  <eggert@twinsun.com>
41056
41057         Merge argmatch cleanups from Bison.  Assume C89.
41058
41059         * lib/argmatch.c: Include config.h here, not in argmatch.h.
41060         Include stdlib.h, for EXIT_FAILURE.
41061         Always include <string.h>, since we assume C89.
41062         (EXIT_FAILURE): Remove pre-C89 bug workaround.
41063         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
41064         Include <stddef.h> instead, since it's all we need for size_t.
41065         (PARAMS): Remove.  All uses removed.
41066         (ARRAY_CARDINALITY): Do not bother to #undef.
41067         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
41068         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41069         Remove unnecessary parentheses.
41070         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41071         Insert necessary parentheses.
41072         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
41073         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
41074
41075 2002-11-19  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
41078         * lib/mbswidth.h: Include <stddef.h>, for size_t.
41079
41080         * lib/mbswidth.h (PARAMS): Remove macro.
41081         (mbswidth, mbsnwidth): Use ANSI C function declarations.
41082         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
41083
41084         * lib/gcd.h (PARAMS): Remove macro.
41085         (gcd): Use ANSI C function declarations.
41086         * lib/gcd.c (gcd): Likewise.
41087
41088 2002-11-15  Bruno Haible  <bruno@clisp.org>
41089
41090         * lib/strcspn.c: Include <stddef.h>.
41091         (strcspn): Use ANSI C function declaration. Change return type to
41092         size_t. Use NULL.
41093         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
41094         (strpbrk): Use NULL.
41095         * lib/strpbrk.h (PARAMS): Remove macro.
41096         (strpbrk): Use ANSI C function declaration.
41097         * lib/strstr.c: Don't include <sys/types.h>.
41098         * lib/strstr.h (PARAMS): Remove macro.
41099         (strstr): Use ANSI C function declarations.
41100
41101 2002-11-14  Karl Berry  <karl@gnu.org>
41102
41103         * config/mkinstalldirs: `do' on separate line, instead of
41104         `for var; do'.
41105
41106 2002-11-06  Bruno Haible  <bruno@clisp.org>
41107
41108         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
41109         * lib/gcd.c (gcd): Likewise.
41110
41111 2002-11-05  Bruno Haible  <bruno@clisp.org>
41112
41113         * lib/gcd.h: New file, from gettext-0.11.5.
41114         * lib/gcd.c: New file, from gettext-0.11.5.
41115
41116 2002-11-05  Bruno Haible  <bruno@clisp.org>
41117
41118         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41119         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41120         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41121         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41122
41123         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
41124         <libintl.h>.
41125         * lib/makepath.c: Include gettext.h instead of <locale.h> and
41126         <libintl.h>.
41127
41128         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
41129         * lib/human.c: Include gettext.h instead of <libintl.h>.
41130         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
41131         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
41132         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
41133         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
41134         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
41135         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
41136         (textdomain): Remove definition.
41137         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41138
41139         * lib/long-options.c: Remove include of <libintl.h> and definition of
41140         _.
41141         * lib/same.c: Remove include of <libintl.h> and definition of _.
41142
41143 2002-11-04  Owen Taylor  <otaylor@redhat.com>
41144
41145         * lib/config.charset: A few additions for Solaris.
41146
41147 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41148
41149         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41150         * lib/localcharset.c (locale_charset): Declare as extern "C".
41151
41152 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41153
41154         * lib/config.charset: msdos in uk_UA uses CP1125.
41155
41156 2002-11-04  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41159         * lib/strcase.h: New file, from GNU gettext-0.11.5.
41160         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41161         * lib/strstr.h: New file, from GNU gettext-0.11.5.
41162         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41163
41164 2002-11-04  Bruno Haible  <bruno@clisp.org>
41165
41166         * lib/localcharset.c (locale_charset): Don't return an empty string.
41167
41168 2002-11-04  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41171         aliases.
41172
41173 2002-11-04  Bruno Haible  <bruno@clisp.org>
41174
41175         * lib/config.charset: Update for newest glibc. Add canonical names
41176         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41177
41178 2002-11-04  Bruno Haible  <bruno@clisp.org>
41179
41180         * lib/config.charset: Add support for NetBSD.
41181
41182 2002-11-04  Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41185
41186 2002-11-01  Bruno Haible  <bruno@clisp.org>
41187
41188         * configure.in: Add AC_CONFIG_AUX_DIR call.
41189         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41190         test/Makefile.
41191         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41192
41193 2002-09-28  Karl Berry  <karl@gnu.org>
41194
41195         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41196         installed automake until the next release, since changes have been
41197         made.
41198
41199 2002-09-25  Karl Berry  <karl@gnu.org>
41200
41201         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41202         * lib/getopt*: copy from libc/posix.
41203         * lib/gettext.h: copy from gettext.
41204         * lib/.cppi-disable: add strdup.c, gettext.h.
41205
41206 2002-09-25  Karl Berry  <karl@gnu.org>
41207
41208         * config/srclist.txt: enable gettext.h check.
41209         * config/config.{guess,sub}: update from prep.
41210         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41211                 from automake 1.6.3.
41212         See srclist*.
41213
41214 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
41215
41216         * regex.c (PATFETCH): Remove the translating fetch.
41217         (PATFETCH_RAW): Rename to PATFETCH.
41218         (set_image_of_range): New fun.
41219         (SET_RANGE_TABLE_WORK_AREA): Use it.
41220         (regex_compile): Don't translate the pattern chars so eagerly.
41221         Only do it when inserting an `exactn' bytecode or when handling
41222         a char-range.
41223         (mutually_exclusive_p): Avoid empty statement.
41224
41225 2002-07-06  Jim Meyering  <meyering@lucent.com>
41226
41227         * m4/README: Don't mention Makefile.am.in.
41228         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
41229
41230 2002-07-01  Jim Meyering  <meyering@lucent.com>
41231
41232         * lib/c-stack.c: Include sys/time.h.
41233         From Volker Borchert.
41234
41235 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41236
41237         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41238
41239 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41240
41241         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41242         New macro.  Use it uniformly instead of
41243         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41244         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41245         reported by Vin Shelton.
41246
41247 2002-06-22  Paul Eggert  <eggert@twinsun.com>
41248
41249         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41250         Do not assume SA_SIGINFO behavior.
41251         Bug reported by Jim Meyering on NetBSD 1.5.2.
41252
41253 2002-06-22  Jim Meyering  <meyering@lucent.com>
41254
41255         * m4/c-stack.m4: New file, from diffutils-2.8.2.
41256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41257
41258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41259         now that configure.ac uses AC_GNU_SOURCE.
41260         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41261         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41262
41263         Update to latest tools.  Suggestions from Paul Eggert.
41264         * m4/stdbool.m4: New file, from diffutils-2.8.2.
41265         * m4/gnu-source.m4: Update from diffutils-2.8.2.
41266         * m4/fnmatch.m4: Likewise.
41267         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41268         to AC_HEADER_STDBOOL
41269
41270 2002-06-22  Jim Meyering  <meyering@lucent.com>
41271
41272         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41273         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41274
41275 2002-06-22  Jim Meyering  <meyering@lucent.com>
41276
41277         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41278
41279         * lib/exitfail.c, exitfail.h: Likewise.
41280         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41281
41282         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41283         of fnmatch.h.
41284         (EXTRA_DIST): Add fnmatch_loop.c.
41285         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41286
41287         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41288         * lib/fnmatch.c: Update from diffutils-2.8.2.
41289         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
41290         * lib/fnmatch.h: Remove file.
41291
41292 2002-06-21  Jim Meyering  <meyering@lucent.com>
41293
41294         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41295         * m4/mbrtowc.m4: Likewise.
41296
41297         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41298         * m4/mbswidth.m4: Reflect name change:
41299         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41301
41302         * m4/lib-link.m4: Update from gettext-0.11.2.
41303         * m4/gettext.m4: Likewise.
41304
41305         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41306         From Alfred M. Szmidt.
41307
41308 2002-06-18  Paul Eggert  <eggert@twinsun.com>
41309
41310         * lib/file-type.h: Report an error if neither S_ISREG nor
41311         S_IFREG is defined, instead of using a test specific to glibc
41312         2.2.  This should be safe, since POSIX requires S_ISREG and
41313         Unix Version 7 had S_IFREG.  We don't need to check for
41314         <sys/types.h> since we don't use any symbols that it defines.
41315
41316 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
41317
41318         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41319         $@-t, so that each temporary file name is unique and valid in the first
41320         8 characters, for operation under DOS.
41321
41322 2002-06-15  Paul Eggert  <eggert@twinsun.com>
41323
41324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41325
41326 2002-06-15  Jim Meyering  <meyering@lucent.com>
41327
41328         Work even with DJGPP 2.03, which lacks support for symlinks.
41329         From Richard Dawe.
41330         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41331         is defined.
41332         * lib/lchown.c (S_ISLNK): Likewise.
41333
41334 2002-06-15  Jim Meyering  <meyering@lucent.com>
41335
41336         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41337         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41338         have been included before this file.
41339
41340 2002-06-14  Jim Meyering  <meyering@lucent.com>
41341
41342         * lib/file-type.h: Use the version from diffutils-2.8.2.
41343         * lib/file-type.c: Likewise.
41344
41345 2002-06-07  Jim Meyering  <meyering@lucent.com>
41346
41347         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41348         They're needed at least for NetBSD 1.5.2.
41349         ($statxfs_includes): Include those same headers.
41350         ($statxfs_includes): Include sys/vfs.h if available.
41351         ($statxfs_includes): Likewise for sys/statvfs.h.
41352         Check for the following members in both structs statfs and statvfs:
41353         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41354
41355 2002-06-01  Jim Meyering  <meyering@lucent.com>
41356
41357         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41358         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41359
41360 2002-05-28  Jim Meyering  <meyering@lucent.com>
41361
41362         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41363         Reported by Volker Borchert.
41364
41365 2002-05-27  Jim Meyering  <meyering@lucent.com>
41366
41367         Fix a problem seen only on nonconforming systems whereby ls.c's
41368         use of localtime, and then of gettimeofday would cause trouble:
41369         the localtime call used to initialize rpl_gettimeofday's save
41370         mechanism would clobber ls's current local time information so
41371         that in any long listing the first file would always be listed
41372         with date 1970-01-01.  Analysis by Volker Borchert.
41373
41374         * lib/gettimeofday.c (localtime): Undefine.
41375         (rpl_localtime): New function.
41376
41377 2002-05-27  Jim Meyering  <meyering@lucent.com>
41378
41379         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41380         localtime.
41381
41382         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41383         use the replacement function; it wouldn't resolve at link time.
41384         Reported by Volker Borchert.
41385
41386 2002-05-22  Jim Meyering  <meyering@lucent.com>
41387
41388         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41389         file-type.h.
41390         * lib/file-type.h: New file.
41391         * lib/file-type.c (file_type): New file/function.  Extracted from
41392         diffutils.
41393
41394 2002-04-30  Jim Meyering  <meyering@lucent.com>
41395
41396         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41397
41398 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41399
41400         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41401
41402 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41403
41404         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41405         Do not check for alloca.h (no longer used) or stdbool.h (was never
41406         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
41407
41408 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41409
41410         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41411
41412 2002-04-29  Jim Meyering  <meyering@lucent.com>
41413
41414         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41415         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41416         Use AC_FUNC_STRNLEN here instead.
41417
41418         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41419         With autoconf-2.53a, it's part of AC_PROG_CC.
41420
41421 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41422
41423         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41424         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41425
41426 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41427
41428         * lib/sig2str.h, lib/sig2str.c: New files.
41429         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41430
41431 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41432
41433         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41434         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
41435         of 127, since 64 is the largest conceivable number for ancient
41436         nonstandard hosts.
41437         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41438
41439 2002-04-28  Jim Meyering  <meyering@lucent.com>
41440
41441         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41442
41443 2002-04-24  Jim Meyering  <meyering@lucent.com>
41444
41445         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41446         (jm_PREREQ): Use it.
41447
41448         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41449         mach/mach.h fcntl.h.
41450         Check for this function: setlocale.
41451
41452 2002-04-24  Jim Meyering  <meyering@lucent.com>
41453
41454         * lib/gettext.h: New file, from Gettext.
41455         * lib/Makefile.am (INCLUDES): Remove -I../intl.
41456         (libfetish_a_SOURCES): Add gettext.h.
41457
41458 2002-04-16  Jim Meyering  <meyering@lucent.com>
41459
41460         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41461         ut_pid, ut_id, ut_exit.
41462
41463 2002-04-16  Jim Meyering  <meyering@lucent.com>
41464
41465         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41466         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41467         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41468
41469 2002-04-12  Jim Meyering  <meyering@lucent.com>
41470
41471         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41472         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
41473         existence of the getmntinfo function.  Needed for Darwin 5.3.
41474
41475         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41476         This is necessary at least on Darwin 5.3.
41477
41478         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41479         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
41480         strnlen.o in the library, and that makes some versions of ranlib
41481         object.
41482
41483 2002-04-12  Jim Meyering  <meyering@lucent.com>
41484
41485         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41486
41487 2002-04-09  Jim Meyering  <meyering@lucent.com>
41488
41489         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41490         to be more precise.  Rather than saying we're checking whether the
41491         function `works', say what we're testing.
41492         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41493         Reported by Bruno Haible.
41494
41495 2002-03-10  Jim Meyering  <meyering@lucent.com>
41496
41497         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41498         Suggestion from Santiago Vila.
41499
41500 2002-03-08  Jim Meyering  <meyering@lucent.com>
41501
41502         * lib/rename.c: Mention that this wrapper is needed also on
41503         mips-dec-ultrix4.4 systems.
41504
41505 2002-03-02  Jim Meyering  <meyering@lucent.com>
41506
41507         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41508         not HAVE_CLOCK_SETTIME.
41509
41510 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41511
41512         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41513         Check for clock_settime.
41514
41515 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41516
41517         * lib/nanosleep.h: Rename to....
41518         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
41519
41520         * lib/gettime.c: New file.
41521         * lib/settime.c: New file.
41522         * lib/stime.c: Remove.
41523
41524         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41525         timespec.h.  Remove nanosleep.h.
41526
41527 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41528
41529         * m4/acl.m4: New file.
41530         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41531         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41532
41533 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41534
41535         * lib/acl.c, lib/acl.h: New files.
41536         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41537
41538 2002-02-24  Jim Meyering  <meyering@lucent.com>
41539
41540         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41541         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41542         cause trouble.  Reported by Nelson Beebe.
41543
41544 2002-02-23  Paul Eggert  <eggert@twinsun.com>
41545
41546         * lib/path-concat.c (xpath_concat): Reorder code to pacify
41547         compilers that don't know that xalloc_die never returns.
41548
41549 2002-02-20  Jim Meyering  <meyering@lucent.com>
41550
41551         * lib/getdate.c: Regenerate using bison-1.33.
41552
41553 2002-02-17  Jim Meyering  <meyering@lucent.com>
41554
41555         * config/config.guess (main): Don't use `head -1'; it's no longer
41556         portable. Use `sed 1q' instead.
41557
41558 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
41559
41560         * m4/codeset.m4: Upgrade to gettext-0.11.
41561         * m4/gettext.m4: Upgrade to gettext-0.11.
41562         * m4/glibc21.m4: Upgrade to gettext-0.11.
41563         * m4/iconv.m4: Upgrade to gettext-0.11.
41564         * m4/isc-posix.m4: Upgrade to gettext-0.11.
41565         * m4/lcmessage.m4: Upgrade to gettext-0.11.
41566         * m4/lib-ld.m4: New file, from gettext-0.11.
41567         * m4/lib-link.m4: New file, from gettext-0.11.
41568         * m4/lib-prefix.m4: New file, from gettext-0.11.
41569         * m4/progtest.m4: Upgrade to gettext-0.11.
41570
41571 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41572
41573         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41574         (jm_PREREQ): Use it.
41575
41576 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41577
41578         * lib/posixver.c, lib/posixver.h: New files.
41579         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41580
41581 2002-02-02  Paul Eggert  <eggert@twinsun.com>
41582             Bruno Haible  <bruno@clisp.org>
41583
41584         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41585         (fwrite_success_callback): New declaration.
41586         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41587         print_unicode_char. Call failure callback instead of error.
41588         (fwrite_success_callback): New function.
41589         (exit_failure_callback): New function.
41590         (fallback_failure_callback): New function.
41591         (print_unicode_char): Call unicode_to_mb.
41592
41593 2002-01-26  Jim Meyering  <meyering@lucent.com>
41594
41595         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41596         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41597
41598 2002-01-26  Jim Meyering  <meyering@lucent.com>
41599
41600         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41601
41602 2002-01-22  Paul Eggert  <eggert@twinsun.com>
41603
41604         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41605
41606 2002-01-22  Jim Meyering  <meyering@lucent.com>
41607
41608         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41609         Otherwise, some versions of automake would omit the rule that makes
41610         Makefile from Makefile.in.
41611
41612 2002-01-21  Paul Eggert  <eggert@twinsun.com>
41613
41614         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41615         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41616         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41617         (memcoll): Set errno to zero if there is no error.
41618
41619         * lib/quotearg.c (quotearg_buffer_restyled):
41620         Fix bug with quoting buffers containing NUL when backslashing escapes.
41621         This bug was exposed by the other changes in this patch.
41622         (quotearg_n_options): New arg ARGSIZE.
41623         All callers changed.
41624         (quoting_options_from_style): New function.
41625         (quotearg_n_style): Use it.
41626         (quotearg_n_style_mem): New function.
41627
41628         * lib/quotearg.h (quotearg_n_style_mem): New function.
41629
41630 2002-01-19  Jim Meyering  <meyering@lucent.com>
41631
41632         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41633         Remove useless quotes: DF_PROG="df".
41634         * m4/strnlen.m4: New file.
41635
41636 2002-01-16  Paul Eggert  <eggert@twinsun.com>
41637
41638         * lib/backupfile.c (ISDIGIT): Comment fix.
41639         * lib/getdate.y (ISDIGIT): Likewise.
41640         * lib/posixtm.c (ISDIGIT, year): Likewise.
41641         * lib/strverscmp.c (ISDIGIT): Likewise.
41642         * lib/userspec.c (ISDIGIT): Likewise.
41643
41644 2002-01-16  Jim Meyering  <meyering@lucent.com>
41645
41646         * lib/getdate.y: Add three semicolons, each just before a closing
41647         brace. Bison (as of version 1.31) no longer papers over that mistake.
41648
41649 2002-01-05  Jim Meyering  <meyering@lucent.com>
41650
41651         * lib/version-etc.c (version_etc_copyright): Update copyright year.
41652
41653 2001-12-19  Paul Eggert  <eggert@twinsun.com>
41654
41655         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41656         not silently exit merely because the output buffer happens to
41657         have nothing pending.
41658
41659 2001-12-18  Paul Eggert  <eggert@twinsun.com>
41660
41661         See the big note in ../ChangeLog.
41662         * lib/human.c (suffixes): Prefer K to k for 1024.
41663         (generate_suffix_backwards): New function.
41664         (human_readable_inexact): Use it.
41665         * lib/xstrtol.c (__xstrtol): If there is no number but there
41666         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
41667         Accept 'K' as well as 'k'.
41668
41669 2001-12-15  Jim Meyering  <meyering@lucent.com>
41670
41671         * lib/regex.h (__restrict_arr): Update from libc.
41672
41673         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41674         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
41675         (STREQ): Define.
41676
41677 2001-12-14  Jim Meyering  <meyering@lucent.com>
41678
41679         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41680         Suggestion from Bruno Haible.
41681
41682 2001-12-10  Jim Meyering  <meyering@lucent.com>
41683
41684         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41685         xrealloc, Instead, include "xalloc.h".
41686         (initbuffer): Don't cast xmalloc return value to char*.
41687         (readline): Reword comment.
41688         Don't cast xrealloc return value to char*
41689         Return NULL, not 0.
41690
41691 2001-12-09  Jim Meyering  <meyering@lucent.com>
41692
41693         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41694         about `signed and unsigned type in conditional expression'.
41695         * lib/posixtm.c (posix_time_parse): Likewise.
41696
41697         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41698
41699         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41700         to avoid a pedantic warning.
41701
41702         * lib/getstr.c: Don't include assert.h.
41703         (getstr): Remove warning-evoking assertions.
41704         Return -1 if offset parameter is out of bounds.
41705         Change the type of a local from int to size_t.
41706
41707         * lib/strftime.c (my_strftime_localtime_r): Include this function
41708         definition in the `#if ! HAVE_TM_GMTOFF' block.
41709
41710         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41711         Include xalloc.h instead.
41712
41713 2001-12-02  Jim Meyering  <meyering@lucent.com>
41714
41715         * lib/tempname.c: Don't declare getenv, thus reverting the change of
41716         2001-11-18.  It's no longer necessary, now that stdlib.h is always
41717         included.
41718
41719         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41720         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
41721
41722 2001-11-30  Akim Demaille  <akim@epita.fr>
41723
41724         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41725         before being defined.
41726
41727 2001-11-27  Paul Eggert  <eggert@twinsun.com>
41728
41729         * lib/quotearg.h (quotearg_n, quotearg_n_style):
41730         First arg is int, not unsigned.
41731         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41732         (SIZE_MAX, UINT_MAX): New macros.
41733         (quotearg_n_options): Abort if N is negative.
41734         Avoid overflow check on hosts where size_t is 64 bits and int
41735         is 32 bits, as overflow is impossible there.
41736         Fix off-by-one typo that caused unnecessary reallocation.
41737
41738 2001-11-27  Jim Meyering  <meyering@lucent.com>
41739
41740         * lib/tempname.c: Merge with version from libc.
41741         * lib/regex.c: Likewise.
41742
41743         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
41744         systems for which STDC_HEADERS is 0, it was not included, resulting in
41745         a warning about an integer-to-pointer conversion problem with getenv.
41746         Reported by Volker Borchert.
41747
41748 2001-11-26  Jim Meyering  <meyering@lucent.com>
41749
41750         * lib/gtod.h: Remove file.
41751         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41752         * lib/gettimeofday.c: Don't include gtod.h.
41753         (GTOD_init): Remove function.
41754         (rpl_gettimeofday): Do its job here instead, rather than aborting.
41755         Suggestion from Volker Borchert.
41756
41757 2001-11-23  Jim Meyering  <meyering@lucent.com>
41758
41759         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
41760         it.
41761         * lib/hash.c (struct hash_table): Define it here instead.
41762
41763 2001-11-22  Jim Meyering  <meyering@lucent.com>
41764
41765         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41766
41767 2001-11-20  Jim Meyering  <meyering@lucent.com>
41768
41769         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41770         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41771
41772 2001-11-19  Jim Meyering  <meyering@lucent.com>
41773
41774         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41775         directory.  Use "conftestXXXXXX" as the template.
41776         Suggestion from Paul Eggert.
41777
41778         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41779         immediately, so the test doesn't mistakenly hit the max-open-files
41780         limit.
41781
41782 2001-11-18  Paul Eggert  <eggert@twinsun.com>
41783
41784         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41785         (TEMPORARIES): New macro.
41786         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
41787         removes an artificial limitation (e.g. HP-UX 10.20, where
41788         TMP_MAX is 17576).
41789
41790 2001-11-18  Jim Meyering  <meyering@lucent.com>
41791
41792         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41793
41794 2001-11-18  Jim Meyering  <meyering@lucent.com>
41795
41796         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41797         on SunOS 4.
41798
41799         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41800         files will be created before anything else.
41801
41802 2001-11-17  Paul Eggert  <eggert@twinsun.com>
41803
41804         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41805         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41806
41807 2001-11-17  Jim Meyering  <meyering@lucent.com>
41808
41809         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41810         Prompted by a report from Bob Proulx.
41811
41812         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41813         Instead, require UTILS_FUNC_MKSTEMP.
41814
41815 2001-11-17  Jim Meyering  <meyering@lucent.com>
41816
41817         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41818         Now, that's done as part of AC_FUNC_STRTOD.
41819
41820 2001-11-17  Jim Meyering  <meyering@lucent.com>
41821
41822         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41823         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41824         rather than group writable.  Patch by Juan F. Codagnone.
41825
41826         * lib/readtokens.c: Remove explicit declarations of xmalloc and
41827         xrealloc, Instead, include "xalloc.h".
41828
41829         * lib/mountlist.c: Include unlocked-io.h after all system headers.
41830         Remove explicit declarations of xmalloc, xrealloc,
41831         and xstrdup.  Instead, include "xalloc.h".
41832
41833         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41834         unlocked-io.h.
41835         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41836         Likewise.
41837         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41838
41839         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41840         Reported by Padraig Brady.
41841
41842         * lib/mkstemp.c: #undef mkstemp.
41843         Include config.h.
41844         (rpl_mkstemp): Rename from mkstemp.
41845         Protoize.
41846
41847 2001-11-16  Jim Meyering  <meyering@lucent.com>
41848
41849         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41850         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41851         determine the amount of total physical memory, use pstat_getstatic.
41852         HPUX-11 doesn't define _SC_PHYS_PAGES.
41853         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41854         If sysconf couldn't be used to determine the amount of available
41855         physical memory, use both pstat_getstatic and pstat_getdynamic.
41856         Based on a patch from Bob Proulx.
41857
41858 2001-11-10  Jim Meyering  <meyering@lucent.com>
41859
41860         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41861         (jm_PREREQ): Use it.
41862
41863 2001-11-09  Jim Meyering  <meyering@lucent.com>
41864
41865         * m4/jm-macros.m4: Require autoconf-2.52f.
41866         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
41867         Use these AC_-prefixed names, not the AM_-prefixed ones.
41868
41869         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
41870
41871 2001-11-05  Jim Meyering  <meyering@lucent.com>
41872
41873         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
41874
41875 2001-11-04  Jim Meyering  <meyering@lucent.com>
41876
41877         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
41878         $DEFS.
41879
41880 2001-11-03  Jim Meyering  <meyering@lucent.com>
41881
41882         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
41883         of AC_DEFUN.
41884
41885         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
41886         know the name of the variable in the macro definition.
41887
41888 2001-11-03  Jim Meyering  <meyering@lucent.com>
41889
41890         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
41891         in argmatch_to_argument call.
41892
41893         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
41894         argument.
41895
41896         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
41897         e.g., a fault due to an attempt to free a NULL pointer.
41898
41899 2001-11-01  Jim Meyering  <meyering@lucent.com>
41900
41901         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
41902         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
41903
41904 2001-11-01  Jim Meyering  <meyering@lucent.com>
41905
41906         * lib/dirfd.c, lib/dirfd.h: New files.
41907         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
41908
41909         * lib/hash.c (hash_print) [TESTING]: Clean up.
41910
41911 2001-10-22  Paul Eggert  <eggert@twinsun.com>
41912
41913         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
41914         to avoid a warning if -Wall.
41915
41916 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
41917
41918         * README: New file
41919         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
41920         (per RMS's instructions, this is now the canonical source)
41921         * lgpl/, gpl/: New directories.
41922
41923 2001-10-21  Paul Eggert  <eggert@twinsun.com>
41924
41925         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
41926
41927 2001-10-21  Jim Meyering  <meyering@lucent.com>
41928
41929         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
41930         this code would end up calling gettext even in packages built
41931         with --disable-nls.
41932         * lib/getopt.c (_): Likewise.
41933         * lib/regex.c (_): Likewise.
41934
41935 2001-10-20  Paul Eggert  <eggert@twinsun.com>
41936
41937         * m4/error.m4 (jm_PREREQ_ERROR):
41938         Do not invoke AC_CHECK_FUNCS with strerror_r, as
41939         AC_FUNC_STRERROR_R does that.
41940         Check for strerror declaration.
41941
41942         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
41943         are supposed to have them these days.
41944         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
41945         Merge changes from latest Autoconf CVS.
41946         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
41947         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
41948         POSIX decided to standardize on the int flavor of strerror_r.
41949
41950 2001-10-20  Paul Eggert  <eggert@twinsun.com>
41951
41952         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
41953         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
41954         Use strerror_r that is only a macro, even if it is not a function.
41955         (strerror): Check for HAVE_DECL_STRERROR before declaring.
41956         (private_strerror): Use prototypes, not old-style function definition.
41957         (print_errno_message): New function.
41958         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
41959         char*-flavored one.
41960         (error_tail, error, error_at_line): Use it.
41961
41962 2001-10-11  Jim Meyering  <meyering@lucent.com>
41963
41964         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
41965         and quote_n (1, ... to avoid clobbering a buffer.
41966
41967 2001-10-05  Jim Meyering  <meyering@lucent.com>
41968
41969         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
41970         hash-pjw.h.
41971         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
41972         * lib/hash-pjw.h: New file.
41973
41974 2001-09-30  Jim Meyering  <meyering@lucent.com>
41975
41976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
41977         `struct fsstat' has the `f_fstypename' member.
41978         Use that to define FS_TYPE, which is now used to make
41979         the getfsstat link test tighter.
41980
41981 2001-09-30  Jim Meyering  <meyering@lucent.com>
41982
41983         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
41984         Include <sys/ucred.h>, for Apple Darwin.
41985         Include sys/mount.h and sys/fs_types.h only if available.
41986         (FS_TYPE): Define.
41987         (read_filesystem_list): Use FS_TYPE.
41988
41989 2001-09-29  Paul Eggert  <eggert@twinsun.com>
41990
41991         * lib/exclude.c (excluded_filename): 0 -> false, since it's
41992         a boolean context.
41993
41994 2001-09-29  Jim Meyering  <meyering@lucent.com>
41995
41996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
41997         [one-argument getmntent function]): Include stdio.h before mntent.h.
41998         SunOS 4.1.x needs it for the declaration of `FILE'.
41999         Patch by Volker Borchert.
42000
42001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42002         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42003         sys/fs_types.h, and make the link-test for getfsstat guard #include
42004         directives with appropriate #if HAVE_*_H tests so that we can
42005         detect getfsstat on Apple Darwin1.3.7 systems.
42006         Reported by Nelson Beebe.
42007         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42008
42009 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42010
42011         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42012         #defines strtoimax.  Also treat the other strto* functions
42013         like strtoimax.
42014
42015         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42016         Check for strtoul and strtoumax,
42017         as those declarations are made even in the signed case.
42018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42019         Likewise, for strtol and strtoimax.
42020
42021 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42022
42023         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42024         #defines strtoimax.  Also treat the other strto* functions
42025         like strtoimax.
42026
42027         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42028         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42029         (strtoimax, strtoumax): Do not declare if already defined as a macro.
42030
42031 2001-09-26  Jim Meyering  <meyering@lucent.com>
42032
42033         Most macros in unlocked-io.h had the wrong number of arguments.
42034         * lib/gen-uio: New script.
42035         (USE_UNLOCKED_IO): Define to 1 if not already defined.
42036         * lib/unlocked-io.hin: Remove file.
42037         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42038         rather than trying to embed it here.
42039         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
42040         Reported by Padraig Brady.
42041
42042 2001-09-25  Volker Borchert  <bt@teknon.de>
42043
42044         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42045         `result'.
42046
42047 2001-09-24  Jim Meyering  <meyering@lucent.com>
42048
42049         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42050
42051 2001-09-23  Jim Meyering  <meyering@lucent.com>
42052
42053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42054         instead of the mere test for existence of mntent.h.  The latter
42055         would get a false-positive on AIX 3.4 systems.
42056         In the outer getmntent if-block, don't die if neither of the getmntent
42057         tests succeeds.  Instead, just fall through and continue with the
42058         remaining tests.
42059
42060 2001-09-23  Jim Meyering  <meyering@lucent.com>
42061
42062         * lib/mountlist.c: Remove useless parentheses in #if directives.
42063         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
42064         the deprecated MOUNTED symbol is no longer defined in mntent.h.
42065
42066 2001-09-22  Jim Meyering  <meyering@lucent.com>
42067
42068         * m4/gettext.m4: New file.  From gettext.
42069         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
42070         * m4/progtest.m4: Likewise
42071         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
42072         * m4/glibc21.m4: Likewise.
42073
42074         * m4/libintl.m4: Remove.  No longer used.
42075
42076 2001-09-22  Jim Meyering  <meyering@lucent.com>
42077
42078         * lib/localcharset.c: Update from latest gettext.
42079         * lib/config.charset: Likewise.
42080
42081 2001-09-20  Jim Meyering  <meyering@lucent.com>
42082
42083         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
42084         strtoimax.
42085         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
42086         strtoumax.
42087
42088 2001-09-20  Jim Meyering  <meyering@lucent.com>
42089
42090         * lib/xstrtol.c (strtoimax): Guard declaration with
42091         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
42092         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
42093         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
42094         (strtoumax): Likewise, for completeness (it wasn't necessary).
42095
42096 2001-09-17  Paul Eggert  <eggert@twinsun.com>
42097
42098         * lib/strtoimax.c (HAVE_LONG_LONG):
42099         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
42100         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
42101         to work around bug in IBM C compiler.
42102
42103 2001-09-17  Jim Meyering  <meyering@lucent.com>
42104
42105         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
42106         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
42107         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
42108         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
42109         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
42110         whenever the right hand side need not be expanded by the shell.
42111
42112 2001-09-16  Paul Eggert  <eggert@twinsun.com>
42113
42114         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
42115         library.  It's not correct, as some older glibcs are buggy.
42116         fnmatch wasn't fixed until glibc 2.2.
42117
42118         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
42119         special shell magic here.
42120
42121 2001-09-16  Jim Meyering  <meyering@lucent.com>
42122
42123         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
42124         * m4/jm-macros.m4: Require it.
42125
42126 2001-09-16  Jim Meyering  <meyering@lucent.com>
42127
42128         * lib/mkdir.c: New file.
42129
42130 2001-09-15  Jim Meyering  <meyering@lucent.com>
42131
42132         * m4/jm-macros.m4: Check for help2man.
42133
42134 2001-09-11  Jim Meyering  <meyering@lucent.com>
42135
42136         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42137         The body, by Paul Eggert, was moved here from configure.in.
42138         * m4/jm-macros.m4: Require UTILS_HOST_OS.
42139
42140 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42141
42142         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42143         (jm_PREREQ): Use it.
42144
42145 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42146
42147         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
42148         Use ssize_t, not int, to store result of readlink.
42149         Check for ssize_t overflow as well as size_t overflow,
42150         as POSIX says the result of readlink is implementation-defined
42151         when ssize_t overflows.
42152         Remove unnecessary cast to char*.
42153         Use free+malloc instead of realloc, as the storage doesn't need
42154         to be preserved and it's clearer and can be more efficient that way.
42155         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42156         * lib/xreadlink.h (xreadlink): Update prototype.
42157
42158 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42159
42160         * lib/xgetcwd.c: Revert some of the previous change; intead,
42161         fix the HAVE_GETCWD_NULL code to behave more like the
42162         !HAVE_GETCWD_NULL code used to.
42163
42164         Include "xalloc.h".
42165         (xgetcwd): Do not return NULL when memory is exhausted; instead,
42166         invoke xalloc_die.
42167
42168 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42169
42170         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42171         sys/param.h, as pathmax.h includes them.
42172
42173 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42174
42175         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42176         (jm_PREREQ_XGETCWD): New macro.
42177
42178         * m4/getcwd.m4: New file.
42179
42180 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42181
42182         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42183         like the HAVE_GETCWD_NULL code.
42184         Include pathmax.h if not HAVE_GETCWD.
42185         Do not include xalloc.h.
42186         (INITIAL_BUFFER_SIZE): New symbol.
42187         Do not use xmalloc / xrealloc, since the caller is responsible for
42188         handling errors.  Preserve errno around `free' during failure.
42189         Do not overrun buffer when using getwd.
42190
42191 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42192
42193         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42194         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42195         getcwd (NULL, 0).
42196
42197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42198
42199         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42200         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
42201         spotted by Jim Meyering.
42202
42203 2001-09-03  Jim Meyering  <meyering@lucent.com>
42204
42205         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42206         failure.
42207
42208 2001-09-02  Jim Meyering  <meyering@lucent.com>
42209
42210         * lib/error.c: Update from GNU libc.
42211
42212 2001-09-01  Jim Meyering  <meyering@lucent.com>
42213
42214         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42215         Used by df.
42216
42217 2001-09-01  Jim Meyering  <meyering@lucent.com>
42218
42219         * lib/xreadlink.c: New file.
42220         * lib/xreadlink.h: New file.
42221         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42222         xreadlink.h.
42223
42224         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42225         doesn't conflict with sparc Solaris 7's definition in
42226         /usr/include/sys/int_types.h.
42227
42228         * lib/exclude.c: Use `""', not `<>' to #include non-system header
42229         files.
42230         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42231         and strncasecmp as r-values.  Unixware didn't have declarations.
42232
42233 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42234
42235         * lib/xstrtol.h: Add copyright notice.
42236         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42237         LONGINT_INVALID_SUFFIX_CHAR.
42238
42239 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42240
42241         * lib/xstrtol.c (strtoimax): New decl.
42242
42243 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42244
42245         * lib/xgetcwd.c: Don't include pathmax.h.
42246         Include stdlib.h and unistd.h if available.
42247         Include xalloc.h.
42248         (xmalloc, xstrdup, free): Remove decls.
42249         (xgetcwd): Don't assume sizes fit in unsigned.
42250         Check for overflow when computing sizes.
42251         Simplify reallocation code.
42252
42253 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42254
42255         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42256         a directory's st_size can have an arbitrary value, so the old
42257         usage could waste an arbitrary amount of memory.  All uses
42258         changed.
42259         * lib/savedir.h: Update prototype.
42260
42261 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42262
42263         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42264
42265         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42266         old strtoimax.c.
42267
42268         Also, make the following further changes to make this file's
42269         configuration more similar to that of strtol.c:
42270         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
42271         (strtoumax, uintmax_t, strtoull, strtol): Remove.
42272         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42273         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
42274         changed to signed values.
42275
42276         And make the following changes as well:
42277         Fix copyright notice, as 1999 was missing.
42278         (verify): New macro.
42279         (strtoimax): Check sizes at compile-time, not run-time.
42280         Prefer strtol to strtoll if both work.
42281         (main): Remove; it was not that useful and was a pain to maintain.
42282
42283         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42284
42285 2001-08-31  Jim Meyering  <meyering@lucent.com>
42286
42287         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42288         Use an initial, malloc'd, buffer of length 128 rather than
42289         a statically allocated one of length 1024.
42290
42291 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42292
42293         Simplify code, partly by assuming autoconf 2.52 semantics.
42294
42295         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42296
42297         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42298         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42299         All uses removed.
42300         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42301         Move AC_REQUIRE to next-to-top level, to avoid confusion.
42302         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42303         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42304         jm_AC_HEADER_INTTYPES_H.
42305         * m4/jm-macros.m4 (jm_MACROS): Likewise.
42306
42307         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42308
42309         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42310         Quote first arg of AC_DEFUN.
42311         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42312         since they are needed to parse the include file even if we need
42313         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
42314         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42315         but with opposite signedness.
42316
42317 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42318
42319         Merge 'exclude' changes from tar 1.13.22.
42320         This fixes one or two unlikely storage allocation overflow bugs,
42321         but doesn't change user-visible behavior otherwise.
42322
42323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42324
42325         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42326         (jm_PREREQ_EXCLUDE): New macro.
42327
42328 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42329
42330         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42331         tm to be declared.
42332
42333 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42334
42335         * lib/hash.c: Remove '2001' from copyright notice.
42336
42337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42338
42339         * lib/full-write.h: New file.
42340         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42341         * lib/full-write.c: Correct credits, as cccp.c no longer
42342         exists and anyway it was so heavily changed from the old cccp
42343         code as to be unrecognizable.  Include full-write.h.
42344         (full_write) Return size_t, with short writes meaning failure.
42345         All callers changed.  This fixes a bug with large buffers
42346         on 64-bit hosts.
42347         * lib/utime.c: Include full-write.h.
42348
42349 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42350
42351         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42352         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42353         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42354         Include if available.
42355         (<xalloc.h>): Include
42356         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42357         (verify): New macro.  Use it to verify that EXCLUDE macros do not
42358         collide with FNM macros.
42359         (struct patopts): New struct.
42360         (struct exclude): Use it, as exclude patterns now come with options.
42361         (new_exclude): Support above changes.
42362         (new_exclude, add_exclude_file):
42363         Initial size must now be a power of two to simplify overflow checking.
42364         (free_exclude, fnmatch_no_wildcards): New function.
42365         (excluded_filename): No longer requires options arg, as the options
42366         are determined by add_exclude.  Now returns bool, not int.
42367         (excluded_filename, add_exclude):
42368         Add support for the fancy new exclusion options.
42369         (add_exclude, add_exclude_file): Now takes int options arg.
42370         Check for arithmetic overflow when computing sizes.
42371         (add_exclude_file): xrealloc might modify errno, so don't
42372         realloc until after errno might be used.
42373
42374         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42375         New macros.
42376         (free_exclude): New decl.
42377         (add_exclude, add_exclude_file): Now takes int options arg.
42378         (excluded_filename): No longer requires options arg, as the options
42379         are determined by add_exclude.  Now returns bool, not int.
42380
42381 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42382
42383         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42384
42385 2001-08-27  Jim Meyering  <meyering@lucent.com>
42386
42387         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42388
42389         * lib/version-etc.c (N_): Remove definition.
42390         Revert most of last change.
42391         Instead, simply don't mark the `Copyright...' string for translation.
42392         Based on advice from Paul Eggert.
42393
42394         * lib/strtoxmax.c: Tweak comment.
42395
42396 2001-08-26  Jim Meyering  <meyering@lucent.com>
42397
42398         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42399
42400         * m4/xstrtoimax.m4: New file.
42401         * m4/xstrtoumax.m4: Add comments explaining why we
42402         AC_REPLACE_FUNCS(strtol).
42403
42404 2001-08-26  Jim Meyering  <meyering@lucent.com>
42405
42406         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42407         of copyright with `%s' so translators don't get an untranslated
42408         message in 2002.
42409         (COPYRIGHT_YEAR): Define.
42410         (version_etc): Use fprintf rather than fputs.
42411         Suggestion from Ulrich Drepper.
42412
42413         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42414
42415         * lib/strtoll.c: New file, from GNU libc.
42416         * lib/xstrtoimax.c: New file.
42417
42418         * lib/xstrtol.h: Add xstrtoimax.
42419         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
42420         * lib/strtoimax.c: New file.  Likewise, but first define
42421         STRTOUXMAX_SIGNED.
42422
42423         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42424         ...
42425         * lib/strtoxmax.c: ... then renamed to this.
42426
42427 2001-08-18  Paul Eggert  <eggert@twinsun.com>
42428
42429         * m4/inttypes.m4: Add AC_PREREQ(2.13).
42430         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42431         (jm_AC_TYPE_INTMAX_T): New macro.
42432         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42433
42434         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42435
42436         * m4/longlong.m4: Renamed from ulonglong.m4.
42437         * m4/inttypes.m4: Renamed from inttypes_h.m4.
42438         * m4/uintmax_t.m4: Removed.
42439
42440 2001-08-13  Paul Eggert  <eggert@twinsun.com>
42441
42442         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42443         Port to Solaris 8, where 'sed' requires a space after the 'r'
42444         command, and where sh dislikes "$/".  Clean up the spacing a bit.
42445         Redirect output to $tmp just once.
42446
42447 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
42448
42449         * lib/addext.c (<errno.h>): Include.
42450         (errno): Declare if not defined.
42451         (addext): Work correctly when pathconf returns -1 and leaves
42452         errno alone because there is no limit.  Also, work even if
42453         pathconf returns a value greater than SIZE_MAX.
42454
42455 2001-08-12  Jim Meyering  <meyering@lucent.com>
42456
42457         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42458         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42459         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42460         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42461         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42462         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42463         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42464         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42465         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42466         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42467         utime.m4, utimes.m4, xstrtoumax.m4:
42468         Quote the first argument in each use of AC_DEFUN.
42469
42470 2001-08-12  Jim Meyering  <meyering@lucent.com>
42471
42472         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42473         Simply `return getcwd (NULL, 0);'.
42474         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42475         Use 1300 as initial value for length, not PATH_MAX.
42476
42477         * lib/pathmax.h: Clean up cpp syntax.
42478
42479 2001-08-12  Jim Meyering  <meyering@lucent.com>
42480
42481         * lib/gettimeofday.c: New file.
42482         * lib/gtod.h: New file.
42483         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42484
42485 2001-08-05  Jim Meyering  <meyering@lucent.com>
42486
42487         * m4/jm-macros.m4: Require autoconf-2.52.
42488
42489 2001-08-04  Jim Meyering  <meyering@lucent.com>
42490
42491         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42492         stmt, to get in sync with glibc.
42493
42494 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42495
42496         The following changes are from gettext 0.10.39 as maintained by
42497         Bruno Haible.
42498
42499         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42500         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42501         with inverted sense.  All uses changed.
42502
42503         * lib/mbswidth.c: Don't include <limits.h>.
42504         Include <stdlib.h> and <string.h> unconditionally.
42505         (iswcntrl, mbsinit, ISCNTRL): New macros.
42506         (mbsnwidth): Use K&R style function declarations.
42507         Don't bother checking for MB_LEN_MAX == 1, since the compiler
42508         can optimize it when MB_CUR_MAX == 1.
42509         The width of control characters is zero, not 1.
42510
42511 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42512
42513         The following changes are from gettext 0.10.39 as maintained by
42514         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42515
42516         * m4/codeset.m4: Upgrade to serial AM1.
42517         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42518         all uses changed.  Quote first arg of AC_DEFUN.
42519         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42520
42521         * m4/iconv.m4: Upgrade to serial AM2.
42522         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42523         Add --with-libconv-prefix.
42524         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
42525         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42526         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42527         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42528         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42529
42530         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42531         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42532         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42533         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42534         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42535         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42536         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42537         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42538         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42539
42540         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42541         string.h any more.
42542
42543         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42544         not the default value.
42545
42546         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
42547         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42548         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
42549         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42550         Also check for iswcntrl, used for wcwidth fallback.
42551         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42552         to Autoconf 2.13.
42553
42554 2001-08-03  Jim Meyering  <meyering@lucent.com>
42555
42556         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42557         as it was in the original.  Reported by Paul Eggert.
42558
42559 2001-07-16  Jim Meyering  <meyering@lucent.com>
42560
42561         * m4/gettimeofday.m4: New file.
42562         Prompted by a report from Bernhard Baehr.
42563
42564 2001-07-15  Jim Meyering  <meyering@lucent.com>
42565
42566         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42567         stuff. Now it's in ../Makefile.cfg.
42568
42569 2001-07-15  Jim Meyering  <meyering@lucent.com>
42570
42571         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42572         (BUILT_SOURCES): Add unlocked-io.h.
42573         (io_functions): Define.
42574         (unlocked-io.h): New rule.
42575         (DISTCLEANFILES): Add unlocked-io.h.
42576         (all-local): Depend on unlocked-io.h, to ensure it is created.
42577
42578         * lib/unlocked-io.hin: New file
42579
42580         * lib/regex.c: Update from glibc.
42581
42582 2001-07-05  Jim Meyering  <meyering@lucent.com>
42583
42584         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42585         recommendation.
42586         (libfetish_a_SOURCES): Put all .h files here instead.
42587         Remove a thus-exposed (better checks in automake) duplicate and
42588         two unnecessary .h files.
42589
42590 2001-07-04  Jim Meyering  <meyering@lucent.com>
42591
42592         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
42593         that generates jm-glibc-io.m4 so that it doesn't trigger any make
42594         distcheck failure.
42595
42596 2001-07-02  Jim Meyering  <meyering@lucent.com>
42597
42598         The following changes were prompted by suggestions from Bruno Haible.
42599
42600         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42601         is now generated.
42602         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42603         definition of EXTRA_DIST.
42604         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42605         ensure that the generated file is created/updated whenever the list
42606         of $(unlocked_functions) is changed.
42607         (jm-glibc-io.m4): New rule.
42608         (unlocked-io.h): New rule -- currently unused.
42609
42610 2001-06-24  Jim Meyering  <meyering@lucent.com>
42611
42612         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42613         unmatched right bracket, rather than kludging it with an extra,
42614         falsely-matching quote in a comment.  Patch by Akim Demaille.
42615
42616 2001-06-11  Jim Meyering  <meyering@lucent.com>
42617
42618         * lib/regex.c: Update from GNU libc.
42619
42620 2001-05-27  Jim Meyering  <meyering@lucent.com>
42621
42622         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42623         Check for ut_type in struct utmp.
42624
42625 2001-05-27  Jim Meyering  <meyering@lucent.com>
42626
42627         * lib/readutmp.h (UT_TYPE): Define.
42628
42629 2001-05-24  Jim Meyering  <meyering@lucent.com>
42630
42631         * lib/argmatch.c: Include "quote.h".
42632         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
42633         quote function.  Reported by Göran Uddeborg.
42634
42635 2001-05-22  Jim Meyering  <meyering@lucent.com>
42636
42637         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42638         now that we use the package-supplied version unconditionally.
42639         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42640
42641 2001-05-21  Jim Meyering  <meyering@lucent.com>
42642
42643         * m4/regex.m4: Change a couple backticks to single quotes to avoid
42644         shell syntax errors.
42645
42646 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42647
42648         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42649
42650 2001-05-20  Paul Eggert  <eggert@twinsun.com>
42651
42652         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42653         Don't bother to check library strftime, since
42654         we'll be using our own my_strftime function anyway.
42655         Define my_strftime instead of strftime.
42656
42657 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
42658
42659         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42660         which is not yet declared.
42661
42662 2001-05-15  Jim Meyering  <meyering@lucent.com>
42663
42664         * m4/regex.m4: Use proper quoting so brackets appear in the test
42665         program.
42666         Reported by, and with help from, Bruno Haible.
42667
42668 2001-05-13  Jim Meyering  <meyering@lucent.com>
42669
42670         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42671         undefined.
42672
42673 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42674
42675         dirname code cleanup.  base_name now behaves more compatibly
42676         with POSIX basename when given file names that have trailing
42677         slashes, and similarly for dir_name.  Add new primitives
42678         base_len and dir_len.  Put the directory-name-related decls
42679         into dirname.h.
42680
42681         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42682         * lib/backupfile.c (base_name): Likewise.
42683         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42684         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42685         * lib/makepath.c (strip_trailing_slashes): Likewise.
42686         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42687         ISSLASH): Likewise.
42688         * lib/rename.c (strip_trailing_slashes): Likewise.
42689         * lib/same.c (base_name): Likewise.
42690         * lib/stripslash.c (ISSLASH): Likewise.
42691
42692         * lib/addext.c: Include <dirname.h> after size_t is defined.
42693         * lib/backupfile.c: Likewise.
42694
42695         * lib/addext.c (addext): Use base_len to trim redundant
42696         trailing slashes instead of doing it ourselves.
42697         But do not trim the last slash if it is not redundant.
42698
42699         * lib/backupfile.c (find_backup_file_name,
42700         max_backup_version): Use base_len instead of rolling it ourselves.
42701         Handle the case of "" and (on DOS) "C:" correctly.
42702
42703         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42704         needed. Include <string.h>, <dirname.h>.
42705         (base_name): Allow file names ending in slashes, other than names
42706         that are all slashes.  In this case, return the basename followed
42707         by the slashes.  This is more general, and can be used in places
42708         where the original base_name purposely had an assertion failure.
42709         (base_len): New function.
42710
42711         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42712         Do not include <assert.h>; no longer needed.
42713         Include xalloc.h.
42714         (memrchr): Remove decl.
42715         (dir_name_r): Remove.
42716         (dir_len): Renamed from dirlen.  All callers changed.
42717         Rewrite in terms of base_name, for simplicity and consistency.
42718         (dir_name): Never return NULL.  All callers changed.
42719         Do not include <stdlib.h> in test program; no longer needed.
42720         return 0; is fine for test program.
42721
42722         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42723         New macros.
42724         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42725
42726         * lib/path-concat.c (path_concat): Use base_len to compute
42727         base length, not strlen; this means we cannot rely on memcpy
42728         to null-terminate.
42729
42730         * lib/same.c (STREQ): Remove.
42731         (same_name): Handle the case where the basename ends in trailing '/'.
42732
42733         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42734         a slash was stripped.  Do not strip the last slash after a
42735         file system prefix.
42736
42737 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42738
42739         * lib/Makefile.am (libfetish_a_SOURCES):
42740         Add strftime.c, since we now compile it on all hosts.
42741
42742         * lib/strftime.c (my_strftime):
42743         Define to nstrftime if emacs, but only if my_strftime is not defined.
42744         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42745         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42746         Add one more extra argument: a nanoseconds value.
42747         All uses changed.
42748         (ns): New macro.
42749         (my_strftime function): Add %N format.
42750         (emacs_strftimeu): Renamed from emacs_strftime,
42751         with extra ut argument.
42752
42753 2001-05-09  Paul Eggert  <eggert@twinsun.com>
42754
42755         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42756
42757 2001-04-21  Jim Meyering  <meyering@lucent.com>
42758
42759         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42760         doesn't interfere.
42761
42762 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42763
42764         * m4/ftruncate.m4: Check for chsize.
42765         Link with ftruncate.o unconditionally if ftruncate is missing.
42766         This was required when cross-compiling to i586-mingw32msvc.
42767
42768 2001-04-08  Jim Meyering  <meyering@lucent.com>
42769
42770         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42771         recomputed; that's necessary when the offset spans a DST transition.
42772         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
42773
42774 2001-04-02  Jim Meyering  <meyering@lucent.com>
42775
42776         * lib/regex.h, regex.c: Update from GNU libc.
42777
42778 2001-03-24  Jim Meyering  <meyering@lucent.com>
42779
42780         * m4/jm-macros.m4: Require autoconf-2.49d.
42781
42782 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
42783
42784         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42785
42786 2001-03-19  Paul Eggert  <eggert@twinsun.com>
42787
42788         * lib/version-etc.c (version_etc_copyright): Update to 2001.
42789
42790 2001-03-17  Jim Meyering  <meyering@lucent.com>
42791
42792         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42793         now that the version in autoconf is equivalent.
42794         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42795
42796         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42797         Suggestion from Akim Demaille.
42798
42799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42800         (jm_PREREQ_TEMPNAME): New function.
42801
42802 2001-03-16  Paul Eggert  <eggert@twinsun.com>
42803
42804         * lib/tempname.c (uint64_t): Define to uintmax_t if
42805         not defined, and if UINT64_MAX is not defined.
42806         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42807         Reported by John David Anglin.
42808
42809 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
42810
42811         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42812         resolve alias if codeset is empty.
42813         * lib/config.charset (BeOS): Use wildcard syntax.
42814
42815 2001-03-13  Jim Meyering  <meyering@lucent.com>
42816
42817         * lib/path-concat.c (path_concat)
42818         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42819         concatenating e.g., `C:' and `foo'.
42820         From Bruno Haible.
42821
42822 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42823
42824         * lib/localcharset.c (locale_charset): Don't use
42825         setlocale(LC_CTYPE,NULL). Don't return NULL.
42826         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42827
42828 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42829
42830         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42831         support for DOS/DJGPP.
42832
42833 2001-03-01  Paul Eggert  <eggert@twinsun.com>
42834
42835         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42836         lacks mkstemp.  Compile our own tempname.c if we compile our own
42837         mkstemp.c, as mkstemp relies on tempname.
42838
42839 2001-03-01  Jim Meyering  <meyering@lucent.com>
42840
42841         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42842         AH_VERBATIM really does output its argument verbatim.
42843
42844 2001-02-28  Paul Eggert  <eggert@twinsun.com>
42845
42846         * lib/Makefile.am (libfetish_a_SOURCES):
42847         Add dup-safer.c, fopen-safer.c.
42848         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42849
42850         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42851         * lib/unistd-safer.h: New files.
42852
42853 2001-02-25  Paul Eggert  <eggert@twinsun.com>
42854
42855         The mkstemp replacement is taken from glibc 2.2.2, with some
42856         portability fixes for use outside glibc, as follows:
42857
42858         * lib/tempname.c (struct_stat64): New macro.
42859         (direxists, __gen_tempname): Use it.
42860         This avoids a portability problem with Solaris 8.
42861
42862         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
42863         (<stddef.h>, <stdint.h>, <string.h>):
42864         Include only if STDC_HEADERS || _LIBC.
42865         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
42866         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
42867         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
42868         (__set_errno): Define this macro if <errno.h> doesn't.
42869         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
42870         Define these macros if <stdio.h> doesn't.
42871         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
42872         Define these macros if <sys/stat.h>
42873         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
42874         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
42875         __xstat64): Define if not _LIBC.
42876         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
42877         (__gen_tempname): Invoke gettimeofday only if
42878         HAVE_GETTIMEOFDAY || _LIBC;
42879         otherwise, fall back on plain "time".
42880         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
42881
42882         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
42883
42884         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
42885
42886 2001-02-18  Paul Eggert  <eggert@twinsun.com>
42887
42888         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
42889
42890 2001-02-17  Paul Eggert  <eggert@twinsun.com>
42891
42892         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
42893         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
42894         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
42895         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
42896
42897 2001-02-17  Paul Eggert  <eggert@twinsun.com>
42898
42899         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
42900         Remove workaround macros for hosts that have mbrtowc but not
42901         mbstate_t, as we now insist on proper declarations for both
42902         before using mbrtowc.
42903
42904 2001-02-17  Jim Meyering  <meyering@lucent.com>
42905
42906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
42907         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
42908         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
42909         UnixWare 7.1.1.
42910
42911         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
42912         rather than AC_CACHE_VAL.
42913
42914 2001-02-17  Jim Meyering  <meyering@lucent.com>
42915
42916         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
42917         around included file name.
42918
42919         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
42920
42921         * lib/strftime.c: Update from GNU libc (the only changes were to
42922         comments).
42923
42924 2001-02-17  Jim Meyering  <meyering@lucent.com>
42925
42926         * lib/regex.c: Update from libc.
42927
42928 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
42929
42930         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
42931         clash.
42932
42933 2001-02-16  Paul Eggert  <eggert@twinsun.com>
42934
42935         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
42936         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
42937         Reported by Mark Hounschell via Paul Eggert.
42938
42939 2001-02-07  Jim Meyering  <meyering@lucent.com>
42940
42941         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
42942
42943 2001-02-05  Jim Meyering  <meyering@lucent.com>
42944
42945         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
42946         it includes the patch required for `large file' support with at least
42947         HP-UX's 10.20 /bin/cc.
42948
42949 2001-02-03  Jim Meyering  <meyering@lucent.com>
42950
42951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
42952         AS_IF, now that it works once again (mysteriously).
42953         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42954
42955 2001-01-30  Jim Meyering  <meyering@lucent.com>
42956
42957         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
42958         * m4/chown.m4: Rename conftestchown to conftest.chown.
42959         * m4/rename.m4: s/conftestdir/conftest.d1/ and
42960         s/conftestdir2/conftest.d2/.
42961         * m4/utimes.m4: s/conftestdata/conftest.data/
42962         Inspired by Pavel Roskin's change in autoconf.
42963
42964 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
42965
42966         * lib/config.charset: Update for FreeBSD 4.2.
42967
42968 2001-01-27  Jim Meyering  <meyering@lucent.com>
42969
42970         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
42971         a use of AS_IF.
42972         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
42973
42974 2001-01-26  Jim Meyering  <meyering@lucent.com>
42975
42976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
42977         quotearg.c includes it.
42978
42979 2001-01-26  Jim Meyering  <meyering@lucent.com>
42980
42981         * lib/quotearg.c: Include stddef.h.
42982         * lib/quote.c: Include stddef.h.
42983         Reported by Axel Kittenberger.
42984
42985         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
42986         line in double quotes so that it evokes a better diagnostic.
42987         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
42988         Reported by Axel Kittenberger.
42989
42990 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
42991
42992         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
42993         as if it was a `charset'.
42994
42995 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
42996
42997         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
42998         has const.
42999
43000 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43001
43002         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43003         to avoid a warning.  Add back 'const' to inptr.
43004
43005 2001-01-20  Jim Meyering  <meyering@lucent.com>
43006
43007         Be sure that headers are checked before used in code compiled
43008         for the type checks.
43009         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43010         In place of that, invoke jm_CHECK_ALL_TYPES.
43011         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43012         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43013         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43014         The check for ssize_t was mistakenly run before the test for unistd.h.
43015
43016         The configure-time check for stdbool.h was missing.
43017         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43018         (jm_PREREQ_HASH): New function.
43019
43020 2001-01-17  Jim Meyering  <meyering@lucent.com>
43021
43022         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43023         for autoconf-2.49c.
43024         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43025
43026 2001-01-16  Jim Meyering  <meyering@lucent.com>
43027
43028         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43029         From Bruno Haible.
43030
43031 2001-01-14  Jim Meyering  <meyering@lucent.com>
43032
43033         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43034         foo and bar.  Create conftestdir/ in the script, not in the C code.
43035         Remove directories in the script, not in the C code.
43036         Remove conftestdir{,2} before trying to create the directory.
43037         Make the entire configure script fail if the mkdir fails.
43038
43039 2001-01-14  Jim Meyering  <meyering@lucent.com>
43040
43041         * lib/rename.c: New file.  From Volker Borchert.
43042         Include stdlib.h, string.h or strings.h, and xalloc.h.
43043         Use strip_trailing_slashes rather than open-coding it.
43044
43045 2001-01-03  Paul Eggert  <eggert@twinsun.com>
43046
43047         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43048
43049 2001-01-03  Jim Meyering  <meyering@lucent.com>
43050
43051         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43052         of local `inptr' to avoid warning with some system declarations of
43053         iconv.
43054
43055 2001-01-02  Volker Borchert  <bt@teknon.de>
43056
43057         * m4/rename.m4: New file.
43058         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43059
43060 2001-01-01  Jim Meyering  <meyering@lucent.com>
43061
43062         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
43063         even on systems with utmpx.h.  It's necessary for the declaration of
43064         utmp's ut_user member.  Reported by Andreas Jaeger.
43065
43066         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
43067         available. They are required for the declarations of getgrgid and
43068         getpwuid resp.
43069         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
43070         Reported by Andreas Jaeger.
43071
43072 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
43073
43074         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
43075         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
43076         so `make install' also works in VPATH builds.
43077
43078 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
43079
43080         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
43081         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
43082         can be used in subdirectories.
43083
43084 2000-12-29  Paul Eggert  <eggert@twinsun.com>
43085
43086         * lib/modechange.c: Do not assume that mode_t uses the
43087         traditional octal encoding.  E.g. "chmod 1 FOO" should set
43088         the other-execute bit of FOO even if S_IXOTH != 1.
43089
43090         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
43091         WOTH, XOTH, ALLM): New macros.
43092         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
43093          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
43094         Use them.
43095         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
43096         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
43097         (mode_compile):
43098         No need to use uintmax_t; unsigned long is long enough.
43099         Don't bother to get suffix since we don't use it.
43100
43101 2000-12-26  Jim Meyering  <meyering@lucent.com>
43102
43103         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
43104         better with autoheader.
43105
43106 2000-12-24  Jim Meyering  <meyering@lucent.com>
43107
43108         * lib/hash.c (is_prime): Return explicit boolean values.
43109         (hash_get_first): Return NULL to appease Irix5.6's 89.
43110         Reported by Nelson Beebe.
43111
43112 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
43113
43114         * lib/localcharset.c (locale_charset): Add support for Win32.
43115
43116 2000-12-18  Paul Eggert  <eggert@twinsun.com>
43117
43118         * lib/physmem.h, lib/physmem.c: New files.
43119
43120         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
43121         (noinst_HEADERS): Add physmem.h.
43122
43123         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
43124         't' for compatibility with Solaris 8 sort.
43125
43126 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
43127
43128         * lib/config.charset: Add support for BeOS.
43129
43130 2000-12-17  Jim Meyering  <meyering@lucent.com>
43131
43132         * m4/dos.m4 (jm_AC_DOS): New file and macro.
43133         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
43134
43135 2000-12-16  Jim Meyering  <meyering@lucent.com>
43136
43137         This bug had a serious impact on chown: `chown N:M FILE' (for integer
43138         N and M) would have treated it like `chown N:N FILE'.
43139
43140         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43141
43142 2000-12-16  Jim Meyering  <meyering@lucent.com>
43143
43144         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43145         SHELLS_FILE to a file name that's useful on djgpp systems.
43146         Include stdlib.h.
43147         (ADDITIONAL_DEFAULT_SHELLS): Define.
43148         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43149         Based mostly on a patch from Prashant TR.
43150
43151 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
43152
43153         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43154         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43155         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43156
43157 2000-12-08  Andreas Schwab  <schwab@suse.de>
43158
43159         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43160         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43161
43162 2000-12-07  Jim Meyering  <meyering@lucent.com>
43163
43164         * lib/stripslash.c (ISSLASH): Define.
43165         (strip_trailing_slashes): Use ISSLASH rather than comparing against
43166         `/'.
43167         From Prashant TR.
43168
43169         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43170         (dir_name_r): Declare this function as static.
43171         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43172         manifest itself on a name containing a mix of slashes and
43173         backslashes.
43174         Make this function work with names starting with a DOS-style
43175         drive letter and colon prefix.
43176         (dir_name): Append `.' if necessary.
43177         Based mostly on patches from Prashant TR and Eli Zaretskii.
43178
43179         * lib/dirname.h (dir_name_r): Remove prototype.
43180
43181 2000-12-06  Paul Eggert  <eggert@twinsun.com>
43182
43183         * m4/off_t-format.m4: Remove this file.
43184         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43185
43186 2000-12-06  Jim Meyering  <meyering@lucent.com>
43187
43188         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43189         replacement strtoull, we may well need the replacement strtoul, too.
43190         Check for declarations of strtoul and strtoull.
43191         Check for strtol.  Mainly as a cue to cause automake to include
43192         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43193         Check for limits.h -- strtol.c needs it.
43194
43195 2000-12-05  Jim Meyering  <meyering@lucent.com>
43196
43197         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43198
43199 2000-12-04  Jim Meyering  <meyering@lucent.com>
43200
43201         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43202         Also include memory.h, stdlib.h, unistd.h if appropriate.
43203         Reported by Andreas Jaeger (conflicting declaration of malloc).
43204
43205 2000-12-02  Jim Meyering  <meyering@lucent.com>
43206
43207         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43208         * m4/jm-macros.m4 (jm_MACROS): require it.
43209
43210 2000-12-02  Jim Meyering  <meyering@lucent.com>
43211
43212         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43213
43214 2000-12-01  Paul Eggert  <eggert@twinsun.com>
43215
43216         * lib/memrchr.c: Include <config.h> before any system include file.
43217
43218 2000-11-30  Jim Meyering  <meyering@lucent.com>
43219
43220         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43221
43222 2000-11-30  Jim Meyering  <meyering@lucent.com>
43223
43224         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43225
43226 2000-11-29  Paul Eggert  <eggert@twinsun.com>
43227
43228         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43229
43230 2000-11-26  Jim Meyering  <meyering@lucent.com>
43231
43232         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
43233
43234 2000-11-22  Paul Eggert  <eggert@twinsun.com>
43235
43236         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43237         size of (size_t) -1; it's not portable.
43238
43239 2000-11-17  Jim Meyering  <meyering@lucent.com>
43240
43241         * lib/strstr.c: Update from GNU libc.
43242
43243 2000-11-17  Akim Demaille  <akim@epita.fr>
43244
43245         * lib/obstack.h: Formatting changes.
43246         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43247         prevent type checking.
43248         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43249         cast the value to (void *): assigning a `foo *' to a `void *'
43250         variable is valid.
43251         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43252
43253 2000-11-16  Jim Meyering  <meyering@lucent.com>
43254
43255         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43256
43257 2000-11-11  Jim Meyering  <meyering@lucent.com>
43258
43259         * lib/error.c: Add a couple #includes, merging from GNU libc version.
43260
43261 2000-11-10  Jim Meyering  <meyering@lucent.com>
43262
43263         * lib/obstack.h: Update from GNU libc.
43264         * lib/obstack.c: Likewise.
43265
43266 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
43267
43268         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43269
43270 2000-11-06  Paul Eggert  <eggert@twinsun.com>
43271
43272         * lib/getusershell.c (setusershell): Use rewind rather than
43273         fseek/fseeko, to avoid configuration hassles with fseeko.
43274         Don't bother opening SHELLS_FILE if shellstream is NULL;
43275         it's not necessary.
43276
43277 2000-11-05  Jim Meyering  <meyering@lucent.com>
43278
43279         * lib/makepath.h (make_dir): Declare.
43280         * lib/makepath.c (make_dir): Remove `static' attribute.
43281         Tweak a comment.
43282
43283 2000-11-04  Jim Meyering  <meyering@lucent.com>
43284
43285         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43286
43287 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
43288
43289         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
43290         last one in a bucket, advance to the next bucket.
43291
43292 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
43293
43294         * lib/fnmatch.c: Do not comment out all the code if we are using
43295         the GNU C library, because in some cases we are replacing buggy
43296         code in the GNU C library itself.
43297
43298 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
43299
43300         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43301         (regex_compile): Catch bogus \(\1\).
43302
43303 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43304
43305         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43306         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43307         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43308
43309 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43310
43311         * lib/error.h, getline.h, modechange.h:
43312         Remove "2000" from Copyright line, as the file hasn't been
43313         changed this year other than in the copyright notice.
43314
43315         * lib/xalloc.h: Add "2000" to Copyright line, as this file
43316         was changed this year.
43317
43318 2000-10-29  Jim Meyering  <meyering@lucent.com>
43319
43320         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43321         renaming.
43322         * m4/ls-mntd-fs.m4: Likewise
43323
43324 2000-10-29  Jim Meyering  <meyering@lucent.com>
43325
43326         * lib/xstat.in: Fix grammar in comment.
43327
43328 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
43329
43330         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43331         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43332         doesn't define __restrict_arr.
43333
43334 2000-10-28  Jim Meyering  <meyering@lucent.com>
43335
43336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43337         (jm_PREREQ_MEMCHR): New function.
43338
43339 2000-10-28  Jim Meyering  <meyering@lucent.com>
43340
43341         * lib/memchr.c: Update from libc.
43342         Adjust for portability:
43343         [HAVE_STDLIB_H]: Include stdlib.h.
43344         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43345         Undef __memchr, too.
43346         [!weak_alias]: Define __memchr to memchr.
43347
43348         * lib/regex.c: Update from libc.
43349         * lib/regex.h: Likewise.
43350         * lib/getopt1.c: Likewise.
43351         * lib/memcmp.c: Likewise.
43352
43353         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43354         Avoid using fseek, when possible -- it's broken by design.
43355         Patch by Ulrich Drepper.
43356
43357 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
43358
43359         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43360         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43361         Giving in to popular pressure to shut up the compiler with casts.
43362
43363 2000-10-26  Jim Meyering  <meyering@lucent.com>
43364
43365         * lib/strftime.c: Update from libc.
43366
43367 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
43368
43369         * regex.c: More `unsigned char' -> `re_char' changes.
43370         Also change several `int' into `re_wchar_t'.
43371         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43372         (PUSH_FAILURE_POINTER): Don't cast any more.
43373         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43374         We want GCC to complain, since this piece of code makes
43375         re_match non-reentrant, which *should* be fixed.
43376         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43377         (EXTEND_BUFFER): Use RETALLOC.
43378         (SET_LIST_BIT): Don't cast.
43379         (re_wchar_t): New type.
43380         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43381         that those two functions will always properly return.
43382         (IMMEDIATE_QUIT_CHECK): Cast to void.
43383         (analyse_first): Use recursion rather than an explicit stack.
43384         (re_compile_fastmap): Can't fail anymore.
43385         (re_search_2): Don't check re_compile_fastmap for failure.
43386         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43387         Now also sets the new value (passed in a new argument).
43388         (re_match_2_internal): Use it.
43389         Also, use a new var `reg' of type size_t when looping through regs
43390         rather than reuse the inappropriate `mcnt'.
43391
43392 2000-10-25  Jim Meyering  <meyering@lucent.com>
43393
43394         * lib/obstack.c: Update from libc.
43395
43396 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
43397
43398         * regex.c (regex_compile): Change the way of handling a range from
43399         a char less than 256 to a char not less than 256.
43400
43401 2000-10-24  Andrew Innes  <andrewi@gnu.org>
43402
43403         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43404         NT-Emacs only.
43405         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43406         so that re_search functions only quit when callers expect them to.
43407
43408 2000-10-23  Jim Meyering  <meyering@lucent.com>
43409
43410         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43411         wrong.  That set_locale call must not have any side effects.
43412         From Paul Eggert.
43413
43414 2000-10-22  Jim Meyering  <meyering@lucent.com>
43415
43416         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43417         [CYCLIC]: Remove now-unused definition.
43418
43419         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43420         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43421         Suggestion from Ulrich Drepper.
43422
43423 2000-10-21  Jim Meyering  <meyering@lucent.com>
43424
43425         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43426         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43428
43429 2000-10-21  Jim Meyering  <meyering@lucent.com>
43430
43431         * lib/dirname.c (memrchr): Declare if necessary.
43432         (dir_name): Remove the restriction that there be no
43433         trailing slashes.  Now, this code skips past them, effectively
43434         ignoring them.
43435         [TEST_DIRNAME] (main): New unit tests.
43436
43437         * lib/memrchr.c: New file from GNU libc.
43438         Undef __memrchr, too.
43439         [!weak_alias]: Define __memrchr to memrchr.
43440         Guard weak_alias use with `#ifdef weak_alias'.
43441
43442 2000-10-21  Jim Meyering  <meyering@lucent.com>
43443
43444         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43445         (dir_name): Use dir_name_r.
43446         * lib/dirname.h (dir_name_r): Declare it.
43447
43448 2000-10-17  Jim Meyering  <meyering@lucent.com>
43449
43450         * lib/quote.h (PARAMS): Define and use.
43451         Reported by Akim Demaille.
43452
43453         * lib/getopt.c: Update from libc.
43454
43455 2000-10-16  Jim Meyering  <meyering@lucent.com>
43456
43457         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43458         setlocale.
43459         From Jan Fedak.
43460
43461 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
43462
43463         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43464
43465 2000-09-25  Jim Meyering  <meyering@lucent.com>
43466
43467         * lib/md5.h (rol): Define (from GnuPG).
43468
43469         * lib/sha.c: Give credit (GnuPG) where due.
43470         (M): Use rol rather than open-coding it.
43471         Add a FIXME comment.
43472
43473 2000-09-21  Jim Meyering  <meyering@lucent.com>
43474
43475         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43476         Reported by Michael Stone.
43477
43478 2000-09-20  Jim Meyering  <meyering@lucent.com>
43479
43480         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43481         (noinst_HEADERS): Add sha.h.
43482         Based on code from Scott G. Miller and from GnuPG.
43483
43484 2000-09-18  Jim Meyering  <meyering@lucent.com>
43485
43486         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43487         LIBS. Otherwise, everyone ends up linking with -lelf for some
43488         configurations.
43489         Reported by Mike Stone.
43490
43491 2000-09-15  Jim Meyering  <meyering@lucent.com>
43492
43493         * lib/regex.c: Update from libc.
43494
43495 2000-09-10  Jim Meyering  <meyering@lucent.com>
43496
43497         * lib/getopt.c (_getopt_internal): Update from glibc.
43498
43499 2000-09-09  Jim Meyering  <meyering@lucent.com>
43500
43501         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43502         think it should be used as a general replacement for isascii.
43503         * lib/fnmatch.c: Likewise.
43504         * lib/mbswidth.c: Likewise
43505         * lib/regex.c: Likewise.
43506
43507         Don't use atoi.
43508         * lib/userspec.c: Include sys/param.h and limits.h.
43509         Include xstrtol.h.
43510         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43511         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43512         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43513         UID, GID.  Check range.
43514
43515 2000-09-06  Jim Meyering  <meyering@lucent.com>
43516
43517         * lib/getopt.c (_getopt_internal): Update from glibc.
43518
43519 2000-08-30  Jim Meyering  <meyering@lucent.com>
43520
43521         * lib/strftime.c: Merge in changes from GNU libc.
43522
43523 2000-08-26  Jim Meyering  <meyering@lucent.com>
43524
43525         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43526         * m4/fpending.m4: New file.
43527
43528 2000-08-26  Jim Meyering  <meyering@lucent.com>
43529
43530         * lib/closeout.c: Include "__fpending.h".
43531         (close_stdout_status): Return right away if there's nothing to flush.
43532
43533         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43534         * lib/__fpending.c: New file.
43535         * lib/__fpending.h: New file.
43536
43537 2000-08-20  Jim Meyering  <meyering@lucent.com>
43538
43539         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43540         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
43541         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
43542
43543 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
43544
43545         Improve fileutils installation on systems where running
43546         programs (like install) can't be unlinked.
43547         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43548         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43549
43550 2000-08-07  Paul Eggert  <eggert@twinsun.com>
43551
43552         Standardize on "memory exhausted" instead of "Memory exhausted"
43553         or "virtual memory exhausted".
43554         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43555         "virtual memory exhausted".
43556         * lib/same.c (same_name): Invoke xalloc_die instead of printing
43557         our own message.
43558         * lib/userspec.c (parse_user_spec): Likewise.
43559         * lib/bumpalloc.h: comment fix
43560         * lib/same.c, userspec.c: Include xalloc.h.
43561
43562         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43563         not char *const and pointing to a constant array.
43564         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43565         (xrealloc): Comment fix.
43566
43567         * lib/userspec.c (parse_user_spec):
43568         Don't translate a message until just before returning,
43569         to avoid unnecessary translation.
43570
43571 2000-08-07  Jim Meyering  <meyering@lucent.com>
43572
43573         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43574         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43575         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43576         getgroups.c, gethostname.c, getopt.h, group-member.c,
43577         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43578         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43579         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43580         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43581         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43582         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43583         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43584         yesno.c: Back out Copyright date changes for each file with no change
43585         this year.  This eases coordination with other programs using the same
43586         source code modules.  From Paul Eggert.
43587
43588 2000-08-06  Paul Eggert  <eggert@twinsun.com>
43589
43590         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43591         not char, for compatibility with glibc 2.1.3 strftime.c.
43592
43593 2000-08-03  Greg McGary  <greg@mcgary.org>
43594
43595         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43596         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43597         (EXTEND_BUFFER): Use them.
43598
43599 2000-08-01  Jim Meyering  <meyering@lucent.com>
43600
43601         * lib/dirname.c (ISSLASH): Define.
43602         (BACKSLASH_IS_PATH_SEPARATOR): Define.
43603         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43604         both `\' and `/' may be use as path separators.
43605         Based on a patch from Prashant TR.
43606
43607 2000-07-31  Paul Eggert  <eggert@twinsun.com>
43608
43609         * lib/quotearg.c (quotearg_n_options): Don't make the initial
43610         slot vector a constant, since it might get modified.
43611
43612 2000-07-31  Jim Meyering  <meyering@lucent.com>
43613
43614         * lib/xmalloc.c: Use `virtual memory exhausted', not
43615         `Memory exhausted'.
43616         * lib/obstack.c (print_and_abort): Likewise.
43617
43618 2000-07-30  Paul Eggert  <eggert@twinsun.com>
43619
43620         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43621         buffer, so that the caller can always quote one small
43622         component of a "memory exhausted" message in slot 0.
43623         From a suggestion by Jim Meyering.
43624
43625 2000-07-30  Jim Meyering  <meyering@lucent.com>
43626
43627         * lib/makepath.c (make_path): Quote the other instance, too.
43628
43629         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43630         (STATIC_BUF_SIZE): Define.
43631         (quotearg_n_options): Use only statically allocated storage when
43632         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43633         than STATIC_BUF_SIZE.
43634
43635 2000-07-29  Jim Meyering  <meyering@lucent.com>
43636
43637         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43638         * lib/dirname.c (dir_name): Likewise.
43639
43640         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43641         `/'.
43642
43643         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43644         (dir_name): Assert that there are no trailing slashes.
43645
43646 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
43647
43648         * lib/mbswidth.h (mbswidth): Add a flags argument.
43649         (mbswidth): New declaration.
43650         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43651         * lib/mbswidth.c (mbswidth): Add a flags argument.
43652         (mbsnwidth): New function.
43653
43654 2000-07-24  Jim Meyering  <meyering@lucent.com>
43655
43656         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
43657
43658 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43659
43660         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43661
43662 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43663
43664         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43665         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43666         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43667         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43668         invoke multibyte primitives.
43669
43670 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43671
43672         * lib/quotearg.c:
43673         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43674         so that mbstate_t is always defined.
43675
43676         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43677         be 1 in at least one GCC installation, and this configuration
43678         error is likely to be common.  Ignoring MB_LEN_MAX hurts
43679         performance on hosts that have mbrtowc but have only unibyte
43680         locales, but I assume these hosts are rare.
43681
43682 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43683
43684         * lib/mbswidth.c (_XOPEN_SOURCE):
43685         Don't define; this causes problems on Solaris 7.
43686         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43687
43688 2000-07-23  Jim Meyering  <meyering@lucent.com>
43689
43690         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43691         too: getgrgid, getpwuid, getuid.
43692
43693 2000-07-23  Jim Meyering  <meyering@lucent.com>
43694
43695         * lib/basename.c (base_name): Add an assertion.
43696
43697 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
43698
43699         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43700         shadow its mbsinit function.
43701
43702 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43703
43704         * lib/mbswidth.h: New file.
43705         * lib/mbswidth.c: New file.
43706         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43707         (noinst_HEADERS): Add mbswidth.h.
43708
43709 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43710
43711         * lib/config.charset: Add support for FreeBSD. Improve support for
43712         HP-UX and IRIX 6.
43713
43714 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
43715
43716         * m4/mbswidth.m4: New file.
43717         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43718
43719 2000-07-15  Jim Meyering  <meyering@lucent.com>
43720
43721         * lib/makepath.c: Include quote.h.
43722         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43723         corresponding argument in a `quote (...)' call.
43724         Give better diagnostics.
43725
43726         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43727         (noinst_HEADERS): Add quote.h.
43728
43729         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
43730         from tar's src/misc.c.
43731         * lib/quote.h: New file.  Prototypes for same.
43732
43733 2000-07-14  Paul Eggert  <eggert@twinsun.com>
43734
43735         From a suggestion by Bruno Haible.
43736         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43737         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43738         to decide whether to define the BeOS workaround macro;
43739         this adjusts to the change to AC_MBSTATE_T.
43740
43741 2000-07-14  Jim Meyering  <meyering@lucent.com>
43742
43743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43744         jm_AC_TYPE_UINTMAX_T.
43745
43746 2000-07-13  Paul Eggert  <eggert@twinsun.com>
43747
43748         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43749
43750         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43751         quotearg_buffer_restyled): Add support for
43752         clocale_quoting_style.  Undo previous change to
43753         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43754         and "{RIGHT QUOTATION MARK}" msgids.
43755
43756 2000-07-10  Paul Eggert  <eggert@twinsun.com>
43757
43758         From a suggestion by Bruno Haible.
43759         * m4/mbstate_t.m4 (AC_MBSTATE_T):
43760         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
43761         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43762         and mbstate_t, to a single-part test that simply defines mbstate_t.
43763         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43764         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43765
43766 2000-07-10  Jim Meyering  <meyering@lucent.com>
43767
43768         * m4/strerror_r.m4: Mirror the correction made in autoconf.
43769
43770         * m4/gnu-source.m4: Output to confdefs.h directly.
43771         Suggestion from Akim Demaille.
43772
43773 2000-07-09  Paul Eggert  <eggert@twinsun.com>
43774
43775         The old behavior of quoting `like this' doesn't look good with
43776         newer, ISO-style fonts.  See:
43777         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43778
43779         Instead, quote "like this" by default.  Let the translator
43780         tailor the locale-specific quoting behavior by providing
43781         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43782
43783         * lib/quotearg.c (N_): New macro.
43784         (gettext_default): New function.
43785         (quotearg_buffer_restyled): Use
43786         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43787         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43788
43789 2000-07-09  Jim Meyering  <meyering@lucent.com>
43790
43791         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43792         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
43793
43794         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43796
43797 2000-07-09  Jim Meyering  <meyering@lucent.com>
43798
43799         * lib/Most files: Update copyright dates to include 2000.
43800
43801 2000-07-08  Jim Meyering  <meyering@lucent.com>
43802
43803         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43804         if not defined.
43805         (xgethostname): Remove now-unnecessary #ifdef.
43806         Move declaration of `err' into loop where it's used.
43807
43808 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43809         and Bruno Haible  <haible@clisp.cons.org>
43810
43811         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43812         only if the test for an object-type mbstate_t fails.  This
43813         prevents us from mistakenly reporting that mbstate_t is a
43814         system object type after we "#define mbstate_t int" to work
43815         around its lack.
43816
43817 2000-07-05  Paul Eggert  <eggert@twinsun.com>
43818         and Bruno Haible  <haible@clisp.cons.org>
43819
43820         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43821
43822 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43823
43824         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43825         to strerror_r.
43826         Include <ctype.h> for use of isalpha.
43827
43828 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43829
43830         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43831         by allocating a larger buffer. Test the gethostname return value for
43832         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
43833         returns an error and ENAMETOOLONG isn't defined.
43834
43835 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
43836
43837         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43838         dimension.
43839
43840 2000-07-04  Jim Meyering  <meyering@lucent.com>
43841
43842         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43843         of the deprecated AC_CHECKING.
43844
43845 2000-07-04  Jim Meyering  <meyering@lucent.com>
43846
43847         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43848         Reported by Bruno Haible.
43849
43850 2000-07-04  Jim Meyering  <meyering@lucent.com>
43851
43852         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43853         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
43854         lacks mbrtowc.
43855
43856 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43857
43858         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43859         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43860
43861 2000-07-03  Paul Eggert  <eggert@twinsun.com>
43862         and Bruno Haible  <haible@clisp.cons.org>
43863
43864         * lib/quotearg.c (mbrtowc):
43865         Assign to *pwc, and return 1 only if result is nonzero.
43866         (iswprint): Use ISPRINT when substituting our own mbrtowc.
43867
43868 2000-07-03  Jim Meyering  <meyering@lucent.com>
43869
43870         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
43871
43872 2000-07-03  Jim Meyering  <meyering@lucent.com>
43873
43874         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
43875         This is necessary to get a definition of e.g., UTMP_FILE on
43876         HP-UX 10.20.
43877         From Bob Proulx.
43878
43879 2000-07-02  Jim Meyering  <meyering@lucent.com>
43880
43881         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
43882
43883         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
43884         AC_LIBOBJ(function_name).
43885         * m4/chown.m4: Likewise.
43886         * m4/fnmatch.m4: Likewise.
43887         * m4/ftruncate.m4: Likewise.
43888         * m4/getgroups.m4: Likewise.
43889         * m4/getline.m4: Likewise.
43890         * m4/group-member.m4: Likewise.
43891         * m4/jm-macros.m4: Likewise.
43892         * m4/lstat.m4: Likewise.
43893         * m4/malloc.m4: Likewise.
43894         * m4/memcmp.m4: Likewise.
43895         * m4/nanosleep.m4: Likewise.
43896         * m4/putenv.m4: Likewise.
43897         * m4/realloc.m4: Likewise.
43898         * m4/regex.m4: Likewise.
43899         * m4/stat.m4: Likewise.
43900         * m4/strftime.m4: Likewise.
43901
43902 2000-07-02  Jim Meyering  <meyering@lucent.com>
43903
43904         * lib/quotearg.c (mbstate_t): Don't define here.
43905
43906 2000-07-02  Jim Meyering  <meyering@lucent.com>
43907
43908         * lib/nanosleep.c (SIGCONT): Define if not already defined.
43909
43910 2000-07-01  Jim Meyering  <meyering@lucent.com>
43911
43912         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
43913
43914 2000-07-01  Jim Meyering  <meyering@lucent.com>
43915
43916         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
43917         problem.
43918
43919 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
43920
43921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
43922         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
43923
43924 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
43925
43926         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
43927         per change in ../m4/ls-mntd-fs.m4.
43928         (read_filesystem_list): Ignore symbolic links.
43929
43930 2000-06-29  Jim Meyering  <meyering@lucent.com>
43931
43932         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
43933         for declaration of strcmp.
43934
43935         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
43936
43937         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
43938         Avoid warning by casting result to `char *' to remove `const'.
43939
43940 2000-06-28  Jim Meyering  <meyering@lucent.com>
43941
43942         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
43943         included by quotearg.c, for which we perform this test.  From
43944         Bruno Haible.
43945
43946 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
43947
43948         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
43949         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
43950         <utmpx.h> exists, put readutmp.o into LIBOBJS.
43951
43952 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
43953
43954         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
43955
43956 2000-06-26  Paul Eggert  <eggert@twinsun.com>
43957
43958         savedir now sets errno on failure and invokes xmalloc to get memory.
43959         Fix a couple of other minor bugs while we're at it.
43960
43961         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
43962         (NAMLEN): Remove macro.
43963         (malloc, realloc): Remove decls.
43964         (stpcpy): Likewise.
43965         ("xalloc.h"): Include.
43966         (NAME_SIZE_DEFAULT): New macro.
43967         (savedir): Use xmalloc / xrealloc to allocate memory.
43968         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
43969         Skip "" directory entries.
43970         Use strlen to calculate directory entry length, since the old method
43971         is rarely used these days and isn't worth supporting.
43972         Don't use a pointer after freeing it.
43973         Check for integer overflow when calculating allocation size.
43974         Use memcpy to copy entries, instead of stpcpy.
43975         Set errno properly when returning NULL.
43976         Check for readdir error.
43977
43978 2000-06-26  Jim Meyering  <meyering@lucent.com>
43979
43980         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
43981
43982 2000-06-25  Jim Meyering  <meyering@lucent.com>
43983
43984         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
43985         Linux header bug when _XOPEN_SOURCE is defined to 500.
43986
43987 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
43988
43989         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
43990         deficiency.
43991
43992 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
43993
43994         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
43995         Include xalloc.h.
43996         Don't include <stdlib.h>.  Don't declare malloc, realloc.
43997
43998 2000-06-24  Jim Meyering  <meyering@lucent.com>
43999
44000         * m4/strerror_r.m4: Revive this file -- to try out an experimental
44001         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44002         for which strerror does return char*, but which lacks a conveniently
44003         accessible declaration of the function.  If the compile-test says
44004         strerror_r doesn't work, then resort to a `run'-test that works on
44005         BeOS and segfaults on DEC Unix.
44006
44007 2000-06-24  Jim Meyering  <meyering@lucent.com>
44008
44009         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44010
44011 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44012
44013         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44014         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
44015
44016 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44017
44018         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44019         (mbrtowc, mbstate_t): Define substitutes if
44020         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44021         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44022         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44023
44024 2000-06-23  Jim Meyering  <meyering@lucent.com>
44025
44026         * m4/afs.m4: Add missing AC_MSG_RESULT.
44027         Reported by Bruno Haible.
44028
44029         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44030         Suggestion from Bruno Haible.
44031
44032 2000-06-23  Jim Meyering  <meyering@lucent.com>
44033
44034         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
44035
44036 2000-06-21  Jim Meyering  <meyering@lucent.com>
44037
44038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44039
44040 2000-06-21  Jim Meyering  <meyering@lucent.com>
44041
44042         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44043         (noinst_HEADERS): Add getstr.h.
44044
44045         * lib/getline.c (getstr): Move into a separate file.
44046         * lib/getstr.c (getstr): New file, extracted from getline.c, with
44047         the following changes: new parameter, delim2; both delim[12]
44048         parameters have type `int', not `char'.  The latter would lose
44049         with 8-bit delimiters.
44050         * lib/getstr.h: New file.
44051
44052 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44053
44054         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44055         than 1024, return a memory chunk of least possible size, instead
44056         of size PATH_MAX + 2. In the loop, increment the size proportionally.
44057         Use free/xmalloc instead of xrealloc to avoid copying for very long
44058         paths.
44059
44060 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44061
44062         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
44063         the empty string.
44064
44065 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44066
44067         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
44068         address, not strdup.  Include <stdlib.h> and don't declare free().
44069
44070 2000-06-19  Jim Meyering  <meyering@lucent.com>
44071
44072         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
44073
44074 2000-06-18  Jim Meyering  <meyering@lucent.com>
44075
44076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
44077
44078         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
44079         `checking whether...' message to be consistent with that of the
44080         lstat test.
44081
44082 2000-06-18  Jim Meyering  <meyering@lucent.com>
44083
44084         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
44085         Besides, these days every porting target provides a mkdir function.
44086
44087         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
44088         needed. (this snippet comes from src/system.h).
44089
44090 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
44091
44092         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
44093
44094 2000-06-15  Paul Eggert  <eggert@twinsun.com>
44095
44096         * lib/human.c (adjust_value): New function.
44097         (human_readable_inexact): Apply rounding style even when
44098         printing approximate values.
44099
44100 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44101
44102         * lib/human.c (human_readable_inexact): Allow an input block
44103         size that is not a multiple of the output block size, and vice versa.
44104         Reported by Piergiorgio Sartor.
44105
44106 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44107
44108         * lib/getdate.y (get_date): Apply relative times after time
44109         zone indicator, not before.  Reported by Todd A. Jacobs.
44110
44111 2000-06-13  Jim Meyering  <meyering@lucent.com>
44112
44113         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
44114
44115         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
44116
44117 2000-06-12  Paul Eggert  <eggert@twinsun.com>
44118
44119         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
44120
44121 2000-06-12  Jim Meyering  <meyering@lucent.com>
44122
44123         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
44124         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
44125         optional argument.
44126         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
44127         the optional argument, `lib'.
44128
44129 2000-06-08  Jim Meyering  <meyering@lucent.com>
44130
44131         * m4/largefile.m4: Remove file (now that it's part of autoconf).
44132
44133 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44134
44135         Rewrite largefile configuration so that we don't need to run
44136         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
44137         AC_CANONICAL_HOST in configure.in -- jmm]
44138
44139         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44140         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44141         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44142         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44143         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44144         All uses changed.
44145         Instead of inspecting the output of getconf, try to compile the
44146         test program without and with the macro definition.
44147         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44148         for getconf.  Instead, check for the needed flags by compiling
44149         test programs.
44150
44151 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44152
44153         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44154
44155 2000-06-04  Jim Meyering  <meyering@lucent.com>
44156
44157         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44158         SunOS 4.1.4 for which gid_t is an unsigned type.
44159
44160 2000-06-03  Jim Meyering  <meyering@lucent.com>
44161
44162         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44163         now that autoconf requires that.
44164
44165         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44166         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44167         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44168
44169 2000-06-03  Jim Meyering  <meyering@lucent.com>
44170
44171         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44172
44173 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44174
44175         * m4/glibc21.m4: New file.
44176         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44177
44178 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44179
44180         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44181         newer, don't install charset.alias.
44182         * lib/config.charset: Change the Linux/glibc rules so they become empty
44183         on glibc-2.1 or newer.
44184
44185 2000-06-02  Jim Meyering  <meyering@lucent.com>
44186
44187         * lib/mountlist.c: Back out last change.  Instead, do this...
44188         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44189         me_dummy member using the same `ignore'-testing code.
44190         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44191         fs_type strings.
44192         From Mark D. Roth.
44193
44194 2000-05-29  Jim Meyering  <meyering@lucent.com>
44195
44196         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44197         mounts with the `ignore' attribute.  Based on a patch from
44198         Mark D. Roth.
44199
44200 2000-05-28  Jim Meyering  <meyering@lucent.com>
44201
44202         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44203         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44204         * m4/stat.m4: Likewise.
44205         * m4/lstat.m4: Likewise.
44206         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44207
44208         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44209         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44210
44211 2000-05-26  Jim Meyering  <meyering@lucent.com>
44212
44213         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44214
44215 2000-05-24  Jim Meyering  <meyering@lucent.com>
44216
44217         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44218         autoconf requires that.
44219         * m4/lib-check.m4: Likewise.
44220         * m4/jm-macros.m4: Likewise.
44221         * m4/strftime.m4: Likewise.
44222
44223         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44224         AC_CHECK_DECLS, now that autoconf requires that.
44225
44226 2000-05-22  Jim Meyering  <meyering@lucent.com>
44227
44228         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44229         * m4/lstat.m4: Likewise.
44230
44231 2000-05-22  Jim Meyering  <meyering@lucent.com>
44232
44233         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44234
44235 2000-05-20  Jim Meyering  <meyering@lucent.com>
44236
44237         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44238         (jm_PREREQ): Use it.
44239
44240 2000-05-18  Jim Meyering  <meyering@lucent.com>
44241
44242         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44243         back, too, since it may have been modified by allocate_entry.
44244         (hash_delete): Rewrite to use neither the assignment operator
44245         nor the comma operator in an if-expression.
44246
44247 2000-05-15  Paul Eggert  <eggert@twinsun.com>
44248
44249         * lib/closeout.c:
44250         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44251         Remove; no longer needed.
44252         "quotearg.h": Add include.
44253         (file_name): Do not bother to explicitly initialize to NULL; it's less
44254         efficient on some hosts.
44255         (close_stdout_status): Remove test as to whether stdout was already
44256         closed; it breaks for the case "echo x | sort >&-".
44257         Quote file name colons.
44258         Do not assume that _("write error") lacks format strings.
44259
44260 2000-05-15  Jim Meyering  <meyering@lucent.com>
44261
44262         * lib/version-etc.c (version_etc_copyright): Update the copyright
44263         string used in all --version output.
44264
44265 2000-05-14  Jim Meyering  <meyering@lucent.com>
44266
44267         * lib/closeout.c (close_stdout_set_file_name): New function.
44268         (close_stdout_status): Use new file-scoped global.
44269         Return right away if fstat says the stdout file descriptor is invalid.
44270         * lib/closeout.h (close_stdout_set_file_name): Declare.
44271
44272 2000-05-10  Jim Meyering  <meyering@lucent.com>
44273
44274         * lib/closeout.c [default_exit_status]: New file-scoped variable.
44275         (close_stdout_set_status): New function.
44276         * lib/closeout.h (close_stdout_set_status): Declare.
44277
44278 2000-05-09  Jim Meyering  <meyering@lucent.com>
44279
44280         * m4/gettext.m4: Rename this...
44281         * m4/libintl.m4: ...to this.
44282
44283 2000-05-08  Jim Meyering  <meyering@lucent.com>
44284
44285         * lib/long-options.c: Don't include closeout.h.
44286         (parse_long_options): Don't call close_stdout for --version.
44287
44288 2000-05-06  Paul Eggert  <eggert@twinsun.com>
44289
44290         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44291         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44292         2.1.3 bug.  This avoids a clash when files like regex.c define
44293         _GNU_SOURCE.
44294
44295 2000-05-06  Jim Meyering  <meyering@lucent.com>
44296
44297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44298         (AC_REPLACE_FUNCS): Add strnlen.
44299
44300         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44301         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44302
44303         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44304         AC_SEARCH_LIBS call for nanosleep.
44305         (LIB_NANOSLEEP): Set and AC_SUBST.
44306
44307 2000-05-06  Jim Meyering  <meyering@lucent.com>
44308
44309         * lib/strnlen.c: Undefine __strnlen and strnlen.
44310         [!weak_alias]: Define __strnlen to strnlen.
44311
44312         * lib/atexit.c: New file, from libiberty.
44313
44314 2000-05-06  Jim Meyering  <meyering@lucent.com>
44315
44316         * lib/closeout.c (close_stdout_status): Also check for errors on the
44317         stderr stream.
44318
44319 2000-05-05  Jim Meyering  <meyering@lucent.com>
44320
44321         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44322         AC_SEARCH_LIBS call for clock_gettime.
44323         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44324
44325         * m4/search-libs.m4: Update from autoconf.
44326
44327         su doesn't work on Solaris 2.6.
44328         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44329         <shadow.h>.  Reported by Dragos Harabor.
44330
44331 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
44332
44333         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44334         memcpy instead of xmalloc, xrealloc, path_concat.
44335         (locale_charset): Treat empty environment variables as absent.
44336         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44337
44338 2000-05-04  Jim Meyering  <meyering@lucent.com>
44339
44340         * lib/getopt.c: Update from glibc.
44341         * lib/obstack.c: Likewise.
44342         * lib/obstack.h: Likewise.
44343         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
44344         file
44345
44346         * lib/regex.h: Likewise.
44347         * lib/strndup.c: Likewise.
44348         * lib/strnlen.c: New file, from glibc.
44349
44350 2000-05-03  Jim Meyering  <meyering@lucent.com>
44351
44352         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44353
44354 2000-05-02  Paul Eggert  <eggert@twinsun.com>
44355
44356         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44357         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
44358         compile-time test, rather than inspecting host and OS, to
44359         decide whether to define _LARGEFILE_SOURCE.
44360
44361 2000-05-01  Jim Meyering  <meyering@lucent.com>
44362
44363         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44364
44365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44366         Based on a patch from Bruno Haible.
44367
44368 2000-05-01  Jim Meyering  <meyering@lucent.com>
44369
44370         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44371
44372 2000-04-29  Jim Meyering  <meyering@lucent.com>
44373
44374         * lib/path-concat.c: Declare strdup only if it's not defined.
44375         * lib/canon-host.c: Likewise.
44376
44377 2000-04-28  Jim Meyering  <meyering@lucent.com>
44378
44379         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44380         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
44381         is included first, then limits.h is included by locale.h by libintl.h.
44382         From John David Anglin.
44383
44384 2000-04-25  Jim Meyering  <meyering@lucent.com>
44385
44386         * lib/makepath.c (S_IRWXUGO): Define.
44387         (make_path): Always perform explicit chmod if MODE specifies any
44388         of the `special' permission bits.  Prompted by a bug report against
44389         install from Mate Wierdl and Joost van Baal.
44390
44391 2000-04-18  Jim Meyering  <meyering@lucent.com>
44392
44393         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44394         (jm_PREREQ): Use it.
44395
44396 2000-04-18  Jim Meyering  <meyering@lucent.com>
44397
44398         * lib/README: New file.
44399
44400         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44401         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
44402
44403 2000-04-17  Jim Meyering  <meyering@lucent.com>
44404
44405         Get it right :-)
44406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44407         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
44408         Suggestion from Akim Demaille.
44409
44410 2000-04-17  Jim Meyering  <meyering@lucent.com>
44411
44412         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44413         the definition of it to rpl_strftime also defined-away the system's
44414         declaration.
44415
44416 2000-04-15  Jim Meyering  <meyering@lucent.com>
44417
44418         Use `C' to denote so-called `contiguous' files, the same way
44419         that tar does.
44420         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44421         (ftypelet): Use S_ISCTG.
44422         From Michael Deutschmann.
44423
44424 2000-04-14  Jim Meyering  <meyering@lucent.com>
44425
44426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44427         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
44428         clobbered.
44429
44430 2000-04-14  Jim Meyering  <meyering@lucent.com>
44431
44432         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44433
44434 2000-04-13  Jim Meyering  <meyering@lucent.com>
44435
44436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44437         AH_VERBATIM to insert required #ifndef into config.h.in.
44438         Suggestion from Akim Demaille.
44439
44440 2000-04-12  Jim Meyering  <meyering@lucent.com>
44441
44442         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44443         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
44444         Christian Krackowizer.
44445
44446         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44447         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44448         (AC_SYS_LARGEFILE): Require.
44449         (AM_C_PROTOTYPES): Require.
44450
44451 2000-04-08  Jim Meyering  <meyering@lucent.com>
44452
44453         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44454         names don't conflict.  Reported by Eli Zaretskii.
44455
44456 2000-04-07  Jim Meyering  <meyering@lucent.com>
44457
44458         * lib/putenv.c: Move inclusion of errno.h so it follows that of
44459         sys/types.h, to work around system header problems on AIX 3.2.5.
44460         From Bruno Haible.
44461
44462 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
44463
44464         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44465         bug.  Deal with the different error behavior of Irix iconv.
44466
44467 2000-04-05  Paul Eggert  <eggert@twinsun.com>
44468
44469         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44470         IRIX if the installer said otherwise.
44471
44472 2000-04-05  Jim Meyering  <meyering@lucent.com>
44473
44474         Portability tweaks required for ultrix4.3.
44475         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44476         (jm_CHECK_DECLS): Add getutent to the list of functions.
44477         (_jm_DECL_HEADERS): Add utmpx.h.
44478         From John David Anglin.
44479
44480         * m4/strftime.m4: Back out the 2000-04-02 change.
44481         Instead of that change, simply undefine putenv in the test program.
44482
44483 2000-04-05  Jim Meyering  <meyering@lucent.com>
44484
44485         Portability tweaks required for ultrix4.3.
44486         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44487         getutent.
44488         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44489         * lib/canon-host.c: Declare strdup.
44490         * lib/path-concat.c: Likewise.
44491         From John David Anglin.
44492
44493 2000-04-04  Jim Meyering  <meyering@lucent.com>
44494
44495         Be more DOS 8.3-friendly.
44496         * lib/ref-add.sin: Renamed from ref-add.sed.in.
44497         * lib/ref-del.sin: Renamed from ref-del.sed.in.
44498         * lib/Makefile.am: Reflect renaming.
44499         Reported by Eli Zaretskii.
44500
44501         Use a temporary file name that won't clash with `charset.alias'
44502         in the DOS 8.3 name space.
44503         * lib/Makefile.am (charset_tmp): Define.
44504         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44505         (uninstall-local): Likewise.
44506         Reported by Eli Zaretskii.
44507
44508 2000-04-03  Jim Meyering  <meyering@lucent.com>
44509
44510         * m4/gettext.m4: Fix typo in comment.
44511
44512         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44513         textutils/configure.in).  Suggestion from Paul Eggert.
44514         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
44515
44516 2000-04-02  Paul Eggert  <eggert@twinsun.com>
44517
44518         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44519         variable in the shell rather than using putenv, which isn't
44520         portable.  This avoids the configure-time inter-test dependency
44521         on the potentially-renamed putenv function.
44522
44523 2000-03-30  Paul Eggert  <eggert@twinsun.com>
44524
44525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44526         before checking struct stat.st_blksize, so that
44527         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44528
44529 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44530
44531         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44532         since strftime.c uses HAVE_STRFTIME to decide whether to use
44533         the underlying strftime.
44534
44535 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44536
44537         * lib/time/strftime.c (my_strftime): Make sure we call the system
44538         strftime, not ourselves, when invoking the underlying strftime.
44539
44540 2000-03-24  Jim Meyering  <meyering@lucent.com>
44541
44542         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44543         (charset_alias): Define.
44544         (install-exec-local): Factor out common code.
44545         (uninstall-local): Split lines longer than 80.
44546         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44547         (SUFFIXES): Define.
44548         (.sed.in.sed): New rule.  Don't redirect directly to $@.
44549         (CLEANFILES): Add ref-add.sed and ref-del.sed.
44550
44551 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
44552
44553         * lib/config.charset: Output a line containing "Packages using this
44554         file".
44555         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44556         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44557         ref-del.sed): New rules.
44558
44559 2000-03-17  Jim Meyering  <meyering@lucent.com>
44560
44561         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44562         Otherwise, include <strings.h>
44563
44564 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
44565
44566         * lib/unicodeio.c (utf8_wctomb): New function.
44567         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44568         format instead of in UCS-4 with platform dependent endianness.
44569
44570 2000-03-10  Jim Meyering  <meyering@lucent.com>
44571
44572         * m4/lib-check.m4: Look for getspnam in -lgen, too.
44573         From Marco Franzen.
44574
44575 2000-03-07  Paul Eggert  <eggert@twinsun.com>
44576
44577         * lib/savedir.c (savedir): Work even if directory size is
44578         negative; this can happen with some screwy NFS configurations.
44579
44580 2000-03-06  Jim Meyering  <meyering@lucent.com>
44581
44582         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44583         if it's NULL (because we ran out of memory).  From Bruno Haible.
44584
44585 2000-03-05  Jim Meyering  <meyering@lucent.com>
44586
44587         * lib/localcharset.c ("path-concat.h"): Include.
44588         (get_charset_aliases): Use path_concat instead of ANSI string
44589         concatenation.
44590
44591         * lib/unicodeio.h (PARAMS): Define.
44592         Use it to guard prototype.
44593
44594 2000-03-04  Jim Meyering  <meyering@lucent.com>
44595
44596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44597         for lib/localcharset.c.
44598
44599 2000-03-04  Jim Meyering  <meyering@lucent.com>
44600
44601         * lib/Makefile.am (install-exec-local): Create $(libdir) before
44602         installing into it.
44603         (uninstall-local): Uncomment this rule so `make distcheck' works
44604         once again.
44605
44606         * lib/unicodeio.c (<errno.h>): Include it.
44607         (errno): Declare if not defined.
44608
44609         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44610
44611         * lib/config.charset: New version, incorporating remarks from a linux
44612         i18n mailing list.  From Bruno Haible.
44613
44614 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
44615
44616         * m4/codeset.m4: New file.
44617         * m4/iconv.m4: New file.
44618         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44619
44620 2000-03-03  Jim Meyering  <meyering@lucent.com>
44621
44622         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44623
44624 2000-03-02  Jim Meyering  <meyering@lucent.com>
44625
44626         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44627         the messages come out on separate lines.
44628
44629         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44630         rather than jm_CHECK_DECLARATIONS.
44631         * m4/decl.m4: Remove now-unused file.
44632
44633         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44634         geteuid.
44635
44636 2000-03-02  Jim Meyering  <meyering@lucent.com>
44637
44638         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44639
44640 2000-03-01  Jim Meyering  <meyering@lucent.com>
44641
44642         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44643         * lib/unicodeio.c: Likewise.
44644
44645 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
44646
44647         * lib/config.charset: New file.
44648         * lib/localcharset.c: New file.
44649         * lib/unicodeio.h, lib/unicodeio.c: New files.
44650         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44651         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44652         (noinst_HEADERS): Add unicodeio.h.
44653         (all-local, install-exec-local, charset.alias): New targets.
44654
44655 2000-02-28  Paul Eggert  <eggert@twinsun.com>
44656
44657         * lib/quotearg.c (ALERT_CHAR): New macro.
44658         (quotearg_buffer_restyled): Use it.
44659
44660 2000-02-27  Jim Meyering  <meyering@lucent.com>
44661
44662         * m4/check-decl.m4: Add getenv to the list.
44663
44664 2000-02-27  Jim Meyering  <meyering@lucent.com>
44665
44666         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44667         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44668
44669         * lib/backupfile.c: Guard inclusion of stdlib.h with
44670         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44671         Declare malloc if needed.
44672
44673         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44674         `#ifndef HAVE_DECL..'
44675         now that autoconf always defines the HAVE_DECL_ symbols.
44676         * lib/human.c: Likewise.
44677         * lib/same.c: Likewise.
44678         * lib/strtoumax.c: Likewise.
44679
44680         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44681         declaration check was not run.
44682         * lib/hash.c: Likewise.
44683         * lib/human.c: Likewise.
44684         * lib/same.c: Likewise.
44685         * lib/strtoumax.c: Likewise.
44686
44687         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44688         `.', then first look up the entire `.'-containing string as a login
44689         name.
44690
44691 2000-02-23  Jim Meyering  <meyering@lucent.com>
44692
44693         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44694         in place of my hack.
44695
44696 2000-02-18  Paul Eggert  <eggert@twinsun.com>
44697
44698         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44699         (textint): New typedef.
44700         (parser_control): Member year changed from int to textint.
44701         All uses changed.
44702         (YYSTYPE): Removed; replaced by %union with int and textint members.
44703         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44704         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44705         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44706         (tSNUMBER, tUNUMBER): Now of type <textintval>.
44707         (date, number, to_year): Use width of number in digits, not its value,
44708         to determine whether it's a 2-digit year, or a 2-digit time.
44709         (yylex): Store number of digits of numeric tokens.
44710         Reported by John Kendall.
44711
44712         (parser_control): Changed from struct parser_control to typedef (for
44713         consistency).  All uses changed.
44714
44715         (tID): Removed; not used.
44716         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44717
44718 2000-02-14  Paul Eggert  <eggert@twinsun.com>
44719
44720         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44721         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44722
44723 2000-02-12  Jim Meyering  <meyering@lucent.com>
44724
44725         * lib/userspec.c (ISDIGIT): Define it.
44726         (isdigit): Remove definition.
44727         (is_number): Use ISDIGIT, not isdigit.
44728         <libintl.h>: Include.
44729         (_ and N_): Define.
44730         (parse_user_spec): Mark translatable strings.
44731
44732 2000-02-10  Jim Meyering  <meyering@lucent.com>
44733
44734         With these changes, nanosleep.[ch] are finally enough like the other
44735         lib/* replacement files to compile on a few more losing systems.
44736
44737         * lib/nanosleep.h: Don't include config.h.
44738         Remove prototype from declaration of nanosleep.
44739         (PARAMS): Remove now-unneeded definition.
44740         * lib/nanosleep.c: #undef nanosleep.
44741         (rpl_nanosleep): Rename from nanosleep.
44742
44743 2000-02-10  Jim Meyering  <meyering@lucent.com>
44744
44745         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44746         gnu_nanosleep to rpl_nanosleep.
44747
44748 2000-02-09  Jim Meyering  <meyering@lucent.com>
44749
44750         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44751         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
44752
44753 2000-02-08  Akim Demaille  <akim@epita.fr>
44754
44755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44756         `[' and `]' and remove uses of `changequote'.
44757         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44758         (AC_SYS_LARGEFILE): Likewise.
44759         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44760         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44761         of changequote.
44762         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44763         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44764         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44765         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44766
44767 2000-02-05  Jim Meyering  <meyering@lucent.com>
44768
44769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44770         Remove explicit use of AC_HEADER_TIME.  It is required by
44771         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
44772         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44773         in autoconf whereby the expansion of the latter ended up preceding
44774         the expansion of its prerequisite, AC_HEADER_TIME.
44775         Reported by Volker Borchert.
44776
44777 2000-02-03  Jim Meyering  <meyering@lucent.com>
44778
44779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44780
44781 2000-02-03  Jim Meyering  <meyering@lucent.com>
44782
44783         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44784         rather than with `#if HAVE_UTMPNAME'.
44785
44786 2000-02-02  Jim Meyering  <meyering@lucent.com>
44787
44788         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44789         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44790         Reported by Eli Zaretskii.
44791
44792 2000-02-01  Jim Meyering  <meyering@lucent.com>
44793
44794         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
44795
44796 2000-01-31  Jim Meyering  <meyering@lucent.com>
44797
44798         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44799         functions.  Add the time.h and sys/time.h headers along with the
44800         AC_REQUIRE'ment of AC_HEADER_TIME.
44801
44802 2000-01-31  Jim Meyering  <meyering@lucent.com>
44803
44804         * lib/nanosleep.h (nanosleep): Guard declaration with
44805         `#if ! HAVE_DECL_NANOSLEEP'.
44806         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44807         the declaration in that vendor's sys/timers.h.
44808         Reported by Christian Krackowizer.
44809
44810         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44811         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44812         (ISPRINT): Likewise.
44813         Reported by Tom Tromey.
44814
44815 2000-01-30  Jim Meyering  <meyering@lucent.com>
44816
44817         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44818
44819         * m4/prereq.m4 (utmp_includes): Define.
44820         Check for ut_user and ut_name members in both struct utmpx
44821         and struct utmp.
44822
44823 2000-01-30  Jim Meyering  <meyering@lucent.com>
44824
44825         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44826         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
44827         header files where only utmpx.ut_user is declared.
44828
44829         * lib/readutmp.h (UT_USER): Define.
44830
44831 2000-01-29  Jim Meyering  <meyering@lucent.com>
44832
44833         * m4/lib-check.m4: New file containing library-related checks from
44834         fileutils and sh-utils (textutils had none).
44835
44836 2000-01-28  Jim Meyering  <meyering@lucent.com>
44837
44838         * m4/perl.m4: Change format of warning message to look more like that
44839         from the missing script.  Suggestion from François Pinard.
44840
44841 2000-01-25  Jim Meyering  <meyering@lucent.com>
44842
44843         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44844         well as time.h in the compile check.
44845         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44846         Fix typo in cross-compiling case: s/yes/no/.
44847
44848 2000-01-23  Jim Meyering  <meyering@lucent.com>
44849
44850         * m4/jm-macros.m4: Move df-related tests here from
44851         fileutils/configure.in
44852
44853         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44854         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44855
44856         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
44857         s/space/ac_fsusage_space/.
44858         (jm_FILE_SYSTEM_USAGE): Take two parameters.
44859
44860         * m4/ftruncate.m4: New file (derived from part of
44861         fileutils/configure.in).
44862         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
44863         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
44864
44865         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
44866         AC_SUBST these here, rather than just in sh-util/configure.in, so
44867         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
44868         all the same.
44869         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
44870         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
44871         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
44872         (AC_SUBST(POW_LIBM)): Likewise.
44873         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
44874
44875 2000-01-23  Jim Meyering  <meyering@lucent.com>
44876
44877         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
44878         obstack.c.
44879
44880 2000-01-22  Jim Meyering  <meyering@lucent.com>
44881
44882         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
44883
44884         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
44885
44886         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
44887         configure.in
44888         (AC_CHECK_HEADERS): Likewise for sh-utils.
44889         (AC_CHECK_HEADERS): Likewise for textutils.
44890         Merge the three lists of headers.
44891
44892         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
44893         from fileutils' configure.in.
44894
44895         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
44896         code. Moved tests into their own function (_jm_DECL_HEADERS) in
44897         check-decl.m4.
44898
44899         * m4/check-decl.m4: Use #if rather than #ifdef.
44900         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
44901         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
44902         (_jm_DECL_HEADERS): Define new function.
44903         (jm_CHECK_DECLARATIONS): Require it.
44904
44905 2000-01-22  Jim Meyering  <meyering@lucent.com>
44906
44907         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
44908         [! HAVE_DECL_STRTOULL]: Declare strtoull.
44909         Required for some AIX systems.  Reported by Christian Krackowizer.
44910         [TESTING] (main): New function.
44911
44912         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
44913         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
44914         letters.
44915
44916         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
44917         iswprint.
44918
44919         * lib/strverscmp.c (ISDIGIT): Define.
44920         (strverscmp): Use ISDIGIT, not isdigit.
44921
44922 2000-01-19  Jim Meyering  <meyering@lucent.com>
44923
44924         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
44925         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
44926         defines `struct timespec' in <sys/time.h>
44927
44928         * m4/c-bs-a.m4: Remove uses of changequote altogether.
44929         Thanks to Akim for explaining.
44930
44931 2000-01-17  Paul Eggert  <eggert@twinsun.com>
44932
44933         * lib/nanosleep.c (nanosleep):
44934         Don't use SA_INTERRUPT to decide whether to call sigaction, as
44935         POSIX.1 doesn't require SA_INTERRUPT and some systems
44936         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
44937         it's been part of POSIX.1 since day 1 (in 1988).
44938
44939 2000-01-17  Jim Meyering  <meyering@lucent.com>
44940
44941         * lib/interlock: Remove unused file.  Reported by François Pinard.
44942
44943 2000-01-16  Paul Eggert  <eggert@twinsun.com>
44944
44945         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
44946         alert, backslash, formfeed, and vertical tab unnecessarily in
44947         shell quoting style.
44948
44949 2000-01-16  Jim Meyering  <meyering@lucent.com>
44950
44951         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
44952         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
44953         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
44954         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
44955
44956 2000-01-16  Jim Meyering  <meyering@lucent.com>
44957
44958         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
44959         because the latter didn't work.
44960
44961 2000-01-15  Jim Meyering  <meyering@lucent.com>
44962
44963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
44964         (AC_REPLACE_FUNCS): Add memcpy and memset.
44965         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
44966         Add strpbrk.
44967         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
44968
44969 2000-01-12  Jim Meyering  <meyering@lucent.com>
44970
44971         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
44972         (jm_PREREQ): Use it.
44973         (jm_PREREQ_READUTMP): New macro.
44974         (jm_PREREQ): Use it.
44975
44976 2000-01-11  Paul Eggert  <eggert@twinsun.com>
44977
44978         Quote multibyte characters correctly.
44979         * m4/c-bs-a.m4: New file.
44980         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
44981         (jm_PREREQ): Use it.
44982
44983 2000-01-11  Paul Eggert  <eggert@twinsun.com>
44984
44985         * m4/uintmax_t.m4: Port to autoconf 2.13.
44986
44987 2000-01-08  Jim Meyering  <meyering@ascend.com>
44988
44989         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
44990         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
44991
44992 2000-01-04  Jim Meyering  <meyering@ascend.com>
44993
44994         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
44995         jm_STRUCT_DIRENT_D_TYPE.
44996         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
44997         jm_STRUCT_DIRENT_D_INO.
44998         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
44999         jm_STRUCT_UTIMBUF.
45000         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45001         renamings.
45002         * m4/utime.m4: Likewise.
45003
45004         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45005         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45006
45007 2000-01-03  Paul Eggert  <eggert@twinsun.com>
45008
45009         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45010         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45011
45012 2000-01-02  Jim Meyering  <meyering@ascend.com>
45013
45014         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
45015         remember if this is necessary.
45016
45017 1999-12-26  Jim Meyering  <meyering@ascend.com>
45018
45019         * m4/jm-macros.m4: Use it here.
45020         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45021
45022 1999-12-23  Jim Meyering  <meyering@ascend.com>
45023
45024         * m4/jm-macros.m4: Check for clock_gettime (moved from
45025         fileutils/configure.in)
45026         Check for gettimeofday.
45027
45028 1999-12-20  Jim Meyering  <meyering@ascend.com>
45029
45030         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45031         autoconf-2.14a-1999-12-20.
45032
45033 1999-12-19  Jim Meyering  <meyering@ascend.com>
45034
45035         * m4/lstat-slash.m4: New file.
45036         * m4/jm-macros.m4: Use the new macro:
45037         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45038
45039 1999-12-07  Jim Meyering  <meyering@ascend.com>
45040
45041         * m4/perl.m4: Require that File::Compare be available, too.
45042         Too many systems seem to lack it.
45043
45044         * m4/strftime.m4: Add checks for most of the cpp macros tested in
45045         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
45046
45047 1999-11-18  Paul Eggert  <eggert@twinsun.com>
45048
45049         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45050         problem with the QNX 4.25 shell, which doesn't propagate exit
45051         status of failed commands inside shell assignments.
45052
45053 1999-11-17  Jim Meyering  <meyering@ascend.com>
45054
45055         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45056
45057 1999-11-07  Jim Meyering  <meyering@ascend.com>
45058
45059         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45060
45061 1999-11-06  Jim Meyering  <meyering@ascend.com>
45062
45063         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
45064         * m4/jm-macros.m4 (jm_MACROS): Use it here.
45065
45066 1999-11-05  Jim Meyering  <meyering@ascend.com>
45067
45068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
45069         configure.in of textutils, fileutils, and sh-utils into this one
45070         (shared between those packages) file.
45071         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
45072         AC_STRUCT_ST_BLKSIZE.
45073
45074 1999-11-03  Jim Meyering  <meyering@ascend.com>
45075
45076         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
45077         of AC_CHECK_TYPE checks includes unistd.h.
45078         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
45079         Suggestion from Akim Demaille.
45080
45081 1999-10-30  Jim Meyering  <meyering@ascend.com>
45082
45083         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
45084         m4-quoted string.
45085         * m4/ls-mntd-fs.m4: Likewise.
45086         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
45087         * m4/jm-winsz1.m4: Likewise.
45088
45089         * m4/const.m4: Remove file, since the fix made it into the experimental
45090         version of autoconf.
45091         * m4/mktime.m4: Likewise.
45092
45093         * m4/check-type.m4: Remove file, now that the latest version of
45094         AC_CHECK_TYPE takes a third arg to specify additional #includes.
45095
45096         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
45097         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
45098         AC_CHECK_TYPE.
45099
45100 1999-10-04  Jim Meyering  <meyering@ascend.com>
45101
45102         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
45103
45104 1999-09-22  Paul Eggert  <eggert@twinsun.com>
45105
45106         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
45107         2.95.1 bug with HP-UX 10.20.
45108
45109 1999-09-17  Jim Meyering  <meyering@ascend.com>
45110
45111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
45112         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
45113         due to missing strdup (against sh-utils-2.0).
45114
45115 1999-08-29  Jim Meyering  <meyering@ascend.com>
45116
45117         * m4/jm-macros.m4: Require jm_BISON.
45118         * m4/bison.m4: New file.
45119
45120 1999-08-17  Paul Eggert  <eggert@twinsun.com>
45121
45122         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
45123         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
45124
45125 1999-08-05  Jim Meyering  <meyering@ascend.com>
45126
45127         * m4/getline.m4: Rename test file from conftestdata to conftest.data
45128         to avoid conflicts with `conftest' on 8+3 filesystems.
45129         Suggestion from Eli Zaretskii.
45130
45131 1999-08-04  Jim Meyering  <meyering@ascend.com>
45132
45133         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
45134         fileutils and sh-utils (textutils's getline test was inadequate).
45135         (AM_FUNC_GETLINE): Run this test.
45136         (AC_CHECK_FUNCS): Check for getdelim.
45137         Reported by Bob Proulx.
45138
45139 1999-08-02  Jim Meyering  <meyering@ascend.com>
45140
45141         * m4/jm-macros.m4: Add a comment.
45142
45143 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45144
45145         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45146         <inttypes.h> defines strtoumax as a macro (and not as a
45147         function).
45148
45149 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45150
45151         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45152         that we can shift, multiply and divide unsigned long long
45153         values; Ultrix cc can't do it.
45154
45155 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45156
45157         * m4/mktime.m4: New file, which is a preview of what should appear
45158         in the next public autoconf release.
45159
45160 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45161
45162         * m4/lfs.m4: Remove this file.
45163         * m4/largefile.m4: New file.  It contains the old contents of
45164         lfs.m4, except that all names with prefix AC_LFS have been
45165         changed to use the prefix AC_SYS_LARGEFILE instead, to be
45166         compatible with future autoconf versions.  Also, some minor m4
45167         quoting problems have been fixed.
45168
45169 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45170
45171         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45172         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45173         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45174         and simplify the shell code.
45175
45176 1999-08-01  Jim Meyering  <meyering@ascend.com>
45177
45178         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45179         m4.
45180
45181 1999-07-20  Jim Meyering  <meyering@ascend.com>
45182
45183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45184
45185 1999-07-15  Jim Meyering  <meyering@ascend.com>
45186
45187         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45188
45189 1999-05-22  Jim Meyering  <meyering@ascend.com>
45190
45191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45192
45193 1999-05-20  Jim Meyering  <meyering@ascend.com>
45194
45195         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45196         Add a colon after each `then' in case $4 is empty.
45197
45198 1999-05-16  Jim Meyering  <meyering@ascend.com>
45199
45200         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45201
45202 1999-05-10  Jim Meyering  <meyering@ascend.com>
45203
45204         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45205
45206         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45207         AC_FUNC_MKTIME.
45208
45209 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
45210
45211         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45212
45213 1999-05-04  Paul Eggert  <eggert@twinsun.com>
45214
45215         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45216         not CPPFLAGS, so that linking works correctly in IRIX.
45217
45218 1999-04-30  Paul Eggert  <eggert@twinsun.com>
45219
45220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45221
45222 1999-04-20  Paul Eggert  <eggert@twinsun.com>
45223
45224         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45225         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45227         jm_AC_TYPE_UNSIGNED_LONG_LONG.
45228         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45229
45230         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
45231
45232 1999-04-20  Jim Meyering  <meyering@ascend.com>
45233
45234         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45235         AC_REPLACE xstroull if necessary.  From Paul Eggert.
45236         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45237
45238 1999-04-18  Jim Meyering  <meyering@ascend.com>
45239
45240         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45241         * m4/jm-macros.m4: Use it.
45242
45243 1999-04-06  Jim Meyering  <meyering@ascend.com>
45244
45245         * m4/strftime.m4: Remove test for %f.
45246
45247 1999-03-29  Jim Meyering  <meyering@ascend.com>
45248
45249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45250         superset of the AC_TYPE_* checks in the textutils, fileutils,
45251         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
45252         AC_TYPE_PID_T.
45253
45254 1999-03-28  Jim Meyering  <meyering@ascend.com>
45255
45256         * m4/jm-macros.m4: Define GNU_PACKAGE here.
45257         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45258         replaced e.g., in the *.sh files of the sh-utils.
45259
45260 1999-03-20  Jim Meyering  <meyering@ascend.com>
45261
45262         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45263         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45264         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
45265
45266 1999-03-19  Jim Meyering  <meyering@ascend.com>
45267
45268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45269
45270 1999-03-12  Jim Meyering  <meyering@ascend.com>
45271
45272         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45273
45274 1999-03-07  Jim Meyering  <meyering@ascend.com>
45275
45276         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45277         declared.
45278
45279 1999-02-17  Jim Meyering  <meyering@ascend.com>
45280
45281         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45282         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
45283
45284 1999-02-07  Jim Meyering  <meyering@ascend.com>
45285
45286         * m4/group-member.m4: New file -- extracted from sh-utils'
45287         configure.in.
45288
45289         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
45290         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45291
45292 1999-02-06  Jim Meyering  <meyering@ascend.com>
45293
45294         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45295         * m4/fnmatch.m4: Likewise.
45296         * m4/getgroups.m4: Likewise.
45297         * m4/lstat.m4: Likewise.
45298         * m4/malloc.m4: Likewise.
45299         * m4/putenv.m4: Likewise.
45300         * m4/realloc.m4: Likewise.
45301         * m4/regex.m4: Likewise.
45302         * m4/stat.m4: Likewise.
45303         * m4/strftime.m4: Likewise.
45304         Suggestion from Alain Magloire.
45305
45306         * m4/chown.m4: Use `.$ac_objext', not `.o'.
45307         * m4/fnmatch.m4: Likewise.
45308         * m4/getgroups.m4: Likewise.
45309         * m4/getline.m4: Likewise.
45310         * m4/lstat.m4: Likewise.
45311         * m4/malloc.m4: Likewise.
45312         * m4/memcmp.m4: Likewise.
45313         * m4/putenv.m4: Likewise.
45314         * m4/realloc.m4: Likewise.
45315         * m4/regex.m4: Likewise.
45316         * m4/stat.m4: Likewise.
45317         * m4/strftime.m4: Likewise.
45318         Suggestion from Alain Magloire.
45319
45320         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45321         an argument.
45322
45323         * m4/regex.m4: Add a run-time Test for proper operation of
45324         re_compile_pattern.
45325
45326 1999-01-31  Jim Meyering  <meyering@ascend.com>
45327
45328         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45329
45330 1999-01-30  Jim Meyering  <meyering@ascend.com>
45331
45332         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45333
45334         * m4/jm-mktime.m4: Make this a wrapper around the official
45335         AM_FUNC_MKTIME rather than my private copy, now that the official one
45336         is up to date.
45337         * m4/mktime.m4: Remove file.
45338
45339         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45340         * m4/uptime.m4: Likewise.
45341         * m4/uintmax_t.m4: Likewise.
45342
45343 1999-01-28  Jim Meyering  <meyering@ascend.com>
45344
45345         * m4/jm-macros.m4: Use jm_AFS.
45346         * m4/afs.m4: New file (from fileutils' configure.in).
45347
45348         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45349         * m4/chown.m4: Likewise.
45350         * m4/d-ino.m4: Likewise.
45351         * m4/d-type.m4: Likewise.
45352         * m4/fnmatch.m4: Likewise.
45353         * m4/getgroups.m4: Likewise.
45354         * m4/gettext.m4: Likewise.
45355         * m4/jm-mktime.m4: Likewise.
45356         * m4/jm-winsz2.m4: Likewise.
45357         * m4/lcmessage.m4: Likewise.
45358         * m4/ls-mntd-fs.m4: Likewise.
45359         * m4/malloc.m4: Likewise.
45360         * m4/memcmp.m4: Likewise.
45361         * m4/putenv.m4: Likewise.
45362         * m4/realloc.m4: Likewise.
45363         * m4/st_mtim.m4: Likewise.
45364         * m4/strftime.m4: Likewise.
45365
45366 1999-01-16  Jim Meyering  <meyering@ascend.com>
45367
45368         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45369         (ARGMATCH_DIE_DECL): Define.
45370
45371 1999-01-12  Jim Meyering  <meyering@ascend.com>
45372
45373         * m4/Makefile.am.in: Rewrite to avoid using fmt.
45374         Reported by Lars Hecking.
45375
45376 1999-01-10  Jim Meyering  <meyering@ascend.com>
45377
45378         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45379         gross kludge.
45380         * m4/inttypes_h.m4: Likewise.
45381         * m4/lstat.m4: Likewise.
45382         * m4/malloc.m4: Likewise.
45383         * m4/readdir.m4: Likewise.
45384         * m4/realloc.m4: Likewise.
45385         * m4/st_dm_mode.m4: Likewise.
45386         * m4/stat.m4: Likewise.
45387         * m4/utimbuf.m4: Likewise.
45388         * m4/utimes.m4: Likewise.
45389
45390         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45391         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
45392         comments in config.h.in are meaningful.
45393
45394         * m4/jm-macros.m4: Require autoconf-2.13 here.
45395
45396         * m4/regex.m4: By default, don't use the included regex.c on systems
45397         with glibc 2.  Suggestion from Uli Drepper.
45398
45399 1999-01-02  Jim Meyering  <meyering@ascend.com>
45400
45401         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45402
45403 1998-12-18  Jim Meyering  <meyering@ascend.com>
45404
45405         * m4/Makefile.am.in (Makefile.am): Simplify rule.
45406         Based on a suggestion from Lars Hecking.
45407
45408 1998-11-16  Paul Eggert  <eggert@twinsun.com>
45409
45410         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45411
45412 1998-11-16  Jim Meyering  <meyering@ascend.com>
45413
45414         * m4/lfs.m4: Double-quote the `uname...` expression.
45415
45416 1998-11-14  Jim Meyering  <meyering@ascend.com>
45417
45418         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
45419         * m4/stat.m4: Likewise.
45420
45421 1998-11-03  Jim Meyering  <meyering@ascend.com>
45422
45423         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45424         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45425
45426 1998-10-18  Jim Meyering  <meyering@ascend.com>
45427
45428         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45429
45430 1998-10-17  Jim Meyering  <meyering@ascend.com>
45431
45432         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45433         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45434         calls for those previously hard-coded headers.  Instead, take a new
45435         parameter.
45436         (jm_CHECK_DECLARATIONS): Reflect interface change.
45437         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45438         (jm_CHECK_DECL_LOCALTIME_R): New macro.
45439
45440         * m4/mktime.m4: Test for spring-forward gap before long-running test.
45441
45442 1998-10-14  Jim Meyering  <meyering@ascend.com>
45443
45444         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45445         instead of "TZ=America/Vancouver".  From Paul Eggert.
45446
45447 1998-10-11  Jim Meyering  <meyering@ascend.com>
45448
45449         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45450         This adds a test for a recently added compatibility fix for mktime.c.
45451         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45452
45453 1998-09-27  Jim Meyering  <meyering@ascend.com>
45454
45455         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45456
45457         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
45458         ../configure.in, including a change from Gordon Matzigkeit to allow
45459         cross-compiling for the Hurd.
45460
45461         * m4/glibc.m4: New file/macro to test for the GNU C Library
45462         versions 1 and 2.  From Gordon Matzigkeit.
45463         Indent.
45464
45465 1998-09-21  Jim Meyering  <meyering@ascend.com>
45466
45467         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
45468
45469 1998-08-18  Paul Eggert  <eggert@twinsun.com>
45470
45471         Port nanosecond-resolution times to UnixWare 2.1.2 and
45472         pedantic Solaris 2.6.
45473
45474         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45475         AC_STRUCT_ST_MTIM.
45476         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45477         Generate name of ns member, instead of just 1 or undef.
45478         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45479
45480 1998-08-15  Jim Meyering  <meyering@ascend.com>
45481
45482         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45483         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
45484         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45485         instead of jm_TYPE_SSIZE_T.
45486
45487 1998-08-12  Jim Meyering  <meyering@ascend.com>
45488
45489         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
45490
45491 1998-08-02  Jim Meyering  <meyering@ascend.com>
45492
45493         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45494         in acconfig.h manually.
45495
45496 1998-07-31  Paul Eggert  <eggert@twinsun.com>
45497
45498         * m4/st_mtim.m4: New file.
45499
45500 1998-07-28  Jim Meyering  <meyering@ascend.com>
45501
45502         * m4/utimes.m4: Undef stat.
45503
45504 1998-07-25  Jim Meyering  <meyering@ascend.com>
45505
45506         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45507         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45508
45509 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
45510
45511         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45512         uid and gid actually remain unchanged.
45513
45514 1998-07-07  Jim Meyering  <meyering@ascend.com>
45515
45516         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45517
45518 1998-07-04  Jim Meyering  <meyering@ascend.com>
45519
45520         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
45521         to prove that this macro can be used in packages without regex.c.
45522
45523 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
45524
45525         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45526         is to be used.
45527
45528 1998-07-03  Jim Meyering  <meyering@ascend.com>
45529
45530         * m4/gettext.m4: Add -lintl if it's found to be necessary.
45531
45532         * m4/gettext.m4: New file -- from gettext-0.10.35.
45533         * m4/lcmessage.m4: Likewise.
45534         * m4/progtest.m4: Likewise.
45535
45536         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45537         * m4/jm-macros.m4: Require the new macro.
45538
45539 1998-06-29  Jim Meyering  <meyering@ascend.com>
45540
45541         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
45542         for the definition of NGROUPS (used in a system header included
45543         by sys/mount.h).
45544
45545 1998-06-28  Jim Meyering  <meyering@ascend.com>
45546
45547         * m4/ls-mntd-fs.m4: New file.
45548         * m4/fstypename.m4: New file.
45549
45550         * m4/jm-macros.m4: Require the new macro.
45551         * m4/jm-glibc-io.m4: New file.
45552
45553 1998-05-19  Jim Meyering  <meyering@ascend.com>
45554
45555         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45556         * m4/lchown.m4: New file.
45557
45558         * m4/Makefile.am.in: New file.
45559         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45560
45561 1998-05-14  Jim Meyering  <meyering@ascend.com>
45562
45563         * m4/Makefile.am (EXTRA_DIST): Add them.
45564         * m4/jm-macros.m4: New file.
45565         * m4/utimbuf.m4: New file.
45566
45567 1998-05-12  Jim Meyering  <meyering@ascend.com>
45568
45569         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45570
45571 1998-05-11  Jim Meyering  <meyering@ascend.com>
45572
45573         * m4/isc-posix.m4: New file.
45574
45575 1998-05-10  Jim Meyering  <meyering@ascend.com>
45576
45577         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45578
45579 1998-05-09  Jim Meyering  <meyering@ascend.com>
45580
45581         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45582         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45583         with automake.
45584
45585         * m4/ssize_t.m4: New file.
45586         * m4/mktime.m4: Remove file -- the new automake has this now.
45587
45588 1998-04-26  Jim Meyering  <meyering@ascend.com>
45589
45590         * m4/assert.m4: New file.
45591         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45592
45593 1998-04-05  Jim Meyering  <meyering@ascend.com>
45594
45595         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45596         (jm_PREREQ): Use it here.
45597
45598 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
45599
45600         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45601         in acconfig.h.
45602
45603 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
45604
45605         * m4/prereq.m4: New file.
45606         * m4/error.m4: New file.
45607         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45608
45609 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
45610
45611         * m4/getline.m4: Don't set am_cv_func_working_getline before the
45612         cache-check for the same variable -- that defeated the purpose of
45613         the test; the test program was never run.  This was a problem only
45614         on systems with losing getline functions -- HP-UX 10.20 is one.
45615         Reported by Bjorn Helgaas.
45616
45617 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
45618
45619         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45620
45621 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
45622
45623         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45624
45625         * m4/const.m4: New file.  Use an initializer in this declaration
45626         typedef int charset[2]; const charset x;
45627         Reported by Bob Glickstein.
45628
45629 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
45630
45631         * m4/chown.m4: Fix reversed types on -1 args to chown.
45632         From Kaveh Ghazi.
45633
45634 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
45635
45636         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45637         Add lseek and memchr.
45638
45639         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45640         T.E.Dickey <dickey@clark.net> said that some older preprocessors
45641         have a 20-character limit on names.
45642
45643 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
45644
45645         * m4/inttypes_h.m4: New file.
45646         * m4/uintmax_t.m4: New file.
45647         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45648
45649
45650         -----
45651
45652         Local Variables:
45653         coding: utf-8
45654         End:
45655
45656         Copyright (C) 1997-2008 Free Software Foundation, Inc.
45657
45658         Copying and distribution of this file, with or without
45659         modification, are permitted provided the copyright notice
45660         and this notice are preserved.