Tests for module 'vfprintf-posix'.
[gnulib.git] / ChangeLog
1 2007-03-08  Bruno Haible  <bruno@clisp.org>
2
3         * modules/vfprintf-posix-tests: New file.
4         * tests/test-vfprintf-posix.sh: New file.
5         * tests/test-vfprintf-posix.c: New file.
6         * tests/test-fprintf-posix.h: New file.
7         * tests/test-fprintf-posix.out: New file.
8
9         * modules/vfprintf-posix: New file.
10         * lib/vfprintf.c: New file.
11         * m4/vfprintf-posix.m4: New file.
12         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13         REPLACE_VFPRINTF.
14         * lib/stdio_.h (vfprintf): New declaration.
15         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
16         REPLACE_VFPRINTF.
17
18 2007-03-08  Bruno Haible  <bruno@clisp.org>
19
20         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
21
22 2007-03-08  Bruno Haible  <bruno@clisp.org>
23
24         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
25         instead of 'expr' invocations.
26         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31         Suggested by Paul Eggert.
32
33 2007-03-08  Bruno Haible  <bruno@clisp.org>
34
35         * modules/fseterr-tests: New file.
36         * tests/test-fseterr.c: New file.
37
38         * modules/fseterr: New file.
39         * lib/fseterr.h: New file.
40         * lib/fseterr.c: New file.
41
42 2007-03-08  Bruno Haible  <bruno@clisp.org>
43
44         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
45         * lib/getopt_.h: Likewise.
46         * lib/mbswidth.h: Likewise.
47         * lib/setenv.h: Likewise.
48         * lib/vasnprintf.h: Likewise.
49         * lib/vasprintf.h: Likewise.
50         * lib/verror.h: Likewise.
51         * lib/xsetenv.h: Likewise.
52         * lib/xvasprintf.h: Likewise.
53
54 2007-03-08  Jim Meyering  <jim@meyering.net>
55
56         * users.txt: Add parted.
57
58         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59
60 2007-03-07  Bruno Haible  <bruno@clisp.org>
61
62         * m4/printf.m4: Make the shell script snippets copy&pastable.
63
64 2007-03-02  Bruno Haible  <bruno@clisp.org>
65
66         * lib/netinet_in_.h: New file.
67         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70         (Depends-on): Add absolute-header.
71         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72         into netinet/in.h.
73
74 2007-03-03  Bruno Haible  <bruno@clisp.org>
75
76         * lib/sys_select_.h: New file.
77         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
78         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
79         * modules/sys_select (Files): Add lib/sys_select_.h.
80         (Depends-on): Add absolute-header.
81         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
82         into sys/select.h.
83
84 2007-03-02  Bruno Haible  <bruno@clisp.org>
85
86         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
87         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88         values.
89         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
90         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
91         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
92         * modules/sys_socket (Depends-on): Add absolute-header.
93         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
94         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
95         (Include): Remove requirement of inclusion of <sys/types.h>.
96
97 2007-03-02  Bruno Haible  <bruno@clisp.org>
98
99         * lib/byteswap_.h (bswap_32): Fix formula.
100
101 2007-03-06  Bruno Haible  <bruno@clisp.org>
102
103         * modules/sprintf-posix-tests: New file.
104         * tests/test-sprintf-posix.c: New file.
105
106         * modules/sprintf-posix: New file.
107         * lib/sprintf.c: New file.
108         * m4/sprintf-posix.m4: New file.
109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
110         REPLACE_SPRINTF.
111         * lib/stdio_.h (sprintf): New declaration.
112         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
113         REPLACE_SPRINTF.
114
115 2007-03-06  Bruno Haible  <bruno@clisp.org>
116
117         * modules/vsprintf-posix-tests: New file.
118         * tests/test-vsprintf-posix.c: New file.
119         * tests/test-sprintf-posix.h: New file.
120
121         * modules/vsprintf-posix: New file.
122         * lib/vsprintf.c: New file.
123         * m4/vsprintf-posix.m4: New file.
124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
125         REPLACE_VSPRINTF.
126         * lib/stdio_.h (vsprintf): New declaration.
127         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
128         REPLACE_VSPRINTF.
129
130 2007-03-06  Bruno Haible  <bruno@clisp.org>
131
132         * modules/vsnprintf (Depend-on): Remove minmax.
133
134 2007-03-06  Bruno Haible  <bruno@clisp.org>
135
136         * modules/snprintf-posix-tests: New file.
137         * tests/test-snprintf-posix.c: New file.
138
139         * modules/snprintf-posix: New file.
140         * m4/snprintf-posix.m4: New file.
141         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
142         gl_FUNC_SNPRINTF.
143         (gl_FUNC_SNPRINTF): Invoke it.
144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
145         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
146         is set.
147         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
148
149 2007-03-06  Bruno Haible  <bruno@clisp.org>
150
151         * modules/vsnprintf-posix-tests: New file.
152         * tests/test-vsnprintf-posix.c: New file.
153         * tests/test-snprintf-posix.h: New file.
154
155         * modules/vsnprintf-posix: New file.
156         * m4/vsnprintf-posix.m4: New file.
157         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
158         gl_FUNC_VSNPRINTF.
159         (gl_FUNC_VSNPRINTF): Invoke it.
160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
161         * lib/stdio_.h (vsnprintf): Define as a replacement if
162         REPLACE_VSNPRINTF is set.
163         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
164
165 2007-03-06  Bruno Haible  <bruno@clisp.org>
166
167         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
168         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
169
170 2007-03-06  Bruno Haible  <bruno@clisp.org>
171
172         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
173         (asinl): Declare also if HAVE_DECL_ASINL is set.
174         (atanl): Declare also if HAVE_DECL_ATANL is set.
175         (ceill): Declare also if HAVE_DECL_CEILL is set.
176         (cosl): Declare also if HAVE_DECL_COSL is set.
177         (expl): Declare also if HAVE_DECL_EXPL is set.
178         (floorl): Declare also if HAVE_DECL_FLOORL is set.
179         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
180         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
181         (logl): Declare also if HAVE_DECL_LOGL is set.
182         (sinl): Declare also if HAVE_DECL_SINL is set.
183         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
184         (tanl): Declare also if HAVE_DECL_TANL is set.
185         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
188         declaration of frexpl, ldexpl.
189         * modules/printf-frexpl (Depends-on): Add math.
190         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
191
192 2007-03-05  Bruno Haible  <bruno@clisp.org>
193
194         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
195         frexpl and ldexpl are declared.
196         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
197
198 2007-03-05  Bruno Haible  <bruno@clisp.org>
199
200         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
201         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
202
203 2007-03-05  Bruno Haible  <bruno@clisp.org>
204
205         * lib/stdio_.h: Include <stddef.h>.
206
207 2007-03-05  Bruno Haible  <bruno@clisp.org>
208
209         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
210
211 2007-03-05  Bruno Haible  <bruno@clisp.org>
212
213         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
214         NetBSD 4, from Ralf Wildenhues.
215
216 2007-03-04  Bruno Haible  <bruno@clisp.org>
217
218         * lib/vasprintf.h: Update #if logic for the case when the functions
219         exist but are overridden.
220
221 2007-03-04  Bruno Haible  <bruno@clisp.org>
222
223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
224         implementations: glibc-2.4 and MacOS X 10.3.
225         * tests/test-vasnprintf-posix.c (test_function): Test also the case
226         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
227         * tests/test-vasprintf-posix.c (test_function): Likewise.
228
229 2007-03-04  Bruno Haible  <bruno@clisp.org>
230
231         * modules/vasprintf-posix-tests: New file.
232         * tests/test-vasprintf-posix.c: New file.
233
234         * modules/vasprintf-posix: New file.
235         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
236         defined.
237         * m4/vasprintf-posix.m4: New file.
238         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
239         gl_FUNC_VASPRINTF.
240         (gl_FUNC_VASPRINTF): Invoke it.
241         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
242         here.
243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
244
245 2007-03-04  Bruno Haible  <bruno@clisp.org>
246
247         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
248         REPLACE_GETTIMEOFDAY.
249         * modules/sys_time (Makefile.am): Likewise.
250         * m4/sys_time_h.m4: Likewise.
251         * m4/gettimeofday.m4: Likewise.
252
253 2007-03-04  Bruno Haible  <bruno@clisp.org>
254
255         * modules/vasnprintf-posix-tests: New file.
256         * tests/test-vasnprintf-posix.c: New file.
257
258         * modules/vasnprintf-posix: New file.
259         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
260         printf-frexpl.h.
261         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
262         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
263         REPLACE_VASNPRINTF is defined.
264         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
265         gl_FUNC_VASNPRINTF.
266         (gl_FUNC_VASNPRINTF): Invoke it.
267         * m4/vasnprintf-posix.m4: New file.
268         * m4/printf.m4: New file.
269
270 2007-03-04  Bruno Haible  <bruno@clisp.org>
271
272         Compile progreloc.c only if --enable-relocatable is specified.
273         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
274         if --enable-relocatable was specified.
275         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
276         lib_SOURCES.
277
278 2007-03-04  Jim Meyering  <jim@meyering.net>
279
280         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
281         Use it consistently, rather than enumerating errno constants.
282
283 2007-03-04  Bruno Haible  <bruno@clisp.org>
284
285         * modules/xvasprintf-tests: New file.
286         * tests/test-xvasprintf.c: New file.
287
288         * modules/vasprintf-tests: New file.
289         * tests/test-vasprintf.c: New file.
290
291         * modules/vasnprintf-tests: New file.
292         * tests/test-vasnprintf.c: New file.
293
294         * modules/vsnprintf-tests: New file.
295         * tests/test-vsnprintf.c: New file.
296
297         * modules/snprintf-tests: New file.
298         * tests/test-snprintf.c: New file.
299
300 2007-03-04  Bruno Haible  <bruno@clisp.org>
301
302         Compile relocatable.c only if --enable-relocatable is specified.
303         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
304         gl_RELOCATABLE_LIBRARY.
305         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
306         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
307         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
308         gl_RELOCATABLE_LIBRARY.
309         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
310         (Makefile.am): Remove lib_SOURCES.
311         * modules/relocatable-lib-lgpl (configure.ac): Invoke
312         gl_RELOCATABLE_LIBRARY.
313         (Makefile.am): Remove lib_SOURCES.
314         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
315         always.
316         * modules/relocatable-prog-wrapper (configure.ac): Invoke
317         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
318
319 2007-03-04  Bruno Haible  <bruno@clisp.org>
320
321         * modules/argmatch-tests: New file.
322         * tests/test-argmatch.c: New file.
323
324         * tests/test-allocsa.c (main): Halve the number of loop runs.
325
326         * modules/alloca-opt-tests: New file.
327         * tests/test-alloca-opt.c: New file.
328
329 2007-03-04  Jim Meyering  <jim@meyering.net>
330
331         Work around difference between Linux ACLs and Solaris 10 ZFS.
332         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
333         for EINVAL.
334
335 2007-03-03  Bruno Haible  <bruno@clisp.org>
336
337         * modules/relocatable-prog (Depends-on): Add back progreloc's
338         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
339
340 2007-03-03  Bruno Haible  <bruno@clisp.org>
341
342         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
343         * modules/relocatable-lib: New file.
344
345 2007-03-03  Bruno Haible  <bruno@clisp.org>
346
347         * modules/relocatable-prog: Renamed from modules/relocatable.
348         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
349
350 2007-03-03  Bruno Haible  <bruno@clisp.org>
351
352         * modules/relocatable-script (Files): Add doc/relocatable.texi,
353         m4/relocatable-lib.m4.
354         (Depends-on): Remove 'relocatable'.
355         (configure.ac): Add gl_RELOCATABLE_NOP.
356
357 2007-03-03  Bruno Haible  <bruno@clisp.org>
358
359         * modules/relocatable-prog-wrapper: New file.
360         * modules/relocatable (Depends-on): Add it. Remove all other
361         dependencies except progname.
362         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
363
364         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
365         (gl_FUNC_STRERROR): Nop.
366         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
367
368         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
369         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
370
371         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
372         (gl_FUNC_READLINK): Update.
373
374         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
375
376 2007-03-03  Bruno Haible  <bruno@clisp.org>
377
378         * lib/xreadlink.c: Include <unistd.h> unconditionally.
379         * modules/xreadlink (Depends-on): Add unistd.
380         * modules/xreadlink-with-size (Depends-on): Likewise.
381
382 2007-03-03  Bruno Haible  <bruno@clisp.org>
383
384         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
385         extracted from gt_FUNC_SETENV.
386         (gt_FUNC_SETENV): Remove macro.
387         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
388         remove gt_FUNC_SETENV.
389
390 2007-03-03  Bruno Haible  <bruno@clisp.org>
391
392         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
393         ENABLE_RELOCATABLE here.
394         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
395
396 2007-03-03  Bruno Haible  <bruno@clisp.org>
397
398         * modules/rbtreehash-list-tests (Depends-on): Add progname.
399         * tests/test-rbtreehash_list.c: Include progname.h.
400         (main): Call set_program_name.
401
402         * modules/rbtree-oset-tests (Depends-on): Add progname.
403         * tests/test-rbtree_oset.c: Include progname.h.
404         (main): Call set_program_name.
405
406         * modules/rbtree-list-tests (Depends-on): Add progname.
407         * tests/test-rbtree_list.c: Include progname.h.
408         (main): Call set_program_name.
409
410         * modules/linked-list-tests (Depends-on): Add progname.
411         * tests/test-linked_list.c: Include progname.h.
412         (main): Call set_program_name.
413
414 2007-03-03  Bruno Haible  <bruno@clisp.org>
415
416         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
417         All uses of __restrict changed to _Restrict_.
418         * lib/glob_.h (__restrict): Remove macro.
419
420 2007-03-02  Bruno Haible  <bruno@clisp.org>
421
422         * modules/gettext (configure.ac): Require gettext infrastructure
423         from version 0.16.1.
424
425 2007-03-02  Bruno Haible  <bruno@clisp.org>
426
427         * modules/linkedhash-list-tests (Depends-on): Add progname.
428         * tests/test-linkedhash_list.c: Include progname.h.
429         (main): Call set_program_name.
430
431         * modules/carray-list-tests (Depends-on): Add progname.
432         * tests/test-carray_list.c: Include progname.h.
433         (main): Call set_program_name.
434
435         * modules/avltreehash-list-tests (Depends-on): Add progname.
436         * tests/test-avltreehash_list.c: Include progname.h.
437         (main): Call set_program_name.
438
439         * modules/avltree-oset-tests (Depends-on): Add progname.
440         * tests/test-avltree_oset.c: Include progname.h.
441         (main): Call set_program_name.
442
443         * modules/avltree-list-tests (Depends-on): Add progname.
444         * tests/test-avltree_list.c: Include progname.h.
445         (main): Call set_program_name.
446
447         * modules/array-oset-tests (Depends-on): Add progname.
448         * tests/test-array_oset.c: Include progname.h.
449         (main): Call set_program_name.
450
451         * modules/array-list-tests (Depends-on): Add progname.
452         * tests/test-array_list.c: Include progname.h.
453         (main): Call set_program_name.
454
455         * modules/argp-tests (Depends-on): Add progname.
456         * tests/test-argp.c: Include argp.h first. Include progname.h.
457         (main): Call set_program_name.
458
459 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
460
461         * doc/gnulib-tool.texi (Initial import): Reword description of
462         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
463         limited effect even if defined after the first system include.
464
465 2007-03-01  Bruno Haible  <bruno@clisp.org>
466
467         * build-aux/config.libpath: Update to libtool-1.5.22.
468         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
469
470 2007-03-01  Bruno Haible  <bruno@clisp.org>
471
472         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
473         foo_CFLAGS.
474         Reported by Ralf Wildenhues.
475
476 2007-03-01  Bruno Haible  <bruno@clisp.org>
477
478         * build-aux/install-reloc: Remove object files left over by some
479         compilers.
480         Reported by Ralf Wildenhues.
481
482 2007-03-01  Bruno Haible  <bruno@clisp.org>
483
484         * build-aux/install-reloc: Break long lines.
485
486 2007-03-01  Bruno Haible  <bruno@clisp.org>
487
488         * doc/relocatable.texi: Document that it may not work on OpenBSD.
489         Reported by Ralf Wildenhues.
490
491 2007-03-01  Bruno Haible  <bruno@clisp.org>
492
493         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
494         include ordering constraints.
495
496 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
497
498         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
500         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
501         as another example.
502         * lib/time_.h: Fix misspelling.
503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
504         Require gl_HEADER_TIME_H_DEFAULTS.
505         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
506         * m4/time_r.m4 (gl_TIME_R): Likewise.
507         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
508
509 2007-03-01  Bruno Haible  <bruno@clisp.org>
510
511         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
512         * m4/utimens.m4 (gl_UTIMENS): Likewise.
513
514 2007-03-01  Jim Meyering  <jim@meyering.net>
515
516         * modules/xreadlink (Maintainer): Add my name.
517         * modules/xreadlink-with-size (Depends-on): Alphabetize.
518
519 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
520             Bruno Haible  <bruno@clisp.org>
521
522         * build-aux/install-reloc: Compile also c-ctype.c.
523         * build-aux/relocatable.sh.in: New file.
524         * doc/relocatable.texi: New file.
525         * doc/relocatable-maint.texi: New file.
526         * doc/gnulib.texi: Include relocatable-maint.texi.
527         * lib/progreloc.c: Include unistd.h unconditionally.
528         * lib/relocwrapper.c: Include unistd.h unconditionally.
529         Include c-ctype.h.
530         (add_dotbin): Use c_tolower.
531         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
532         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
533         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
534         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
535         to m4/relocatable-lib.m4.
536         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
537         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
538         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
539         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
540         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
541         * modules/relocatable: New file.
542         * modules/relocatable-lib: New file.
543         * modules/relocatable-script: New file.
544
545 2007-02-28  Bruno Haible  <bruno@clisp.org>
546
547         Import --enable-relocatable infrastructure.
548         * build-aux/config.libpath: New file, from GNU gettext.
549         * build-aux/install-reloc: New file, from GNU gettext.
550         * build-aux/reloc-ldflags: New file, from GNU gettext.
551         * lib/relocatable.h: New file, from GNU gettext.
552         * lib/relocatable.c: New file, from GNU gettext.
553         * lib/relocwrapper.c: New file, from GNU gettext.
554         * m4/relocatable.m4: New file, from GNU gettext.
555
556 2007-02-28  Bruno Haible  <bruno@clisp.org>
557
558         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
559
560         * modules/xreadlink: New file, from GNU gettext with modifications.
561         * lib/xreadlink.c: New file, from GNU gettext.
562         * lib/xreadlink.h: Add comments.
563         (xreadlink): New declaration.
564
565         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
566         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
567         lib/xreadlink-with-size.c.
568         (configure.ac): Remove gl_XREADLINK invocation.
569         (Makefile.am): Augment lib_SOURCES.
570         * m4/xreadlink.m4: Remove file.
571         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
572         (xreadlink_with_size): Renamed from xreadink.
573         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
574         * modules/canonicalize (Depends-on): Replace xreadlink with
575         xreadlink-with-size.
576         * lib/canonicalize.c (canonicalize_filename_mode): Update.
577
578 2007-02-25  Jim Meyering  <jim@meyering.net>
579
580         * build-aux/announce-gen: When complaining about excess arguments,
581         list them.
582
583 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
584
585         * README: Document signed integer overflow situation more
586         accurately.
587
588 2007-02-25  Bruno Haible  <bruno@clisp.org>
589
590         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
591         'a' or 'A' conversion.
592
593 2007-02-25  Bruno Haible  <bruno@clisp.org>
594
595         * modules/filename: Renamed from modules/pathname.
596         (Files): Replace lib/pathname.h with lib/filename.h. Replace
597         lib/concatpath.c with lib/concat-filename.c.
598         (Makefile.am): Update.
599         (Include): Replace pathname.h with filename.h.
600         * lib/filename.h: Renamed from lib/pathname.h.
601         (concatenated_filename): Renamed from concatenated_pathname.
602         * lib/concat-filename.c: Renamed from lib/concatpath.c.
603         (concatenated_filename): Renamed from concatenated_pathname.
604         * lib/findprog.c: Include filename.h instead of pathname.h.
605         (find_in_path): Update.
606         * lib/javacomp.c: Include filename.h instead of pathname.h.
607         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
608         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
609         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
610         is_oldgcj_14_13_usable, is_javac_usable): Update.
611         * lib/javaexec.c: Include filename.h instead of pathname.h.
612         (execute_java_class): Update.
613         * modules/findprog: Update.
614         * modules/javacomp: Update.
615         * modules/javaexec: Update.
616         * MODULES.html.sh (File system functions): Add 'filename', remove
617         'pathname'.
618
619 2007-02-25  Bruno Haible  <bruno@clisp.org>
620
621         * modules/printf-frexpl-tests: New file.
622         * tests/test-printf-frexpl.c: New file.
623
624         * modules/printf-frexpl: New file.
625         * lib/printf-frexpl.h: New file.
626         * lib/printf-frexpl.c: New file.
627         * m4/printf-frexpl.m4: New file.
628
629 2007-02-25  Bruno Haible  <bruno@clisp.org>
630
631         * modules/printf-frexp-tests: New file.
632         * tests/test-printf-frexp.c: New file.
633
634         * modules/printf-frexp: New file.
635         * lib/printf-frexp.h: New file.
636         * lib/printf-frexp.c: New file.
637         * m4/printf-frexp.m4: New file.
638
639 2007-02-25  Bruno Haible  <bruno@clisp.org>
640
641         Assume automake >= 1.10 for the tests.
642         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
643         * modules/arctwo-tests: Likewise.
644         * modules/argp-tests: Likewise.
645         * modules/avltree-list-tests: Likewise.
646         * modules/avltree-oset-tests: Likewise.
647         * modules/avltreehash-list-tests: Likewise.
648         * modules/carray-list-tests: Likewise.
649         * modules/crc-tests: Likewise.
650         * modules/des-tests: Likewise.
651         * modules/gc-arcfour-tests: Likewise.
652         * modules/gc-arctwo-tests: Likewise.
653         * modules/gc-des-tests: Likewise.
654         * modules/gc-hmac-md5-tests: Likewise.
655         * modules/gc-hmac-sha1-tests: Likewise.
656         * modules/gc-md2-tests: Likewise.
657         * modules/gc-md4-tests: Likewise.
658         * modules/gc-md5-tests: Likewise.
659         * modules/gc-pbkdf2-sha1-tests: Likewise.
660         * modules/gc-rijndael-tests: Likewise.
661         * modules/gc-sha1-tests: Likewise.
662         * modules/gc-tests: Likewise.
663         * modules/getaddrinfo-tests: Likewise.
664         * modules/hmac-md5-tests: Likewise.
665         * modules/hmac-sha1-tests: Likewise.
666         * modules/linked-list-tests: Likewise.
667         * modules/linkedhash-list-tests: Likewise.
668         * modules/lock-tests: Likewise.
669         * modules/md2-tests: Likewise.
670         * modules/md4-tests: Likewise.
671         * modules/md5-tests: Likewise.
672         * modules/rbtree-list-tests: Likewise.
673         * modules/rbtree-oset-tests: Likewise.
674         * modules/rbtreehash-list-tests: Likewise.
675         * modules/read-file-tests: Likewise.
676         * modules/rijndael-tests: Likewise.
677         * modules/stdint-tests: Likewise.
678         * modules/tls-tests: Likewise.
679
680 2007-02-24  Bruno Haible  <bruno@clisp.org>
681
682         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
683         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
684         function; instead check whether isnan with a double argument links.
685         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
686         function; instead check whether isnan with a 'long double' argument
687         links.
688         Reported by Eric Blake <ebb9@byu.net>.
689
690 2007-02-24  Bruno Haible  <bruno@clisp.org>
691
692         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
693         defined.
694         * lib/isnanl.c: Remove all code. Just include isnan.c.
695         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
696
697 2007-02-25  Jim Meyering  <jim@meyering.net>
698
699         Avoid conflicting types for 'unsetenv' on FreeBSD.
700         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
701         conflicting with FreeBSD's (5.0 and 6.1) function declaration
702         in stdlib.h.
703
704 2007-02-24  Bruno Haible  <bruno@clisp.org>
705
706         * modules/isnanl-nolibm-tests: New file.
707         * tests/test-isnanl.c: New file.
708
709         * modules/isnanl-nolibm: New file.
710         * lib/isnanl.h: New file.
711         * lib/isnanl.c: New file.
712         * m4/isnanl.m4: New file.
713
714 2007-02-24  Bruno Haible  <bruno@clisp.org>
715
716         * modules/isnan-nolibm-tests: New file.
717         * tests/test-isnan.c: New file.
718
719         * modules/isnan-nolibm: New file.
720         * lib/isnan.h: New file.
721         * lib/isnan.c: New file.
722         * m4/isnan.m4: New file.
723
724 2007-02-24  Bruno Haible  <bruno@clisp.org>
725
726         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
727         assume that an exponent fits in 20 bits.
728
729 2007-02-24  Jim Meyering  <jim@meyering.net>
730
731         * m4/regex.m4: Update the description of the configure-time option,
732         --without-included-regex, to state accurately what the defaults are,
733         and perhaps to give people an idea why using this option is risky.
734
735 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
736
737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
738         loops on small arguments.  This attempts to avoid the problem
739         Bruno Haible reported for AIX 4.3.2 in
740         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
741
742 2007-02-23  Bruno Haible  <bruno@clisp.org>
743
744         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
745         Needed for help2man.
746
747 2007-02-23  Karl Berry  <karl@gnu.org>
748
749         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
750         exists, foo.h should be cvs-ignored, not committed.
751
752 2007-02-23  Eric Blake  <ebb9@byu.net>
753
754         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
755         * lib/stat-time.h (includes): Likewise.
756         * lib/utimecmp.c (includes): Likewise.
757         * lib/utimens.h (includes): Likewise.
758         * lib/getdate.y (includes): Also include "timespec.h" for use
759         internal to the module.
760         * modules/utimens (Depends-on): Revert yesterday's patch.
761         * modules/nanosleep (Depends-on): Add missing dependency.
762
763 2007-02-22  Bruno Haible  <bruno@clisp.org>
764
765         * lib/glob.c: Don't include getlogin_r.h.
766
767 2007-02-22  Jim Meyering  <jim@meyering.net>
768
769         * modules/utimens (Depends-on): Add timespec, required for
770         utimens.h's inclusion of timespec.h.
771
772 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
773
774         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
775         long unreadable paths in GNU/Linux.  Problem reported by Andreas
776         Schwab in
777         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
778         I'll try to think of a better way to fix the Solaris problem.
779
780         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
781         like glibc; on Solaris 10, it fails with errno == EINVAL.
782         POSIX says the behavior is unspecified if the first argument is NULL,
783         so play it safe and never pass NULL to the system getcwd.
784
785 2007-02-21  Jim Meyering  <jim@meyering.net>
786
787         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
788         of gettimeofday.  It would conflict with the one now always
789         provided via sys_time_.h.  Reported by Matthew Woehlke, as
790         an IRIX 6.5 build failure.
791
792 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
793
794         Minor fixups to port to Solaris 10 with Sun C 5.8.
795         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
796         * modules/getcwd (Depends-on): Add dirfd.
797         * lib/putenv.c (putenv): #undef it.
798         (rpl_putenv): New decl.
799         (malloc, free): Include <stdlib.h> rather than prototyping separately.
800
801 2007-02-20  Bruno Haible  <bruno@clisp.org>
802
803         * modules/stdio-tests: New file.
804         * tests/test-stdio.c: New file.
805
806         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
807         (Depends-on): Add stdio.
808         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
809         (Include): Use <stdio.h> instead of vsnprintf.h.
810         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
811         HAVE_DECL_VSNPRINTF.
812         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
813
814         * modules/snprintf (Files): Remove lib/snprintf.h.
815         (Depends-on): Add stdio.
816         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
817         (Include): Use <stdio.h> instead of snprintf.h.
818         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
819         HAVE_DECL_SNPRINTF.
820         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
821         * lib/getaddrinfo.c: Likewise.
822
823         * modules/stdio: New file.
824         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
825         * lib/snprintf.h: Remove file.
826         * lib/vsnprintf.h: Remove file.
827         * lib/.cppi-disable: Remove snprintf.h.
828         * m4/stdio_h.m4: New file.
829         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
830
831 2007-02-20  Jim Meyering  <jim@meyering.net>
832
833         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
834         used by e.g., mingw.  From Bruno Haible.
835
836 2007-02-19  Bruno Haible  <bruno@clisp.org>
837
838         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
839         warnings.
840         Reported by Ben Pfaff <blp@cs.stanford.edu>.
841
842 2007-02-19  Bruno Haible  <bruno@clisp.org>
843
844         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
845         from mingw users.
846
847 2007-02-19  Bruno Haible  <bruno@clisp.org>
848
849         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
850         warnings.
851         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
852
853 2007-02-19  Jim Meyering  <jim@meyering.net>
854
855         Don't use FD after a successful "fdopendir (fd)".
856         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
857         Reset it by calling dirfd on the just-obtained DIR*.
858
859         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
860         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
861
862 2007-02-18  Bruno Haible  <bruno@clisp.org>
863
864         * lib/readlink.c: Include <unistd.h>.
865         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
866         HAVE_READLINK.
867         * modules/readlink (Depends-on): Add unistd.
868         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
869         (Include): Add <unistd.h>.
870
871         * lib/getlogin_r.h: Remove file.
872         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
873         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
874         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
875         HAVE_DECL_GETLOGIN_R.
876         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
878         (Include): Use <unistd.h> instead of getlogin_r.h.
879
880         * lib/getcwd.h: Remove file.
881         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
882         * lib/xgetcwd.c: Likewise.
883         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
884         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
885         * modules/getcwd (Files): Remove lib/getcwd.h.
886         (Depends-on): Add unistd.
887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
888         (Include): Use <unistd.h> instad of getcwd.h.
889
890         * lib/ftruncate.c: Include <unistd.h> first.
891         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
892         Set HAVE_FTRUNCATE.
893         * modules/ftruncate (Depends-on): Add unistd.
894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
895
896         * lib/fchdir.c: Include <unistd.h> first.
897         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
899         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
900         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
901         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
902
903         * lib/dup2.c: Include <unistd.h> first.
904         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
905         HAVE_DUP2.
906         * modules/dup2 (Depends-on): Add unistd.
907         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
908
909         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
910         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
911         REPLACE_CHOWN. Don't define chown as a macro here.
912         * modules/chown (Depends-on): Add unistd.
913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
914
915         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
916         Add definition for GL_LINK_WARNING.
917         (chown, dup2): New declarations.
918         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
919         link warning.
920         (ftruncate): New declaration.
921         (getcwd): New declaration, taken from old getcwd.h.
922         (getlogin_r): New declaration, taken from old getlogin_r.h.
923         (readlink): New declaration.
924         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
925         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
926         (gl_PREREQ_UNISTD): Remove macro.
927         (gl_UNISTD_MODULE_INDICATOR): New macro.
928         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
929         many new variables. Don't set UNISTD_H.
930         * modules/unistd (Description): Change.
931         (Depends-on): Add link-warning.
932         (configure.ac): Update.
933         (Makefile.am): Create unistd.h always. Substitute many new variables
934         into it.
935
936 2007-02-18  Bruno Haible  <bruno@clisp.org>
937
938         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
939         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
940         HAVE_GETSUBOPT.
941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
942         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
943         * lib/getsubopt.h: Remove file.
944         * modules/getsubopt (Files): Remove lib/getsubopt.h.
945         (Depends-on): Add stdlib.
946         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
947         (Includes): Use <stdlib.h> instead of getsubopt.h.
948         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
949         Set HAVE_GETSUBOPT.
950         * lib/getsubopt.c: Don't include getsubopt.h.
951
952 2007-02-18  Bruno Haible  <bruno@clisp.org>
953
954         * modules/fchdir (Depends-on): Add dup2.
955
956 2007-02-18  Bruno Haible  <bruno@clisp.org>
957
958         * lib/stdlib_.h: Handle glibc's special invocation convention
959         specially.
960
961 2007-02-18  Bruno Haible  <bruno@clisp.org>
962
963         * modules/stdlib-tests: New file.
964         * tests/test-stdlib.c: New file.
965
966         * modules/mkstemp (Files): Remove lib/mkstemp.h.
967         (Depends-on): Add stdlib.
968         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
969         (Includes): Use <stdlib.h> instead of mkstemp.h.
970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
971         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
972         * lib/mkstemp.c: Don't include mkstemp.h.
973         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
974         * lib/stdlib--.h: Don't include mkstemp.h.
975
976         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
977         (Depends-on): Add stdlib.
978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
979         (Includes): Use <stdlib.h> instead of mkdtemp.h.
980         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
981         HAVE_MKDTEMP.
982         * lib/mkdtemp.c: Don't include mkdtemp.h.
983         * lib/clean-temp.c: Don't include mkdtemp.h.
984
985         * modules/exit (Files): Remove lib/exit.h.
986         (Depends-on): Add stdlib.
987         (Makefile.am): Remove lib_SOURCES.
988         (Include): Use <stdlib.h> instead of exit.h.
989         * lib/argmatch.c: Don't include exit.h.
990         * lib/execute.c: Likewise.
991         * lib/pagealign_alloc.c: Likewise.
992         * lib/pipe.c: Likewise.
993         * lib/wait-process.c: Likewise.
994         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
995         * lib/exitfail.c: Likewise.
996         * lib/savewd.c: Likewise.
997         * lib/xsetenv.c: Likewise.
998
999         * modules/stdlib: New file.
1000         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
1001         and extra comments about mkstemp().
1002         * lib/exit.h: Remove file.
1003         * lib/mkdtemp.h: Remove file.
1004         * lib/mkstemp.h: Remove file.
1005         * m4/stdlib_h.m4: New file.
1006         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
1007
1008 2007-02-18  Bruno Haible  <bruno@clisp.org>
1009
1010         * modules/math-tests: New file.
1011         * tests/test-math.c: New file.
1012
1013         * modules/math: New file.
1014         * modules/mathl (Files): Remove lib/mathl.h.
1015         (Depends-on): Add math.
1016         (Makefile.am): Don't mention mathl.h.
1017         (Include): Use <math.h> instead of mathl.h.
1018         * lib/math_.h: New file.
1019         * lib/mathl.h: Remove file.
1020         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
1021         mathl.h.
1022         * lib/asinl.c: Likewise.
1023         * lib/atanl.c: Likewise.
1024         * lib/ceill.c: Likewise.
1025         * lib/cosl.c: Likewise.
1026         * lib/expl.c: Likewise.
1027         * lib/floorl.c: Likewise.
1028         * lib/frexpl.c: Likewise.
1029         * lib/ldexpl.c: Likewise.
1030         * lib/logl.c: Likewise.
1031         * lib/sincosl.c: Likewise.
1032         * lib/sinl.c: Likewise.
1033         * lib/sqrtl.c: Likewise.
1034         * lib/tanl.c: Likewise.
1035         * lib/trigl.c: Likewise.
1036         * m4/math_h.m4: New file.
1037         * MODULES.html.sh (Mathematics): Add math.
1038
1039 2007-02-17  Bruno Haible  <bruno@clisp.org>
1040
1041         * modules/wctype-tests: New file.
1042         * tests/test-wctype.c: New file.
1043
1044         * modules/wchar-tests: New file.
1045         * tests/test-wchar.c: New file.
1046
1047         * modules/unistd-tests: New file.
1048         * tests/test-unistd.c: New file.
1049
1050         * modules/time-tests: New file.
1051         * tests/test-time.c: New file.
1052
1053         * modules/sysexits-tests: New file.
1054         * tests/test-sysexits.c: New file.
1055
1056         * modules/sys_time-tests: New file.
1057         * tests/test-sys_time.c: New file.
1058
1059         * modules/sys_stat-tests: New file.
1060         * tests/test-sys_stat.c: New file.
1061
1062         * modules/sys_socket-tests: New file.
1063         * tests/test-sys_socket.c: New file.
1064
1065         * modules/sys_select-tests: New file.
1066         * tests/test-sys_select.c: New file.
1067
1068         * modules/string-tests: New file.
1069         * tests/test-string.c: New file.
1070
1071         * modules/stdbool-tests: New file.
1072         * tests/test-stdbool.c: New file.
1073
1074         * modules/netinet_in-tests: New file.
1075         * tests/test-netinet_in.c: New file.
1076
1077         * modules/inttypes-tests: New file.
1078         * tests/test-inttypes.c: New file.
1079
1080         * modules/fcntl-tests: New file.
1081         * tests/test-fcntl.c: New file.
1082
1083         * modules/byteswap-tests: New file.
1084         * tests/test-byteswap.c: New file.
1085
1086         * modules/arpa_inet-tests: New file.
1087         * tests/test-arpa_inet.c: New file.
1088
1089 2007-02-17  Bruno Haible  <bruno@clisp.org>
1090
1091         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
1092         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
1093         if the corresponding module is not enabled. Emit link warnings if
1094         the function is used nevertheless.
1095         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
1096         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
1097         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
1098         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
1099         * modules/inttypes (Depends-on): Add link-warning.
1100         (Makefile.am): Copy the contents of build-aux/link-warning.h into
1101         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
1102         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
1103         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
1104         * modules/imaxdiv (configure.ac): Likewise.
1105         * modules/strtoimax (configure.ac): Likewise.
1106         * modules/strtoumax (configure.ac): Likewise.
1107
1108 2007-02-17  Bruno Haible  <bruno@clisp.org>
1109
1110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
1111         gl_STRING_MODULE_INDICATOR_DEFAULTS.
1112         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
1113         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
1114
1115 2007-02-17  Bruno Haible  <bruno@clisp.org>
1116
1117         * modules/link-warning: New file.
1118         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
1119         * lib/string_.h (GL_LINK_WARNING): Remove definition.
1120         * modules/string (Depends-on): Add link-warning.
1121         (Makefile.am): Copy the contents of build-aux/link-warning.h into
1122         string.h.
1123         * MODULES.html.sh (Support for building libraries and executables): Add
1124         link-warning.
1125
1126 2007-02-17  Bruno Haible  <bruno@clisp.org>
1127
1128         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
1129         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
1130         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
1131         long lines.
1132
1133 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
1134             Bruno Haible  <bruno@clisp.org>
1135
1136         * modules/tmpfile: New file.
1137         * lib/tmpfile.c: New file.
1138         * m4/tmpfile.m4: New file.
1139         * MODULES.html.sh (func_all_modules): New section "Input/output".
1140
1141 2007-02-15  Bruno Haible  <bruno@clisp.org>
1142
1143         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
1144         (supports_delete_on_close): New function.
1145         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
1146
1147 2007-02-14  Bruno Haible  <bruno@clisp.org>
1148
1149         * modules/mbspcasecmp-tests: New file.
1150         * tests/test-mbspcasecmp.sh: New file.
1151         * tests/test-mbspcasecmp.c: New file.
1152
1153         New module mbspcasecmp.
1154         * modules/mbspcasecmp: New file.
1155         * lib/mbspcasecmp.c: New file.
1156         * lib/string_.h (strncasecmp): Change warning message.
1157         (mbspcasecmp): New declaration.
1158         * m4/mbspcasecmp.m4: New file.
1159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1160         GNULIB_MBSPCASECMP.
1161         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
1162         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
1163
1164 2007-02-14  Bruno Haible  <bruno@clisp.org>
1165
1166         * modules/mbsncasecmp-tests: New file.
1167         * tests/test-mbsncasecmp.sh: New file.
1168         * tests/test-mbsncasecmp.c: New file.
1169
1170         New module mbsncasecmp.
1171         * modules/mbsncasecmp: New file.
1172         * lib/mbsncasecmp.c: New file.
1173         * lib/string_.h (mbsncasecmp): New declaration.
1174         * m4/mbsncasecmp.m4: New file.
1175         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1176         GNULIB_MBSNCASECMP.
1177         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
1178         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
1179
1180 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1181
1182         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
1183         Verify that it doesn't overlap with our flags.
1184         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
1185         do not have the desired effect in multibyte locales; instead, use
1186         mbscasecmp.
1187         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
1188         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
1189         we don't require GNU fnmatch ourselves (if our users require it, they
1190         should do so explicitly).
1191
1192         Fix regex code so it doesn't rely on strcasecmp.
1193         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
1194         Otherwise, include gnulib's langinfo.h.
1195         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
1196         undesirable behavior in non-C locales.  Instead, rely on localecharset.
1197         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
1198         * modules/regex (FILES): Remove m4/codeset.m4.
1199         (Depends-on): Add localcharset.  Remove strcase.
1200
1201 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1202
1203         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
1204         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1205
1206 2007-02-13  Bruno Haible  <bruno@clisp.org>
1207
1208         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
1209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1210
1211 2007-02-12  Bruno Haible  <bruno@clisp.org>
1212
1213         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
1214         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
1215         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
1216         time warning rather than a link error.
1217
1218 2007-02-12  Bruno Haible  <bruno@clisp.org>
1219
1220         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
1221         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1222         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1223
1224 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1225
1226         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
1227         args, not 2.
1228
1229 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1230
1231         New module 'time', so that apps can include <time.h> as per
1232         POSIX and GNU instead of separate include files like time_r.h
1233         and timegm.h.  This implementation tries out a simpler approach
1234         for replacing decls in standard include files (as compared to
1235         the string module), somewhat as an experiment.
1236
1237         * config/srclist.txt: Comment out mktime.c for now.
1238         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
1239         since it doesn't apply any more.  Use generic wording instead.
1240         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
1241         'time'.
1242         * lib/time_.h, m4/time_h.m4, modules/time: New files.
1243         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
1244         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
1245         Don't include <sys/types.h>; no longer needed since we assume C89.
1246         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
1247         * lib/strftime.c: Likewise.
1248         * lib/time_r.c: Likewise.
1249         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
1250         * lib/nanosleep.c: Include <time.h> first, to check interface.
1251         * lib/strptime.c: Likewise.
1252         * lib/time_r.c: Likewise.
1253         * lib/timegm.c: Likewise.
1254         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
1255         needed.
1256         * lib/timegm.c: Don't include timegm.h; no longer needed.
1257         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
1258         time.h now handles any problems in that area.
1259         (struct timespec, nanosleep): Remove; time.h now arranges for these.
1260         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
1261         that time.h defines struct timespec.
1262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
1263         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
1264         handles that.
1265         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
1266         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
1267         needed.  Set REPLACE_LOCALTIME.
1268         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
1269         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
1270         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
1271         nanosleep; time_h.m4 now does that.  Don't require
1272         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
1273         module handles this now.
1274         * modules/getdate (Depends-on): Remove timespec.  Add time.
1275         * modules/nanosleep (Depends-on): Likewise.
1276         * modules/stat-time (Depends-on): Likewise.
1277         * modules/nanosleep (Include): Include time.h, not timespec.h.
1278         * modules/strptime (Files): Remove lib/strptime.h.
1279         (Depends-on): Add extensions, time.
1280         (Include): Include time.h, not strptime.h.
1281         * modules/time_r (Files): Remove lib/time_r.h.
1282         (Depends-on): Add time.
1283         (Include): Include time.h, not time_r.h.
1284         * modules/timegm: Likewise.
1285         * modules/timespec (Description): Now does timespec-related decls
1286         of our own, instead of struct timespec itself.
1287         (Depends-on): Add time; remove extensions.
1288         (Maintainer): Add self.
1289         * modules/utimecmp (Depends-on): Add time; remove timespec.
1290         * modules/utimens (Depends-on): Likewise.
1291         * modules/xnanosleep (Depends-on): Likewise.
1292
1293 2007-02-11  Bruno Haible  <bruno@clisp.org>
1294
1295         * lib/c-strstr.c: Include allocsa.h.
1296         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1297         * lib/c-strcasestr.c: Include allocsa.h.
1298         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1299         * lib/strcasestr.c: Include allocsa.h.
1300         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1301         * lib/mbsstr.c: Include allocsa.h.
1302         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1303         allocsa/freesa instead of malloc/free.
1304         * lib/mbscasestr.c: Include allocsa.h.
1305         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1306         allocsa/freesa instead of malloc/free.
1307         * modules/c-strstr (Depends-on): Add allocsa.
1308         * modules/c-strcasestr (Depends-on): Likewise.
1309         * modules/strcasestr (Depends-on): Likewise.
1310         * modules/mbsstr (Depends-on): Likewise.
1311         * modules/mbscasestr (Depends-on): Likewise.
1312
1313 2007-02-11  Bruno Haible  <bruno@clisp.org>
1314
1315         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
1316
1317         * modules/mbsspn-tests: New file.
1318         * tests/test-mbsspn.sh: New file.
1319         * tests/test-mbsspn.c: New file.
1320
1321 2007-02-11  Bruno Haible  <bruno@clisp.org>
1322
1323         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
1324
1325         * modules/mbspbrk-tests: New file.
1326         * tests/test-mbspbrk.sh: New file.
1327         * tests/test-mbspbrk.c: New file.
1328
1329 2007-02-11  Bruno Haible  <bruno@clisp.org>
1330
1331         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
1332         unneeded cast.
1333
1334         * modules/mbscspn-tests: New file.
1335         * tests/test-mbscspn.sh: New file.
1336         * tests/test-mbscspn.c: New file.
1337
1338 2007-02-11  Bruno Haible  <bruno@clisp.org>
1339
1340         * modules/mbscasecmp-tests: New file.
1341         * tests/test-mbscasecmp.sh: New file.
1342         * tests/test-mbscasecmp.c: New file.
1343
1344 2007-02-11  Bruno Haible  <bruno@clisp.org>
1345
1346         Ensure O(n) worst-case complexity of mbscasestr.
1347         * lib/mbscasestr.c: Include stdbool.h.
1348         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1349         functions.
1350         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
1351         the bookkeeping indicates that it's worth it.
1352         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
1353
1354         * modules/mbscasestr-tests: New file.
1355         * tests/test-mbscasestr1.c: New file.
1356         * tests/test-mbscasestr2.sh: New file.
1357         * tests/test-mbscasestr2.c: New file.
1358         * tests/test-mbscasestr3.sh: New file.
1359         * tests/test-mbscasestr3.c: New file.
1360         * tests/test-mbscasestr4.sh: New file.
1361         * tests/test-mbscasestr4.c: New file.
1362         * m4/locale-tr.m4: New file.
1363
1364 2007-02-11  Bruno Haible  <bruno@clisp.org>
1365
1366         Ensure O(n) worst-case complexity of mbsstr.
1367         * lib/mbsstr.c: Include stdbool.h.
1368         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1369         functions.
1370         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
1371         bookkeeping indicates that it's worth it.
1372         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
1373
1374         * modules/mbsstr-tests: New file.
1375         * tests/test-mbsstr1.c: New file.
1376         * tests/test-mbsstr2.sh: New file.
1377         * tests/test-mbsstr2.c: New file.
1378         * tests/test-mbsstr3.sh: New file.
1379         * tests/test-mbsstr3.c: New file.
1380         * m4/locale-fr.m4: New file.
1381
1382 2007-02-11  Bruno Haible  <bruno@clisp.org>
1383
1384         * lib/mbsrchr.c (mbsrchr): Fix bug.
1385
1386         * modules/mbsrchr-tests: New file.
1387         * tests/test-mbsrchr.sh: New file.
1388         * tests/test-mbsrchr.c: New file.
1389
1390 2007-02-11  Bruno Haible  <bruno@clisp.org>
1391
1392         * lib/mbschr.c (mbschr): Fix bug.
1393
1394         * modules/mbschr-tests: New file.
1395         * tests/test-mbschr.sh: New file.
1396         * tests/test-mbschr.c: New file.
1397         * m4/locale-zh.m4: New file.
1398
1399 2007-02-11  Bruno Haible  <bruno@clisp.org>
1400
1401         Support for copying multibyte string iterators.
1402         * lib/mbiter.h: Include <string.h>.
1403         (mbiter_multi_copy): New function.
1404         (mbi_copy): New macro.
1405         * lib/mbuiter.h: Include <string.h>.
1406         (mbuiter_multi_copy): New function.
1407         (mbui_copy): New macro.
1408
1409 2007-02-11  Bruno Haible  <bruno@clisp.org>
1410
1411         New module mbslen.
1412         * modules/mbslen: New file.
1413         * lib/mbslen.c: New file.
1414         * lib/string_.h (mbslen): New declaration.
1415         * m4/mbslen.m4: New file.
1416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1417         GNULIB_MBSLEN.
1418         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
1419         * MODULES.html.sh (Internationalization functions): Add mbslen.
1420
1421 2007-02-11  Bruno Haible  <bruno@clisp.org>
1422
1423         Ensure O(n) worst-case complexity of strcasestr substitute.
1424         * lib/strcasestr.c: Include stdbool.h.
1425         (knuth_morris_pratt): New function.
1426         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1427         bookkeeping indicates that it's worth it.
1428         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
1429
1430         * modules/strcasestr-tests: New file.
1431         * tests/test-strcasestr.c: New file.
1432
1433 2007-02-11  Bruno Haible  <bruno@clisp.org>
1434
1435         Ensure O(n) worst-case complexity of c_strcasestr.
1436         * lib/c-strcasestr.c: Include stdbool.h, string.h.
1437         (knuth_morris_pratt): New function.
1438         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
1439         the bookkeeping indicates that it's worth it.
1440         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
1441
1442         * modules/c-strcasestr-tests: New file.
1443         * tests/test-c-strcasestr.c: New file.
1444
1445 2007-02-11  Bruno Haible  <bruno@clisp.org>
1446
1447         Ensure O(n) worst-case complexity of c_strstr.
1448         * lib/c-strstr.c: Include stdbool.h, string.h.
1449         (knuth_morris_pratt): New function.
1450         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1451         bookkeeping indicates that it's worth it.
1452         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
1453
1454         * lib/c-strstr.c: Complete rewrite for maintainability.
1455
1456         * modules/c-strstr-tests: New file.
1457         * tests/test-c-strstr.c: New file.
1458
1459 2007-02-11  Bruno Haible  <bruno@clisp.org>
1460
1461         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
1462         5.2.1 and earlier, whereby \055 was treated just like the range
1463         delimiter '-'.
1464         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1465
1466 2007-02-08  Bruno Haible  <bruno@clisp.org>
1467
1468         * modules/regex (Depends-on): Add stdbool.
1469         Reported by Dalibor Topic <robilad@kaffe.org>.
1470
1471 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
1474         Prefer returning from main to exiting from it.
1475         Remove unnecessary parens after sizeof.
1476
1477 2007-02-05  Bruno Haible  <bruno@clisp.org>
1478
1479         New module mbssep.
1480         * modules/mbssep: New file.
1481         * lib/mbssep.c: New file.
1482         * lib/string_.h (strsep): Add a conditional link warning.
1483         (mbssep): New declaration.
1484         * m4/mbssep.m4: New file.
1485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1486         GNULIB_MBSSEP.
1487         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
1488         * MODULES.html.sh (Internationalization functions): Add mbssep.
1489
1490 2007-02-05  Bruno Haible  <bruno@clisp.org>
1491
1492         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
1493         Optimize search in case of 1 delimiter.
1494
1495 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
1496
1497         * lib/acl.h: Include sys/types.h before sys/acl.h.
1498
1499 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
1500
1501         Merge upstream fix for glibc bugzilla #3957:
1502
1503         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
1504
1505         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1506         bit for RE_HAT_LISTS_NOT_NEWLINE.
1507         (build_charclass_op): Remove bogus comment.
1508
1509 2007-02-05  Simon Josefsson  <simon@josefsson.org>
1510
1511         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
1512
1513 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
1516         * lib/memmem.c [!defined _LIBC]: Include config.h.
1517
1518 2007-02-04  Bruno Haible  <bruno@clisp.org>
1519
1520         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
1521         warning message.
1522
1523 2007-02-04  Bruno Haible  <bruno@clisp.org>
1524
1525         New module mbstok_r.
1526         * modules/mbstok_r: New file.
1527         * lib/mbstok_r.c: New file.
1528         * lib/string_.h (strtok_r): Change argument names to match the
1529         comments. Add a conditional link warning.
1530         (mbstok_r): New declaration.
1531         * m4/mbstok_r.m4: New file.
1532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1533         GNULIB_MBSTOK_R.
1534         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
1535         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
1536
1537 2007-02-04  Bruno Haible  <bruno@clisp.org>
1538
1539         New module mbsspn.
1540         * modules/mbsspn: New file.
1541         * lib/mbsspn.c: New file.
1542         * lib/string_.h (strspn): Add a conditional link warning.
1543         (mbsspn): New declaration.
1544         * m4/mbsspn.m4: New file.
1545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1546         GNULIB_MBSSPN.
1547         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
1548         * MODULES.html.sh (Internationalization functions): Add mbsspn.
1549
1550 2007-02-04  Bruno Haible  <bruno@clisp.org>
1551
1552         New module mbspbrk.
1553         * modules/mbspbrk: New file.
1554         * lib/mbspbrk.c: New file.
1555         * lib/string_.h (strpbrk): Add a conditional link warning.
1556         (mbspbrk): New declaration.
1557         * m4/mbspbrk.m4: New file.
1558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1559         GNULIB_MBSPBRK.
1560         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
1561         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
1562
1563 2007-02-04  Bruno Haible  <bruno@clisp.org>
1564
1565         New module mbscspn.
1566         * modules/mbscspn: New file.
1567         * lib/mbscspn.c: New file.
1568         * lib/string_.h (strcspn): Add a conditional link warning.
1569         (mbscspn): New declaration.
1570         * m4/mbscspn.m4: New file.
1571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1572         GNULIB_MBSCSPN.
1573         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
1574         * MODULES.html.sh (Internationalization functions): Add mbscspn.
1575
1576 2007-02-04  Bruno Haible  <bruno@clisp.org>
1577
1578         New module mbscasestr, reduced goal of strcasestr.
1579         * modules/mbscasestr: New file.
1580         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
1581         (mbscasestr): Renamed from strcasestr.
1582         * lib/strcasestr.c: Don't include mbuiter.h.
1583         (strcasestr): Remove support for multibyte locales.
1584         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
1585         Change the conditional link warning.
1586         (mbscasestr): New declaration.
1587         * m4/mbscasestr.m4: New file.
1588         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
1589         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
1590         REPLACE_STRCASESTR.
1591         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
1592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1593         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1594         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
1595         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
1596         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1597         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
1598         (Depends-on): Remove mbuiter.
1599         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
1600
1601 2007-02-04  Bruno Haible  <bruno@clisp.org>
1602
1603         Simplify handling of strncasecmp.
1604         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
1605         the conditional link warning.
1606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1607         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
1608         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
1609         * modules/strcase (configure.ac): Don't invoke
1610         gl_STRING_MODULE_INDICATOR.
1611         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
1612
1613 2007-02-04  Bruno Haible  <bruno@clisp.org>
1614
1615         New module mbscasecmp, reduced goal of strcasecmp.
1616         * modules/mbscasecmp: New file.
1617         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
1618         (mbscasecmp): Renamed from strcasecmp.
1619         * lib/strcasecmp.c: Don't include mbuiter.h.
1620         (strcasecmp): Remove support for multibyte locales.
1621         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
1622         Change the conditional link warning.
1623         (mbscasecmp): New declaration.
1624         * m4/mbscasecmp.m4: New file.
1625         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
1626         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
1627         REPLACE_STRCASECMP.
1628         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
1629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1630         GNULIB_MBSCASECMP.
1631         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
1632         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
1633         * modules/strcase (Files): Remove m4/mbrtowc.m4.
1634         (Depends-on): Remove mbuiter.
1635         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
1636
1637 2007-02-04  Bruno Haible  <bruno@clisp.org>
1638
1639         New module mbsstr. Remove module strstr.
1640         * modules/mbsstr: New file.
1641         * modules/strstr: Remove file.
1642         * lib/mbsstr.c: Renamed from lib/strstr.c.
1643         (mbsstr): Renamed from strstr.
1644         * lib/string_.h (strstr): Remove declaration. Change the conditional
1645         link warning.
1646         (mbsstr): New declaration.
1647         * m4/mbsstr.m4: New file.
1648         * m4/strstr.m4: Remove file.
1649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1650         REPLACE_STRSTR.
1651         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
1652         Don't initialize GNULIB_STRSTR.
1653         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
1654         substitute GNULIB_STRSTR and REPLACE_STRSTR.
1655         * MODULES.html.sh (Internationalization functions): Add mbsstr.
1656         (Support for systems lacking ANSI C 89): Remove strstr.
1657
1658 2007-02-04  Bruno Haible  <bruno@clisp.org>
1659
1660         New module mbsrchr.
1661         * modules/mbsrchr: New file.
1662         * lib/mbsrchr.c: New file.
1663         * lib/string_.h (strrchr): Add a conditional link warning.
1664         (mbsrchr): New declaration.
1665         * m4/mbsrchr.m4: New file.
1666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1667         GNULIB_MBSRCHR.
1668         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
1669         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
1670
1671 2007-02-04  Bruno Haible  <bruno@clisp.org>
1672
1673         New module mbschr.
1674         * modules/mbschr: New file.
1675         * lib/mbschr.c: New file.
1676         * lib/string_.h (strchr): Add a conditional link warning.
1677         (mbschr): New declaration.
1678         * m4/mbschr.m4: New file.
1679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1680         GNULIB_MBSCHR.
1681         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
1682         * MODULES.html.sh (Internationalization functions): Add mbschr.
1683
1684 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1685
1686         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
1687
1688         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
1689
1690 2007-02-04  Bruno Haible  <bruno@clisp.org>
1691
1692         New module description section 'configure.ac-early'.
1693         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
1694         (func_get_autoconf_early_snippet): New function.
1695         (func_import, func_create_testdir): Use it. Remove special cases for
1696         modules 'extensions' and 'lock'.
1697         * modules/extensions (configure.ac-early): Require
1698         gl_USE_SYSTEM_EXTENSIONS.
1699         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
1700
1701 2007-02-04  Bruno Haible  <bruno@clisp.org>
1702
1703         Make use of gcj-4.3's -fsource and -ftarget option.
1704         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
1705         and if so try the options -fsource and -ftarget.
1706         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
1707         source_version, ftarget_option, target_version arguments.
1708         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
1709         (is_envjavac_oldgcj_14_14_usable): Renamed from
1710         is_envjavac_gcj_14_14_usable.
1711         (is_envjavac_oldgcj_14_13_usable): Renamed from
1712         is_envjavac_gcj_14_13_usable.
1713         (is_gcj_present): Update.
1714         (is_gcj_43, is_gcj43_usable): New functions.
1715         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
1716         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
1717         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
1718         try the options -fsource and -ftarget.
1719
1720 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1721
1722         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
1723         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
1724         larger value.
1725
1726 2007-02-03  Jim Meyering  <jim@meyering.net>
1727
1728         Give tools a better chance to allocate space for very large buffers.
1729         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
1730
1731         Make pwd and readlink work also when run with an unreadable parent dir
1732         on systems with openat support.
1733         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
1734         provided getcwd function, even when we have openat support.
1735         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
1736
1737 2007-02-02  Bruno Haible  <bruno@clisp.org>
1738
1739         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
1740         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
1741         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
1742         portability problems if one of these functions is only used on specific
1743         platforms.
1744         Reported by Paul Eggert.
1745
1746 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1747
1748         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
1749         is causing more trouble than it's curing.
1750         * lib/regex_internal.h (__mempcpy): Remove.
1751         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
1752         (and make the code a tad smaller to boot).
1753         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
1754
1755 2007-02-02  Jim Meyering  <jim@meyering.net>
1756
1757         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
1758         section, not in the Makefile.am: one.
1759
1760 2007-02-02  Eric Blake  <ebb9@byu.net>
1761
1762         * lib/strchrnul.c: Always include config.h first.
1763
1764         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
1765         gnulib strstr is not necessary here.
1766
1767 2007-02-02  Simon Josefsson  <simon@josefsson.org>
1768
1769         * m4/socklen.m4: Fix typo.
1770
1771 2007-02-02  Eric Blake  <ebb9@byu.net>
1772
1773         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
1774         * modules/netinet_in (Makefile.am): Likewise.
1775
1776 2007-02-01  Bruno Haible  <bruno@clisp.org>
1777
1778         * lib/string_.h (GL_LINK_WARNING): New macro.
1779         (strcasecmp, strstr, strcasestr): If provided by the system,
1780         conditionally define as a macro that leads to a warning instead of to
1781         an error.
1782         (strncasecmp): Conditionally define as a macro that leads to a warning.
1783
1784 2007-02-01  Karl Berry  <karl@gnu.org>
1785
1786         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
1787
1788 2007-02-01  Bruno Haible  <bruno@clisp.org>
1789
1790         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
1791         renamings.
1792
1793 2007-02-01  Eric Blake  <ebb9@byu.net>
1794
1795         * modules/regex (Depends-on): Revert dependence on mempcpy.
1796         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
1797         module's definition of mempcpy.
1798         Reported by Paul Eggert.
1799
1800 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         * lib/string_.h: If the gnulib module XYZ is not present, undefine
1803         the symbol XYZ before redefining it.  This fixes a problem with
1804         programs that don't use XYZ, when compiled on systems that define
1805         XYZ to something else.
1806
1807 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1808
1809         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
1810         occurs when "mkdir -m foo" creates a setgid directory that is (1)
1811         writeable to group or other and (2) is intended to have a special
1812         mode bit that is set or cleared.  In such a case, the directory
1813         should be neither group- nor other-writeable until the special
1814         mode bits are right.
1815
1816 2007-01-31  Eric Blake  <ebb9@byu.net>
1817
1818         * modules/mountlist (Depends-on): Add strstr.
1819
1820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
1821         bug.
1822         * modules/string (Makefile.am): Remove redundant replacement.
1823         * modules/regex (Depends-on): Add mempcpy.
1824
1825 2007-01-31  Bruno Haible  <bruno@clisp.org>
1826
1827         New module description field 'Link'.
1828         * gnulib-tool (func_usage): Document --extract-link-directive.
1829         (sed_extract_prog): Recognize 'Link' directive.
1830         (func_get_link_directive): New function.
1831         (func_import): Show summary of link directives.
1832         Handle --extract-link-directive option.
1833         * modules/acl (Link): New section.
1834         * modules/clock-time (Link): New section.
1835         * modules/euidaccess (Link): New section.
1836         * modules/gettext (Link): New section.
1837         * modules/iconv (Link): New section.
1838         * modules/lock (Link): New section.
1839         * modules/nanosleep (Link): New section.
1840         * modules/readline (Link): New section.
1841
1842 2007-01-27  Bruno Haible  <bruno@clisp.org>
1843
1844         Enforce the use of gnulib modules for unportable <string.h> functions.
1845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
1846         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
1847         (gl_HEADER_STRING_H_BODY): Require it.
1848         * lib/string_.h: If the gnulib module XYZ is not present, redefine
1849         the symbol XYZ to one that gives a link error.
1850         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
1851         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
1852         * modules/mempcpy (configure.ac): Likewise.
1853         * modules/memrchr (configure.ac): Likewise.
1854         * modules/stpcpy (configure.ac): Likewise.
1855         * modules/stpncpy (configure.ac): Likewise.
1856         * modules/strcase (configure.ac): Likewise.
1857         * modules/strcasestr (configure.ac): Likewise.
1858         * modules/strchrnul (configure.ac): Likewise.
1859         * modules/strdup (configure.ac): Likewise.
1860         * modules/strndup (configure.ac): Likewise.
1861         * modules/strnlen (configure.ac): Likewise.
1862         * modules/strpbrk (configure.ac): Likewise.
1863         * modules/strsep (configure.ac): Likewise.
1864         * modules/strstr (configure.ac): Likewise.
1865         * modules/strtok_r (configure.ac): Likewise.
1866
1867 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
1868
1869         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
1870
1871 2007-01-30  Jim Meyering  <jim@meyering.net>
1872
1873         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
1874
1875 2007-01-29  Bruno Haible  <bruno@clisp.org>
1876
1877         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
1878         * lib/execute.c: Likewise.
1879         * lib/pipe.c: Likewise.
1880         * lib/printf-args.h: Likewise.
1881         * lib/printf-args.c: Likewise.
1882         * lib/printf-parse.c: Likewise.
1883         * lib/vasnprintf.c: Likewise.
1884
1885 2007-01-29  Eric Blake  <ebb9@byu.net>
1886
1887         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
1888         declaration.
1889
1890 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1891
1892         * lib/strptime.h (strptime): Use 'restrict' for args where
1893         POSIX requires this.
1894         * lib/strptime.c (strptime): Likewise.
1895         Change license notice from LGPL to GPL, since gnulib-tool will
1896         change this as needed.
1897         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
1898         defined.
1899         Include "strptime.h" first, to check interface.
1900         Do not #undef _LIBC and _NL_CURRENT.
1901         Do not include <stdlib.h>; no longer needed.
1902         Include "time_r.h" and declare ptime_locale_status
1903         only if _LIBC is not defined.
1904         (__P): Remove unused macro.
1905         (match_string): Bring back glibc version, but use it only if _LIBC
1906         is defined.
1907         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
1908         Remove unnecessary assertion and abort() call.
1909         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
1910         * m4/strptime.m4: Fix serial number comment.
1911         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
1912         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
1913         (Depends-on): Add time_r.
1914
1915 2007-01-29  Bruno Haible  <bruno@clisp.org>
1916
1917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1918         strptime.
1919         * modules/strptime (Depends-on): Add stdbool.
1920         * lib/strptime.h: Include <time.h> always. Add comments.
1921
1922 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1923
1924         * modules/strptime: New file.
1925         * lib/strptime.h: New file.
1926         * lib/strptime.c: New file.
1927         * m4/strptime.m4: New file.
1928
1929 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1930
1931         * MODULES.html.sh: New module mpsort.
1932         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
1933
1934         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
1935         a circularity problem with HP-UX ia64 reported by Bob Proulx in
1936         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
1937         All uses changed.
1938         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
1939         All uses changed.
1940         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
1941         to _Restrict_.
1942         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
1943         the parameter matches the prototype.
1944
1945 2007-01-28  Jim Meyering  <jim@meyering.net>
1946
1947         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
1948         sys/time.h here, reverting that part of the previous patch:
1949         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
1950
1951 2007-01-28  Bruno Haible  <bruno@clisp.org>
1952
1953         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
1954         value of $(SYS_TIME_H).
1955         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
1956         remove it conditionally, too. [added by Jim Meyering]
1957         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
1958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1959         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
1960         GETTIMEOFDAY_REPLACEMENT to 1.
1961
1962 2007-01-28  Bruno Haible  <bruno@clisp.org>
1963
1964         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
1965         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
1966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
1967         Set UNISTD_H instead of UNISTD_H2.
1968         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
1969
1970 2007-01-28  Bruno Haible  <bruno@clisp.org>
1971
1972         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
1973         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
1974
1975 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1976
1977         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
1978         (func_create_testdir): Ensure C locale for `grep' and `tr'
1979         character ranges.
1980         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
1981         ACLOCAL_AMFLAGS parsing state machine.
1982
1983 2007-01-27  Bruno Haible  <bruno@clisp.org>
1984
1985         * modules/unistr/base: Update.
1986
1987 2007-01-27  Bruno Haible  <bruno@clisp.org>
1988
1989         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
1990         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
1991         * modules/unistr/u32-mbtouc-unsafe: Renamed from
1992         modules/unistr/u32-mbtouc.
1993         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
1994         * lib/unistr.h: Update.
1995         * lib/linebreak.c: Update.
1996         * modules/unistr/u32-mbtouc: Renamed from
1997         modules/unistr/u32-mbtouc-safe.
1998         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
1999         * lib/unistr.h: Update.
2000         * lib/unistr/u32-to-u8.c: Update.
2001         * lib/unistr/u32-to-u16.c: Update.
2002
2003 2007-01-27  Bruno Haible  <bruno@clisp.org>
2004
2005         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
2006         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
2007         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
2008         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
2009         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
2010         * modules/unistr/u16-mbtouc-unsafe: Renamed from
2011         modules/unistr/u16-mbtouc.
2012         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
2013         * lib/unistr.h: Update.
2014         * lib/linebreak.c: Update.
2015         * modules/linebreak: Update.
2016         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
2017         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
2018         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
2019         * modules/unistr/u16-mbtouc: Renamed from
2020         modules/unistr/u16-mbtouc-safe.
2021         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
2022         * lib/unistr.h: Update.
2023         * lib/unistr/u16-to-u8.c: Update.
2024         * modules/unistr/u16-to-u8: Update.
2025         * lib/unistr/u16-to-u32.c: Update.
2026         * modules/unistr/u16-to-u32: Update.
2027
2028 2007-01-27  Bruno Haible  <bruno@clisp.org>
2029
2030         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
2031         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
2032         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
2033         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
2034         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
2035         * modules/unistr/u8-mbtouc-unsafe: Renamed from
2036         modules/unistr/u8-mbtouc.
2037         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
2038         * lib/unistr.h: Update.
2039         * lib/striconveh.c: Update.
2040         * modules/striconveh: Update.
2041         * lib/linebreak.c: Update.
2042         * modules/linebreak: Update.
2043         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
2044         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
2045         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
2046         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
2047         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
2048         * lib/unistr.h: Update.
2049         * lib/striconveh.c: Update.
2050         * modules/striconveh: Update.
2051         * lib/unistr/u8-to-u16.c: Update.
2052         * modules/unistr/u8-to-u16: Update.
2053         * lib/unistr/u8-to-u32.c: Update.
2054         * modules/unistr/u8-to-u32: Update.
2055
2056 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2057
2058         Sync from Libtool.
2059         * lib/argz.c: Do not include strings.h nor memory.h, include
2060         string.h unconditionally.  Patch by Simon Josefsson.
2061
2062 2007-01-27  Bruno Haible  <bruno@clisp.org>
2063
2064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
2065         from gl_HEADER_STRING_H_BODY.
2066         (gl_HEADER_STRING_H_BODY): Require it.
2067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
2068         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
2069         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
2070         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
2071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2072         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
2073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2074         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
2075         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
2076         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2077         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
2078         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
2079         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
2080         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2082
2083 2007-01-27  Bruno Haible  <bruno@clisp.org>
2084
2085         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
2086         check_PROGRAMS into noinst_PROGRAMS.
2087         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
2088         check_PROGRAMS in this case.
2089         (func_import): Set for_test to false.
2090         (func_create_testdir): Set for_test to true.
2091
2092 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2093             Bruno Haible  <bruno@clisp.org>
2094
2095         * modules/strcasestr (Files): Remove lib/strcasestr.h.
2096         (Depends-on): Add string.
2097         (Includes): Use <string.h> instead of strcasestr.h.
2098         * modules/string (Makefile.am): Also substitute the value of
2099         REPLACE_STRCASESTR.
2100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
2101         assume strcasestr is declared in <string.h> not <strings.h>. Also
2102         set REPLACE_STRCASESTR.
2103         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
2104         REPLACE_STRCASESTR.
2105         * lib/strcasestr.h: Remove file.
2106         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
2107         * lib/string_.h (strcasestr): New declaration.
2108
2109 2007-01-27  Bruno Haible  <bruno@clisp.org>
2110
2111         * lib/string_.h: Use 'extern'.
2112
2113 2007-01-27  Jim Meyering  <jim@meyering.net>
2114
2115         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
2116         of set-but-not-used local, "q".
2117
2118         * lib/mempcpy.c: Include <config.h> before <string.h>.
2119         This fixes a compilation error on HP-UX, due to the system's
2120         "restrict"-using mempcpy prototype.
2121
2122 2007-01-26  Bruno Haible  <bruno@clisp.org>
2123
2124         Small optimization.
2125         * lib/javacomp.c: Include c-strstr.h.
2126          (is_envjavac_gcj): Use c_strstr instead of strstr.
2127         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
2128
2129 2007-01-26  Bruno Haible  <bruno@clisp.org>
2130
2131         * MODULES.html.sh (Unicode string functions): Add the new modules.
2132
2133         * modules/uniconv/u32-strconv-to-locale: New file.
2134         * lib/uniconv/u32-strconv-to-locale.c: New file.
2135
2136         * modules/uniconv/u16-strconv-to-locale: New file.
2137         * lib/uniconv/u16-strconv-to-locale.c: New file.
2138
2139         * modules/uniconv/u8-strconv-to-locale: New file.
2140         * lib/uniconv/u8-strconv-to-locale.c: New file.
2141
2142         * modules/uniconv/u32-strconv-from-locale: New file.
2143         * lib/uniconv/u32-strconv-from-locale.c: New file.
2144
2145         * modules/uniconv/u16-strconv-from-locale: New file.
2146         * lib/uniconv/u16-strconv-from-locale.c: New file.
2147
2148         * modules/uniconv/u8-strconv-from-locale: New file.
2149         * lib/uniconv/u8-strconv-from-locale.c: New file.
2150
2151         * modules/uniconv/u32-strconv-to-enc: New file.
2152         * lib/uniconv/u32-strconv-to-enc.c: New file.
2153         * modules/uniconv/u32-strconv-to-enc-tests: New file.
2154         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
2155
2156         * modules/uniconv/u16-strconv-to-enc: New file.
2157         * lib/uniconv/u16-strconv-to-enc.c: New file.
2158         * lib/uniconv/u-strconv-to-enc.h: New file.
2159         * modules/uniconv/u16-strconv-to-enc-tests: New file.
2160         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
2161
2162         * modules/uniconv/u8-strconv-to-enc: New file.
2163         * lib/uniconv/u8-strconv-to-enc.c: New file.
2164         * modules/uniconv/u8-strconv-to-enc-tests: New file.
2165         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
2166
2167         * modules/uniconv/u32-strconv-from-enc: New file.
2168         * lib/uniconv/u32-strconv-from-enc.c: New file.
2169         * modules/uniconv/u32-strconv-from-enc-tests: New file.
2170         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
2171
2172         * modules/uniconv/u16-strconv-from-enc: New file.
2173         * lib/uniconv/u16-strconv-from-enc.c: New file.
2174         * modules/uniconv/u16-strconv-from-enc-tests: New file.
2175         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
2176
2177         * modules/uniconv/u8-strconv-from-enc: New file.
2178         * lib/uniconv/u8-strconv-from-enc.c: New file.
2179         * lib/uniconv/u-strconv-from-enc.h: New file.
2180         * modules/uniconv/u8-strconv-from-enc-tests: New file.
2181         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
2182
2183         * modules/uniconv/u32-conv-from-enc: New file.
2184         * lib/uniconv/u32-conv-from-enc.c: New file.
2185         * modules/uniconv/u32-conv-from-enc-tests: New file.
2186         * tests/uniconv/test-u32-conv-from-enc.c: New file.
2187
2188         * modules/uniconv/u16-conv-from-enc: New file.
2189         * lib/uniconv/u16-conv-from-enc.c: New file.
2190         * lib/uniconv/u-conv-from-enc.h: New file.
2191         * modules/uniconv/u16-conv-from-enc-tests: New file.
2192         * tests/uniconv/test-u16-conv-from-enc.c: New file.
2193
2194         * modules/uniconv/u8-conv-from-enc: New file.
2195         * lib/uniconv/u8-conv-from-enc.c: New file.
2196         * modules/uniconv/u8-conv-from-enc-tests: New file.
2197         * tests/uniconv/test-u8-conv-from-enc.c: New file.
2198
2199         * modules/uniconv/base: New file.
2200         * lib/uniconv.h: New file.
2201
2202 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
2203
2204         * doc/gnulib-tool.texi (Initial import): Update to match current
2205         behavior with strdup module.
2206         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
2207         * lib/memmem.h: Remove; all uses removed.  This is now done
2208         by <string.h>.
2209         * lib/mempcpy.h: Likewise.
2210         * lib/memrchr.h: Likewise.
2211         * lib/stpcpy.h: Likewise.
2212         * lib/stpncpy.h: Likewise.
2213         * lib/strcase.h: Likewise.
2214         * lib/strchrnul.h: Likewise.
2215         * lib/strdup.h: Likewise.
2216         * lib/strndup.h: Likewise.
2217         * lib/strnlen.h: Likewise.
2218         * lib/strpbrk.h: Likewise.
2219         * lib/strsep.h: Likewise.
2220         * lib/strstr.h: Likewise.
2221         * lib/strtok_r.h: Likewise.
2222         * lib/string_.h: New file.
2223         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
2224         Rely on <string.h> instead.
2225         * lib/canon-host.c: Likewise.
2226         * lib/chdir-long.c: Likewise.
2227         * lib/concatpath.c: Likewise.
2228         * lib/exclude.c: Likewise.
2229         * lib/fchdir.c: Likewise.
2230         * lib/getaddrinfo.c: Likewise.
2231         * lib/getcwd.c: Likewise.
2232         * lib/getsubopt.c: Likewise.
2233         * lib/glob.c: Likewise.
2234         * lib/hard-locale.c: Likewise.
2235         * lib/iconvme.c: Likewise.
2236         * lib/javacomp.c: Likewise.
2237         * lib/mempcpy.c: Likewise.
2238         * lib/memrchr.c: Likewise.
2239         * lib/regex_internal.h: Likewise.
2240         * lib/stpncpy.c: Likewise.
2241         * lib/strcasecmp.c: Likewise.
2242         * lib/strchrnul.c: Likewise.
2243         * lib/strdup.c: Likewise.
2244         * lib/striconv.c: Likewise.
2245         * lib/striconveh.c: Likewise.
2246         * lib/striconveha.c: Likewise.
2247         * lib/strncasecmp.c: Likewise.
2248         * lib/strndup.c: Likewise.
2249         * lib/strnlen.c: Likewise.
2250         * lib/strsep.c: Likewise.
2251         * lib/strstr.c: Likewise.
2252         * lib/strtok_r.c: Likewise.
2253         * lib/userspec.c: Likewise.
2254         * lib/w32spawn.h: Likewise.
2255         * lib/xstrndup.c: Likewise.
2256         * lib/mountlist.c (strstr): Remove decl.
2257         * m4/string_h.m4: New file.
2258         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
2259         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
2260         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
2261         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
2262         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
2263         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
2264         Set REPLACE_STRCASECMP if necessary.
2265         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
2266         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
2267         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
2268         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
2269         HAVE_DECL_STRDUP if necessary.
2270         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
2271         since gl_FUNC_STRNDUP does that now.
2272         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
2273         Check for decl here...
2274         (gl_PREREQ_STRNLEN): ... not here.
2275         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
2276         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
2277         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
2278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
2279         necessary.
2280         * modules/string: New file.
2281         * modules/memmem (Files): Remove special-purpose include file.
2282         (Depends-on): Add string.
2283         (Include): Include <string.h>, not the removed file.
2284         * modules/mempcpy: Likewise.
2285         * modules/memrchr: Likewise.
2286         * modules/stpcpy: Likewise.
2287         * modules/stpncpy: Likewise.
2288         * modules/strcase: Likewise.
2289         * modules/strchrnul: Likewise.
2290         * modules/strdup: Likewise.
2291         * modules/strndup: Likewise.
2292         * modules/strnlen: Likewise.
2293         * modules/strpbrk: Likewise.
2294         * modules/strsep: Likewise.
2295         * modules/strstr: Likewise.
2296         * modules/strtok_r: Likewise.
2297         * tests/test-dirname.c: Don't include "strdup.h", since
2298         <string.h> now suffices.
2299         * tests/test-memmem.c: Don't include "memmem.h", since
2300         <string.h> now suffices.
2301
2302 2007-01-25  Bruno Haible  <bruno@clisp.org>
2303
2304         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
2305         *resultp is 0.
2306
2307         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
2308         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
2309         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
2310         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
2311
2312         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
2313         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
2314         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
2315         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
2316         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
2317         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
2318
2319 2007-01-24  Bruno Haible  <bruno@clisp.org>
2320
2321         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
2322         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
2323         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
2324         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
2325         gl_FUNC_FTS_CORE.
2326         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
2327         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
2328         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2329         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
2330         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
2331         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
2332         gl_FUNC_FCHOWNAT.
2333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
2334         gl_FUNC_STRFTIME.
2335         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
2336         Reported by Ralf Wildenhues.
2337
2338 2007-01-24  Bruno Haible  <bruno@clisp.org>
2339
2340         Drop AC_REQUIRE calls that are redundant with the module dependencies.
2341         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
2342         gl_GETADDRINFO.
2343         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
2344         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
2345         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
2346
2347 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
2348
2349         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
2350         Don't use 'exit'; just return from 'main'.
2351         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
2352
2353         * lib/fnmatch_.h: Readjust white space and comments to match
2354         glibc, to avoid spurious diffs.
2355
2356 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
2359         2004-12-01 change by Jakub Jelinek, since this code won't compile
2360         if !LIBC.  Problem reported by Bob Proulx.
2361
2362 2007-01-23  Bruno Haible  <bruno@clisp.org>
2363
2364         * lib/striconveh.c: Include c-strcaseeq.h.
2365         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
2366         * modules/striconveh (Depends-on): Add c-strcaseeq.
2367
2368 2007-01-23  Bruno Haible  <bruno@clisp.org>
2369
2370         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
2371
2372         * modules/c-strcaseeq: New file.
2373         * lib/c-strcaseeq.h: New file.
2374
2375         * modules/streq: New file.
2376         * lib/streq.h: New file.
2377
2378 2007-01-23  Bruno Haible  <bruno@clisp.org>
2379
2380         * modules/striconveha-tests: New file.
2381         * tests/test-striconveha.c: New file.
2382
2383         * lib/striconveha.h: Include <stdbool.h>.
2384         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
2385         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
2386         (mem_iconveha_notranslit): Renamed from mem_iconveha.
2387         (mem_iconveha): New function.
2388         (str_iconveha_notranslit): Renamed from str_iconveha.
2389         (str_iconveha): New function.
2390         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
2391         c-strcase.
2392
2393 2007-01-23  Bruno Haible  <bruno@clisp.org>
2394
2395         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
2396         encodings without forgiving before trying any encoding with handler.
2397         (str_iconveha): Try all encodings without forgiving before trying any
2398         encoding with handler.
2399
2400 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         Import the following changes from libc.
2403
2404         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
2405
2406         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
2407
2408         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
2409
2410         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
2411         normal_bracket label.
2412
2413         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
2414
2415         [BZ #361]
2416         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
2417         to normal_bracket after fetching the next character.
2418
2419 2007-01-22  Bruno Haible  <bruno@clisp.org>
2420
2421         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
2422         argument.
2423         * lib/striconveh.c (iconv_carefully_1): New function.
2424         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
2425         argument.
2426         (str_cd_iconveh): Update.
2427         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
2428         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
2429         * tests/test-striconveh.c (MAGIC): New macro.
2430         (new_offsets): New function.
2431         (main): Test call with and without offsets.
2432
2433 2007-01-22  Bruno Haible  <bruno@clisp.org>
2434
2435         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
2436         * modules/sys_select (Makefile.am): Likewise.
2437         * modules/sys_socket (Makefile.am): Likewise.
2438         * modules/sys_time (Makefile.am): Likewise.
2439
2440 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2441
2442         * modules/gettimeofday (License): Change from GPL to LGPL, since
2443         gettimeofday is a library function.
2444
2445 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2446
2447         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
2448
2449 2007-01-21  Bruno Haible  <bruno@clisp.org>
2450
2451         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
2452
2453 2007-01-21  Bruno Haible  <bruno@clisp.org>
2454
2455         * modules/striconveha: New file.
2456         * lib/striconveha.h: New file.
2457         * lib/striconveha.c: New file.
2458         * MODULES.html.sh (Internationalization functions): Add striconveha.
2459         * lib/striconv.c (str_iconv): Optimize the case of an empty input
2460         string.
2461         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
2462
2463 2007-01-21  Bruno Haible  <bruno@clisp.org>
2464
2465         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
2466         * lib/striconveh.c (str_iconveh): Likewise.
2467
2468 2007-01-21  Bruno Haible  <bruno@clisp.org>
2469
2470         * lib/striconveh.h (mem_iconveh): New declaration.
2471         * lib/striconveh.c (mem_iconveh): New function.
2472         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
2473
2474 2007-01-21  Bruno Haible  <bruno@clisp.org>
2475
2476         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
2477
2478         * lib/striconveh.h (mem_cd_iconveh): Change specification.
2479         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
2480         original result buffer.
2481         (str_cd_iconveh): Update.
2482         * tests/test-striconveh.c (main): Update.
2483
2484         * lib/striconv.h (mem_cd_iconv): Change specification.
2485         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
2486         result buffer.
2487         (str_cd_iconv): Update.
2488         * tests/test-striconv.c (main): Update.
2489
2490 2007-01-21  Bruno Haible  <bruno@clisp.org>
2491
2492         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
2493
2494 2007-01-20  Jim Meyering  <jim@meyering.net>
2495
2496         * lib/userspec.c (parse_with_separator): If a user or group string
2497         starts with "+", skip the corresponding name-to-ID look-up, since
2498         such a look-up must fail: user and group names may not include "+".
2499
2500 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2501
2502         * lib/poll.c: Include sys/time.h and time.h unconditionally,
2503         since we now assume the sys_time module.
2504         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
2505         check for sys/time.h; no longer needed.
2506         * modules/poll (Depends-on): Depend on sys_time.
2507
2508 2007-01-18  Bruno Haible  <bruno@clisp.org>
2509
2510         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
2511         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2512
2513         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
2514         gettimeofday.
2515
2516         * tests/test-gettimeofday.c: Include <time.h>.
2517         (dummy): Remove variable.
2518
2519         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
2520         gl_HEADER_SYS_TIME_H.
2521         (gl_HEADER_SYS_TIME_H): New macro.
2522
2523         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
2524         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2526         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
2527         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
2529         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
2530         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2531         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
2532         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
2533         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2534
2535         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
2536         last change; it caused a compilation error when cross-compiling to
2537         Cygwin.
2538
2539 2007-01-18  Jim Meyering  <jim@meyering.net>
2540
2541         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
2542         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
2543         than the race-prone "test -d sys || mkdir sys".
2544         (configure.ac): Use AC_PROG_MKDIR_P.
2545         * modules/sys_select: Likewise.
2546         * modules/sys_socket: Likewise.
2547         * modules/sys_time: Likewise.
2548
2549 2007-01-18  Eric Blake  <ebb9@byu.net>
2550
2551         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
2552         replace gettimeofday.
2553         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
2554         name, to avoid infinite recursion.
2555
2556 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
2557
2558         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
2559         module sys_time.
2560         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
2561         assume timespec.h defines struct timeval.
2562         * lib/settime.c: Likewise.
2563         * lib/utimens.c: Likewise.
2564         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
2565         since we now assume the gettimeofday module.
2566         * lib/tempname.c (__gen_tempname): Likewise.
2567         * lib/gettimeofday.h: Remove.
2568         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
2569         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
2570         Include <time.h>, for 'time()'.
2571         (localtime_buffer_addr): Also use this workaround if
2572         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
2573         to simplify the uses.  All uses changed.
2574         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
2575         that #undef is inside {}, and 'const' follows type name consistently.
2576         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
2577         (gettimeofday): Do not use the maximum possible value for
2578         tv->tv_usec, since that might break usages other than ls.c.
2579         Instead, we'll leave ls.c alone.  This undoes today's patch
2580         by Bruno.  Add a compile-time warning for 1s-clock resolution;
2581         we've never observed the problem but might as well keep the
2582         canary.
2583         * lib/nanosleep.c: Include timespec.h first, for interface check.
2584         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
2585         now assume the sys_time module.
2586         * lib/tempname.c: Likewise.
2587         * lib/timespec.h: Likewise.
2588         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
2589         needed.
2590         * lib/strftime.c: Likewise.
2591         * lib/timespec.h: Likewise.
2592         * lib/posixtm.c: Include posixtm.h first, for interface check.
2593         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
2594         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
2595         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
2596         * lib/sys_time_.h: New file.
2597         * lib/timespec.h (struct timespec): Use long int, not long.
2598         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2599         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
2600         Remove obsolescent call to AC_HEADER_TIME.
2601         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2603         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2604         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
2605         Likewise.
2606         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2607         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
2608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
2609         into the sys_time module.  Check for gettimeofday just once.
2610         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
2611         for gettimeofday signature to just check the signature.  Merely
2612         compile it, since linking doesn't test signature.  Improve test for
2613         whether gettimeofday.o is actually needed.
2614         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
2615         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
2616         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
2617         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2618         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
2619         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
2620         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
2621         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
2622         than worrying about sys/time.h.
2623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2624         Don't bother worrying about TIME_WITH_SYS_TIME.
2625         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2626         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
2627         * m4/sys_time_h.m4: New file.
2628         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
2629         Don't include sys/time.h.  Return from main rather than exiting.
2630         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
2631         all uses changed.
2632         * modules/gethrxtime (Depends-on): Add sys_time.
2633         * modules/gettime (Depends-on): Likewise.
2634         * modules/gettimeofday (Depends-on): Likewise.
2635         * modules/nanosleep (Depends-on): Likewise.
2636         * modules/settime (Depends-on): Likewise.
2637         * modules/tempname (Depends-on): Likewise.
2638         * modules/utimens (Depends-on): Likewise.
2639         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
2640         (Include:) Change back to <sys/time.h>.
2641         (Maintainer:) Add self.
2642         * modules/sys_time: New file.
2643         * modules/tempname (Depends-on): Add gettimeofday.
2644         * tests/test-gettimeofday.c: Include <sys/time.h>
2645         rather than gettimeofday.h.
2646
2647 2007-01-17  Bruno Haible  <bruno@clisp.org>
2648
2649         * gnulib-tool (func_get_license): Revert last patch. Instead, let
2650         the license default to GPL.
2651         (func_create_testdir): Don't complain if a module is LGPL and its
2652         tests module depends on GPLed modules.
2653
2654 2007-01-17  Bruno Haible  <bruno@clisp.org>
2655
2656         * lib/gettimeofday.c (gettimeofday): Add code for the case
2657         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
2658         maximum possible value for tv->tv_usec, rather than the minimum one.
2659
2660 2005-10-08  Martin Lambers  <marlam@marlam.de>
2661 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2662 2007-01-16  Bruno Haible  <bruno@clisp.org>
2663
2664         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
2665         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
2666         gl_FUNC_GETTIMEOFDAY.
2667         (Include): Add gettimeofday.h.
2668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
2669         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
2670         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
2671         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
2672         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
2673         * lib/gettimeofday.h: New file.
2674         * lib/gettimeofday.c: Include <sys/timeb.h>.
2675         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
2676         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2677         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
2678         fall back on time().
2679
2680         * tests/test-gettimeofday.c: New file.
2681         * modules/gettimeofday-tests: New file.
2682
2683 2007-01-16  Eric Blake  <ebb9@byu.net>
2684
2685         * modules/fnmatch (Depends-on): Depend on wchar.
2686         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
2687         * m4/fnmatch.m4: Likewise.
2688         * modules/mbchar (Makefile.am): Assume <wchar.h>.
2689         * m4/mbchar.m4: Likewise.
2690         * modules/mbswidth (Depends-on): Depend on wchar.
2691         * lib/mbswidth.c: Assume <wchar.h>.
2692         * m4/mbswidth.m4: Likewise.
2693         * modules/quotearg (Depends-on): Depend on wchar.
2694         * lib/quotearg.c: Assume <wchar.h>.
2695         * m4/quotearg.m4: Likewise.
2696         * modules/regex (Depends-on): Depend on wchar.
2697         * lib/regex_internal.h: Assume <wchar.h>.
2698         * m4/regex.m4: Likewise.
2699         * modules/stdint (Depends-on): Depend on wchar.
2700         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
2701         * m4/stdint.m4: Likewise.
2702         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
2703         * modules/strftime (Depends-on): Depend on wchar.
2704         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
2705         * modules/strtol (Depends-on): Depend on wchar.
2706         * lib/strtol.c: Assume <wchar.h>.
2707         * modules/wcwidth (Depends-on): Depend on wchar.
2708         * lib/wcwidth.h: Assume <wchar.h>.
2709         * m4/wcwidth.m4: Likewise.
2710
2711 2007-01-16  Bruno Haible  <bruno@clisp.org>
2712
2713         * modules/csharpexec-script: New, created from...
2714         * modules/csharpexec: ... this.
2715
2716 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
2717
2718         * modules/javaexec-script: New, created from...
2719         * modules/javaexec: ... this.
2720
2721 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2722
2723         * modules/poll (Dependencies): Add sys_select.
2724
2725 2007-01-15  Jim Meyering  <jim@meyering.net>
2726
2727         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
2728         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
2729         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
2730         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
2731
2732 2007-01-15  Bruno Haible  <bruno@clisp.org>
2733
2734         * modules/striconveh: New file.
2735         * lib/striconveh.h: New file.
2736         * lib/striconveh.c: New file.
2737         * MODULES.html.sh (Internationalization functions): Add striconveh.
2738
2739         * modules/striconveh-tests: New file.
2740         * tests/test-striconveh.c: New file.
2741
2742 2007-01-15  Bruno Haible  <bruno@clisp.org>
2743
2744         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
2745         not from GNU libiconv or GNU libc.
2746
2747 2007-01-15  Bruno Haible  <bruno@clisp.org>
2748
2749         * doc/gnulib-intro.texi (Copyright): Explain the different license
2750         terms for module descriptions, autoconf macros, tests, documentation.
2751
2752 2007-01-14  Bruno Haible  <bruno@clisp.org>
2753
2754         * modules/striconv-tests: New file.
2755         * tests/test-striconv.c: New file.
2756
2757 2007-01-14  Bruno Haible  <bruno@clisp.org>
2758
2759         * modules/iconv-tests: New file.
2760         * tests/test-iconv.c: New file.
2761
2762 2007-01-14  Bruno Haible  <bruno@clisp.org>
2763
2764         * gnulib-tool (func_get_license): For test modules, use the license of
2765         the main module.
2766
2767 2007-01-14  Bruno Haible  <bruno@clisp.org>
2768
2769         * modules/iconv (Include): Clarify that <iconv.h> can only be included
2770         if iconv is found to exist.
2771
2772 2007-01-14  Bruno Haible  <bruno@clisp.org>
2773
2774         * modules/c-ctype-tests: New file.
2775         * tests/test-c-ctype.c: New file.
2776
2777 2007-01-14  Bruno Haible  <bruno@clisp.org>
2778
2779         * modules/binary-io-tests: New file.
2780         * tests/test-binary-io.sh: New file.
2781         * tests/test-binary-io.c: New file.
2782
2783 2007-01-14  Bruno Haible  <bruno@clisp.org>
2784
2785         * modules/array-oset-tests: New file.
2786         * tests/test-array_oset.c: New file.
2787
2788 2007-01-14  Bruno Haible  <bruno@clisp.org>
2789
2790         * modules/array-list-tests: New file.
2791         * tests/test-array_list.c: New file.
2792
2793 2007-01-14  Bruno Haible  <bruno@clisp.org>
2794
2795         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
2796         and make.
2797         Reported by Simon Josefsson in
2798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
2799
2800 2007-01-14  Bruno Haible  <bruno@clisp.org>
2801
2802         * modules/allocsa-tests: New file.
2803         * tests/test-allocsa.c: New file.
2804
2805 2007-01-14  Bruno Haible  <bruno@clisp.org>
2806
2807         * modules/fchdir (Depends-on): Add absolute-header.
2808         * modules/unistd (Depends-on): Likewise.
2809
2810 2006-12-30  Bruno Haible  <bruno@clisp.org>
2811
2812         * modules/fchdir: New file.
2813         * modules/unistd (Files): Add lib/unistd_.h.
2814         (Makefile.am): Generate unistd.h from unistd_.h.
2815         * lib/fchdir.c: New file.
2816         * lib/dirent_.h: New file.
2817         * lib/unistd_.h: New file.
2818         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
2819         * m4/fchdir.m4: New file.
2820         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
2821         (gl_HEADER_UNISTD): Invoke it.
2822         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
2823         function.
2824         * lib/backupfile.c (opendir, closedir): Undefine.
2825         * lib/chown.c (open, close): Undefine.
2826         * lib/clean-temp.c (open, close): Undefine.
2827         * lib/copy-file.c (open, close): Undefine.
2828         * lib/execute.c (open, close): Undefine.
2829         * lib/fsusage.c (open, close): Undefine.
2830         * lib/gc-gnulib.c (open, close): Undefine.
2831         * lib/getcwd.c (opendir, closedir): Undefine.
2832         * lib/glob.c (opendir, closedir): Undefine.
2833         * lib/javacomp.c (open, close): Undefine.
2834         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
2835         * lib/openat-proc.c (open, close): Undefine.
2836         * lib/pagealign_alloc.c (open, close): Undefine.
2837         * lib/pipe.c (open, close): Undefine.
2838         * lib/progreloc.c (open, close): Undefine.
2839         * lib/savedir.c (opendir, closedir): Undefine.
2840         * lib/utime.c (open, close): Undefine.
2841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
2842
2843 2007-01-10  Bruno Haible  <bruno@clisp.org>
2844
2845         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
2846
2847 2007-01-12  Eric Blake  <ebb9@byu.net>
2848
2849         Provide a robust <wchar.h>.  Further simplifications are now
2850         possible in other modules, but not included here.
2851         * modules/wchar: New module.
2852         * m4/wchar.m4: New file.
2853         * lib/wchar_.h: Likewise.
2854         * modules/mbchar (Depends-on): Depend on wchar, as the first use
2855         of the new module.
2856         * MODULES.html.sh (Extended multibyte and wide character utilities):
2857         New section.
2858
2859 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2860
2861         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
2862         to a reasonable default for memory allocation.
2863         (xreadlink): Don't allocate a huge buffer, to work around a buggy
2864         file system that reports garbage st_size values for symlinks.
2865         Problem reported by Liyang Hu.
2866
2867 2007-01-11  Simon Josefsson  <simon@josefsson.org>
2868
2869         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
2870         Emacs .#* auto-save files).
2871
2872 2007-01-11  Bruno Haible  <bruno@clisp.org>
2873
2874         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
2875         directory.
2876
2877 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2878
2879         Use @...@ consistently in lib/wctype_.h.
2880         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
2881         on it being set to 1 or 0.
2882         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
2883         go back to AC_SUBSTing it.
2884         * modules/wctype (Makefile.am): Undo previous change.
2885
2886 2007-01-10  Eric Blake  <ebb9@byu.net>
2887
2888         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
2889         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
2890         * modules/wctype (Makefile.am): Likewise.
2891         Reported by Chris McGuire.
2892
2893 2007-01-10  Jim Meyering  <jim@meyering.net>
2894
2895         fts.c: a small readability/maintainability improvement
2896         * lib/fts.c (fts_read): Make this code slightly more readable and
2897         maintainable by hoisting the "sp->fts_cur = p" assignments to
2898         immediately follow the statements that set P.  Derived from
2899         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
2900
2901 2007-01-10  Eric Blake  <ebb9@byu.net>
2902
2903         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
2904         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
2905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2906         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2907         Reported by Chris McGuire.
2908
2909 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2910
2911         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
2912         in sed script.
2913
2914 2007-01-09  Bruno Haible  <bruno@clisp.org>
2915
2916         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
2917         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
2918         variables.
2919         (func_module): Use them.
2920
2921 2007-01-09  Bruno Haible  <bruno@clisp.org>
2922
2923         * modules/unistr/base: New file.
2924         * lib/unistr.h: New file.
2925
2926         * modules/unistr/u8-to-u16: New file.
2927         * lib/unistr/u8-to-u16.c: New file.
2928
2929         * modules/unistr/u8-to-u32: New file.
2930         * lib/unistr/u8-to-u32.c: New file.
2931
2932         * modules/unistr/u16-to-u8: New file.
2933         * lib/unistr/u16-to-u8.c: New file.
2934
2935         * modules/unistr/u16-to-u32: New file.
2936         * lib/unistr/u16-to-u32.c: New file.
2937
2938         * modules/unistr/u32-to-u8: New file.
2939         * lib/unistr/u32-to-u8.c: New file.
2940
2941         * modules/unistr/u32-to-u16: New file.
2942         * lib/unistr/u32-to-u16.c: New file.
2943
2944         * modules/unistr/u8-check: New file.
2945         * modules/unistr/u16-check: New file.
2946         * modules/unistr/u32-check: New file.
2947         * lib/unistr/u8-check.c: New file.
2948         * lib/unistr/u16-check.c: New file.
2949         * lib/unistr/u32-check.c: New file.
2950
2951         * modules/unistr/u8-chr: New file.
2952         * modules/unistr/u16-chr: New file.
2953         * modules/unistr/u32-chr: New file.
2954         * lib/unistr/u8-chr.c: New file.
2955         * lib/unistr/u16-chr.c: New file.
2956         * lib/unistr/u32-chr.c: New file.
2957
2958         * modules/unistr/u8-cmp: New file.
2959         * modules/unistr/u16-cmp: New file.
2960         * modules/unistr/u32-cmp: New file.
2961         * lib/unistr/u8-cmp.c: New file.
2962         * lib/unistr/u16-cmp.c: New file.
2963         * lib/unistr/u32-cmp.c: New file.
2964
2965         * modules/unistr/u8-cpy: New file.
2966         * modules/unistr/u16-cpy: New file.
2967         * modules/unistr/u32-cpy: New file.
2968         * lib/unistr/u8-cpy.c: New file.
2969         * lib/unistr/u16-cpy.c: New file.
2970         * lib/unistr/u32-cpy.c: New file.
2971         * lib/unistr/u-cpy.h: New file.
2972
2973         * modules/unistr/u8-cpy-alloc: New file.
2974         * modules/unistr/u16-cpy-alloc: New file.
2975         * modules/unistr/u32-cpy-alloc: New file.
2976         * lib/unistr/u8-cpy-alloc.c: New file.
2977         * lib/unistr/u16-cpy-alloc.c: New file.
2978         * lib/unistr/u32-cpy-alloc.c: New file.
2979         * lib/unistr/u-cpy-alloc.h: New file.
2980
2981         * modules/unistr/u8-endswith: New file.
2982         * modules/unistr/u16-endswith: New file.
2983         * modules/unistr/u32-endswith: New file.
2984         * lib/unistr/u8-endswith.c: New file.
2985         * lib/unistr/u16-endswith.c: New file.
2986         * lib/unistr/u32-endswith.c: New file.
2987         * lib/unistr/u-endswith.h: New file.
2988
2989         * modules/unistr/u8-mblen: New file.
2990         * modules/unistr/u16-mblen: New file.
2991         * modules/unistr/u32-mblen: New file.
2992         * lib/unistr/u8-mblen.c: New file.
2993         * lib/unistr/u16-mblen.c: New file.
2994         * lib/unistr/u32-mblen.c: New file.
2995
2996         * modules/unistr/u8-mbtouc: New file.
2997         * modules/unistr/u16-mbtouc: New file.
2998         * modules/unistr/u32-mbtouc: New file.
2999         * lib/unistr/u8-mbtouc.c: New file.
3000         * lib/unistr/u16-mbtouc.c: New file.
3001         * lib/unistr/u32-mbtouc.c: New file.
3002
3003         * modules/unistr/u8-mbtouc-safe: New file.
3004         * modules/unistr/u16-mbtouc-safe: New file.
3005         * modules/unistr/u32-mbtouc-safe: New file.
3006         * lib/unistr/u8-mbtouc-safe.c: New file.
3007         * lib/unistr/u16-mbtouc-safe.c: New file.
3008         * lib/unistr/u32-mbtouc-safe.c: New file.
3009
3010         * modules/unistr/u8-move: New file.
3011         * modules/unistr/u16-move: New file.
3012         * modules/unistr/u32-move: New file.
3013         * lib/unistr/u8-move.c: New file.
3014         * lib/unistr/u16-move.c: New file.
3015         * lib/unistr/u32-move.c: New file.
3016         * lib/unistr/u-move.h: New file.
3017
3018         * modules/unistr/u8-next: New file.
3019         * modules/unistr/u16-next: New file.
3020         * modules/unistr/u32-next: New file.
3021         * lib/unistr/u8-next.c: New file.
3022         * lib/unistr/u16-next.c: New file.
3023         * lib/unistr/u32-next.c: New file.
3024
3025         * modules/unistr/u8-prev: New file.
3026         * modules/unistr/u16-prev: New file.
3027         * modules/unistr/u32-prev: New file.
3028         * lib/unistr/u8-prev.c: New file.
3029         * lib/unistr/u16-prev.c: New file.
3030         * lib/unistr/u32-prev.c: New file.
3031
3032         * modules/unistr/u8-set: New file.
3033         * modules/unistr/u16-set: New file.
3034         * modules/unistr/u32-set: New file.
3035         * lib/unistr/u8-set.c: New file.
3036         * lib/unistr/u16-set.c: New file.
3037         * lib/unistr/u32-set.c: New file.
3038         * lib/unistr/u-set.h: New file.
3039
3040         * modules/unistr/u8-startswith: New file.
3041         * modules/unistr/u16-startswith: New file.
3042         * modules/unistr/u32-startswith: New file.
3043         * lib/unistr/u8-startswith.c: New file.
3044         * lib/unistr/u16-startswith.c: New file.
3045         * lib/unistr/u32-startswith.c: New file.
3046         * lib/unistr/u-startswith.h: New file.
3047
3048         * modules/unistr/u8-stpcpy: New file.
3049         * modules/unistr/u16-stpcpy: New file.
3050         * modules/unistr/u32-stpcpy: New file.
3051         * lib/unistr/u8-stpcpy.c: New file.
3052         * lib/unistr/u16-stpcpy.c: New file.
3053         * lib/unistr/u32-stpcpy.c: New file.
3054         * lib/unistr/u-stpcpy.h: New file.
3055
3056         * modules/unistr/u8-stpncpy: New file.
3057         * modules/unistr/u16-stpncpy: New file.
3058         * modules/unistr/u32-stpncpy: New file.
3059         * lib/unistr/u8-stpncpy.c: New file.
3060         * lib/unistr/u16-stpncpy.c: New file.
3061         * lib/unistr/u32-stpncpy.c: New file.
3062         * lib/unistr/u-stpncpy.h: New file.
3063
3064         * modules/unistr/u8-strcat: New file.
3065         * modules/unistr/u16-strcat: New file.
3066         * modules/unistr/u32-strcat: New file.
3067         * lib/unistr/u8-strcat.c: New file.
3068         * lib/unistr/u16-strcat.c: New file.
3069         * lib/unistr/u32-strcat.c: New file.
3070         * lib/unistr/u-strcat.h: New file.
3071
3072         * modules/unistr/u8-strchr: New file.
3073         * modules/unistr/u16-strchr: New file.
3074         * modules/unistr/u32-strchr: New file.
3075         * lib/unistr/u8-strchr.c: New file.
3076         * lib/unistr/u16-strchr.c: New file.
3077         * lib/unistr/u32-strchr.c: New file.
3078
3079         * modules/unistr/u8-strcmp: New file.
3080         * modules/unistr/u16-strcmp: New file.
3081         * modules/unistr/u32-strcmp: New file.
3082         * lib/unistr/u8-strcmp.c: New file.
3083         * lib/unistr/u16-strcmp.c: New file.
3084         * lib/unistr/u32-strcmp.c: New file.
3085
3086         * modules/unistr/u8-strcpy: New file.
3087         * modules/unistr/u16-strcpy: New file.
3088         * modules/unistr/u32-strcpy: New file.
3089         * lib/unistr/u8-strcpy.c: New file.
3090         * lib/unistr/u16-strcpy.c: New file.
3091         * lib/unistr/u32-strcpy.c: New file.
3092         * lib/unistr/u-strcpy.h: New file.
3093
3094         * modules/unistr/u8-strcspn: New file.
3095         * modules/unistr/u16-strcspn: New file.
3096         * modules/unistr/u32-strcspn: New file.
3097         * lib/unistr/u8-strcspn.c: New file.
3098         * lib/unistr/u16-strcspn.c: New file.
3099         * lib/unistr/u32-strcspn.c: New file.
3100         * lib/unistr/u-strcspn.h: New file.
3101
3102         * modules/unistr/u8-strdup: New file.
3103         * modules/unistr/u16-strdup: New file.
3104         * modules/unistr/u32-strdup: New file.
3105         * lib/unistr/u8-strdup.c: New file.
3106         * lib/unistr/u16-strdup.c: New file.
3107         * lib/unistr/u32-strdup.c: New file.
3108         * lib/unistr/u-strdup.h: New file.
3109
3110         * modules/unistr/u8-strlen: New file.
3111         * modules/unistr/u16-strlen: New file.
3112         * modules/unistr/u32-strlen: New file.
3113         * lib/unistr/u8-strlen.c: New file.
3114         * lib/unistr/u16-strlen.c: New file.
3115         * lib/unistr/u32-strlen.c: New file.
3116         * lib/unistr/u-strlen.h: New file.
3117
3118         * modules/unistr/u8-strmblen: New file.
3119         * modules/unistr/u16-strmblen: New file.
3120         * modules/unistr/u32-strmblen: New file.
3121         * lib/unistr/u8-strmblen.c: New file.
3122         * lib/unistr/u16-strmblen.c: New file.
3123         * lib/unistr/u32-strmblen.c: New file.
3124
3125         * modules/unistr/u8-strmbtouc: New file.
3126         * modules/unistr/u16-strmbtouc: New file.
3127         * modules/unistr/u32-strmbtouc: New file.
3128         * lib/unistr/u8-strmbtouc.c: New file.
3129         * lib/unistr/u16-strmbtouc.c: New file.
3130         * lib/unistr/u32-strmbtouc.c: New file.
3131
3132         * modules/unistr/u8-strncat: New file.
3133         * modules/unistr/u16-strncat: New file.
3134         * modules/unistr/u32-strncat: New file.
3135         * lib/unistr/u8-strncat.c: New file.
3136         * lib/unistr/u16-strncat.c: New file.
3137         * lib/unistr/u32-strncat.c: New file.
3138         * lib/unistr/u-strncat.h: New file.
3139
3140         * modules/unistr/u8-strncmp: New file.
3141         * modules/unistr/u16-strncmp: New file.
3142         * modules/unistr/u32-strncmp: New file.
3143         * lib/unistr/u8-strncmp.c: New file.
3144         * lib/unistr/u16-strncmp.c: New file.
3145         * lib/unistr/u32-strncmp.c: New file.
3146
3147         * modules/unistr/u8-strncpy: New file.
3148         * modules/unistr/u16-strncpy: New file.
3149         * modules/unistr/u32-strncpy: New file.
3150         * lib/unistr/u8-strncpy.c: New file.
3151         * lib/unistr/u16-strncpy.c: New file.
3152         * lib/unistr/u32-strncpy.c: New file.
3153         * lib/unistr/u-strncpy.h: New file.
3154
3155         * modules/unistr/u8-strnlen: New file.
3156         * modules/unistr/u16-strnlen: New file.
3157         * modules/unistr/u32-strnlen: New file.
3158         * lib/unistr/u8-strnlen.c: New file.
3159         * lib/unistr/u16-strnlen.c: New file.
3160         * lib/unistr/u32-strnlen.c: New file.
3161         * lib/unistr/u-strnlen.h: New file.
3162
3163         * modules/unistr/u8-strpbrk: New file.
3164         * modules/unistr/u16-strpbrk: New file.
3165         * modules/unistr/u32-strpbrk: New file.
3166         * lib/unistr/u8-strpbrk.c: New file.
3167         * lib/unistr/u16-strpbrk.c: New file.
3168         * lib/unistr/u32-strpbrk.c: New file.
3169         * lib/unistr/u-strpbrk.h: New file.
3170
3171         * modules/unistr/u8-strrchr: New file.
3172         * modules/unistr/u16-strrchr: New file.
3173         * modules/unistr/u32-strrchr: New file.
3174         * lib/unistr/u8-strrchr.c: New file.
3175         * lib/unistr/u16-strrchr.c: New file.
3176         * lib/unistr/u32-strrchr.c: New file.
3177
3178         * modules/unistr/u8-strspn: New file.
3179         * modules/unistr/u16-strspn: New file.
3180         * modules/unistr/u32-strspn: New file.
3181         * lib/unistr/u8-strspn.c: New file.
3182         * lib/unistr/u16-strspn.c: New file.
3183         * lib/unistr/u32-strspn.c: New file.
3184         * lib/unistr/u-strspn.h: New file.
3185
3186         * modules/unistr/u8-strstr: New file.
3187         * modules/unistr/u16-strstr: New file.
3188         * modules/unistr/u32-strstr: New file.
3189         * lib/unistr/u8-strstr.c: New file.
3190         * lib/unistr/u16-strstr.c: New file.
3191         * lib/unistr/u32-strstr.c: New file.
3192         * lib/unistr/u-strstr.h: New file.
3193
3194         * modules/unistr/u8-strtok: New file.
3195         * modules/unistr/u16-strtok: New file.
3196         * modules/unistr/u32-strtok: New file.
3197         * lib/unistr/u8-strtok.c: New file.
3198         * lib/unistr/u16-strtok.c: New file.
3199         * lib/unistr/u32-strtok.c: New file.
3200         * lib/unistr/u-strtok.h: New file.
3201
3202         * modules/unistr/u8-uctomb: New file.
3203         * modules/unistr/u16-uctomb: New file.
3204         * modules/unistr/u32-uctomb: New file.
3205         * lib/unistr/u8-uctomb.c: New file.
3206         * lib/unistr/u16-uctomb.c: New file.
3207         * lib/unistr/u32-uctomb.c: New file.
3208
3209         * MODULES.html.sh (Unicode string functions): Add the new modules.
3210
3211 2007-01-08  Bruno Haible  <bruno@clisp.org>
3212
3213         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
3214         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
3215         subdirectories.
3216
3217 2007-01-08  Karl Berry  <karl@gnu.org>
3218
3219         * doc/error.texi: mention that main() fns must set program_name
3220         when progname is used.
3221
3222 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
3223
3224         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
3225         WCTYPE_H is empty, for the benefit of builds from non-distclean
3226         directories.  Problem reported by Eric Blake in
3227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
3228
3229 2007-01-08  Bruno Haible  <bruno@clisp.org>
3230
3231         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
3232         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
3233         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
3234         PROVIDE_CANONICALIZE_FILENAME_MODE.
3235         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
3236
3237 2007-01-08  Bruno Haible  <bruno@clisp.org>
3238
3239         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
3240         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
3241         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
3242         * lib/fts.c: Likewise.
3243         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
3244
3245 2006-12-25  Bruno Haible  <bruno@clisp.org>
3246
3247         * modules/utf8-ucs4-safe: New file.
3248         * lib/utf8-ucs4-safe.h: New file.
3249         * lib/unistr/utf8-ucs4-safe.c: New file.
3250
3251         * modules/utf16-ucs4-safe: New file.
3252         * lib/utf16-ucs4-safe.h: New file.
3253         * lib/unistr/utf16-ucs4-safe.c: New file.
3254
3255         * MODULES.html.sh (Unicode string functions): Add the new modules.
3256
3257 2007-01-08  Bruno Haible  <bruno@clisp.org>
3258
3259         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
3260         (Depends-on): Add unitypes.
3261         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3262         (u8_mbtouc_aux): Move out to separate file.
3263         (u8_mbtouc): Use ucs4_t, uint8_t types.
3264         * lib/unistr/utf8-ucs4.c: New file.
3265
3266         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
3267         (Depends-on): Add unitypes.
3268         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3269         (u16_mbtouc_aux): Move out to separate file.
3270         (u16_mbtouc): Use ucs4_t, uint16_t types.
3271         * lib/unistr/utf16-ucs4.c: New file.
3272
3273         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
3274         (Depends-on): Add unitypes.
3275         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
3276         (u8_uctomb_aux): Move out to separate file.
3277         (u8_uctomb): Use ucs4_t, uint8_t types.
3278         * lib/unistr/ucs4-utf8.c: New file.
3279
3280         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
3281         (Depends-on): Add unitypes.
3282         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
3283         (u16_uctomb_aux): Move out to separate file.
3284         (u16_uctomb): Use ucs4_t, uint16_t types.
3285         * lib/unistr/ucs4-utf16.c: New file.
3286
3287 2006-12-25  Bruno Haible  <bruno@clisp.org>
3288
3289         * modules/unitypes: New file.
3290         * lib/unitypes.h: New file.
3291         * MODULES.html.sh (func_all_modules): New section "Unicode string
3292         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
3293         this section. Add unitypes.
3294
3295 2007-01-08  Bruno Haible  <bruno@clisp.org>
3296
3297         Avoid variable names that conflict with those from libtool.
3298         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
3299         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
3300         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
3301         library_names_spec to acl_library_names_spec, hardcode_* to
3302         acl_hardcode_*.
3303         Reported by Ralf Wildenhues.
3304
3305 2007-01-08  Bruno Haible  <bruno@clisp.org>
3306
3307         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
3308         definition.
3309         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
3310         definition.
3311         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
3312         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
3313         definition.
3314         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
3315         definition.
3316         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
3317         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
3318         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
3319         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
3320         definition.
3321         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
3322         definition.
3323         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
3324         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
3325         GC_USE_<algorithm>.
3326         * lib/gc-libgcrypt.c: Likewise.
3327         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
3328         * modules/gc-arctwo (configure.ac): Likewise.
3329         * modules/gc-des (configure.ac): Likewise.
3330         * modules/gc-hmac-md5 (configure.ac): Likewise.
3331         * modules/gc-hmac-sha1 (configure.ac): Likewise.
3332         * modules/gc-md2 (configure.ac): Likewise.
3333         * modules/gc-md4 (configure.ac): Likewise.
3334         * modules/gc-md5 (configure.ac): Likewise.
3335         * modules/gc-random (configure.ac): Likewise.
3336         * modules/gc-rijndael (configure.ac): Likewise.
3337         * modules/gc-sha1 (configure.ac): Likewise.
3338
3339 2007-01-08  Bruno Haible  <bruno@clisp.org>
3340
3341         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
3342         macro definition.
3343         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
3344         definition.
3345         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
3346         definition.
3347         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
3348         * modules/fcntl-safer (configure.ac): Likewise.
3349         * modules/fopen-safer (configure.ac): Likewise.
3350         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
3351         GNULIB_FWRITEERROR macro definition.
3352
3353 2007-01-08  Bruno Haible  <bruno@clisp.org>
3354
3355         * m4/gnulib-common.m4: New file.
3356         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
3357         (func_get_filelist): Add m4/gnulib-common.m4.
3358
3359 2007-01-08  Bruno Haible  <bruno@clisp.org>
3360
3361         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
3362         command.
3363
3364 2007-01-08  Jim Meyering  <jim@meyering.net>
3365
3366         Use a more robust test for a "can't happen" condition.
3367         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
3368         narrowed the st_size value.  Presuming the "can't happen" condition
3369         is true, that narrowing could conceivably convert an invalid st_size
3370         value into a valid one.  Instead, use a change based on Matthew
3371         Woehlke's original patch.
3372
3373         Slight readability improvement: use an assert-like macro
3374         in place of literal "abort ()" uses.
3375         * lib/fts.c (fts_assert): Define.
3376         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
3377         Use this macro instead of a bare 'abort'.
3378
3379 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3380
3381         Don't worry about using IRIX 5.3's wctype.h broken definitions;
3382         simply work around them.
3383         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
3384         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
3385         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
3386         declaring.
3387         Don't bother to define as macros, since the standard doesn't require it.
3388         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
3389         longer worry about IRIX 5.3.
3390         (HAVE_WCTYPE_CTMP_BUG): Remove.
3391
3392 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3393
3394         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
3395         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
3396         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3397         Problems reported by Georg Schwarz for IRIX 5.3.
3398
3399         * gnulib-tool (autoconf_minversion): Take the maximum version number
3400         found, not the minimum.  Problem reported by James Youngman.
3401
3402 2007-01-03  Karl Berry  <karl@gnu.org>
3403
3404         * doc/error.texi: new file, explaining interaction with progname.
3405         * doc/gnulib.texi: include it.  Update copyright.
3406
3407 2007-01-03  Simon Josefsson  <simon@josefsson.org>
3408
3409         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
3410         AC_CANONICAL_HOST, to improve autobuild outputs.
3411
3412 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
3413             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3414
3415         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
3416         sockets, server sockets, and other file descriptors.  Count errors
3417         to compute the return value.  Reorder the code a bit to be easier
3418         to follow.  Don't set event bits that were not requested (except
3419         POLLERR and POLLHUP).
3420
3421 2007-01-01  Bruno Haible  <bruno@clisp.org>
3422
3423         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
3424
3425 2007-01-03  Jim Meyering  <jim@meyering.net>
3426
3427         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
3428
3429 2007-01-02  Bruno Haible  <bruno@clisp.org>
3430
3431         * modules/settime (Include): Require timespec.h.
3432         * modules/nanosleep (Include): Likewise.
3433
3434 2007-01-01  Bruno Haible  <bruno@clisp.org>
3435
3436         * gnulib-tool (func_emit_copyright_notice): Bump year.
3437         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
3438
3439 2007-01-01  Bruno Haible  <bruno@clisp.org>
3440
3441         Improve support for OpenBSD.
3442         * build-aux/config.rpath (libname_spec): Export.
3443         (library_names_spec): New variable. Export.
3444         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
3445         library_names_spec from the config.rpath output. Locate shared library
3446         through the name pattern in library_names_spec.
3447
3448 2007-01-01  Eric Blake  <ebb9@byu.net>
3449
3450         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
3451
3452 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
3453
3454         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
3455         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
3456         assume the C locale, and avoid an "eval" that could cause trouble.
3457         Problem with SORT reported by Bob Proulx.
3458
3459         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
3460         Define.  Trivial patch from Henning Nielsen Lund, originally
3461         sent to bug-grep@gnu.org today.
3462
3463 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3464
3465         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
3466         struct stat.  Problem reported by Henning Nielsen Lund.
3467         * lib/acl.c: Include acl.h first, to check interface.  Don't
3468         bother to include sys/types.h and sys/stat.h again.
3469
3470 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
3471
3472         Import the following change from libc; problem reported by
3473         Sven Verdoolaege.
3474
3475         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
3476
3477         [BZ #1373]
3478         * lib/argp.h: Remove __NTH for __argp_usage inline function.
3479
3480 2006-12-28  Jim Meyering  <jim@meyering.net>
3481
3482         * build-aux/announce-gen: Do not assume that the package
3483         builds any of tar.gz, tar.bz2, and .xdelta files.
3484         Suggestion from Simon Josefsson.
3485
3486 2006-12-28  Simon Josefsson  <simon@josefsson.org>
3487
3488         * modules/announce-gen: New file.
3489
3490 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3491
3492         * lib/mbchar.h: Just include <wctype.h>; the wctype module
3493         handles its gotchas now.
3494         * lib/mbswidth.c: Likewise.
3495         * lib/wcwidth.h: Likewise.
3496         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
3497         and iswcntrl; the wctype module does this stuff now.
3498         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3500         * modules/mbchar (Depends-on): Add wctype.
3501         * modules/mbswidth (Depends-on): Likewise.
3502         * modules/wcwidth (Depends-on): Likewise.
3503
3504 2006-12-27  Eric Blake  <ebb9@byu.net>
3505
3506         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
3507         module uses more than what <wctype.h> is required to provide.
3508
3509 2006-12-26  Eric Blake  <ebb9@byu.net>
3510
3511         * gnulib-tool (sed_extract_prog): Avoid space-tab.
3512
3513 2006-12-26  Eric Blake  <ebb9@byu.net>
3514
3515         * modules/absolute-header: New module.
3516         * modules/fcntl (Depends-on): Depend on it.
3517         * modules/inttypes (Depends-on): Likewise.
3518         * modules/stdint (Depends-on): Likewise.
3519         * modules/sys_stat (Depends-on): Likewise.
3520         * modules/wctype (Depends-on): Likewise.
3521         * MODULES.html.sh (Support for building libraries and
3522         executables): Document it.
3523
3524 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3525
3526         * gnulib-tool (SED): Remove, undoing previous change.
3527         The problem was that it broke coreutils on Solaris, because
3528         "sed --posix" leaked into a makefile.
3529         (sed): New alias, if 'alias' and GNU sed.
3530
3531 2006-12-24  Jim Meyering  <jim@meyering.net>
3532
3533         Work around an fchownat bug in glibc-2.4:
3534         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
3535         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
3536         in spite of the -P option.
3537         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
3538         New macros.
3539         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
3540         * modules/openat (Files): Add lib/fchownat.c.
3541         * lib/openat.c (fchownat): Don't define here.  Move to...
3542         * lib/fchownat.c: ...this new file.
3543
3544 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3545
3546         Fix bug reported by Bruno Haible in
3547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
3548         where quotearg.c didn't compile on Mac OS X 10.2 because it
3549         lacks <wchar.h> and wint_t.
3550         * lib/wctype_.h (__wctype_wint_t): New type.
3551         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
3552         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
3553         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
3554         Arg is now of type __wctype_wint_t, not wint_t.
3555         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
3556         substitute HAVE_WINT_T.
3557         * modules/wctype (Files): Add m4/wint_t.m4.
3558         (wctype.h): Substitute HAVE_WINT_T.
3559
3560 2006-12-23  Bruno Haible  <bruno@clisp.org>
3561
3562         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
3563
3564 2006-12-23  Bruno Haible  <bruno@clisp.org>
3565
3566         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
3567         S_ISLNK.
3568         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
3569         mingw.
3570
3571 2006-12-22  Bruno Haible  <bruno@clisp.org>
3572
3573         * lib/copy-file.c: Include acl.h.
3574         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
3575         Close the file descriptors only after being done with copy_acl.
3576         * modules/copy-file (Depends-on): Add acl.
3577
3578 2006-12-22  Bruno Haible  <bruno@clisp.org>
3579
3580         * gnulib-tool (SED): New variable.
3581         Use $SED instead of sed everywhere.
3582
3583 2006-12-22  Bruno Haible  <bruno@clisp.org>
3584
3585         * modules/no-c++: New file.
3586         * m4/no-c++.m4: New file.
3587         * MODULES.html.sh (Support for building libraries and executables):
3588         Add no-c++.
3589
3590 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3591
3592         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3593         Include <limits.h>, and use its INT_MAX to rewrite the
3594         j loop so that it does not overflow 'int'.  Problem reported by
3595         Ralf Wildenhues in
3596         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
3597         Play it safe by shifting left by 1 rather than multiplying by 2,
3598         as GCC is less likely to optimize this away when the value
3599         is signed (when it assumes overflow leads to undefined behavior).
3600         Also, don't assume time_t uses two's complement.
3601
3602 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3603
3604         * MODULES.html.sh: New module wctype.
3605         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
3606         * lib/fnmatch.c: Don't bother to include <wchar.h> before
3607         <wctype.h>, since the new wctype module should fix this.
3608         * lib/quotearg.c: Include <wctype.h> unconditionally, since
3609         the wctype module should arrange for it.
3610         * lib/regex_internal.h: Likewise.
3611         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
3612         since the wctype module should handle this now.
3613         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
3614         * modules/fnmatch (Depends-on): Add wctype.
3615         * modules/quotearg (Depends-on): Likewise.
3616         * modules/regex (Depends-on): Likewise.
3617
3618 2006-12-19  Bruno Haible  <bruno@clisp.org>
3619
3620         * lib/strdup.h [C++]: Wrap definitions in extern "C".
3621         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
3622
3623 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3624
3625         * modules/savewd (Depends-on): Fix dependency on fcntl.
3626
3627 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3628
3629         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
3630         conforms to C99, rather than relying on the user's environment
3631         setting of STDINT_H.
3632
3633 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3634         and Eric Blake  <ebb9@byu.net>
3635
3636         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
3637         This is more consistent with the other defines here.
3638         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
3639         Port to z/OS.  Problem reported by Paul Gilmartin.
3640         Change local vars to use gl_ prefix rather than ac_.
3641         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
3642         with other defines.
3643         * modules/double-slash-root: New module.
3644         * modules/dirname (Files): Remove m4/double-slash-root.m4.
3645         (Depends-on): Add double-slash-root.
3646         * MODULES.html.sh (File system functions): Mention new module.
3647
3648 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
3651         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
3652         This is for the benefit of gzip, which doesn't do i18n.
3653
3654 2006-12-12  Jim Meyering  <jim@meyering.net>
3655
3656         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
3657         Reported by Andreas Schwab <schwab@suse.de>.
3658
3659 2006-12-12  Bruno Haible  <bruno@clisp.org>
3660
3661         Merge these changes.
3662         2006-09-05  Bruno Haible  <bruno@clisp.org>
3663         * lib/iconvme.c (iconv_string): No need to save and restore errno when
3664         iconv_alloc succeeded.
3665         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
3666         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
3667         test for " && dest " at the end - dest is always != NULL there. Call
3668         iconv with 4xNULL arguments initially, to reset the state. Call iconv
3669         with 2xNULL arguments, also to flush the state storage. Handle the
3670         IRIX iconv behaviour. Realloc the final result, to throw away unused
3671         memory.
3672
3673 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
3674
3675         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
3676         and fchmodat unconditionally, since glibc 2.4 has them.
3677         Problem reported by Arkadiusz Miskiewicz.
3678
3679 2006-12-10  Bruno Haible  <bruno@clisp.org>
3680
3681         * gnulib-tool (func_import): Show the include files only for those
3682         modules that are copied and specified.
3683         Reported by Karl Berry.
3684
3685 2006-12-08  Jim Meyering  <jim@meyering.net>
3686
3687         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
3688         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
3689
3690         * build-aux/announce-gen: Add two new options, both optional:
3691         --bootstrap-tools=TOOL_LIST
3692               a comma-separated list of tools, e.g.,
3693               autoconf,automake,bison,gnulib
3694         --gnulib-snapshot-date=DATE
3695               if gnulib is in the bootstrap tool list,
3696               then report this as the snapshot date.
3697               If not specified, use the current date/time.
3698               If you specify a date here, be sure it's UTC.
3699
3700 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3701
3702         * tests/test-argp-2.sh: Fix test to match actual output.
3703         (func_compare): Fix sed script to be portable.
3704
3705 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
3706
3707         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
3708         workaround for this case.  It is not autoconfigured now; offhand
3709         it's hard to see how to autoconfigure it.
3710
3711 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
3712
3713         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
3714         a directory that is about to be chowned.  Such a directory's
3715         initial file permissions should permit the owner only and this
3716         should not be changed until after the chown, since the group and
3717         other bits would be incorrect if they granted permission before
3718         the chown.
3719
3720         Fix porting problem for iswctype reported by Georg Schwarz in:
3721         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
3722         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
3723         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
3724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
3725         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3726
3727 2006-12-03  Jim Meyering  <jim@meyering.net>
3728
3729         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
3730         p->fts_statp may not yet be defined.
3731         (fts_read): Instead, set it in the caller, once p->fts_statp is
3732         sure to be defined, and corresponds to a top-level directory.
3733         This bug made du -x fail.  Here's the coreutils test case:
3734         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
3735         Reported by Mike Frysinger.
3736
3737 2006-12-01  Jim Meyering  <jim@meyering.net>
3738
3739         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
3740         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
3741         Reported by Simon Josefsson.
3742
3743 2006-11-30  Jim Meyering  <jim@meyering.net>
3744
3745         * m4/warning.m4: Use the all-permissive copyright notice
3746         recommended by RMS (rather than LGPL).
3747         * m4/vararrays.m4: Likewise.
3748         * m4/flexmember.m4: Likewise.
3749
3750 2006-11-29  Bruno Haible  <bruno@clisp.org>
3751
3752         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3753         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
3754         using +=.
3755         Reported by Simon Josefsson <simon@josefsson.org>.
3756
3757 2006-11-28  James Youngman <jay@gnu.org>
3758
3759         * README: Advise users that they might find the bug-gnulib@gnu.org
3760         and autotools-announce@gnu.org mailing lists useful.
3761
3762 2006-11-28  Bruno Haible  <bruno@clisp.org>
3763
3764         * m4/ptrdiff_max.m4: Remove file.
3765
3766 2006-11-21  Bruno Haible  <bruno@clisp.org>
3767
3768         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
3769         _AC_COMPUTE_INT.
3770         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3771         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
3772         _AC_COMPUTE_INT.
3773         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3774         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
3775         _AC_COMPUTE_INT.
3776         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3777
3778 2006-11-28  Jim Meyering  <jim@meyering.net>
3779
3780         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
3781         warning from "gcc -Wshadow" about shadowing the builtin.
3782
3783 2006-11-27  Bruno Haible  <bruno@clisp.org>
3784
3785         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
3786         _AC_COMPUTE_INT.
3787         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3788
3789 2006-11-27  Bruno Haible  <bruno@clisp.org>
3790             Paul Eggert  <eggert@cs.ucla.edu>
3791
3792         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
3793
3794 2006-11-26  Bruno Haible  <bruno@clisp.org>
3795
3796         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3797         noinst_LTLIBRARIES.
3798
3799 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
3800             Bruno Haible  <bruno@clisp.org>
3801
3802         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
3803         if compiling with "gcc -ansi".
3804
3805 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
3806
3807         Fix some incompatibilities with gcc -ansi -pedantic.
3808         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
3809         if compiling pedantically with GCC, unless it's C99 or later.
3810         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
3811         it mishandles gcc -ansi -pedantic as well.
3812         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
3813         if gcc -pedantic.
3814         * lib/regexec.c (check_node_accept_bytes): Don't use auto
3815         initializers for struct if -pedantic, unless it's C99 or later.
3816
3817 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
3818
3819         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
3820         Don't close an fd more than once. Identical atimes indicate
3821         success, not failure.
3822
3823 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
3824
3825         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
3826
3827 2006-11-23  Jim Meyering  <jim@meyering.net>
3828
3829         * build-aux/announce-gen: New file.  From coreutils.
3830
3831 2006-11-22  Jim Meyering  <jim@meyering.net>
3832
3833         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
3834         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
3835         (fts_read): Use a temporary to narrow the overused st_size member
3836         before using it in a switch statement.  Reported by Matthew Woehlke.
3837
3838         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
3839         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3840
3841 2006-11-20  Bruno Haible  <bruno@clisp.org>
3842
3843         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
3844         changequote instead of pairs of brackets.
3845         Reported by Andreas Schwab <schwab@suse.de>.
3846
3847 2006-11-21  Jim Meyering  <jim@meyering.net>
3848
3849         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
3850         so as to remain compatible with older compilers.
3851         Patch from Michael Deutschmann.
3852
3853 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3854
3855         * MODULES.html.sh (File system functions): Add openat.
3856
3857         * lib/openat.h (rpl_fstatat): New macro, if
3858         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
3859         (fstatat): Define to rpl_fstatat under the same conditions,
3860         unless COMPILING_FSTATAT.
3861         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
3862         seems to have the bug.
3863         * lib/fstatat.c: New file.
3864         * modules/openat (Files): Add it.
3865
3866 2006-11-20  Bruno Haible  <bruno@clisp.org>
3867
3868         * Makefile: New file.
3869
3870 2006-11-20  Jim Meyering  <jim@meyering.net>
3871
3872         The beginnings of syntax-related checks for gnulib.
3873         * lib/Makefile: New file.
3874         * lib/t-idcache: New script.  Ensure that the two halves of
3875         idcache.c stay in sync.
3876
3877         * lib/idcache.c: Adjust comments in user- and group- portions to
3878         be more accurate, and to be consistent with one another.
3879
3880 2006-11-20  Jim Meyering  <jim@meyering.net>
3881
3882         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
3883         continue using the flexible array member (thus, this module performs
3884         half as many malloc calls), with the addition that...
3885         (getgroup, getuser): Consistently record a non-match via an empty
3886         "name" string, and map an empty string match to a NULL return value.
3887         * modules/idcache (Depends-on): Re-add flexmember.
3888
3889         * lib/idcache.c (getuser): Remove all uses of the register keyword.
3890         (getuidbyname, getgroup, getgidbyname): Likewise.
3891
3892         Use cleaner syntax: NULL rather than 0.
3893         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
3894
3895 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3896
3897         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
3898         It mishandled the case where the group was missing.
3899         Problem reported by Greg Schafer.
3900         * modules/idcache: Likewise.
3901
3902 2006-11-18  Jim Meyering  <jim@meyering.net>
3903
3904         * check-module (%exempt_header): Add exception for some
3905         conditionally-included headers.
3906
3907         * modules/i-ring (Depends-on): Add verify.
3908         (License): Change to LGPL.
3909
3910 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3911
3912         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
3913         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
3914         and inttostr.h.  Use snprintf rather than uinttostr, so that
3915         LGPLed code doesn't depend on GPLed.
3916
3917 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3918
3919         * modules/inline (License): Change from GPL to LGPL.
3920
3921 2006-11-17  Jim Meyering  <jim@meyering.net>
3922
3923         * modules/d-type (License): Switch to LGPL.
3924
3925 2006-11-15  Bruno Haible  <bruno@clisp.org>
3926
3927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
3928
3929 2006-11-15  Eric Blake  <ebb9@byu.net>
3930
3931         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
3932         the module dependency.
3933
3934 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3935             Bruno Haible  <bruno@clisp.org>
3936
3937         * gnulib-tool (func_create_testdir): Add license consistency check.
3938
3939 2006-11-15  Eric Blake  <ebb9@byu.net>
3940
3941         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
3942         random "(cached)" in configure output.
3943
3944 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3945
3946         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
3947         test for conforming inttypes.h is both announced and cached.
3948
3949         * MODULES.html.sh (seen_modules, seen_files): New variables.
3950         (func_module): Rewrite to use a few less gnulib-tool and sed
3951         invocations.  Avoid a couple of quadratic algorithms for ...
3952         (missed_modules, missed_files): ... these, with ...
3953         (func_append, func_tmpdir): ... these new functions, from
3954         gnulib-tool.  Analogously, install traps for cleanup.
3955
3956         * tests/test-gc.c (main): Remove unused variables.
3957         * tests/test-read-file.c: Include stdlib.h, for 'free'.
3958
3959 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
3960
3961         * modules/inttostr (License): Change to LGPL.
3962
3963 2006-11-14  Eric Blake  <ebb9@byu.net>
3964
3965         * modules/tempname (License): Change to LGPL.
3966
3967 2006-11-14  Eric Blake  <ebb9@byu.net>
3968
3969         * doc/functions.texi (Function Portability): *printf functions on
3970         Cygwin now understand all POSIX size specifiers.
3971
3972 2006-11-14  Bruno Haible  <bruno@clisp.org>
3973
3974         * modules/c-ctype (License): Change to LGPL.
3975
3976 2006-11-12  Bruno Haible  <bruno@clisp.org>
3977
3978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3979         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
3980         for GNOME libraries, for which the include files are installed in
3981         subdirectories of $prefix/include.
3982
3983 2006-11-12  Bruno Haible  <bruno@clisp.org>
3984
3985         * m4/lib-link.m4: Require at least autoconf-2.54.
3986         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
3987         name to underscores for the --with option.
3988
3989 2006-11-13  Bruno Haible  <bruno@clisp.org>
3990
3991         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
3992         the tests directory.
3993         Reported by Ralf Wildenhues.
3994
3995 2006-11-13  Bruno Haible  <bruno@clisp.org>
3996
3997         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
3998         (func_emit_initmacro_end): Undo the override here.
3999         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
4000         Works around the famous automake error in coreutils.
4001
4002 2006-11-13  Eric Blake  <ebb9@byu.net>
4003
4004         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
4005         element, not its node.
4006
4007 2006-11-12  Bruno Haible  <bruno@clisp.org>
4008
4009         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
4010         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
4011
4012 2006-11-12  Bruno Haible  <bruno@clisp.org>
4013
4014         * gnulib-tool: New option --local-symlink.
4015         (func_usage): Document it.
4016         (lsymbolic): New variable.
4017         (func_import, func_create_testdir): If --symlink was not specified,
4018         test whether --local-symlink was specified and the file comes from
4019         the local_gnulib_dir.
4020
4021 2006-11-12  Bruno Haible  <bruno@clisp.org>
4022
4023         * gnulib-tool (func_ln): New function.
4024         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
4025
4026 2006-11-12  Bruno Haible  <bruno@clisp.org>
4027
4028         Finish support for source files in subdirectories.
4029         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
4030         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
4031         AUTOMAKE_OPTIONS.
4032         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
4033
4034 2006-11-12  Bruno Haible  <bruno@clisp.org>
4035
4036         * gnulib-tool (func_get_automake_snippet): Synthesize also an
4037         EXTRA_lib_SOURCES augmentation.
4038         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
4039
4040 2006-11-12  Jim Meyering  <jim@meyering.net>
4041
4042         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
4043         file descriptors.  This also averts a failure on systems with
4044         native openat support when a traversed directory lacks "x" access.
4045         * lib/fts_.h: Include "i-ring.h"
4046         (struct FTS) [fts_fd_ring]: New member.
4047         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
4048         (FCHDIR): Add parentheses.
4049         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
4050         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
4051         When descending, rather than simply closing the previous
4052         fts_cwd_fd value, push that file descriptor onto the ring.
4053         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
4054         (fts_open): Initialize the new fd_ring member.
4055         (fts_close): Clear the ring.
4056         (fts_safe_changedir): When possible, use our new fd_ring to skip
4057         the diropen and fstat and dev/ino comparison that would normally
4058         accompany a virtual `chdir ("..")'.
4059
4060         * modules/fts (Depends-on): Add i-ring.
4061         * modules/i-ring: New module.
4062         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
4063         * m4/i-ring.m4: New file.
4064
4065 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4066
4067         * gnulib-tool (func_create_testdir): Fix replacement of
4068         `build-aux' in configure.ac.  Run autotools in gltests
4069         subdirectory.
4070         (func_create_testdir, func_create_megatestdir, test): There is
4071         no need for '--force' in most autotool invocations in a new
4072         tree.  Actually fail the whole test if any of the tools, or the
4073         configure or make stages fail.
4074
4075         Sync from Automake.
4076         * build-aux/gnupload: Revert last change.  Add pointer to upload
4077         instructions of the GNU Maintenance Instructions.
4078         Suggestion by Karl Berry.
4079
4080 2006-11-10  Jim Meyering  <jim@meyering.net>
4081
4082         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
4083
4084 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4085
4086         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
4087         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
4088         (bind_textdomain_codeset) [! ENABLE_NLS]:
4089         Evaluate all the arguments.  That way, callers get compatible behavior
4090         if the arguments have side effects.  Also, it avoids some GCC
4091         diagnostics in some cases; Joel E. Denny reported problems when Bison
4092         was configured with --enable-gcc-warnigs.
4093
4094 2006-11-10  Jim Meyering  <jim@meyering.net>
4095
4096         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
4097         relevant options in CFLAGS (like -O, -fno-inline) are taken into
4098         account.
4099
4100 2006-11-10  Jim Meyering  <jim@meyering.net>
4101
4102         * modules/inline: New file/module.
4103         * modules/xalloc (Files): Remove m4/inline.m4.
4104         (Depends-on): Add inline, instead.
4105         * modules/oset: Likewise.
4106         * modules/list: Likewise.
4107
4108 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4109
4110         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
4111         Problem reported by Matthew Woehlke.
4112
4113 2006-11-09  Bruno Haible  <bruno@clisp.org>
4114
4115         * lib/tempname.c (gen_tempname): Remove variant that invokes
4116         __gen_tempname.
4117         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
4118         __gen_tempname.
4119
4120 2006-11-08  Bruno Haible  <bruno@clisp.org>
4121
4122         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
4123         to 'yes' instead of 'cross-compiling'.
4124
4125 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
4126
4127         * lib/quotearg.h (quotearg_free): New decl.
4128         * lib/quotearg.c (quotearg_free): New function.
4129         (slot0, nslots, slotvec0, slotvec):
4130         Now file-scope so that quotearg_free can get at them.
4131
4132 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4133
4134         Sync from Automake.
4135         * build-aux/gnupload: Add missing 'gnu' to example URL.
4136         Report by Karl Berry.
4137
4138 2006-11-08  Bruno Haible  <bruno@clisp.org>
4139
4140         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
4141         Suggested by Paul Eggert.
4142
4143 2006-11-08  Jim Meyering  <jim@meyering.net>
4144
4145         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
4146         It's already included if !_LIBC.
4147         (fts_safe_changedir): Add a comment.
4148
4149 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4150
4151         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
4152         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
4153         Matthew Woehlke.
4154
4155         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
4156         definitions up, to avoid colliding with change below.
4157         (static_inline) [HAVE_INLINE]: New macro.
4158         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
4159         Provide extern decls when !HAVE_INLINE.  Do not define unless
4160         static_inline is defined, either by us or by xmalloc.c.  Use
4161         static_inline rather than static inline.
4162         (XCALLOC): Optimize sizeof(T) = 1 case.
4163         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
4164
4165 2006-11-07  Bruno Haible  <bruno@clisp.org>
4166
4167         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
4168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
4169         AC_C_INLINE.
4170         * modules/xalloc (Files): Add m4/inline.m4.
4171
4172 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4173
4174         * README: Fix typo.
4175         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
4176         (Miscellanous Notes): ...from this.
4177
4178 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4179
4180         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4181         Mention that offsetof should be used instead of sizeof.
4182         From Bruno Haible.
4183
4184 2006-11-07  Bruno Haible  <bruno@clisp.org>
4185
4186         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
4187
4188 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4189
4190         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4191         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
4192         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
4193         (gl_tree_add_before, gl_tree_add_after):
4194         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
4195         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
4196         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4197         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
4198         (gl_linked_add_after, gl_linked_add_at): Likewise.
4199         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
4200         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
4201         (gl_tree_add_before, gl_tree_add_after): Likewise.
4202         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
4203         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
4204         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4205
4206 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4207
4208         * lib/gl_oset.h: Use C comment style, not C++ comment style.
4209
4210 2006-11-06  Bruno Haible  <bruno@clisp.org>
4211
4212         * m4/inline.m4: New file.
4213         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
4214         * modules/list (Files): Add m4/inline.m4.
4215         * modules/oset (Files): Likewise.
4216
4217 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4218
4219         * lib/idcache.c: Include <stddef.h>, for offsetof.
4220         (struct userid.name): Change from char * to a flexible array member.
4221         All uses changed.
4222         * modules/idcache (Depends-on): Add flexmember.
4223
4224         * MODULES.html.sh (Core language properties): New module flexmember.
4225         * modules/flexmember, m4/flexmember.m4: New files.
4226
4227         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
4228         inline functions that are identical with the old xnmalloc_inline,
4229         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
4230         that we can avoid some unnecessary integer multiplications and
4231         divisions in the common case where the element size is known at
4232         compile time.
4233         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
4234         needed.
4235         (xnboundedmalloc): Remove.
4236         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
4237         arguments, for consistency with rest of this header.
4238         (xcharalloc): Rewrite using XNMALLOC.
4239         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
4240         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
4241         versions have been moved to lib/xalloc.h and renamed to be the
4242         non-*_inline versions.
4243         (xmalloc, xrealloc): Implement without reference to the xnmalloc
4244         and xnrealloc functions, since those functions are now inline and
4245         now call us.
4246         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
4247         renaming described above.
4248         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
4249         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
4250         captures the dependency in AC_C_INLINE.
4251
4252         New module canonicalize-lgpl, proposed by Charles Wilson in
4253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
4254         with a few small changes afterwards.
4255         * MODULES.html.sh (File system functions): New module
4256         canonicalize-lgpl.
4257         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
4258         and canonicalize_file_name.
4259         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
4260         * modules/canonicalize-lgpl: New files.
4261
4262 2006-11-05  Bruno Haible  <bruno@clisp.org>
4263
4264         * gnulib-tool (func_import, func_create_testdir): Create directories
4265         also for files in subdirectories of lib/.
4266
4267 2006-11-05  Bruno Haible  <bruno@clisp.org>
4268
4269         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
4270         ANSI C compliant.
4271
4272 2006-11-03  Bruno Haible  <bruno@clisp.org>
4273
4274         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4275         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
4276         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
4277         (xnboundedmalloc): New inline function.
4278         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
4279         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
4280         xmalloc.
4281         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
4282         xmalloc.
4283         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
4284         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
4285         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
4286         xmalloc.
4287         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4288         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
4289         xmalloc.
4290         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
4291         gl_tree_add_after): Use XMALLOC instead of xmalloc.
4292         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
4293         xmalloc.
4294         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4295         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
4296         gl_tree_add_after): Use XMALLOC instead of xmalloc.
4297         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
4298         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
4299         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
4300         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
4301
4302 2006-11-03  Bruno Haible  <bruno@clisp.org>
4303
4304         * lib/c-ctype.h [C++]: Define functions without name mangling.
4305         * lib/fwriteerror.h [C++]: Likewise.
4306         * lib/gcd.h [C++]: Likewise.
4307         * lib/linebreak.h [C++]: Likewise.
4308
4309 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
4310
4311         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
4312         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
4313         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
4314         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4315         Check for functions and headers just once.
4316         Check for declaration of canonicalize_file_name.
4317         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
4318
4319 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
4320
4321         * gnulib-tool (func_import): Fix typo in actioncmd.
4322
4323 2006-11-02  Bruno Haible  <bruno@clisp.org>
4324
4325         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
4326         newline sequence in the Makefile.am snippet as a space, like "make"
4327         does.
4328         Reported by Roger Persson <perrog@gmail.com>.
4329
4330 2006-11-01  Bruno Haible  <bruno@clisp.org>
4331
4332         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
4333         already declared in <string.h>.
4334         * lib/strcase.h (strncasecmp): Don't declare it if yes.
4335
4336 2006-11-01  Bruno Haible  <bruno@clisp.org>
4337
4338         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
4339         * lib/strcase.h: Include <string.h>.
4340         (strcasecmp): Define to rpl_strcasecmp here.
4341
4342 2006-11-01  Bruno Haible  <bruno@clisp.org>
4343
4344         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
4345
4346 2006-11-01  Eric Blake  <ebb9@byu.net>
4347
4348         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
4349
4350         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
4351
4352 2006-10-29  Bruno Haible  <bruno@clisp.org>
4353
4354         Make it compile in C++ mode.
4355         * lib/full-write.c (full_rw): Add a cast.
4356
4357 2006-11-01  Bruno Haible  <bruno@clisp.org>
4358
4359         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
4360         be POSIX compliant.
4361         Reported by Roger Persson <perrog@gmail.com>.
4362
4363 2006-11-01  Eric Blake  <ebb9@byu.net>
4364
4365         * lib/getopt_.h: Fix comments.
4366
4367 2006-10-31  Eric Blake  <ebb9@byu.net>
4368
4369         * modules/tmpdir (Depends-on): Add sys_stat.
4370         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
4371         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
4372         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
4373         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
4374         tempname.
4375
4376 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
4377
4378         Avoid some C++ diagnostics reported by Bruno Haible.
4379         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
4380         xmalloc.
4381         (quotearg_alloc): Use xcharalloc rather than xmalloc.
4382         (struct slotvec): Move to top level.
4383         (quotearg_n_options): Rewrite to avoid xmalloc.
4384         * lib/xalloc.h (xcharalloc): New function.
4385         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
4386         [defined __cplusplus]: Add function template that provides result
4387         type propagation.  This part of the change is from Bruno Haible.
4388
4389 2006-10-29  Bruno Haible  <bruno@clisp.org>
4390
4391         Make it compile in C++ mode.
4392         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
4393         * lib/strnlen1.c (strnlen1): Cast memchr result.
4394         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
4395         * lib/clean-temp.c (string_equals, string_hash): Add casts.
4396         (create_temp_dir): Rename local variable 'template'.
4397         (compile_csharp_using_sscli): Add cast.
4398         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
4399         * lib/findprog.c (find_in_path): Likewise.
4400         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
4401         * lib/wait-process.c (register_slave_subprocess): Likewise.
4402
4403 2006-10-22  Bruno Haible  <bruno@clisp.org>
4404
4405         * modules/tsearch: New file.
4406         * lib/tsearch.h: New file.
4407         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
4408         * m4/tsearch.m4: New file.
4409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
4410
4411 2006-10-29  Eric Blake  <ebb9@byu.net>
4412
4413         * lib/arcfour.c: Assume config.h.
4414         * lib/arctwo.c: Likewise.
4415         * lib/base64.c: Likewise.
4416         * lib/check-version.c: Likewise.
4417         * lib/crc.c: Likewise.
4418         * lib/des.c: Likewise.
4419         * lib/gc-gnulib.c: Likewise.
4420         * lib/gc-libgcrypt.c: Likewise.
4421         * lib/gc-pbkdf2-sha1.c: Likewise.
4422         * lib/getaddrinfo.c: Likewise.
4423         * lib/getdelim.c: Likewise.
4424         * lib/getline.c: Likewise.
4425         * lib/hmac-md5.c: Likewise.
4426         * lib/hmac-sha1.c: Likewise.
4427         * lib/iconvme.c: Likewise.
4428         * lib/md2.c: Likewise.
4429         * lib/md4.c: Likewise.
4430         * lib/memxor.c: Likewise.
4431         * lib/read-file.c: Likewise.
4432         * lib/readline.c: Likewise.
4433         * lib/rijndael-alg-fst.c: Likewise.
4434         * lib/rijndael-api-fst.c: Likewise.
4435         * lib/xgetdomainname.c: Likewise.
4436
4437 2006-10-28  Eric Blake  <ebb9@byu.net>
4438
4439         * lib/xstrndup.c: Assume config.h.
4440
4441 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
4442
4443         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
4444         stat-macros.h is now for our own macros, whereas stat_h is for
4445         macros in the <sys/stat.h> name space.
4446         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
4447         (STAT_MACROS_H): Remove.
4448         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
4449         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
4450         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
4451         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
4452         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
4453         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
4454         Move these macros to ...
4455         * lib/stat_.h: here.  Don't include stat-macros.h.
4456         * lib/canonicalize.c: Don't include stat-macros.h.
4457         * lib/chown.c: Likewise.
4458         * lib/euidaccess.c: Likewise.
4459         * lib/file-type.c: Likewise.
4460         * lib/filemode.c: Likewise.
4461         * lib/glob.c: Likewise.
4462         * lib/isapipe.c: Likewise.
4463         * lib/lchown.c: Likewise.
4464         * lib/lstat.c: Likewise.
4465         * lib/mkdir-p.c: Likewise.
4466         * lib/rmdir.c: Likewise.
4467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
4468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
4469         unless mkdir isn't declared, to speed up 'configure'.
4470         Always create sys/stat.h, since it's unlikely any real sys/stat.h
4471         would define all the S_* symbols.
4472         * modules/canonicalize (Depends-on):
4473         Depend on sys_stat, not stat-macros.
4474         * modules/chown: Likewise.
4475         * modules/euidaccess: Likewise.
4476         * modules/filemode: Likewise.
4477         * modules/file-type: Likewise.
4478         * modules/glob: Likewise.
4479         * modules/isapipe: Likewise.
4480         * modules/lchown: Likewise.
4481         * modules/lstat: Likewise.
4482         * modules/mkancesdirs: Likewise.
4483         * modules/rmdir: Likewise.
4484         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
4485         * modules/modechange: Likewise.
4486         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
4487         (configure.ac): Remove gl_STAT_MACROS.
4488         * modules/sys_stat (Depends-on): Remove stat-macros.
4489
4490 2006-10-27  Bruno Haible  <bruno@clisp.org>
4491
4492         * m4/signed.m4: Remove file.
4493         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
4494         invocation.
4495         * modules/vasnprintf (Files): Remove m4/signed.m4.
4496
4497 2006-10-27  Bruno Haible  <bruno@clisp.org>
4498
4499         Update to GNU gettext 0.16.
4500         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
4501         m4/inttypes-h.m4, m4/signed.m4.
4502         * m4/gettext.m4: Update to GNU gettext 0.16.
4503         * m4/intl.m4: New file, from GNU gettext.
4504         * m4/intldir.m4: New file, from GNU gettext.
4505         * config/srclist.txt: Update
4506
4507 2006-10-27  Eric Blake  <ebb9@byu.net>
4508
4509         * MODULES.html.sh: Document tempname.
4510         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
4511         dependencies.
4512         (Files): Move lib/tempname.c...
4513         * modules/tempname: ...to this new module.
4514         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
4515         (gl_PREREQ_TEMPNAME): Move...
4516         * m4/tempname.m4: ...to this new file.
4517         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
4518         * modules/sys_stat (Depends-on): Add stat-macros.
4519         * lib/stat_.h (includes): Pick up stat macros.
4520         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
4521         if stat macros are broken.
4522         * lib/tempname.c (includes): No need to include "stat-macros.h".
4523         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
4524         (direxists, __path_search) [!_LIBC]: Don't compile these in
4525         gnulib; the tmpdir module covers that.
4526         * lib/tempname.h: New file.
4527
4528 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4529
4530         * COPYING: Explain how gnulib-tool converts licence headers.
4531         Almost all wording by Eric Blake.
4532
4533 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4534
4535         * lib/mbchar.h (is_basic_table): Make read-only.
4536         * lib/mbchar.c (is_basic_table): Likewise.
4537         Reported by John Darrington.
4538
4539 2006-10-25  Bruno Haible  <bruno@clisp.org>
4540
4541         * lib/progname.h (set_program_name): Undefine before defining.
4542
4543 2006-10-25  Bruno Haible  <bruno@clisp.org>
4544
4545         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
4546         false for non-gcc C++ compilers.
4547         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4548
4549 2006-10-24  Bruno Haible  <bruno@clisp.org>
4550
4551         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
4552         iconv implementations like Irix iconv.
4553
4554 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4555
4556         * modules/vararrays: New file.
4557         * m4/vararrays.m4: New file, taken from diffutils.
4558         * MODULES.html.sh: New module vararrays.
4559
4560 2006-10-24  Karl Berry  <karl@gnu.org>
4561
4562         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
4563         Don't call GNU Unix.
4564
4565 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4566
4567         * users.txt: Add Libtool.
4568
4569         Sync from Libtool:
4570
4571         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4572
4573         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
4574         to gnulib's policy of including config.h unconditionally.
4575
4576 2006-10-24  Bruno Haible  <bruno@clisp.org>
4577
4578         * modules/wcwidth (Files): Add m4/wint_t.m4.
4579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
4580         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
4581
4582 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4583
4584         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
4585         to pacify GCC with some -W flags enabled.  Problem reported by
4586         Bruno Haible.
4587
4588 2006-10-24  Jim Meyering  <jim@meyering.net>
4589
4590         * MODULES.html.sh: Remove uinttostr.  It's not a module.
4591         Reported by Karl Berry.
4592
4593 2006-10-23  Bruno Haible  <bruno@clisp.org>
4594
4595         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
4596
4597 2006-10-24  Bruno Haible  <bruno@clisp.org>
4598
4599         * lib/gl_list.h: Use C comment style, not C++ comment style.
4600
4601 2006-10-23  Eric Blake  <ebb9@byu.net>
4602
4603         * lib/getaddrinfo.c (includes): Add missing include.
4604
4605 2006-10-23  Bruno Haible  <bruno@clisp.org>
4606             Paul Eggert  <eggert@cs.ucla.edu>
4607
4608         Ability to rename obstack_free.
4609         * lib/obstack.h (__obstack_free): New macro. Declare instead of
4610         obstack_free.
4611         (obstack_free): Invoke the __obstack_free macro.
4612         * lib/obstack.c (obstack_free): Use __obstack_free macro.
4613
4614 2006-10-23  Bruno Haible  <bruno@clisp.org>
4615             Paul Eggert  <eggert@cs.ucla.edu>
4616
4617         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
4618         __argc, __argv from the declaration. (They are defined as macros on
4619         mingw.)
4620
4621 2006-10-22  Bruno Haible  <bruno@clisp.org>
4622
4623         * doc/gnulib-intro.texi: New file.
4624         * doc/gnulib.texi: Include it.
4625
4626 2006-10-21  Bruno Haible  <bruno@clisp.org>
4627
4628         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
4629         "Introduction", "Miscellanous Notes", "Particular Modules".
4630
4631 2006-10-21  Bruno Haible  <bruno@clisp.org>
4632
4633         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4634         Change mostlyclean-local rule to avoid sh syntax error from bash
4635         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
4636
4637 2006-10-23  Jim Meyering  <jim@meyering.net>
4638
4639         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
4640         in place of snprintf.
4641
4642         * modules/inttostr (Files): Add lib/uinttostr.c.
4643         * lib/uinttostr.c (inttostr): New file/function.
4644         * lib/inttostr.h (uinttostr): Declare.
4645         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
4646         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
4647         Add uinttostr.
4648         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
4649
4650 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
4651
4652         * lib/canonicalize.c (ELOOP): Define if not already defined.
4653         Problem reported by Bruno Haible in
4654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
4655
4656 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
4657
4658         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
4659         Problem reported by Perry Smith and Ville Laurikari.
4660
4661         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
4662         uses.
4663
4664 2006-10-19  Bruno Haible  <bruno@clisp.org>
4665
4666         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
4667         for mingw.
4668
4669 2006-10-19  Bruno Haible  <bruno@clisp.org>
4670
4671         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
4672         Needed for mingw.
4673
4674 2006-10-19  Bruno Haible  <bruno@clisp.org>
4675
4676         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
4677
4678 2006-10-19  Bruno Haible  <bruno@clisp.org>
4679
4680         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
4681         it.
4682
4683 2006-10-19  Bruno Haible  <bruno@clisp.org>
4684
4685         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
4686         invocation.
4687
4688 2006-10-19  Bruno Haible  <bruno@clisp.org>
4689
4690         * gnulib-tool (func_create_testdir): Don't include ftruncate and
4691         mountlist by default.
4692
4693 2006-10-16  Bruno Haible  <bruno@clisp.org>
4694
4695         * lib/c-strstr.c: Include c-strstr.h.
4696
4697 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
4698
4699         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
4700         in a slash.
4701
4702 2006-10-18  Bruno Haible  <bruno@clisp.org>
4703
4704         * lib/lock.h [C++]: Wrap definitions in extern "C".
4705
4706 2006-10-18  Bruno Haible  <bruno@clisp.org>
4707
4708         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
4709         gl_LIBOBJS list.
4710
4711 2006-10-18  Bruno Haible  <bruno@clisp.org>
4712
4713         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
4714
4715 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         * lib/xstrtol.h: Include gettext.h.
4718         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
4719         Problem reported by Eric Blake.
4720         * modules/xstrtol (Depends-on): Add gettext-h.
4721
4722 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
4723
4724         * lib/strftime.c (advance): New macro.
4725         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
4726         incomplete type, so you can't add 0 to it.  Problem and patch
4727         reported by Eelco Dolstra for dietlibc.
4728
4729 2006-10-18  Jim Meyering  <jim@meyering.net>
4730
4731         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
4732         type for a local, and rename it: s/up/user_proc/.
4733
4734 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4735
4736         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
4737         READ_UTMP_USER_PROCESS.
4738         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
4739
4740 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
4741
4742         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
4743         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
4744
4745 2006-10-17  Eric Blake  <ebb9@byu.net>
4746
4747         * lib/sigprocmask.c (sigprocmask): Fix typo.
4748
4749         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
4750
4751         * modules/clean-temp (Makefile.am): Don't add to make output...
4752         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
4753         config.h.
4754
4755 2006-10-17  Bruno Haible  <bruno@clisp.org>
4756
4757         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
4758         differently if DEFAULT_TEXT_DOMAIN is set.
4759
4760 2006-10-16  Bruno Haible  <bruno@clisp.org>
4761
4762         * lib/clean-temp.c: Include fwriteerror.h.
4763
4764 2006-10-16  Bruno Haible  <bruno@clisp.org>
4765
4766         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
4767
4768 2006-10-16  Bruno Haible  <bruno@clisp.org>
4769
4770         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
4771         * lib/sigprocmask.h: Include <sys/types.h>.
4772         (sigset_t): Use the system's definition if present.
4773
4774 2006-10-17  Eric Blake  <ebb9@byu.net>
4775
4776         * lib/xvasprintf.c (includes): Assume config.h.
4777         * lib/xasprintf.c (includes): Likewise.
4778
4779 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4780
4781         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
4782         at least as wide as intmax_t.
4783
4784 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
4785
4786         (Imported from Automake.)
4787         * build-aux/gnupload: Update to version 1.1 of directive file.
4788
4789 2006-10-16  Eric Blake  <ebb9@byu.net>
4790
4791         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
4792         match Automake 1.10a.
4793
4794 2006-10-14  Bruno Haible  <bruno@clisp.org>
4795
4796         * modules/sigprocmask: New file.
4797         * lib/sigprocmask.h: New file.
4798         * lib/sigprocmask.c: New file.
4799         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
4800         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
4801         request sigprocmask.o.
4802         (gl_PREREQ_SIGPROCMASK): New macro.
4803         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
4804         (Depends-on): Add sigprocmask.
4805         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
4806         gt_SIGNALBLOCKING. Test for 'raise' only once.
4807         * lib/fatal-signal.c: Include sigprocmask.h.
4808         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
4809         unblock_fatal_signals): Define always.
4810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4811         sigprocmask.
4812
4813 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         Sync from Automake.
4816         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4817         which incorrectly sets the mode of an existing destination
4818         directory.  In some cases the unpatched install-sh could do the
4819         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4820         system.  We hope this is rare in practice, but it's clearly worth
4821         fixing.  Problem reported by Alex Unleashed in
4822         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4823         Also, don't bother to check for -m bugs unless we're using -m;
4824         suggested by Stepan Kasal.
4825
4826 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4827
4828         Sync from Automake.
4829         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
4830         `-c' flag, so they appear at the same position as in %FASTDEP%
4831         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
4832         which ignores unknown options only after the first non-option.
4833         Bug report against M4 by Nelson H. F. Beebe.
4834
4835 2006-10-13  Jim Meyering  <jim@meyering.net>
4836
4837         Fix a bug in yesterday's change.
4838         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
4839         p->fts_statp->st_dev would be used uninitialized.
4840         Ensures that we always call fts_stat on the very first entry.
4841         Miklos Szeredi reported that find -xdev stopped working.
4842
4843 2006-10-12  Bruno Haible  <bruno@clisp.org>
4844
4845         * gnulib-tool (func_get_automake_snippet): Append an automatically
4846         computed EXTRA_DIST augmentation.
4847         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
4848         * modules/alloca-opt (Makefile.am): Likewise.
4849         * modules/allocsa (Makefile.am): Likewise.
4850         * modules/arcfour (Makefile.am): Likewise.
4851         * modules/arctwo (Makefile.am): Likewise.
4852         * modules/argmatch (Makefile.am): Likewise.
4853         * modules/argz (Makefile.am): Likewise.
4854         * modules/atexit (Makefile.am): Likewise.
4855         * modules/backupfile (Makefile.am): Likewise.
4856         * modules/byteswap (Makefile.am): Likewise.
4857         * modules/c-strtod (Makefile.am): Likewise.
4858         * modules/c-strtold (Makefile.am): Likewise.
4859         * modules/calloc (Makefile.am): Likewise.
4860         * modules/canon-host (Makefile.am): Likewise.
4861         * modules/canonicalize (Makefile.am): Likewise.
4862         * modules/chdir-long (Makefile.am): Likewise.
4863         * modules/chdir-safer (Makefile.am): Likewise.
4864         * modules/check-version (Makefile.am): Likewise.
4865         * modules/chown (Makefile.am): Likewise.
4866         * modules/cloexec (Makefile.am): Likewise.
4867         * modules/close-stream (Makefile.am): Likewise.
4868         * modules/closeout (Makefile.am): Likewise.
4869         * modules/crc (Makefile.am): Likewise.
4870         * modules/csharpexec (Makefile.am): Likewise.
4871         * modules/cycle-check (Makefile.am): Likewise.
4872         * modules/des (Makefile.am): Likewise.
4873         * modules/dev-ino (Makefile.am): Likewise.
4874         * modules/dirfd (Makefile.am): Likewise.
4875         * modules/dirname (Makefile.am): Likewise.
4876         * modules/dup2 (Makefile.am): Likewise.
4877         * modules/eealloc (Makefile.am): Likewise.
4878         * modules/error (Makefile.am): Likewise.
4879         * modules/euidaccess (Makefile.am): Likewise.
4880         * modules/exclude (Makefile.am): Likewise.
4881         * modules/exitfail (Makefile.am): Likewise.
4882         * modules/fcntl-safer (Makefile.am): Likewise.
4883         * modules/fcntl (Makefile.am): Likewise.
4884         * modules/file-type (Makefile.am): Likewise.
4885         * modules/fileblocks (Makefile.am): Likewise.
4886         * modules/filemode (Makefile.am): Likewise.
4887         * modules/filenamecat (Makefile.am): Likewise.
4888         * modules/fnmatch (Makefile.am): Likewise.
4889         * modules/fopen-safer (Makefile.am): Likewise.
4890         * modules/fpending (Makefile.am): Likewise.
4891         * modules/fprintftime (Makefile.am): Likewise.
4892         * modules/free (Makefile.am): Likewise.
4893         * modules/fsusage (Makefile.am): Likewise.
4894         * modules/ftruncate (Makefile.am): Likewise.
4895         * modules/fts (Makefile.am): Likewise.
4896         * modules/gc-arcfour (Makefile.am): Likewise.
4897         * modules/gc-des (Makefile.am): Likewise.
4898         * modules/gc-hmac-md5 (Makefile.am): Likewise.
4899         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
4900         * modules/gc-md4 (Makefile.am): Likewise.
4901         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
4902         * modules/gc-sha1 (Makefile.am): Likewise.
4903         * modules/gc (Makefile.am): Likewise.
4904         * modules/getaddrinfo (Makefile.am): Likewise.
4905         * modules/getcwd (Makefile.am): Likewise.
4906         * modules/getdelim (Makefile.am): Likewise.
4907         * modules/getdomainname (Makefile.am): Likewise.
4908         * modules/getgroups (Makefile.am): Likewise.
4909         * modules/gethostname (Makefile.am): Likewise.
4910         * modules/gethrxtime (Makefile.am): Likewise.
4911         * modules/getline (Makefile.am): Likewise.
4912         * modules/getloadavg (Makefile.am): Likewise.
4913         * modules/getlogin_r (Makefile.am): Likewise.
4914         * modules/getndelim2 (Makefile.am): Likewise.
4915         * modules/getopt (Makefile.am): Likewise.
4916         * modules/getpagesize (Makefile.am): Likewise.
4917         * modules/getpass-gnu (Makefile.am): Likewise.
4918         * modules/getpass (Makefile.am): Likewise.
4919         * modules/getsubopt (Makefile.am): Likewise.
4920         * modules/gettime (Makefile.am): Likewise.
4921         * modules/gettimeofday (Makefile.am): Likewise.
4922         * modules/getugroups (Makefile.am): Likewise.
4923         * modules/getusershell (Makefile.am): Likewise.
4924         * modules/glob (Makefile.am): Likewise.
4925         * modules/group-member (Makefile.am): Likewise.
4926         * modules/hard-locale (Makefile.am): Likewise.
4927         * modules/hash (Makefile.am): Likewise.
4928         * modules/hmac-md5 (Makefile.am): Likewise.
4929         * modules/hmac-sha1 (Makefile.am): Likewise.
4930         * modules/human (Makefile.am): Likewise.
4931         * modules/idcache (Makefile.am): Likewise.
4932         * modules/imaxabs (Makefile.am): Likewise.
4933         * modules/imaxdiv (Makefile.am): Likewise.
4934         * modules/inet_ntop (Makefile.am): Likewise.
4935         * modules/inet_pton (Makefile.am): Likewise.
4936         * modules/intprops (Makefile.am): Likewise.
4937         * modules/inttostr (Makefile.am): Likewise.
4938         * modules/inttypes (Makefile.am): Likewise.
4939         * modules/isapipe (Makefile.am): Likewise.
4940         * modules/javaversion (Makefile.am): Likewise.
4941         * modules/lchmod (Makefile.am): Likewise.
4942         * modules/lchown (Makefile.am): Likewise.
4943         * modules/localcharset (Makefile.am): Likewise.
4944         * modules/long-options (Makefile.am): Likewise.
4945         * modules/lstat (Makefile.am): Likewise.
4946         * modules/malloc (Makefile.am): Likewise.
4947         * modules/mathl (Makefile.am): Likewise.
4948         * modules/mbchar (Makefile.am): Likewise.
4949         * modules/md2 (Makefile.am): Likewise.
4950         * modules/md4 (Makefile.am): Likewise.
4951         * modules/md5 (Makefile.am): Likewise.
4952         * modules/memcasecmp (Makefile.am): Likewise.
4953         * modules/memchr (Makefile.am): Likewise.
4954         * modules/memcmp (Makefile.am): Likewise.
4955         * modules/memcoll (Makefile.am): Likewise.
4956         * modules/memcpy (Makefile.am): Likewise.
4957         * modules/memmem (Makefile.am): Likewise.
4958         * modules/memmove (Makefile.am): Likewise.
4959         * modules/mempcpy (Makefile.am): Likewise.
4960         * modules/memrchr (Makefile.am): Likewise.
4961         * modules/memset (Makefile.am): Likewise.
4962         * modules/memxor (Makefile.am): Likewise.
4963         * modules/mkancesdirs (Makefile.am): Likewise.
4964         * modules/mkdir-p (Makefile.am): Likewise.
4965         * modules/mkdir (Makefile.am): Likewise.
4966         * modules/mkdtemp (Makefile.am): Likewise.
4967         * modules/mkstemp (Makefile.am): Likewise.
4968         * modules/mktime (Makefile.am): Likewise.
4969         * modules/modechange (Makefile.am): Likewise.
4970         * modules/mountlist (Makefile.am): Likewise.
4971         * modules/nanosleep (Makefile.am): Likewise.
4972         * modules/obstack (Makefile.am): Likewise.
4973         * modules/openat (Makefile.am): Likewise.
4974         * modules/pagealign_alloc (Makefile.am): Likewise.
4975         * modules/pathmax (Makefile.am): Likewise.
4976         * modules/physmem (Makefile.am): Likewise.
4977         * modules/poll (Makefile.am): Likewise.
4978         * modules/posixtm (Makefile.am): Likewise.
4979         * modules/posixver (Makefile.am): Likewise.
4980         * modules/putenv (Makefile.am): Likewise.
4981         * modules/quote (Makefile.am): Likewise.
4982         * modules/quotearg (Makefile.am): Likewise.
4983         * modules/raise (Makefile.am): Likewise.
4984         * modules/read-file (Makefile.am): Likewise.
4985         * modules/readline (Makefile.am): Likewise.
4986         * modules/readlink (Makefile.am): Likewise.
4987         * modules/readtokens (Makefile.am): Likewise.
4988         * modules/readutmp (Makefile.am): Likewise.
4989         * modules/realloc (Makefile.am): Likewise.
4990         * modules/regex (Makefile.am): Likewise.
4991         * modules/rename-dest-slash (Makefile.am): Likewise.
4992         * modules/rename (Makefile.am): Likewise.
4993         * modules/rijndael (Makefile.am): Likewise.
4994         * modules/rmdir (Makefile.am): Likewise.
4995         * modules/rpmatch (Makefile.am): Likewise.
4996         * modules/safe-read (Makefile.am): Likewise.
4997         * modules/safe-write (Makefile.am): Likewise.
4998         * modules/same-inode (Makefile.am): Likewise.
4999         * modules/same (Makefile.am): Likewise.
5000         * modules/save-cwd (Makefile.am): Likewise.
5001         * modules/savedir (Makefile.am): Likewise.
5002         * modules/setenv (Makefile.am): Likewise.
5003         * modules/settime (Makefile.am): Likewise.
5004         * modules/sha1 (Makefile.am): Likewise.
5005         * modules/sig2str (Makefile.am): Likewise.
5006         * modules/snprintf (Makefile.am): Likewise.
5007         * modules/stat-macros (Makefile.am): Likewise.
5008         * modules/stat-time (Makefile.am): Likewise.
5009         * modules/stdbool (Makefile.am): Likewise.
5010         * modules/stdint (Makefile.am): Likewise.
5011         * modules/stdlib-safer (Makefile.am): Likewise.
5012         * modules/stpcpy (Makefile.am): Likewise.
5013         * modules/stpncpy (Makefile.am): Likewise.
5014         * modules/strcase (Makefile.am): Likewise.
5015         * modules/strcasestr (Makefile.am): Likewise.
5016         * modules/strchrnul (Makefile.am): Likewise.
5017         * modules/strcspn (Makefile.am): Likewise.
5018         * modules/strdup (Makefile.am): Likewise.
5019         * modules/strerror (Makefile.am): Likewise.
5020         * modules/strftime (Makefile.am): Likewise.
5021         * modules/strndup (Makefile.am): Likewise.
5022         * modules/strnlen (Makefile.am): Likewise.
5023         * modules/strpbrk (Makefile.am): Likewise.
5024         * modules/strsep (Makefile.am): Likewise.
5025         * modules/strstr (Makefile.am): Likewise.
5026         * modules/strtod (Makefile.am): Likewise.
5027         * modules/strtoimax (Makefile.am): Likewise.
5028         * modules/strtok_r (Makefile.am): Likewise.
5029         * modules/strtol (Makefile.am): Likewise.
5030         * modules/strtoll (Makefile.am): Likewise.
5031         * modules/strtoul (Makefile.am): Likewise.
5032         * modules/strtoull (Makefile.am): Likewise.
5033         * modules/strtoumax (Makefile.am): Likewise.
5034         * modules/strverscmp (Makefile.am): Likewise.
5035         * modules/sys_socket (Makefile.am): Likewise.
5036         * modules/sys_stat (Makefile.am): Likewise.
5037         * modules/sysexits (Makefile.am): Likewise.
5038         * modules/time_r (Makefile.am): Likewise.
5039         * modules/timegm (Makefile.am): Likewise.
5040         * modules/timespec (Makefile.am): Likewise.
5041         * modules/tmpfile-safer (Makefile.am): Likewise.
5042         * modules/trim (Makefile.am): Likewise.
5043         * modules/unistd-safer (Makefile.am): Likewise.
5044         * modules/unlinkdir (Makefile.am): Likewise.
5045         * modules/unlocked-io (Makefile.am): Likewise.
5046         * modules/userspec (Makefile.am): Likewise.
5047         * modules/utime (Makefile.am): Likewise.
5048         * modules/utimecmp (Makefile.am): Likewise.
5049         * modules/utimens (Makefile.am): Likewise.
5050         * modules/vasnprintf (Makefile.am): Likewise.
5051         * modules/vasprintf (Makefile.am): Likewise.
5052         * modules/vsnprintf (Makefile.am): Likewise.
5053         * modules/xalloc (Makefile.am): Likewise.
5054         * modules/xgetcwd (Makefile.am): Likewise.
5055         * modules/xnanosleep (Makefile.am): Likewise.
5056         * modules/xreadlink (Makefile.am): Likewise.
5057         * modules/xstrtod (Makefile.am): Likewise.
5058         * modules/xstrtol (Makefile.am): Likewise.
5059         * modules/xstrtold (Makefile.am): Likewise.
5060         * modules/yesno (Makefile.am): Likewise.
5061         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
5062
5063 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
5064
5065         * modules/error (Makefile.am): Distribute files through
5066         EXTRA_DIST, not lib_SOURCES.
5067
5068 2006-10-12  Eric Blake  <ebb9@byu.net>
5069
5070         * modules/error (Makefile.am): Distribute files in /lib.
5071         * modules/obstack (Makefile.am): Likewise.
5072
5073 2006-10-12  Bruno Haible  <bruno@clisp.org>
5074
5075         * modules/acl (Makefile.am): Distribute all files in lib/ through
5076         EXTRA_DIST.
5077         * modules/arcfour (Makefile.am): Likewise.
5078         * modules/arctwo (Makefile.am): Likewise.
5079         * modules/argmatch (Makefile.am): Likewise.
5080         * modules/argz (Makefile.am): Likewise.
5081         * modules/atexit (Makefile.am): Likewise.
5082         * modules/backupfile (Makefile.am): Likewise.
5083         * modules/c-strtod (Makefile.am): Likewise.
5084         * modules/c-strtold (Makefile.am): Likewise.
5085         * modules/calloc (Makefile.am): Likewise.
5086         * modules/canon-host (Makefile.am): Likewise.
5087         * modules/canonicalize (Makefile.am): Likewise.
5088         * modules/chdir-long (Makefile.am): Likewise.
5089         * modules/chdir-safer (Makefile.am): Likewise.
5090         * modules/check-version (Makefile.am): Likewise.
5091         * modules/chown (Makefile.am): Likewise.
5092         * modules/cloexec (Makefile.am): Likewise.
5093         * modules/close-stream (Makefile.am): Likewise.
5094         * modules/closeout (Makefile.am): Likewise.
5095         * modules/crc (Makefile.am): Likewise.
5096         * modules/cycle-check (Makefile.am): Likewise.
5097         * modules/des (Makefile.am): Likewise.
5098         * modules/dirfd (Makefile.am): Likewise.
5099         * modules/dirname (Makefile.am): Likewise.
5100         * modules/dup2 (Makefile.am): Likewise.
5101         * modules/euidaccess (Makefile.am): Likewise.
5102         * modules/exclude (Makefile.am): Likewise.
5103         * modules/exitfail (Makefile.am): Likewise.
5104         * modules/fcntl-safer (Makefile.am): Likewise.
5105         * modules/file-type (Makefile.am): Likewise.
5106         * modules/fileblocks (Makefile.am): Likewise.
5107         * modules/filemode (Makefile.am): Likewise.
5108         * modules/filenamecat (Makefile.am): Likewise.
5109         * modules/fnmatch (Makefile.am): Likewise.
5110         * modules/fopen-safer (Makefile.am): Likewise.
5111         * modules/fpending (Makefile.am): Likewise.
5112         * modules/fprintftime (Makefile.am): Likewise.
5113         * modules/free (Makefile.am): Likewise.
5114         * modules/fsusage (Makefile.am): Likewise.
5115         * modules/ftruncate (Makefile.am): Likewise.
5116         * modules/fts (Makefile.am): Likewise.
5117         * modules/gc (Makefile.am): Likewise.
5118         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
5119         * modules/getaddrinfo (Makefile.am): Likewise.
5120         * modules/getcwd (Makefile.am): Likewise.
5121         * modules/getdelim (Makefile.am): Likewise.
5122         * modules/getdomainname (Makefile.am): Likewise.
5123         * modules/getgroups (Makefile.am): Likewise.
5124         * modules/gethostname (Makefile.am): Likewise.
5125         * modules/gethrxtime (Makefile.am): Likewise.
5126         * modules/getline (Makefile.am): Likewise.
5127         * modules/getloadavg (Makefile.am): Likewise.
5128         * modules/getlogin_r (Makefile.am): Likewise.
5129         * modules/getopt (Makefile.am): Likewise.
5130         * modules/getpass (Makefile.am): Likewise.
5131         * modules/getpass-gnu (Makefile.am): Likewise.
5132         * modules/getsubopt (Makefile.am): Likewise.
5133         * modules/gettime (Makefile.am): Likewise.
5134         * modules/gettimeofday (Makefile.am): Likewise.
5135         * modules/getugroups (Makefile.am): Likewise.
5136         * modules/getusershell (Makefile.am): Likewise.
5137         * modules/glob (Makefile.am): Likewise.
5138         * modules/group-member (Makefile.am): Likewise.
5139         * modules/hard-locale (Makefile.am): Likewise.
5140         * modules/hash (Makefile.am): Likewise.
5141         * modules/hmac-md5 (Makefile.am): Likewise.
5142         * modules/hmac-sha1 (Makefile.am): Likewise.
5143         * modules/human (Makefile.am): Likewise.
5144         * modules/idcache (Makefile.am): Likewise.
5145         * modules/imaxabs (Makefile.am): Likewise.
5146         * modules/imaxdiv (Makefile.am): Likewise.
5147         * modules/inet_ntop (Makefile.am): Likewise.
5148         * modules/inet_pton (Makefile.am): Likewise.
5149         * modules/inttostr (Makefile.am): Likewise.
5150         * modules/isapipe (Makefile.am): Likewise.
5151         * modules/lchown (Makefile.am): Likewise.
5152         * modules/long-options (Makefile.am): Likewise.
5153         * modules/lstat (Makefile.am): Likewise.
5154         * modules/malloc (Makefile.am): Likewise.
5155         * modules/mathl (Makefile.am): Likewise.
5156         * modules/mbchar (Makefile.am): Likewise.
5157         * modules/md2 (Makefile.am): Likewise.
5158         * modules/md4 (Makefile.am): Likewise.
5159         * modules/md5 (Makefile.am): Likewise.
5160         * modules/memcasecmp (Makefile.am): Likewise.
5161         * modules/memchr (Makefile.am): Likewise.
5162         * modules/memcmp (Makefile.am): Likewise.
5163         * modules/memcoll (Makefile.am): Likewise.
5164         * modules/memcpy (Makefile.am): Likewise.
5165         * modules/memmem (Makefile.am): Likewise.
5166         * modules/memmove (Makefile.am): Likewise.
5167         * modules/mempcpy (Makefile.am): Likewise.
5168         * modules/memrchr (Makefile.am): Likewise.
5169         * modules/memset (Makefile.am): Likewise.
5170         * modules/memxor (Makefile.am): Likewise.
5171         * modules/mkancesdirs (Makefile.am): Likewise.
5172         * modules/mkdir (Makefile.am): Likewise.
5173         * modules/mkdir-p (Makefile.am): Likewise.
5174         * modules/mkdtemp (Makefile.am): Likewise.
5175         * modules/mkstemp (Makefile.am): Likewise.
5176         * modules/mktime (Makefile.am): Likewise.
5177         * modules/modechange (Makefile.am): Likewise.
5178         * modules/mountlist (Makefile.am): Likewise.
5179         * modules/nanosleep (Makefile.am): Likewise.
5180         * modules/openat (Makefile.am): Likewise.
5181         * modules/pagealign_alloc (Makefile.am): Likewise.
5182         * modules/physmem (Makefile.am): Likewise.
5183         * modules/poll (Makefile.am): Likewise.
5184         * modules/posixtm (Makefile.am): Likewise.
5185         * modules/posixver (Makefile.am): Likewise.
5186         * modules/putenv (Makefile.am): Likewise.
5187         * modules/quote (Makefile.am): Likewise.
5188         * modules/quotearg (Makefile.am): Likewise.
5189         * modules/raise (Makefile.am): Likewise.
5190         * modules/read-file (Makefile.am): Likewise.
5191         * modules/readline (Makefile.am): Likewise.
5192         * modules/readlink (Makefile.am): Likewise.
5193         * modules/readtokens (Makefile.am): Likewise.
5194         * modules/readutmp (Makefile.am): Likewise.
5195         * modules/realloc (Makefile.am): Likewise.
5196         * modules/regex (Makefile.am): Likewise.
5197         * modules/rename (Makefile.am): Likewise.
5198         * modules/rename-dest-slash (Makefile.am): Likewise.
5199         * modules/rijndael (Makefile.am): Likewise.
5200         * modules/rmdir (Makefile.am): Likewise.
5201         * modules/rpmatch (Makefile.am): Likewise.
5202         * modules/safe-read (Makefile.am): Likewise.
5203         * modules/safe-write (Makefile.am): Likewise.
5204         * modules/same (Makefile.am): Likewise.
5205         * modules/save-cwd (Makefile.am): Likewise.
5206         * modules/savedir (Makefile.am): Likewise.
5207         * modules/setenv (Makefile.am): Likewise.
5208         * modules/settime (Makefile.am): Likewise.
5209         * modules/sha1 (Makefile.am): Likewise.
5210         * modules/sig2str (Makefile.am): Likewise.
5211         * modules/snprintf (Makefile.am): Likewise.
5212         * modules/stdlib-safer (Makefile.am): Likewise.
5213         * modules/stpcpy (Makefile.am): Likewise.
5214         * modules/stpncpy (Makefile.am): Likewise.
5215         * modules/strcase (Makefile.am): Likewise.
5216         * modules/strcasestr (Makefile.am): Likewise.
5217         * modules/strchrnul (Makefile.am): Likewise.
5218         * modules/strcspn (Makefile.am): Likewise.
5219         * modules/strdup (Makefile.am): Likewise.
5220         * modules/strerror (Makefile.am): Likewise.
5221         * modules/strftime (Makefile.am): Likewise.
5222         * modules/strndup (Makefile.am): Likewise.
5223         * modules/strnlen (Makefile.am): Likewise.
5224         * modules/strpbrk (Makefile.am): Likewise.
5225         * modules/strsep (Makefile.am): Likewise.
5226         * modules/strstr (Makefile.am): Likewise.
5227         * modules/strtod (Makefile.am): Likewise.
5228         * modules/strtoimax (Makefile.am): Likewise.
5229         * modules/strtok_r (Makefile.am): Likewise.
5230         * modules/strtol (Makefile.am): Likewise.
5231         * modules/strtoll (Makefile.am): Likewise.
5232         * modules/strtoul (Makefile.am): Likewise.
5233         * modules/strtoull (Makefile.am): Likewise.
5234         * modules/strtoumax (Makefile.am): Likewise.
5235         * modules/strverscmp (Makefile.am): Likewise.
5236         * modules/time_r (Makefile.am): Likewise.
5237         * modules/timegm (Makefile.am): Likewise.
5238         * modules/tmpfile-safer (Makefile.am): Likewise.
5239         * modules/unistd-safer (Makefile.am): Likewise.
5240         * modules/unlinkdir (Makefile.am): Likewise.
5241         * modules/userspec (Makefile.am): Likewise.
5242         * modules/utime (Makefile.am): Likewise.
5243         * modules/utimecmp (Makefile.am): Likewise.
5244         * modules/utimens (Makefile.am): Likewise.
5245         * modules/vasnprintf (Makefile.am): Likewise.
5246         * modules/vasprintf (Makefile.am): Likewise.
5247         * modules/vsnprintf (Makefile.am): Likewise.
5248         * modules/xalloc (Makefile.am): Likewise.
5249         * modules/xgetcwd (Makefile.am): Likewise.
5250         * modules/xnanosleep (Makefile.am): Likewise.
5251         * modules/xreadlink (Makefile.am): Likewise.
5252         * modules/xstrtod (Makefile.am): Likewise.
5253         * modules/xstrtol (Makefile.am): Likewise.
5254         * modules/xstrtold (Makefile.am): Likewise.
5255         * modules/yesno (Makefile.am): Likewise.
5256
5257 2006-10-12  Jim Meyering  <jim@meyering.net>
5258
5259         * m4/getloadavg.m4: Revert the change below.
5260
5261         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
5262         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
5263         fail with a symlink, which is what coreutils' ./bootstrap now
5264         creates by default.
5265
5266 2006-10-12  Bruno Haible  <bruno@clisp.org>
5267
5268         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
5269         mingw.
5270         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
5271         MSVC and mingw explicitly.
5272
5273 2006-10-11  Simon Josefsson  <jas@extundo.com>
5274             Bruno Haible  <bruno@clisp.org>
5275
5276         Add support for multiple gnulib-tool invocations in the scope of a
5277         single configure.ac file.
5278         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
5279         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
5280         with the same contents as the _LIBADD variable.
5281         (func_emit_initmacro_start, func_emit_initmacro_end,
5282         func_emit_initmacro_done): New functions.
5283         (func_import, func_create_testdir): Invoke them. Allow the identifiers
5284         gl_LIBOBJS and gl_LTLIBOBJS.
5285
5286 2006-10-11  Bruno Haible  <bruno@clisp.org>
5287
5288         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
5289         (func_create_testdir): Don't create po/Makefile.am, don't invoke
5290         autoreconf. Instead, invoke autopoint explicitly but move back the
5291         *.m4 files from gnulib.
5292
5293 2006-10-11  Bruno Haible  <bruno@clisp.org>
5294
5295         * gnulib-tool (func_usage): Make module names after --create-testdir
5296         optional.
5297         (func_create_testdir): If no module was specified, use nearly all
5298         modules.
5299
5300 2006-10-12  Jim Meyering  <jim@meyering.net>
5301
5302         Big performance improvement for fts-based tools that use FTS_NOSTAT.
5303         Avoid spurious inode-mismatch problems on non-POSIX file systems.
5304         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
5305         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
5306         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
5307         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
5308         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
5309         (fts_set_stat_required): New function.
5310         (fts_open): Defer the calls to fts_stat, if possible or requested.
5311         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
5312         into fts_stat itself.
5313         (fts_read): Perform any required (deferred) fts_stat call.
5314         (fts_build): Likewise, for the directory we're about to open and read.
5315         In the readdir loop, carefully decide whether each entry will require
5316         an eventual call to fts_stat, using dirent.d_type info if available.
5317         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
5318         a command line argument into this function.  Update all callers.
5319         Map a return value of FTS_DOT to FTS_D for a command line argument.
5320         * modules/fts (Depends-on): Add d-type.  Alphabetize.
5321         Thanks to Miklos Szeredi for his tenacity and for the initial
5322         bug report about "find" failing on a FUSE-based file system.
5323
5324         * lib/fts.c (fts_open): Use consistent indentation.
5325
5326 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
5329         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
5330         reported by Jim Meyering.  All uses of cache variables renamed
5331         to match Autoconf's.
5332         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
5333         the other one.
5334
5335         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
5336         Fix misspelling in diagnostic.
5337
5338 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5339
5340         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
5341         defined.  Problem reported by Matthew Woehlke.
5342
5343         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
5344         Add support for Tandem NonStop R series.
5345         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
5346         Use new macro.
5347
5348         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
5349         (has_trailing_slash): Omit size arg; all callers changed.
5350         Omit 'inline', since it doesn't help performance and we'd
5351         need to configure it.
5352         Don't count //, ///, etc. as having a trailing slash.
5353         As a side effect, this removes a C99ism reported by Matthew Woehlke.
5354         (rpl_rename_dest_slash): On failure, use rename's errno rather
5355         than (in some cases) an incorrect or junk errno.
5356         Simplify code by removing need to compute length; this does
5357         cause it to make two passes instead of one over the file name,
5358         but it's worth it.
5359
5360         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
5361         change, since Autoconf's version may no longer be appropriate now
5362         that we are using CVS Autoconf's version.  Add support for Tandem.
5363
5364 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5365             Bruno Haible  <bruno@clisp.org>
5366
5367         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
5368         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
5369         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
5370         gl_AC_TYPE_LONG_LONG.
5371
5372         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
5373         instead of HAVE_LONG_LONG.
5374         * lib/printf-args.c (printf_fetchargs): Likewise.
5375         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5376         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5377         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5378         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
5379         gl_AC_TYPE_LONG_LONG.
5380
5381 2006-10-11  Bruno Haible  <bruno@clisp.org>
5382
5383         * m4/longlong.m4: Add comments.
5384         * m4/ulonglong.m4: Likewise.
5385
5386 2006-10-10  Bruno Haible  <bruno@clisp.org>
5387
5388         Make it possible to #define stpcpy, strdup to aliases.
5389         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
5390         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
5391
5392 2006-10-10  Bruno Haible  <bruno@clisp.org>
5393
5394         Make it possible to #define gcd to an alias.
5395         * lib/gcd.c: Include config.h.
5396
5397 2006-10-10  Bruno Haible  <bruno@clisp.org>
5398
5399         Make it possible to #define c_isascii to an alias.
5400         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
5401         defined. Undefine the macros before defining them, to avoid gcc
5402         warnings.
5403         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
5404         define NO_C_CTYPE_MACROS early.
5405
5406 2006-10-10  Bruno Haible  <bruno@clisp.org>
5407
5408         Make it possible to #define set_program_name to an alias.
5409         * lib/progname.c: Don't undefine set_program_name; instead, undefine
5410         ENABLE_RELOCATABLE early.
5411
5412 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5413
5414         Port to Tandem NSK OSS, which has 64-bit signed int but at most
5415         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
5416         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
5417         More generally, don't assume that 64-bit signed int is available
5418         if unsigned int is, and vice versa.
5419         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
5420         unsigned symbols, not on their signed counterparts.
5421         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
5422         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
5423         (UINT64_C, UINTMAX_C):
5424         Likewise.
5425         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
5426         unsigned counterparts.
5427         (Have_long_long, Unsigned): New macros.
5428         (Int): Renamed from INT.
5429         (strtoimax): Use the new macros.
5430         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
5431         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
5432         * modules/inttypes (inttypes.h): Substitute
5433         HAVE_UNSIGNED_LONG_LONG_INT.
5434         * modules/stdint (stdint.h): Likewise.
5435         (Files): Add m4/ulonglong.m4.
5436
5437 2006-10-10  Bruno Haible  <bruno@clisp.org>
5438
5439         Fix a gcc -Wshadow warning.
5440         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
5441         to 'bucket'.
5442         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
5443         gl_linked_indexof_from_to): Likewise.
5444         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
5445         Likewise.
5446         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
5447         Likewise.
5448         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
5449         Reported by Eric Blake.
5450
5451 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
5452
5453         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
5454         for NetBSD.  Problem reported by Bruno Haible.
5455
5456 2006-10-09  Jim Meyering  <jim@meyering.net>
5457
5458         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
5459         Patch from Bruno Haible.
5460
5461 2006-10-09  Jim Meyering  <jim@meyering.net>
5462
5463         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
5464         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
5465         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
5466
5467 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5468
5469         Don't include <config.h> twice; this doesn't work in some cases,
5470         e.g., when config.h has "#define intmax_t long long int" and
5471         we include <config.h>, <inttypes.h>, <config.h> in that order.
5472         Problem reported by Matthew Woehlke in:
5473         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
5474         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
5475         * lib/fts-cycle.c: Don't include config.h.
5476         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
5477         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
5478         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
5479         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
5480         inttypes.h.
5481         * lib/xstrtoumax.c: Likewise.
5482         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
5483         __strtol and the like, so that this module is more like its siblings.
5484         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
5485         Remove; no longer needed now that we assume gnulib inttypes.h.
5486
5487 2006-10-08  Bruno Haible  <bruno@clisp.org>
5488
5489         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
5490         option.
5491
5492 2006-10-07  Jim Meyering  <jim@meyering.net>
5493
5494         * modules/inttypes (inttypes.h): Revert what seems to have been
5495         an inadvertent part of today's change: use "|", not "/" in the
5496         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
5497
5498 2006-10-07  Bruno Haible  <bruno@clisp.org>
5499
5500         * modules/sublist: New file.
5501
5502 2006-10-07  Bruno Haible  <bruno@clisp.org>
5503
5504         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
5505         * modules/argz (argz.h): Likewise.
5506         * modules/arpa_inet (arpa/inet.h): Likewise.
5507         * modules/byteswap (byteswap.h): Likewise.
5508         * modules/configmake (configmake.h): Likewise.
5509         * modules/fcntl (fcntl.h): Likewise.
5510         * modules/fnmatch (fnmatch.h): Likewise.
5511         * modules/getopt (getopt.h): Likewise.
5512         * modules/glob (glob.h): Likewise.
5513         * modules/inttypes (inttypes.h): Likewise.
5514         * modules/netinet_in (netinet/in.h): Likewise.
5515         * modules/poll (poll.h): Likewise.
5516         * modules/stdbool (stdbool.h): Likewise.
5517         * modules/stdint (stdint.h): Likewise.
5518         * modules/sys_select (sys/select.h): Likewise.
5519         * modules/sys_socket (sys/socket.h): Likewise.
5520         * modules/sys_stat (sys/stat.h): Likewise.
5521         * modules/sysexits (sysexits.h): Likewise.
5522         * modules/unistd (unistd.h): Likewise.
5523         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5524         Add a "DO NOT EDIT" comment to the generated file.
5525         (func_import): Likewise for gnulib-comp.m4.
5526
5527 2006-10-07  Bruno Haible  <bruno@clisp.org>
5528
5529         * lib/gl_sublist.h: New file.
5530         * lib/gl_sublist.c: New file.
5531
5532 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
5533
5534         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
5535         name (relative to the original working directory) and the file
5536         name component (relative to the temporary working directory).  All
5537         callers changed.
5538         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
5539         * lib/mkdir-p.c (make_dir_parents): Likewise.
5540         * lib/mkdir-p.h (make_dir_parents): Likewise.
5541
5542 2006-10-06  Eric Blake  <ebb9@byu.net>
5543
5544         Define several macros for use by the clean-temp module.
5545         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
5546         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
5547         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
5548
5549         * lib/clean-temp.h (close_stream_temp): New declaration.
5550         * lib/clean-temp.c (includes): Pull in headers according to what
5551         other modules are in use.
5552         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
5553
5554 2006-10-06  Bruno Haible  <bruno@clisp.org>
5555
5556         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
5557         instead of fopen, fwriteerror.
5558
5559 2006-10-06  Bruno Haible  <bruno@clisp.org>
5560
5561         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
5562         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
5563         int.
5564         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
5565         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
5566         Return an error indicator.
5567         Suggested by Eric Blake.
5568
5569 2006-10-06  Bruno Haible  <bruno@clisp.org>
5570
5571         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
5572         Reported by Eric Blake.
5573
5574 2006-10-06  Bruno Haible  <bruno@clisp.org>
5575
5576         * modules/closeout (Description): Mention stderr too.
5577
5578 2006-10-06  Bruno Haible  <bruno@clisp.org>
5579         and Paul Eggert  <eggert@cs.ucla.edu>
5580
5581         * lib/closeout.c (close_stdout): Also close stderr.
5582         * lib/closeout.h: Update comment.
5583
5584 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5585
5586         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
5587         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
5588         * lib/dirchownmod.c: Include lchown.h.
5589         * lib/lchown.c: Don't include files that lchown.h now includes.
5590         Don't declare chown, since lchown.h now does that.
5591         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
5592         (lchown): Define to rpl_chown if lchown is declared but
5593         does not exist.  Declare using a prototype if lchown is not
5594         declared.  Add a copyright notice.
5595         * lib/mkstemp.h: Include <unistd.h>.
5596         * lib/openat.c: Include lchown.h.
5597
5598         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
5599         we now test for that separately.
5600         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
5601         rather than O_NOFOLLOW, when testing whether it's possible to
5602         avoid a race condition reliably.
5603         * lib/savewd.c (savewd_chdir): Likewise.
5604
5605         Remove macros that are no longer needed now that stdint.h is
5606         reliable.
5607         * lib/fsusage.c (UINTMAX_MAX): Remove.
5608         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
5609         * lib/utimecmp.c (SIZE_MAX): Remove.
5610
5611         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
5612
5613         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
5614         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
5615         O_NOATIME works.
5616
5617 2006-10-05  Bruno Haible  <bruno@clisp.org>
5618
5619         * lib/gl_list.h (gl_sortedlist_search_from_to,
5620         gl_sortedlist_indexof_from_to): New declarations.
5621         (gl_list_implementation): New fields sortedlist_search_from_to,
5622         sortedlist_indexof_from_to.
5623         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
5624         inline functions.
5625         * lib/gl_list.c (gl_sortedlist_search_from_to,
5626         gl_sortedlist_indexof_from_to): New functions.
5627         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
5628         function.
5629         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
5630         (gl_array_sortedlist_search_from_to): New function.
5631         (gl_array_list_implementation): Update.
5632         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
5633         function.
5634         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
5635         (gl_carray_sortedlist_search_from_to): New function.
5636         (gl_carray_list_implementation): Update.
5637         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
5638         gl_linked_sortedlist_indexof_from_to): New functions.
5639         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5640         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5641         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
5642         gl_tree_sortedlist_indexof_from_to): New functions.
5643         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5644         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5645         Update.
5646         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5647         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
5648         Update.
5649
5650 2006-10-05  Bruno Haible  <bruno@clisp.org>
5651
5652         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
5653         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
5654         (struct gl_list_implementation): Add fields search_from_to,
5655         indexof_from_to. Remove fields search, indexof.
5656         (gl_list_search): Use the search_from_to method.
5657         (gl_list_search_from, gl_list_search_from_to): New functions.
5658         (gl_list_indexof): Use the indexof_from_to method.
5659         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
5660         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
5661         (gl_list_search_from, gl_list_search_from_to): New functions.
5662         (gl_list_indexof): Use the indexof_from_to method.
5663         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
5664         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
5665         gl_array_indexof. Add start_index, end_index arguments.
5666         (gl_array_search_from_to): Renamed from gl_array_search. Add
5667         start_index, end_index arguments.
5668         (gl_array_remove, gl_array_list_implementation): Update.
5669         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
5670         gl_carray_indexof. Add start_index, end_index arguments.
5671         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
5672         start_index, end_index arguments.
5673         (gl_carray_remove, gl_carray_list_implementation): Update.
5674         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
5675         gl_linked_search. Add start_index, end_index arguments.
5676         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
5677         start_index, end_index arguments.
5678         (gl_linked_remove): Update.
5679         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5680         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5681         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
5682         field to 'size_t'.
5683         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
5684         gl_tree_search. Add start_index, end_index arguments.
5685         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
5686         start_index, end_index arguments.
5687         (gl_tree_remove): Update.
5688         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5689         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5690         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
5691         function.
5692         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
5693         gl_tree_search. Add start_index, end_index arguments.
5694         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
5695         start_index, end_index arguments.
5696         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5697         Update.
5698         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5699
5700 2006-10-05  Bruno Haible  <bruno@clisp.org>
5701
5702         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
5703
5704         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5705         fwriteerror_temp): New declarations.
5706         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
5707         (descriptors): New variable.
5708         (cleanup): First, close the descriptors.
5709         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
5710         fclose_temp, fwriteerror_temp): New functions.
5711
5712 2006-10-04  Jim Meyering  <jim@meyering.net>
5713
5714         * lib/fts.c (fts_open): Tiny comment change.
5715
5716 2006-10-04  Bruno Haible  <bruno@clisp.org>
5717
5718         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
5719         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
5720         gl_LOCK_BODY.
5721         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
5722         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
5723         gl_LOCK_EARLY_BODY.
5724         (gl_LOCK): Require gl_LOCK_BODY.
5725
5726 2006-10-04  Bruno Haible  <bruno@clisp.org>
5727
5728         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
5729         (gl_oset_search_atleast): New declaration.
5730         (struct gl_oset_implementation): Add field 'search_atleast'.
5731         (gl_oset_search_atleast): New inline function.
5732         * lib/gl_oset.c (gl_oset_search_atleast): New function.
5733         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
5734         (gl_array_oset_implementation): Update.
5735         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
5736         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
5737         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
5738
5739 2006-10-04  Bruno Haible  <bruno@clisp.org>
5740
5741         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
5742
5743 2006-10-03  Bruno Haible  <bruno@clisp.org>
5744
5745         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
5746         from gl_avltreehash_list_implementation.
5747
5748 2006-10-03  Bruno Haible  <bruno@clisp.org>
5749
5750         * lib/gl_oset.c (gl_oset_add): Fix return type.
5751
5752 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
5753
5754         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
5755
5756 2006-10-02  Eric Blake  <ebb9@byu.net>
5757
5758         * modules/strnlen (Depends-on): Add extensions.
5759
5760 2006-10-02  Eric Blake  <ebb9@byu.net>
5761
5762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
5763         definition in 2.60+.
5764
5765 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
5766
5767         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
5768         checks.
5769
5770 2006-10-02  Bruno Haible  <bruno@clisp.org>
5771
5772         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
5773         to the AUTOMAKE_OPTIONS.
5774         Reported by Jim Meyering.
5775
5776 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         Work around bug in Solaris 10 /proc file system:
5779         /proc/self/fd/NNN/.. isn't the parent directory of
5780         the directory whose file descriptor is NNN.  This needs to
5781         be worked around at run time, not compile time, since a
5782         program might be built on Solaris 8, where things work, and
5783         run on Solaris 10.
5784         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
5785         to use the following interface instead:
5786         (OPENAT_BUFFER_SIZE): New macro.
5787         (openat_proc_name): New function.
5788         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
5789         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
5790         Likewise.
5791         * lib/openat-proc.c: New file.
5792         * modules/openat (Files): Add lib/openat-proc.c.
5793         (Depends-on): Add same-inode, stdbool.
5794         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
5795
5796 2006-09-29  Bruno Haible  <bruno@clisp.org>
5797
5798         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
5799         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
5800         argument. Set stdout_closed before testing for ferror, not after.
5801         (fwriteerror, fwriteerror_no_ebadf): New functions.
5802
5803 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5804
5805         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
5806
5807 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
5808
5809         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
5810         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
5811
5812 2006-09-28  Jim Meyering  <jim@meyering.net>
5813
5814         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
5815         Include <unistd.h>.
5816
5817 2006-09-28  Bruno Haible  <bruno@clisp.org>
5818
5819         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
5820         * modules/linkedhash-list (Depends-on): Likewise.
5821         * modules/rbtreehash-list (Depends-on): Likewise.
5822
5823 2006-09-28  Bruno Haible  <bruno@clisp.org>
5824
5825         * lib/strndup.h: Simplify the redefinition of strndup.
5826         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
5827         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
5828
5829 2006-09-28  Bruno Haible  <bruno@clisp.org>
5830
5831         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
5832         * lib/gl_linkedhash_list.c: Likewise.
5833         * lib/gl_rbtreehash_list.c: Likewise.
5834
5835 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
5836
5837         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
5838         getaddrinfo.
5839
5840         * lib/__fpending.h: Don't include <stdio_ext.h> unless
5841         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
5842         it causes <stdio_ext.h> to cause a compile-time error.
5843         Problem reported by Nelson H. F. Beebe.
5844         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
5845         of HAVE_DECL___PENDING.
5846
5847         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
5848         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
5849         declaration.
5850
5851 2006-09-27  Jim Meyering  <jim@meyering.net>
5852
5853         This file could end up with a definition for a function
5854         named __strndup, rather than rpl_strndup on a system with
5855         incomplete weak_alias support.
5856         * lib/strndup.c (strndup): Rename from __strndup.
5857         Remove #defines that used to map __strndup to strndup.
5858         Don't use K&R prototypes.
5859         Remove LIBC-related code, since this file is not sync'd with glibc.
5860         * lib/strndup.h: Revamp, accordingly.
5861         * m4/strndup.m4: Modernize.
5862
5863 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5864
5865         * modules/savewd (Depends-on): Add 'raise'.
5866         * lib/savewd.c: Include <signal.h>, for 'raise'.
5867
5868 2006-09-26  Jim Meyering  <jim@meyering.net>
5869
5870         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
5871         when we detect Darwin 8.7.0's acl_get_file bug.
5872         Rearrange to perform the new (below) run-test while $LIBS
5873         contains any acl-related library.  Set USE_ACL at the end.
5874         (gl_ACL_GET_FILE): New function.
5875
5876 2006-09-26  Eric Blake  <ebb9@byu.net>
5877
5878         * lib/verror.c: Include <config.h> unconditionally.
5879
5880 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5881
5882         * modules/clock-time (Maintainer): Add self.
5883         * modules/getlogin_r (Depends-on): Add extensions.
5884
5885 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5886
5887         * modules/clock-time: New module.
5888         * modules/nanosleep (Depends-on): Add clock-time.
5889         * modules/gethrxtime (Depends-on): Likewise.
5890         * modules/gettime (Depends-on): Likewise.
5891         * modules/settime (Depends-on): Likewise.
5892
5893         * modules/fts-lgpl: Depend on openat.
5894         * modules/mkancesdirs: Depend on savewd.
5895         * modules/mkdir-p: Likewise.
5896
5897 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5898
5899         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
5900
5901         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
5902         `gl_have_arbitrary_file_name_length_limit' to
5903         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
5904         actually works between configure runs.
5905
5906 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5907             Bruno Haible  <bruno@clisp.org>
5908
5909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
5910
5911 2006-09-25  Jim Meyering  <jim@meyering.net>
5912
5913         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
5914         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
5915
5916 2006-09-25  Eric Blake  <ebb9@byu.net>
5917
5918         * gnulib-tool (func_import, func_create_testdir): Fix typos in
5919         exec's in 2006-09-18 patch when shuffling fds.
5920
5921 2006-09-25  Bruno Haible  <bruno@clisp.org>
5922
5923         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
5924         Reported by Jim Meyering.
5925
5926 2006-09-24  Jim Meyering  <jim@meyering.net>
5927
5928         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
5929         compare a pointer against a literal "0".  That caused failures with
5930         at least HP-UX's hpcc.
5931
5932 2006-09-22  Simon Josefsson  <jas@extundo.com>
5933
5934         * modules/gc-sha1:
5935         * modules/gc-md4:
5936         * modules/gc-hmac-sha1:
5937         * modules/gc-hmac-md5:
5938         * modules/gc-des:
5939         * modules/gc-arcfour: Distribute more files.
5940
5941 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5942
5943         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
5944         (gl_linked_iterator_from_to): Initialize struct completely.
5945         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
5946         (gl_tree_iterator_from_to): Likewise
5947         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
5948         * lib/gl_array_list.c [lint] (gl_array_iterator)
5949         (gl_array_iterator_from_to): Likewise.
5950         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
5951         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
5952         (gl_carray_iterator_from_to): Likewise.
5953
5954         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
5955         * lib/md4.c (md4_process_block): Remove unused variable.
5956         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
5957         parentheses for clarity.
5958
5959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5960
5961         * modules/bison-i18n (Depends-on): Add gettext.
5962
5963 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5964
5965         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
5966         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
5967         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
5968         also add missing comma that caused broken test.
5969         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
5970         stdlib.h, for `abort'.
5971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
5972         variables.
5973         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
5974         include unistd.h if present, for `rmdir'.
5975         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
5976         variables.
5977         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
5978         in the process include standard headers for prototypes.
5979         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
5980         gets declared on GNU/Linux.
5981         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
5982         unistd.h, for `rmdir'.
5983         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
5984
5985         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
5986         always true.
5987         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
5988
5989         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
5990
5991 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5992
5993         * gnulib-tool (func_version): Create output all at once.  This
5994         may help avoid triggering unnecessary SIGPIPEs, and at any
5995         rate it doesn't hurt.
5996
5997 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5998             Bruno Haible  <bruno@clisp.org>
5999
6000         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
6001         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6002         * m4/signed.m4 (bh_C_SIGNED): Likewise.
6003
6004         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
6005         (gl_FUNC_VASPRINTF): Invoke it.
6006
6007 2006-09-22  Bruno Haible  <bruno@clisp.org>
6008
6009         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
6010         getloadavg.c as first argument.
6011
6012 2006-09-22  Bruno Haible  <bruno@clisp.org>
6013
6014         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
6015         at the beginning of the gl_INIT macro.
6016         * modules/getloadavg (configure.ac): Pass $gl_source_base to
6017         gl_GETLOADAVG.
6018
6019 2006-09-22  Bruno Haible  <bruno@clisp.org>
6020
6021         * gnulib-tool (func_create_megatestdir): Don't include the config-h
6022         module.
6023         Suggested by Ralf Wildenhues.
6024
6025 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         Import this patch from libc:
6028
6029         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
6030
6031         * lib/regex_internal.c (re_string_reconstruct): Handle
6032         offset < pstr->valid_raw_len && pstr->offsets_needed case.
6033         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
6034         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6035         re_string_context_at.
6036
6037         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
6038         now requires it.
6039         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
6040         gl_REGEX now does it for us.
6041         (gl_REGEX): Add test taken from
6042         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
6043
6044         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
6045         Check that large offsets work.  Modernize Autoconf usages.
6046         Prefer "yes" to mean a good thing rather than a bad.
6047         Don't put "#define mkstemp" in config.h, as this might interfere
6048         with standard system headers that "#define mkstemp mkstemp64".
6049
6050         * modules/mkstemp (Depends-on): Add extensions, so that
6051         mkstemp is visible on some platforms.
6052         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
6053         (Include): Change to "mkstemp.h" from <stdlib.h>.
6054         (Files): Add mkstemp.h.
6055
6056         * lib/mkstemp.h: New file, since some standard headers
6057         #define mkstemp.
6058         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
6059         Include "mkstemp.h".
6060         Make the _LIBC code resemble glibc original more,
6061         e.g., use K&R style.
6062         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
6063         (mkstemp): Remove, since mkstemp.h does this for us.
6064         * lib/stdlib--.h: Include mkstemp.h.
6065
6066         Import this patch from libc:
6067
6068         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
6069
6070         * lib/tempname.c (__gen_tempname): Change attempts_min
6071         into a macro.  Use preprocessor to decide how to initialize
6072         attempts [Coverity CID 67].
6073
6074 2006-09-20  Bruno Haible  <bruno@clisp.org>
6075
6076         * lib/mkdtemp.c: Import from libc.
6077         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
6078                 * sysdeps/posix/tempname.c (__gen_tempname): Change
6079                 attempts_min into a macro.  Use preprocessor to decide how to
6080                 initialize attempts [Coverity CID 67].
6081         2001-11-27  Paul Eggert  <eggert@twinsun.com>
6082                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6083                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6084
6085 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6086
6087         * gnulib-tool (func_exit): New function, to allow to pass the
6088         exit status portably through the trap.  Use everywhere.
6089         (--help, --version): Signal a write error.
6090         (trap): catch SIGPIPE, for write errors.
6091         Exit at the end of the trap, with the correct exit status.
6092
6093 2006-09-19  Karl Berry  <karl@gnu.org>
6094
6095         * doc/gnulib.texi: note about the license texinfo files.
6096
6097 2006-09-19  Eric Blake  <ebb9@byu.net>
6098
6099         * gnulib-tool: Avoid space-tab.
6100
6101 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6102
6103         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
6104         that prevented coreutils 6.1 from building.  Problem reported
6105         by Petter Reinholdtsen.
6106
6107 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6108
6109         * gnulib-tool (avoidlist): Fix typo that broke options like
6110         --avoid=lock that are used by coreutils bootstrap.
6111
6112 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
6113
6114         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
6115         more systematically.
6116
6117 2006-09-18  Jim Meyering  <jim@meyering.net>
6118
6119         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
6120
6121 2006-09-18  Bruno Haible  <bruno@clisp.org>
6122
6123         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
6124
6125 2006-09-18  Bruno Haible  <bruno@clisp.org>
6126
6127         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
6128         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
6129         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
6130         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
6131         * m4/gettext.m4: Require autoconf >= 2.52.
6132         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
6133         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
6134         of gl_cv_header_inttypes_h.
6135
6136 2006-09-18  Bruno Haible  <bruno@clisp.org>
6137
6138         * lib/javaversion.c: Include configmake.h.
6139
6140 2006-09-18  Bruno Haible  <bruno@clisp.org>
6141
6142         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
6143         avoid that the while loops be executed in a subshell.
6144
6145 2006-09-18  Bruno Haible  <bruno@clisp.org>
6146
6147         * MODULES.html.sh (func_module): Break long lines.
6148         Suggested by Bruce Korb <bkorb@gnu.org>.
6149
6150 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6151
6152         Speed up by a factor of 1.12.
6153         * gnulib-tool (nl): New variable.
6154         (func_import): Rewrite include directive extraction to only read each
6155         directive once.
6156
6157 2006-09-17  Bruno Haible  <bruno@clisp.org>
6158
6159         * modules/javaversion (Makefile.am): Remove DEFS setting.
6160         (Depends-on): Add configmake, for PKGDATADIR definition.
6161
6162 2006-09-17  Bruno Haible  <bruno@clisp.org>
6163
6164         * gnulib-tool (func_create_testdir): Rewrite all files at once.
6165
6166 2006-09-17  Bruno Haible  <bruno@clisp.org>
6167
6168         * gnulib-tool (func_append): New function, stolen from libtool.m4.
6169         (func_modules_transitive_closure, func_modules_add_dummy,
6170         func_modules_to_filelist, func_import, func_create_testdir,
6171         func_create_megatestdir, ...): Use it wherever possible.
6172         Suggested by Ralf Wildenhues.
6173
6174 2006-09-16  Karl Berry  <karl@gnu.org>
6175
6176         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
6177         to avoid sectioning errors.
6178         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
6179         [ifinfo]: blank line after @center-ed titles.
6180         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
6181         Spell FSF address consistently with others.
6182         (These changes approved by rms.)
6183
6184 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6185
6186         Speed up by a factor of 1.61.
6187         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
6188         already checked module names again.
6189
6190 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6191
6192         Speed up by a factor of 1.13.
6193         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
6194         for new_files, and the input to func_add_or_update.
6195
6196 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6197
6198         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
6199         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
6200
6201 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
6202
6203         * modules/mkancesdirs (Depends-on): Add fcntl.
6204         * modules/savewd: New file.
6205         * MODULES.html.sh (File system functions): Add savewd.
6206
6207         * modules/configmake (Makefile.am): Add support for the
6208         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
6209
6210 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
6211
6212         * m4/savewd.m4: New file.
6213
6214 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
6215
6216         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
6217         (dirchownmod): New arg FD.  All callers changed.
6218         Use FD rather than opening the directory ourself, as opening is
6219         now the caller's responsibility.
6220         * lib/dirchownmod.h: Likewise.
6221         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
6222         hosts that require <sys/types.h> before <sys/stat.h>.  Include
6223         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
6224         (test_dir): Remove.
6225         (mkancesdirs): Return length of prefix of FILE that has already
6226         been made, or -2 if there is a child doing the work.  Redo
6227         algorithm so that it is O(N) rather than O(N**2).  Optimize away
6228         ".", and treat ".." specially since it might stray back into
6229         already-created areas.  Use a subprocess if necessary.  New arg
6230         WD; all users changed.  MAKE_DIR function should now return 1
6231         if it creates a directory that is not readable.  Return -2 if
6232         a child process is spun off.
6233         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
6234         Adjust signature to match code.
6235         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
6236         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
6237         all users changed.
6238         * lib/savewd.c, lib/savewd.h: New files.
6239
6240 2006-09-15  Jim Meyering  <jim@meyering.net>
6241
6242         * modules/rename-dest-slash: New module.
6243         * MODULES.html.sh (posix_compat): Add it here.
6244
6245         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
6246
6247 2006-09-15  Jim Meyering  <jim@meyering.net>
6248
6249         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
6250         file.
6251
6252         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
6253
6254 2006-09-15  Jim Meyering  <jim@meyering.net>
6255
6256         * lib/rename-dest-slash.c (has_trailing_slash): Use
6257         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
6258         (rpl_rename_dest_slash): Perform the cheaper trailing slash
6259         test before testing whether SRC is a directory.
6260         Suggestions from Bruno Haible.
6261
6262         Avoid a warning about an unused variable.
6263         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
6264         into the #ifdef block where it's used.
6265
6266         * lib/rename-dest-slash.c: New file.
6267
6268 2006-09-14  Bruno Haible  <bruno@clisp.org>
6269
6270         * lib/allocsa.c: Include <config.h> unconditionally.
6271         * lib/asnprintf.c: Likewise.
6272         * lib/asprintf.c: Likewise.
6273         * lib/c-strcasecmp.c: Likewise.
6274         * lib/c-strcasestr.c: Likewise.
6275         * lib/c-strncasecmp.c: Likewise.
6276         * lib/c-strstr.c: Likewise.
6277         * lib/classpath.c: Likewise.
6278         * lib/clean-temp.c: Likewise.
6279         * lib/concatpath.c: Likewise.
6280         * lib/copy-file.c: Likewise.
6281         * lib/csharpcomp.c: Likewise.
6282         * lib/csharpexec.c: Likewise.
6283         * lib/execute.c: Likewise.
6284         * lib/fatal-signal.c: Likewise.
6285         * lib/findprog.c: Likewise.
6286         * lib/fwriteerror.c: Likewise.
6287         * lib/gl_array_list.c: Likewise.
6288         * lib/gl_array_oset.c: Likewise.
6289         * lib/gl_avltree_list.c: Likewise.
6290         * lib/gl_avltree_oset.c: Likewise.
6291         * lib/gl_avltreehash_list.c: Likewise.
6292         * lib/gl_carray_list.c: Likewise.
6293         * lib/gl_linked_list.c: Likewise.
6294         * lib/gl_linkedhash_list.c: Likewise.
6295         * lib/gl_list.c: Likewise.
6296         * lib/gl_oset.c: Likewise.
6297         * lib/gl_rbtree_list.c: Likewise.
6298         * lib/gl_rbtree_oset.c: Likewise.
6299         * lib/gl_rbtreehash_list.c: Likewise.
6300         * lib/imaxabs.c: Likewise.
6301         * lib/imaxdiv.c: Likewise.
6302         * lib/javacomp.c: Likewise.
6303         * lib/javaexec.c: Likewise.
6304         * lib/javaversion.c: Likewise.
6305         * lib/linebreak.c: Likewise.
6306         * lib/localcharset.c: Likewise.
6307         * lib/lock.c: Likewise.
6308         * lib/mbchar.c: Likewise.
6309         * lib/mbswidth.c: Likewise.
6310         * lib/mkdtemp.c: Likewise.
6311         * lib/pipe.c: Likewise.
6312         * lib/printf-args.c: Likewise.
6313         * lib/printf-parse.c: Likewise.
6314         * lib/progname.c: Likewise.
6315         * lib/progreloc.c: Likewise.
6316         * lib/readlink.c: Likewise.
6317         * lib/sh-quote.c: Likewise.
6318         * lib/stpcpy.c: Likewise.
6319         * lib/stpncpy.c: Likewise.
6320         * lib/strcasecmp.c: Likewise.
6321         * lib/strcasestr.c: Likewise.
6322         * lib/strcspn.c: Likewise.
6323         * lib/striconv.c: Likewise.
6324         * lib/strncasecmp.c: Likewise.
6325         * lib/strnlen1.c: Likewise.
6326         * lib/strstr.c: Likewise.
6327         * lib/strtok_r.c: Likewise.
6328         * lib/tls.c: Likewise.
6329         * lib/tmpdir.c: Likewise.
6330         * lib/unicodeio.c: Likewise.
6331         * lib/unsetenv.c: Likewise.
6332         * lib/vasnprintf.c: Likewise.
6333         * lib/vasprintf.c: Likewise.
6334         * lib/wait-process.c: Likewise.
6335         * lib/xallocsa.c: Likewise.
6336         * lib/xsetenv.c: Likewise.
6337         * lib/xstriconv.c: Likewise.
6338
6339 2006-09-13  Simon Josefsson  <jas@extundo.com>
6340
6341         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
6342         that internally, suggested by Ralf Wildenhues
6343         <Ralf.Wildenhues@gmx.de>.
6344
6345 2006-09-13  Simon Josefsson  <jas@extundo.com>
6346
6347         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
6348         @LIBOBJS@.
6349         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6350
6351 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6352
6353         * lib/_fpending.c: Include <config.h> unconditionally, since we no
6354         longer worry about uses that don't define HAVE_CONFIG_H.
6355         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
6356         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
6357         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
6358         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
6359         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
6360         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
6361         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
6362         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
6363         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
6364         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
6365         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
6366         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
6367         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
6368         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
6369         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
6370         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
6371         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
6372         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
6373         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
6374         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
6375         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
6376         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
6377         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
6378         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
6379         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
6380         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
6381         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
6382         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
6383         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
6384         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
6385         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
6386         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
6387         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
6388         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
6389         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
6390         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
6391         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
6392         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
6393         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
6394         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
6395         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
6396         Likewise.
6397
6398 2006-09-13  Eric Blake  <ebb9@byu.net>
6399
6400         * lib/getopt.c: Fix typo in last commit.
6401
6402 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6403
6404         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
6405         dgettext.
6406
6407 2006-09-12  Jim Meyering  <jim@meyering.net>
6408
6409         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
6410         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
6411         Reported by Nelson H. F. Beebe.
6412
6413 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
6414
6415         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
6416         program_invocation_name and program_invocation_short_name are
6417         initialized.
6418         * lib/argp-namefrob.h: Move declarations of program_invocation_name
6419         and program_invocation_short_name to argp.h, so they are visible
6420         to user programs.
6421         * lib/argp.h: Likewise
6422
6423 2006-09-10  Bruno Haible  <bruno@clisp.org>
6424
6425         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6426         m4/inttypes_h.m4, m4/uintmax_t.m4.
6427
6428 2006-09-10  Bruno Haible  <bruno@clisp.org>
6429
6430         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
6431         gl_AC_TYPE_UINTMAX_T.
6432
6433 2006-09-10  Bruno Haible  <bruno@clisp.org>
6434
6435         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
6436
6437 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
6438
6439         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
6440         convention.  Text proposed by Bruno Haible.
6441         (struct argp_option): Document the use of N_() wrappers.
6442
6443         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
6444         '\v', and translate the two parts separately, instead of feeding
6445         the whole string to gettext.  This allows to exclude
6446         '\v' from the strings visible to the translator by writing doc
6447         strings as N_("..") "\v" N_("..").
6448
6449 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         * config/srclist.txt: Undo latest change; the bug was fixed.
6452
6453 2006-09-09  Bruno Haible  <bruno@clisp.org>
6454
6455         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
6456         assignments if building a library without libtool.
6457         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
6458         in func_emit_lib_Makefile_am.
6459         (func_import): When building a static library libfoo.a, arrange to
6460         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
6461         (func_create_testdir): Likewise.
6462         * modules/gc (configure.ac, Makefile.am): If building statically,
6463         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
6464         * modules/iconvme (configure.ac, Makefile.am): Likewise.
6465         * modules/striconv (configure.ac, Makefile.am): Likewise.
6466         Based on a suggestion by Ralf Wildenhues.
6467
6468 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
6469
6470         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
6471         Check for unistd.h too, since Autoconf doesn't assume POSIX.
6472         Also:
6473
6474         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
6475         Add year_2050_test to catch glibc bug 2821
6476         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6477
6478         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6479         Prefer #ifdef to #if.
6480
6481         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
6482         Return from 'main' instead of calling 'exit'.
6483
6484 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
6485
6486         * lib/mktime.c (guess_time_tm): Fix bug where mktime
6487         returned the maximum time_t value rather than (time_t) -1.
6488         Problem originally reported by William Bardwell
6489         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6490
6491         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6492         Moved to here ...
6493         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6494         ... from here.
6495
6496 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
6497
6498         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
6499         2821 is fixed.
6500
6501 2006-09-08  Jim Meyering  <jim@meyering.net>
6502
6503         Don't make generated files read-only.  That would bother too many
6504         people.  However, do retain the ability to work when targets are
6505         read-only: remove the destination and temporary files before writing
6506         them (when generated via sed or echo), or by using the -f option for
6507         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
6508         * modules/alloca-opt, modules/argz, modules/arpa_inet:
6509         * modules/byteswap, modules/configmake, modules/fcntl:
6510         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6511         * modules/localcharset, modules/netinet_in, modules/poll:
6512         * modules/stdbool, modules/stdint, modules/sys_select:
6513         * modules/sys_socket, modules/sys_stat, modules/sysexits:
6514
6515 2006-09-08  Jim Meyering  <jim@meyering.net>
6516
6517         Avoid new build failure on FreeBSD 6.0.
6518         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
6519         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
6520         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
6521
6522 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6523
6524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
6525
6526 2006-09-07  Jim Meyering  <jim@meyering.net>
6527
6528         Fix global typo in last change: use chmod u-w, not chmod u-x.
6529         Spotted by Paul Eggert and Bruce Korb.
6530         * modules/alloca-opt, modules/argz, modules/arpa_inet:
6531         * modules/byteswap, modules/configmake, modules/fcntl:
6532         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6533         * modules/localcharset, modules/netinet_in, modules/poll:
6534         * modules/stdbool, modules/stdint, modules/sys_select:
6535         * modules/sys_socket, modules/sys_stat, modules/sysexits:
6536
6537 2006-09-06  Jim Meyering  <jim@meyering.net>
6538
6539         Make generated files be read-only.
6540         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
6541         Ensure that each generated file is now read-only.
6542         * modules/argz: Likewise.
6543         * modules/arpa_inet: Likewise.
6544         * modules/byteswap: Likewise.
6545         * modules/configmake: Likewise.
6546         * modules/fcntl: Likewise.
6547         * modules/fnmatch: Likewise.
6548         * modules/getopt: Likewise.
6549         * modules/glob: Likewise.
6550         * modules/inttypes: Likewise.
6551         * modules/netinet_in: Likewise.
6552         * modules/poll: Likewise.
6553         * modules/stdbool: Likewise.
6554         * modules/stdint: Likewise.
6555         * modules/sys_select: Likewise.
6556         * modules/sys_socket: Likewise.
6557         * modules/sys_stat: Likewise.
6558         * modules/sysexits: Likewise.
6559         * modules/localcharset: Same as above, but continue using temporary
6560         file named "t-$@" (why different?) rather than the "$@-t" used
6561         everywhere else.
6562
6563         * modules/sysexits (Makefile.am): Replace literal occurrences
6564         of "sysexit.h" more readable, and more consistent, "$@".
6565
6566 2006-09-06  Bruno Haible  <bruno@clisp.org>
6567
6568         * modules/striconv: New file.
6569         * modules/xstriconv: New file.
6570         * MODULES.html.sh (Internationalization functions): Add striconv,
6571         xstriconv.
6572
6573 2006-09-06  Bruno Haible  <bruno@clisp.org>
6574
6575         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
6576         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
6577         not using libtool correctly.
6578
6579 2006-09-06  Bruno Haible  <bruno@clisp.org>
6580
6581         * lib/striconv.h: New file.
6582         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
6583         iconvstring.c.
6584         * lib/xstriconv.h: New file.
6585         * lib/xstriconv.c: New file.
6586
6587 2006-09-06  Bruno Haible  <bruno@clisp.org>
6588
6589         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
6590         lib_..._LDFLAGS.
6591
6592 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6593
6594         * lib/argz_.h: Sync from Libtool.
6595
6596         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
6597                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6598
6599         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
6600
6601 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
6602
6603         * modules/trim: New file.
6604
6605 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
6606
6607         * lib/trim.h: New file.
6608         * lib/trim.c: New file.
6609
6610 2006-09-05  Bruno Haible  <bruno@clisp.org>
6611
6612         * MODULES.html.sh (String handling): Add trim.
6613
6614 2006-09-04  Karl Berry  <karl@gnu.org>
6615
6616         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
6617         until next release.
6618
6619 2006-09-03  Bruno Haible  <bruno@clisp.org>
6620
6621         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
6622         correctly.
6623
6624 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6625
6626         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
6627         not gl_GETLOADAVG.  Omit unneeded semicolons.
6628         Problems reported by Ralf Wildenhues in
6629         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
6630         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
6631         at the end, which is the usual gnulib style.
6632
6633         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
6634         of doing all the work ourselves.
6635         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
6636         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
6637
6638 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6639
6640         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
6641         Problem reported by Ralf Wildenhues in
6642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
6643
6644         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
6645         HAVE_STRUCT_STATFS_F_FSTYPENAME.
6646
6647 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6648
6649         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
6650         yesterday's patch by changing test -n to test -z.
6651
6652 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
6653
6654         * modules/getloadavg (Files): Add m4/getloadavg.m4.
6655         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
6656         the former is now obsolescent.
6657
6658         * modules/chdir-long (Depends-on): Add fcntl.
6659
6660 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
6663         obsolescent, and programs should use gnulib instead.
6664         * m4/getloadavg.m4: New file, with contents taken from Autoconf
6665         but with prefixes changed.
6666
6667 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
6668
6669         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
6670         or stdbool.h, because they might not exist while configuring.
6671
6672         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
6673         Don't include unistd.h or limits.h; not needed, since chdir-long.h
6674         does that for us.
6675         (O_DIRECTORY): Remove.
6676
6677 2006-08-31  Eric Blake  <ebb9@byu.net>
6678
6679         * gnulib-tool: Don't let emacs change spaces to TAB.
6680
6681 2006-08-31  Bruno Haible  <bruno@clisp.org>
6682
6683         * gnulib-tool: When calling func_import more than once, do it in a
6684         subshell.
6685         Reported by Eric Blake <ebb9@byu.net>.
6686
6687 2006-08-31  Bruno Haible  <bruno@clisp.org>
6688
6689         * gnulib-tool (nl): Remove variable.
6690         (sed_transform_lib_file): Use more robust test for config-h module.
6691         (func_import): Fix typo in 2006-08-25 patch.
6692
6693 2006-08-31  Bruno Haible  <bruno@clisp.org>
6694
6695         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
6696         specified, augment Makefile.am variables instead of assigning them.
6697
6698 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         Work around a bug in both the Linux and SunOS 64-bit kernels:
6701         nanosleep mishandles sleeps for longer than 2**31 seconds.
6702         Problem reported by Frank v Waveren in
6703         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
6704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
6705         Check for nanosleep bug.
6706         (LIB_NANOSLEEP): Append clock_gettime library if needed.
6707
6708 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6709
6710         Work around a bug in both the Linux and SunOS 64-bit kernels:
6711         nanosleep mishandles sleeps for longer than 2**31 seconds.
6712         Problem reported by Frank v Waveren in
6713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
6714         * lib/nanosleep.c (BILLION): New constant.
6715         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
6716         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
6717         implementation.
6718
6719 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6720
6721         * modules/nanosleep (Depends-on): Add gettime.
6722
6723 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6724         and Simon Josefsson  <jas@extundo.com>
6725         and Oskar Liljeblad  <oskar@osk.mine.nu>
6726
6727         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
6728         * gnulib-tool (func_import): New license type 'unmodifiable license
6729         text'.
6730         * modules/fdl: Use it.  Longer description.
6731         * module/gpl, module/lgpl: New files.
6732
6733 2006-08-30  Jim Meyering  <jim@meyering.net>
6734
6735         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
6736         shadowing the parameter.
6737
6738 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6739
6740         Sync from Libtool:
6741
6742         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6743
6744         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
6745         sharing with gnulib.  Report by Eric Blake.
6746
6747 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6748
6749         * modules/isapipe: New file.
6750         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
6751
6752 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6753
6754         * modules/configmake (Makefile.am): Add a comment, and omit
6755         the CONFIGMAKE_ prefix from generated macro names.  Suggested
6756         by Bruno Haible.
6757
6758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6759
6760         * m4/isapipe.m4: New file.
6761
6762 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6763
6764         * lib/isapipe.c, lib/isapipe.h: New files.
6765
6766 2006-08-29  Jim Meyering  <jim@meyering.net>
6767
6768         * modules/configmake (Makefile.am): Make configmake.h depend on
6769         Makefile.  Otherwise, a stale configmake.h could hang around.
6770
6771 2006-08-29  Eric Blake  <ebb9@byu.net>
6772
6773         * lib/error.c (error_at_line, print_errno_message): Match libc, after
6774         resolution of upstream bug 3044.
6775
6776 2006-08-29  Bruno Haible  <bruno@clisp.org>
6777
6778         * modules/localcharset (Depends-on): Add configmake.
6779         (Makefile.am): Remove setting of LIBDIR through DEFS.
6780
6781 2006-08-29  Bruno Haible  <bruno@clisp.org>
6782
6783         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
6784         defined.
6785
6786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
6787
6788         * modules/fcntl: New file.
6789         * modules/chdir-safer (Depends-on): Add fcntl.
6790         * modules/fts: Likewise.
6791         * modules/mkdir-p: Likewise.
6792
6793         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
6794         This undoes the most recent change, since we're now addressing the
6795         problem in a different way.
6796
6797         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
6798         into output, since the output might be called Makefile.am even
6799         if $makefile_name is something different.
6800         (func_import): Use $makefile_am rather than
6801         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
6802         empty.
6803
6804         * modules/inttypes (Files): Add m4/inttypes-h.m4.
6805
6806 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
6807
6808         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
6809         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
6810         recent change to stdint.m4, since we're now addressing the problem in a
6811         different way.
6812
6813 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         * m4/fcntl_h.m4: New file.
6816
6817 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
6818
6819         * lib/fcntl_.h: New file.
6820         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
6821         the fcntl module.
6822         * lib/dirchownmod.c: Likewise.
6823         * lib/fts.c: Likewise.
6824
6825         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
6826         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
6827         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
6828         just before including <inttypes.h>, to avoid circular inclusion.
6829
6830 2006-08-28  Jim Meyering  <jim@meyering.net>
6831
6832         * doc/visibility.texi: Actually read and correct the grammar of the
6833         sentence affected by yesterday's change.
6834
6835 2006-08-28  Eric Blake  <ebb9@byu.net>
6836
6837         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
6838         needs wrapper.
6839
6840 2006-08-28  Eric Blake  <ebb9@byu.net>
6841
6842         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
6843
6844 2006-08-28  Eric Blake  <ebb9@byu.net>
6845
6846         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
6847
6848 2006-08-28  Bruno Haible  <bruno@clisp.org>
6849
6850         * modules/c-strstr: New file, from GNU gettext.
6851         * MODULES.html.sh (String handling): Add c-strstr.
6852
6853 2006-08-28  Bruno Haible  <bruno@clisp.org>
6854
6855         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
6856         macros.
6857         Reported by Eric Blake.
6858
6859 2006-08-28  Bruno Haible  <bruno@clisp.org>
6860
6861         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
6862         (VASNPRINTF): Return a string of length > INT_MAX without failing.
6863         * lib/vasprintf.c: Include errno.h, limits.h.
6864         (EOVERFLOW): New fallback definition.
6865         (vasprintf): Test here whether the string length is > INT_MAX.
6866         * lib/vsnprintf.c: Include errno.h, limits.h.
6867         (EOVERFLOW): New fallback definition.
6868         (vsnprintf): Fix bug when generated string was too long for the buffer.
6869         Test here whether the string length is > INT_MAX.
6870
6871 2006-08-28  Bruno Haible  <bruno@clisp.org>
6872
6873         * lib/inttypes_.h (SCNX*): Remove definitions.
6874         Reported by Eric Blake.
6875
6876 2006-08-28  Bruno Haible  <bruno@clisp.org>
6877
6878         * lib/c-strstr.h: New file, from GNU gettext.
6879         * lib/c-strstr.c: New file, from GNU gettext.
6880
6881 2006-08-28  Bruno Haible  <bruno@clisp.org>
6882
6883         * gnulib-tool: Reorder some statements.
6884
6885 2006-08-28  Bruno Haible  <bruno@clisp.org>
6886
6887         * gnulib-tool: New option --makefile-name.
6888         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
6889         $makefile_name.
6890         (func_import): Write $makefile_name to the cache file, and read it from
6891         there unless explicitly specified. Use $makefile_name as file name
6892         instead of Makefile.am. Adjust the recommendations accordingly.
6893
6894 2006-08-28  Bruno Haible  <bruno@clisp.org>
6895
6896         * gnulib-tool (func_verify_module): Check against misapplying patch.
6897
6898 2006-08-28  Bruno Haible  <bruno@clisp.org>
6899
6900         * gnulib-tool (func_relativize, func_relconcat): New functions.
6901         Give an error if --local-dir is given with --update.
6902         Remove trailing slashes from $local_gnulib_dir.
6903         (func_import): Store the relativized $local_gnulib_dir in
6904         gnulib-cache.m4, and read it from there if not specified explicitly.
6905
6906 2006-08-28  Bruno Haible  <bruno@clisp.org>
6907
6908         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
6909         is the current directory. Respect also $local_gnulib_dir.
6910
6911 2006-08-28  Bruno Haible  <bruno@clisp.org>
6912             Simon Josefsson  <jas@extundo.com>
6913
6914         BeOS portability.
6915         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
6916
6917 2006-08-27  Jim Meyering  <jim@meyering.net>
6918
6919         * doc/visibility.texi: Remove duplicate word: "pointer".
6920
6921 2006-08-26  Bruno Haible  <bruno@clisp.org>
6922
6923         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
6924         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
6925         (Makefile.am): Create inttypes.h from inttypes_.h.
6926         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
6927
6928         * modules/imaxabs: New file.
6929
6930         * modules/imaxdiv: New file.
6931
6932 2006-08-26  Bruno Haible  <bruno@clisp.org>
6933
6934         * m4/inttypes.m4: New file.
6935         * m4/_inttypes_h.m4: Remove file.
6936         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
6937         PRI_MACROS_BROKEN.
6938         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
6939
6940         * m4/imaxabs.m4: New file.
6941
6942         * m4/imaxdiv.m4: New file.
6943
6944 2006-08-26  Bruno Haible  <bruno@clisp.org>
6945
6946         * lib/inttypes_.h: New file.
6947         * lib/inttypes.h: Remove file.
6948         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
6949
6950         * lib/imaxabs.c: New file.
6951
6952         * lib/imaxdiv.c: New file.
6953
6954 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6955
6956         New config-h module, so that "make" output needn't be cluttered
6957         by -DHAVE_CONFIG_H.
6958         * MODULES.html.sh (Support for building libraries and executables):
6959         Add config-h.
6960         * modules/config-h: New file.
6961         * gnulib-tool (nl, sed_transform_lib_file): New vars.
6962         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
6963         the config-h module is used.
6964
6965         New configmake module, so that "make" output needn't be cluttered
6966         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
6967         * MODULES.html.sh (Support for building libraries and executables):
6968         Add configmake.
6969         * modules/configmake: New file.
6970
6971 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6972
6973         * m4/config-h.m4: New file.
6974
6975 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6976
6977         * config/srclist.txt: Add elisp-comp.
6978
6979 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6980
6981         * MODULES.html.sh (Support for building libraries and executables):
6982         Add elisp-comp.
6983         * build-aux/elisp-comp: New file.
6984         * modules/elisp-comp: New file.
6985
6986 2006-08-24  Bruno Haible  <bruno@clisp.org>
6987
6988         * gnulib-tool (func_create_testdir): Use non-default values of
6989         sourcebase and m4base.
6990
6991 2006-08-24  Bruno Haible  <bruno@clisp.org>
6992
6993         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
6994         HTML structure.
6995
6996 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6997
6998         * modules/openat (Depends-on): Add lchown.
6999
7000 2006-08-23  Bruno Haible  <bruno@clisp.org>
7001
7002         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
7003         of gl_LOCK_EARLY instead of gl_LOCK.
7004
7005 2006-08-23  Bruno Haible  <bruno@clisp.org>
7006
7007         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
7008         on OSF/1 to no.
7009         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
7010
7011 2006-08-23  Bruno Haible  <bruno@clisp.org>
7012
7013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
7014         as unusable.
7015
7016         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
7017         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
7018         (gl_LOCK): New macro.
7019
7020 2006-08-22  Simon Josefsson  <jas@extundo.com>
7021
7022         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
7023         to md5 module.
7024
7025 2006-08-22  Simon Josefsson  <jas@extundo.com>
7026
7027         * MODULES.html.sh: Add "Support for maintaining and release
7028         projects".
7029
7030         * build-aux/gnupload: New file, from coreutils.
7031
7032 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
7033
7034         Avoid the need for AC_LIBSOURCES in m4 macros.
7035         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
7036         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
7037         * modules/check-version (EXTRA_DIST): Add check-version.h.
7038         * modules/crc (EXTRA_DIST): Add crc.h.
7039         * modules/des (EXTRA_DIST): Add des.h.
7040         * modules/gc (EXTRA_DIST): Add gc.h.
7041         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
7042         * modules/getline (EXTRA_DIST): Add getline.h.
7043         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
7044         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
7045         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
7046         * modules/md2 (EXTRA_DIST): Add md2.h.
7047         * modules/md4 (EXTRA_DIST): Add md4.h.
7048         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
7049         * modules/read-file (EXTRA_DIST): Add read-file.h.
7050         * modules/readline (EXTRA_DIST): Add readline.h.
7051         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
7052         rijndael-api-fst.h.
7053
7054 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
7055
7056         * m4/rijndael.m4 (gl_ARCFOUR):
7057         * m4/arctwo.m4 (gl_ARCTWO):
7058         * m4/check-version.m4 (gl_CHECK_VERSION):
7059         * m4/crc.m4 (gl_CRC):
7060         * m4/des.m4 (gl_DES):
7061         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
7062         * m4/gc.m4 (gl_GC):
7063         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
7064         * m4/getline.m4 (gl_FUNC_GETLINE):
7065         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
7066         * m4/hmac-md5.m4 (gl_HMAC_MD5):
7067         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
7068         * m4/md2.m4 (gl_MD2):
7069         * m4/md4.m4 (gl_MD4):
7070         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
7071         * m4/read-file.m4 (gl_FUNC_READ_FILE):
7072         * m4/readline.m4 (gl_FUNC_READLINE):
7073         * m4/rijndael.m4 (gl_RIJNDAEL):
7074         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7075         to get the necessary .h files and whatnot.
7076
7077 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
7078
7079         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
7080         gnulib rather than the other way around.
7081         * config/srclistvars.sh (COREUTILS): Remove.
7082
7083 2006-08-22  Jim Meyering  <jim@meyering.net>
7084
7085         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
7086
7087         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
7088
7089 2006-08-22  Eric Blake  <ebb9@byu.net>
7090
7091         * modules/regexprops-generic: New file.
7092         * MODULES.html.sh (Support for building documentation): List it.
7093
7094 2006-08-22  Eric Blake  <ebb9@byu.net>
7095
7096         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
7097         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7098         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
7099         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7100
7101 2006-08-22  Bruno Haible  <bruno@clisp.org>
7102
7103         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
7104         and lib_LTLIBRARIES like the other lib_* variables.
7105
7106 2006-08-22  Bruno Haible  <bruno@clisp.org>
7107
7108         * build-aux/x-to-1.in: New file, from GNU gettext.
7109
7110 2006-08-22  Bruno Haible  <bruno@clisp.org>
7111
7112         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
7113         <utmpx.h> exists.
7114
7115 2006-08-22  Bruno Haible  <bruno@clisp.org>
7116
7117         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
7118         <utmpx.h> exists.
7119
7120 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
7121
7122         BeOS portability.
7123         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
7124         exist.
7125         Problem reported by Bruno Haible.
7126
7127 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
7128
7129         Avoid the need for AC_LIBSOURCES in m4 macros.
7130         * modules/acl (EXTRA_DIST): Add acl.h.
7131         * modules/argmatch (Files): Add m4/argmatch.m4.
7132         (configure.ac): Add gl_ARGMATCH.
7133         (EXTRA_DIST): Renamed from lib_SOURCES, for
7134         consistency with the other modules.  Remove argmatch.c.
7135         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
7136         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
7137         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
7138         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
7139         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
7140         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
7141         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
7142         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
7143         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
7144         * modules/closeout (EXTRA_DIST): Add closeout.h.
7145         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
7146         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
7147         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
7148         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
7149         dirname.h; remove basename.c and stripslash.c.
7150         * modules/exclude (EXTRA_DIST): Add exclude.h.
7151         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
7152         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
7153         * modules/file-type (EXTRA_DIST): Add file-type.h.
7154         * modules/filemode (EXTRA_DIST): Add filemode.h.
7155         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
7156         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
7157         * modules/fpending (EXTRA_DIST): Add __fpending.h.
7158         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
7159         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
7160         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
7161         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
7162         * modules/getdate (EXTRA_DIST): Add getdate.c.
7163         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
7164         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
7165         * modules/getpass (EXTRA_DIST): Add getpass.h.
7166         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
7167         * modules/group-member (EXTRA_DIST): Add group-member.h.
7168         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
7169         * modules/hash (EXTRA_DIST): Add hash.h.
7170         * modules/human (EXTRA_DIST): Add human.h.
7171         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
7172         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
7173         * modules/lchown (EXTRA_DIST): Add lchown.h.
7174         * modules/long-options (EXTRA_DIST): Add long-options.h.
7175         * modules/lstat (EXTRA_DIST): Add lstat.h.
7176         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
7177         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
7178         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
7179         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
7180         * modules/memxor (EXTRA_DIST): Add memxor.h.
7181         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
7182         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
7183         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
7184         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
7185         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
7186         * modules/physmem (EXTRA_DIST): Add physmem.h.
7187         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
7188         * modules/posixver (EXTRA_DIST): Add posixver.h.
7189         * modules/quote (EXTRA_DIST): Add quote.h.
7190         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
7191         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
7192         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
7193         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
7194         regex_internal.h regexec.c.
7195         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
7196         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
7197         * modules/same (EXTRA_DIST): Add same.h.
7198         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
7199         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
7200         * modules/savedir (EXTRA_DIST): Add savedir.h.
7201         * modules/sha1 (EXTRA_DIST): Add sha1.h.
7202         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
7203         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
7204         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
7205         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
7206         * modules/strdup (EXTRA_DIST): Add strdup.h.
7207         * modules/strftime (EXTRA_DIST): Add strftime.h.
7208         * modules/strndup (EXTRA_DIST): Add strndup.h.
7209         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
7210         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
7211         * modules/time_r (EXTRA_DIST): Add time_r.h.
7212         * modules/timespec (EXTRA_DIST): Add timespec.h.
7213         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
7214         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
7215         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
7216         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
7217         * modules/userspec (EXTRA_DIST): Add userspec.h.
7218         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
7219         * modules/utimens (EXTRA_DIST): Add utimens.h.
7220         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
7221         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
7222         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
7223         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
7224         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
7225         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
7226         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
7227         * modules/yesno (EXTRA_DIST): Add yesno.h.
7228
7229 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
7230
7231         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
7232
7233         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
7234         * m4/dev-ino.m4, same-inode.m4: Remove.
7235
7236         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
7237         * m4/acl.m4 (AC_FUNC_ACL):
7238         * m4/backupfile.m4 (gl_BACKUPFILE):
7239         * m4/c-strtod.m4 (gl_C99_STRTOLD):
7240         * m4/canon-host.m4 (gl_CANON_HOST):
7241         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7242         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
7243         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
7244         * m4/cloexec.m4 (gl_CLOEXEC):
7245         * m4/close-stream.m4 (gl_CLOSE_STREAM):
7246         * m4/closeout.m4 (gl_CLOSEOUT):
7247         * m4/dirfd.m4 (gl_FUNC_DIRFD):
7248         * m4/dirname.m4 (gl_DIRNAME):
7249         * m4/exclude.m4 (gl_EXCLUDE):
7250         * m4/exitfail.m4 (gl_EXITFAIL):
7251         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
7252         * m4/file-type.m4 (gl_FILE_TYPE):
7253         * m4/filemode.m4 (gl_FILEMODE):
7254         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
7255         * m4/fpending.m4 (gl_FUNC_FPENDING):
7256         * m4/fprintftime.m4 (gl_FPRINTFTIME):
7257         * m4/fts.m4 (gl_FUNC_FTS):
7258         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
7259         * m4/getdate.m4 (gl_GETDATE):
7260         * m4/gethrxtime.m4 (gl_GETHRXTIME):
7261         * m4/getpagesize.m4 (gl_GETPAGESIZE):
7262         * m4/getpass.m4 (gl_FUNC_GETPASS):
7263         * m4/gettime.m4 (gl_GETTIME):
7264         * m4/getugroups.m4 (gl_GETUGROUPS):
7265         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
7266         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
7267         * m4/hard-locale.m4 (gl_HARD_LOCALE):
7268         * m4/hash.m4 (gl_HASH):
7269         * m4/idcache.m4 (gl_IDCACHE):
7270         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
7271         * m4/lchown.m4 (gl_FUNC_LCHOWN):
7272         * m4/long-options.m4 (gl_LONG_OPTIONS):
7273         * m4/lstat.m4 (gl_FUNC_LSTAT):
7274         * m4/md5.m4 (gl_MD5):
7275         * m4/memcasecmp.m4 (gl_MEMCASECMP):
7276         * m4/memcoll.m4 (gl_MEMCOLL):
7277         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
7278         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
7279         * m4/memxor.m4 (gl_MEMXOR):
7280         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
7281         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
7282         * m4/modechange.m4 (gl_MODECHANGE):
7283         * m4/mountlist.m4 (gl_MOUNTLIST):
7284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7285         * m4/openat.m4 (gl_FUNC_OPENAT):
7286         * m4/pathmax.m4 (gl_PATHMAX):
7287         * m4/physmem.m4 (gl_PHYSMEM):
7288         * m4/posixtm.m4 (gl_POSIXTM):
7289         * m4/posixver.m4 (gl_POSIXVER):
7290         * m4/quote.m4 (gl_QUOTE):
7291         * m4/quotearg.m4 (gl_QUOTEARG):
7292         * m4/readtokens.m4 (gl_READTOKENS):
7293         * m4/readutmp.m4 (gl_READUTMP):
7294         * m4/regex.m4 (gl_REGEX):
7295         * m4/safe-read.m4 (gl_SAFE_READ):
7296         * m4/safe-write.m4 (gl_SAFE_WRITE):
7297         * m4/same.m4 (gl_SAME):
7298         * m4/save-cwd.m4 (gl_SAVE_CWD):
7299         * m4/savedir.m4 (gl_SAVEDIR):
7300         * m4/settime.m4 (gl_SETTIME):
7301         * m4/sha1.m4 (gl_SHA1):
7302         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
7303         * m4/stat-macros.m4 (gl_STAT_MACROS):
7304         * m4/stat-time.m4 (gl_STAT_TIME):
7305         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
7306         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
7307         * m4/strdup.m4 (gl_FUNC_STRDUP):
7308         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
7309         * m4/strndup.m4 (gl_FUNC_STRNDUP):
7310         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
7311         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
7312         * m4/time_r.m4 (gl_TIME_R):
7313         * m4/timespec.m4 (gl_TIMESPEC):
7314         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
7315         * m4/unlinkdir.m4 (gl_UNLINKDIR):
7316         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
7317         * m4/userspec.m4 (gl_USERSPEC):
7318         * m4/utimecmp.m4 (gl_UTIMECMP):
7319         * m4/utimens.m4 (gl_UTIMENS):
7320         * m4/xalloc.m4 (gl_XALLOC):
7321         * m4/xgetcwd.m4 (gl_XGETCWD):
7322         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
7323         * m4/xreadlink.m4 (gl_XREADLINK):
7324         * m4/xstrtod.m4 (gl_XSTRTOD):
7325         * m4/yesno.m4 (gl_YESNO):
7326         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7327         to get the necessary .h files and whatnot.
7328
7329 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
7330             Bruno Haible  <bruno@clisp.org>
7331
7332         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
7333         /bin/sh understanding of '!' conditional negation.
7334
7335 2006-08-21  Jim Meyering  <jim@meyering.net>
7336
7337         * modules/openat (Depends-on): Really alphabetize.
7338
7339         * modules/acl (Depends-on): Add error and quote.
7340
7341         * check-module (find_included_lib_files): Add at-func.c to the
7342         ok-to-include-more-than-once white list.
7343
7344         * modules/openat (Depends-on): Add lstat.  Alphabetize.
7345
7346 2006-08-21  Bruno Haible  <bruno@clisp.org>
7347
7348         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7349         Emit a pkgdata_DATA variable only if some snippets add contents to it.
7350         Reported by Martin Lambers <marlam@marlam.de>.
7351
7352 2006-08-21  Bruno Haible  <bruno@clisp.org>
7353
7354         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
7355         specify an installation location, don't emit a noinst_LIBRARIES or
7356         noinst_LTLIBRARIES assignment.
7357
7358 2006-08-21  Bruno Haible  <bruno@clisp.org>
7359
7360         BeOS portability.
7361         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
7362         BeOS has mbrtowc() but no <wctype.h>.
7363
7364 2006-08-21  Bruno Haible  <bruno@clisp.org>
7365
7366         BeOS portability.
7367         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
7368         exist.
7369
7370 2006-08-21  Bruno Haible  <bruno@clisp.org>
7371
7372         BeOS portability.
7373         * lib/mbchar.h: Include <wctype.h> only if it exists.
7374
7375 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
7376
7377         Remove files that are no longer needed by their respective modules.
7378         * m4/obstack.m4: Remove.
7379         * m4/strerror_r.m4: Remove.
7380         * m4/uint32_t.m4: Remove.
7381         * m4/uintptr_t.m4: Remove.
7382         * m4/ullong_max.m4: Remove.
7383         * m4/xstrtoimax.m4: Remove.
7384         * m4/xstrtoumax.m4: Remove.
7385
7386         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
7387         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
7388         dependencies now capture this.
7389
7390         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
7391         Do not use AC_LIBSOURCES, since gnulib modules now do this.
7392         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
7393         * m4/human.m4 (gl_HUMAN): Likewise.
7394         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
7395         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
7396
7397         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
7398
7399         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
7400         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
7401         stdint.
7402         * m4/human.m4 (gl_HUMAN): Likewise.
7403         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
7404         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
7405         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7406         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7407         * m4/xstrtol (gl_XSTRTOL): Likewise.
7408
7409         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
7410         AC_TYPE_LONG_LONG_INT.
7411         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7412         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
7413         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
7414         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7415
7416         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
7417         on stdbool.
7418
7419         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
7420         (gl_PREREQ_XSTRTOUL): Remove.
7421
7422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
7423
7424         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
7425         mode.
7426
7427 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
7428
7429         Add and change modules to make it easier for coreutils to use
7430         gnulib-tool.
7431         * modules/backupfile (Files): Remove m4/d-ino.m4.
7432         (Depends-on): Add d-ino.
7433         * modules/cycle-check (Depends-on): Add stdint.
7434         (lib_SOURCES): Add cycle-check.h.
7435         * modules/d-ino: New module.
7436         * modules/d-type: New module.
7437         * modules/error (Files): Remove m4/strerror_r.m4.
7438         * modules/filemode (Files): Add m4/st_dm_mode.m4.
7439         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7440         m4/inttypes_h.m4, m4/uintmax_t.m4.
7441         (Depends-on): Add stdint.
7442         (lib_SOURCES): Add fsusage.h.
7443         * modules/getcwd (Files): Remove d-ino.m4.
7444         (Depends-on): Add d-ino.
7445         * modules/getndelim2 (Depends-on): Add stdint.
7446         * modules/glob (Files): Remove m4/d-type.m4.
7447         (Depends-on): Add d-type.
7448         * modules/host-os: New module.
7449         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
7450         m4/inttypes_h.m4, m4/uintmax_t.m4.
7451         * Depends-on: Add stdint.
7452         (lib_SOURCES): Add human.h.
7453         * modules/inttostr (Files): Remove m4/intmax_t.m4,
7454         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
7455         m4/uintmax_t.m4, m4/ulonglong.m4.
7456         (Depends-on): Add stdint.
7457         (EXTRA_DIST): Add inttostr.h.
7458         * modules/lchmod: New module.
7459         * modules/link-follow: New module.
7460         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
7461         (Depends-on): Add lchmod.
7462         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
7463         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
7464         (Depends-on): Add stdint.
7465         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
7466         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
7467         (Depends-on): Add stdint.
7468         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
7469         * modules/perl: New module.
7470         * modules/regex (Depends-on): Add stdint.
7471         * modules/rmdir-errno: New module.
7472         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7473         m4/intmax_t.m4.
7474         (Depends-on): Add stdint.
7475         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7476         m4/uintmax_t.m4.
7477         (Depends-on): Add stdint.
7478         * modules/unlink-busy: New module.
7479         * modules/utimecmp (Depends-on): Add stdint.
7480         * modules/uptime: New module.
7481         * modules/winsz-ioctl: New module.
7482         * modules/winsz-termios: New module.
7483         * modules/xnanosleep (Depends-on): Add nanosleep.
7484         * modules/ullong_max: Remove.
7485         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
7486         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
7487         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
7488         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
7489         (Depends-on): Add inttypes.
7490         (lib_SOURCES): Add xstrtol.h.
7491         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
7492         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
7493         * MODULES.html.sh: Move 'assert' into the assert section.
7494         Move 'dummy' into the linking section.
7495         Remove ullong_max.
7496         Add section for compatibility checks for POSIX:2001 functions,
7497         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
7498         winsz-ioctl, and winsz-termios into it.
7499         Add lchmod.
7500         Add top-level Misc section and put host-os, perl, and uptime
7501         into it.
7502
7503 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
7506         now assume the stdint module.  Do not include inttypes.h.
7507         * lib/fsusage.h: Likewise.
7508         * lib/getndelim2.c: Likewise.
7509         * lib/human.h: Likewise.
7510         * lib/inttostr.h: Likewise.
7511         * lib/obstack.c: Likewise.
7512         * lib/regex_internal.h: Likewise.
7513         * lib/tempname.c: Likewise.
7514         * lib/utimecmp.c: Likewise.
7515         * lib/xstrtol.h: Likewise.
7516
7517         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
7518
7519         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
7520         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
7521         * lib/xtime.h: Likewise.
7522
7523 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
7524
7525         * modules/openat (Files): Add lib/fchmodat.c.
7526         Fixes problem reported by Jay Youngman.
7527
7528 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
7531         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
7532
7533 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7534             Bruno Haible  <bruno@clisp.org>
7535
7536         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
7537         and is a script that invokes bison. Tighten the code. Add comments.
7538
7539 2006-08-18  Jim Meyering  <jim@meyering.net>
7540
7541         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
7542         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
7543         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
7544         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
7545
7546 2006-08-18  Bruno Haible  <bruno@clisp.org>
7547
7548         * modules/bison-i18n: New file.
7549         * MODULES.html.sh (Internationalization functions): Add it.
7550
7551 2006-08-18  Bruno Haible  <bruno@clisp.org>
7552
7553         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
7554         sys/statvfs.h. When getmntinfo was found, check its declaration and
7555         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
7556
7557 2006-08-18  Bruno Haible  <bruno@clisp.org>
7558
7559         * m4/bison-i18n.m4: New file, from bison.
7560
7561 2006-08-18  Bruno Haible  <bruno@clisp.org>
7562
7563         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
7564         (ME_DUMMY): Treat "kernfs" as a dummy.
7565         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
7566
7567 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7568
7569         Update from coreutils.
7570
7571         2006-08-15  Jim Meyering  <jim@meyering.net>
7572
7573         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
7574
7575         2006-01-17  Jim Meyering  <jim@meyering.net>
7576
7577         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
7578
7579         2006-01-11  Jim Meyering  <jim@meyering.net>
7580
7581         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
7582         Check for the lchmod function.
7583
7584 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7585
7586         Update from coreutils.
7587
7588         * lib/__fpending.h: Add copyright notice.
7589         * lib/fprintftime.h: Likewise.
7590         * lib/savedir.c: Use (C) in copyright notice.
7591         * lib/savedir.h: Likewise.
7592
7593         2006-08-15  Jim Meyering  <jim@meyering.net>
7594
7595         * lib/at-func.c: New file, with the logic of all emulated at-functions.
7596         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
7597         in support of the EXPECTED_ERRNO macro.
7598         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
7599         definitions.  Instead, define the appropriate symbols and include
7600         "at-func.c".
7601         * lib/mkdirat.c (mkdirat): Likewise.
7602         * lib/fchmodat.c (fchmodat): Likewise.
7603         (ENOSYS): Remove definition.
7604         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
7605         it.  Don't include "unistd--.h" -- it wasn't ever used.
7606
7607         2006-01-17  Jim Meyering  <jim@meyering.net>
7608
7609         Rewrite fts.c not to change the current working directory,
7610         by using openat, fstatat, fdopendir, etc..
7611
7612         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
7613         (HAVE_OPENAT_SUPPORT): Define.
7614         [_LIBC] (fchdir): Don't undef or define; no longer used.
7615         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
7616         Now, this `function' always succeeds, and consumes its file descriptor
7617         parameter -- so callers must not close such FDs.  Update callers.
7618         (diropen_fd, opendirat, cwd_advance_fd): New functions.
7619         (diropen): Add parameter, SP.  Adjust all callers.
7620         Implement using diropen_fd, rather than open.
7621         (fts_open): Initialize new member, fts_cwd_fd.
7622         Remove fts_rft-setting code.
7623         (fts_close): Close fts_cwd_fd, if necessary.
7624         (__opendir2): Define in terms of opendir or opendirat,
7625         depending on whether the FST_NOCHDIR flag is set.
7626         (fts_build): Since fts_safe_changedir consumes its FD, and since
7627         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
7628         and close the dup'd file descriptor upon failure.
7629         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
7630         (fts_safe_changedir): Tweak semantics to reflect that this function
7631         now calls cwd_advance_fd and hence consumes its FD argument.
7632         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
7633         [struct FTS] (fts_rft): Remove now-unused member.
7634         [struct FTS] (fts_cycle.state): Improve comment.
7635
7636         * lib/openat.c (openat_needs_fchdir): New function.
7637         * lib/openat.h (openat_needs_fchdir): Declare it.
7638
7639 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
7640
7641         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
7642         Problem and fix reported by Pádraig Brady in
7643         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
7644
7645 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7646
7647         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
7648
7649 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7650
7651         * lib/memcoll.c (memcoll): Optimize for the common case where the
7652         arguments are bytewise equal.
7653
7654 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7655
7656         * doc/regexprops-generic.texi: Add a copyright notice.
7657
7658 2006-08-15  Bruno Haible  <bruno@clisp.org>
7659
7660         * modules/tmpdir (License): Change to LGPL.
7661
7662 2006-08-15  Bruno Haible  <bruno@clisp.org>
7663
7664         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
7665         module.
7666
7667 2006-08-14  Simon Josefsson  <jas@extundo.com>
7668
7669         * config/srclist.txt: Add gnupload.
7670
7671 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7672
7673         Change copyright notice from LGPL 2 to GPL 2, since that's the
7674         standard form used in the gnulib repository.
7675         * tests/test-lock.c: Likewise.
7676         * tests/test-stdint.c: Likewise.
7677         * tests/test-tls.c: Likewise.
7678
7679         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
7680         prelude-manager.  User shorter URLs for GNU projects, without '?'.
7681         Add copyright notice.
7682
7683         * check-module: Add copyright notice.  Output a copyright
7684         notice if "--version" is specified.
7685         * modules/COPYING: New file.
7686         * tests/test-getaddrinfo.c: Add copyright notice.
7687         * tests/test-verify.c: Likewise.
7688
7689 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7690
7691         Change copyright notice from LGPL 2 to GPL 2, since that's the
7692         standard form used in the gnulib repository.
7693         * lib/lock.c: LGPL -> GPL.
7694         * lib/lock.h: Likewise.
7695         * lib/strnlen1.c: Likewise.
7696         * lib/strnlen1.h: Likewise.
7697         * lib/tls.c: Likewise.
7698         * lib/tls.h: Likewise.
7699         * lib/tmpdir.c: Likewise.
7700
7701         * lib/TODO: Remove; this belongs only in coreutils.
7702
7703 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7704
7705         Add copyright notices to long-enough files that lack them, since
7706         otherwise the files aren't clearly free.  Use the same notice that
7707         getdate.texi already uses.
7708         * doc/alloca-opt.texi: Add copyright notice.
7709         * doc/alloca.texi: Likewise.
7710         * doc/ctime.texi: Likewise.
7711         * doc/functions.texi: Likewise.
7712         * doc/gcd.texi: Likewise.
7713         * doc/gnulib-tool.texi: Likewise.
7714         * doc/inet_ntoa.texi: Likewise.
7715         * doc/visibility.texi: Likewise.
7716
7717         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
7718         * doc/quote.texi: Add copyright notice.
7719
7720         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
7721         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
7722         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
7723         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
7724         is now obsolete, and give a pointer to the Sun list.
7725         Add copyright notice.
7726
7727 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7728
7729         * config/srclistvars.sh: Add copyright notice.
7730
7731 2006-08-14  Eric Blake  <ebb9@byu.net>
7732
7733         Import the following change from libc:
7734
7735         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
7736
7737         Upstream bug 2997.
7738         * lib/misc/error.c: Add space between program name and message if file
7739         name is missing.
7740
7741 2006-08-12  Karl Berry  <karl@gnu.org>
7742
7743         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
7744         remove, these originate in gnulib now.
7745
7746 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7747
7748         * doc/Makefile (standards.info standards.html standards.dvi):
7749         Also depend on make-stds.texi.
7750
7751 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7752
7753         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
7754         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
7755
7756         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
7757         in wchar_t.  Problem reported by Eric Blake.
7758
7759         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
7760         LEN is smaller than SIZE.  Suggested by Bruno Haible.
7761         Also, help the compiler to keep LEN in a register.
7762
7763 2006-08-11  Eric Blake  <ebb9@byu.net>
7764
7765         * users.txt: Sort.  Add tar.
7766
7767 2006-08-11  Bruno Haible  <bruno@clisp.org>
7768
7769         * users.txt: New file.
7770
7771 2006-08-11  Bruno Haible  <bruno@clisp.org>
7772
7773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
7774         before <wchar.h>. Needed for OSF/1 and BSD/OS.
7775
7776 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7777
7778         * modules/snprintf (Depends-on): Remove minmax.
7779         (Maintainer): Add self and Bruno.
7780
7781 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         * lib/.cppi-disable: Add snprintf.h, socket_.h.
7784         * lib/snprintf.c: Include <errno.h> and <limits.h>.
7785         (EOVERFLOW): Define if the system does not.
7786         Do not include "minmax.h"; it wasn't used.
7787         (snprintf): Don't assume size_t promotes to an unsigned type.
7788         Fix bug when generated string was too long for the buffer: the
7789         buffer's contents are supposed to be the initial prefix of the
7790         output.  Don't assume vasnprintf returns EOVERFLOW if the size
7791         exceeds INT_MAX; do the check ourselves.
7792
7793         Import the following changes from libc:
7794
7795         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
7796
7797         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
7798         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
7799         set wc to the byte which couldn't be converted.
7800         (re_string_reconstruct): Don't clear valid_raw_len before calling
7801         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
7802         tip_context using re_string_context_at.
7803
7804         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
7805
7806         * lib/posix/regex.h: g++ still cannot handled [restrict].
7807
7808         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
7809
7810         * lib/posix/regex.h: Remove special handling for VMS.
7811
7812 2006-08-10  Jim Meyering  <jim@meyering.net>
7813
7814         * modules/same-inode: New module.
7815         * modules/dev-ino: New module.
7816         * modules/cycle-check: Depend on these modules, rather than simply
7817         including their .h files.
7818         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
7819         required via m4/cycle-check.m4.
7820         * modules/same: Depend on new same-inode module, rather than
7821         including same-inode.h.
7822         * modules/chdir-safer: New file.
7823
7824         * modules/chown (Depends-on): Add stat-macros.
7825
7826 2006-08-10  Jim Meyering  <jim@meyering.net>
7827
7828         * m4/cycle-check.m4: New file.
7829         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
7830         * m4/dev-ino.m4, m4/same-inode.m4: New files.
7831
7832 2006-08-10  Eric Blake  <ebb9@byu.net>
7833
7834         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
7835         in from original proposal.
7836
7837 2006-08-10  Eric Blake  <ebb9@byu.net>
7838         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7839
7840         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
7841         namespace.
7842
7843 2006-08-10  Bruno Haible  <bruno@clisp.org>
7844
7845         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
7846         as well.
7847
7848 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
7849
7850         Sync from coreutils.
7851
7852         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
7853
7854         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
7855         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
7856
7857 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
7858
7859         * modules/restrict: Remove; no longer needed now that we assume
7860         Autoconf 2.59 or later.
7861         * MODULES.html.sh: Remove 'restrict'.
7862         * modules/argp (Depends-on): Remove 'restrict'.
7863         * modules/base64 (Depends-on): Likewise.
7864         * modules/gc (Depends-on): Likewise.
7865         * modules/getaddrinfo (Depends-on): Likewise.
7866         * modules/glob (Depends-on): Likewise.
7867         * modules/inet_ntop (Depends-on): Likewise.
7868         * modules/inet_pton (Depends-on): Likewise.
7869         * modules/memxor (Depends-on): Likewise.
7870         * modules/regex (Depends-on): Likewise.
7871         * modules/strtok_r (Depends-on): Likewise.
7872         * modules/time_r (Depends-on): Likewise.
7873
7874 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
7875
7876         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
7877         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
7878         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7879         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
7880         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7881         * m4/memxor.m4 (gl_MEMXOR): Likewise.
7882         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
7883         gl_C_RESTRICT replaced by AC_C_RESTRICT.
7884
7885         Merge from coreutils.
7886         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
7887         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
7888         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7889         * m4/time_r.m4 (gl_TIME_R): Likewise.
7890
7891 2006-08-09  Karl Berry  <karl@gnu.org>
7892
7893         * config/srclist.txt: no more gettext-tools, per Bruno.
7894
7895 2006-08-08  Eric Blake  <ebb9@byu.net>
7896
7897         * modules/verror: New module.
7898         * MODULES.html.sh: Document it.
7899
7900 2006-08-08  Eric Blake  <ebb9@byu.net>
7901
7902         * lib/verror.h, lib/verror.c: New files.
7903
7904 2006-08-08  Eric Blake  <ebb9@byu.net>
7905
7906         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
7907         verror_at_line output complies with GNU Coding Standards even when
7908         file is NULL.
7909
7910 2006-08-07  Bruno Haible  <bruno@clisp.org>
7911
7912         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
7913         versions of AIX.
7914         Reported by Ralf Wildenhues.
7915
7916 2006-08-07  Bruno Haible  <bruno@clisp.org>
7917
7918         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
7919         in an AC_DEFUN. Needed so that the autoconf snippets can use
7920         AC_REQUIRE.
7921
7922 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7923
7924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7925         Initialize pkgdata_DATA.
7926         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
7927         overriding it.
7928
7929 2006-08-06  Eric Blake  <ebb9@byu.net>
7930
7931         * lib/error.h: Fold in some upstream changes from glibc.
7932         * lib/error.c: Likewise.
7933
7934 2006-08-04  Bruno Haible  <bruno@clisp.org>
7935
7936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7937         Make the mostlyclean-local rule depend on mostlyclean-generic.
7938         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
7939
7940 2006-07-31  Bruno Haible  <bruno@clisp.org>
7941
7942         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
7943         <stdlib.h>, <string.h>.
7944
7945 2006-07-30  Bruno Haible  <bruno@clisp.org>
7946
7947         * modules/readlink (License): Change to LGPL.
7948
7949 2006-07-30  Bruno Haible  <bruno@clisp.org>
7950
7951         * modules/javaversion (Makefile.am): Distribute javaversion.java and
7952         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
7953         set PKGDATADIR to point to it.
7954
7955 2006-07-30  Bruno Haible  <bruno@clisp.org>
7956
7957         * modules/csharpexec (configure.ac): Comment out macro invocation.
7958         * modules/javaexec (configure.ac): Likewise.
7959         * modules/javacomp-script (configure.ac): Likewise.
7960
7961         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
7962
7963 2006-07-30  Bruno Haible  <bruno@clisp.org>
7964
7965         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
7966         linked-list.
7967
7968 2006-07-30  Bruno Haible  <bruno@clisp.org>
7969
7970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
7971
7972 2006-07-30  Bruno Haible  <bruno@clisp.org>
7973
7974         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7975         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
7976         get removed.
7977
7978 2006-07-29  Bruno Haible  <bruno@clisp.org>
7979
7980         Make it possible for gnulib-tool to work with locally modified or
7981         augmented gnulib repositories.
7982         * gnulib-tool (func_usage): Document --local-dir option.
7983         (local_gnulib_dir): New variable.
7984         Handle --local-dir option.
7985         (func_lookup_file): New function.
7986         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
7987         (func_get_description, func_get_filelist, func_get_description,
7988         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
7989         func_get_automake_snippet, func_get_include_directive,
7990         func_get_license, func_get_maintainer): Use func_lookup_file.
7991         (func_import, func_create_testdir): Use func_lookup_file.
7992
7993 2006-07-29  Bruno Haible  <bruno@clisp.org>
7994
7995         * modules/setenv (Depends-on): Add unistd.
7996
7997 2006-07-29  Bruno Haible  <bruno@clisp.org>
7998
7999         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
8000
8001 2006-07-29  Bruno Haible  <bruno@clisp.org>
8002
8003         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
8004
8005 2006-07-29  Bruno Haible  <bruno@clisp.org>
8006
8007         * gnulib-tool (import, update): If there is no Makefile.am, look at
8008         aclocal.m4, instead of bailing out.
8009
8010 2006-07-29  Bruno Haible  <bruno@clisp.org>
8011
8012         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
8013         Categorize the options by when they are useful.
8014
8015 2006-07-29  Bruno Haible  <bruno@clisp.org>
8016
8017         * gnulib-tool (func_usage): Document option --no-libtool.
8018         Handle option --no-libtool.
8019         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
8020         for changed semantics of $libtool variable.
8021         (func_import): Likewise. If libtool is not used, show this through
8022         an option --no-libtool.
8023         (func_create_testdir): Update.
8024
8025 2006-07-29  Bruno Haible  <bruno@clisp.org>
8026
8027         * gnulib-tool (func_import): Extend error message about missing
8028         --doc-base.
8029
8030 2006-07-29  Bruno Haible  <bruno@clisp.org>
8031
8032         * gnulib-tool (func_import): Don't create the $docbase directory if
8033         there is no file to store there.
8034
8035 2006-07-29  Bruno Haible  <bruno@clisp.org>
8036
8037         * gnulib-tool (autoconf_minversion): If a --dir option is given and
8038         relevant, look for configure.ac there, not in the current directory.
8039         Also use a simple search for AC_PREREQ, not "autoconf --trace".
8040
8041 2006-07-29  Bruno Haible  <bruno@clisp.org>
8042
8043         * gnulib-tool (SORT): New variable.
8044         (func_usage): Undocument --assume-autoconf option.
8045         Remove --assume-autoconf option handling.
8046         (autoconf_minversion): Determine from the contents of configure.ac.
8047         (func_import): Remove autoconf_minversion handling.
8048         Suggested by Eric Blake.
8049
8050 2006-07-29  Bruno Haible  <bruno@clisp.org>
8051
8052         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
8053
8054 2006-07-29  Bruno Haible  <bruno@clisp.org>
8055
8056         * config/srclist.txt (*setenv.[ch]): Remove rules.
8057
8058 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8059
8060         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
8061
8062 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8063
8064         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
8065         arpa/inet.h.
8066
8067 2006-07-28  Simon Josefsson  <jas@extundo.com>
8068
8069         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
8070         * modules/inet_pton (Depends-on): Likewise.
8071
8072 2006-07-28  Simon Josefsson  <jas@extundo.com>
8073
8074         * m4/netinet_in_h.m4: New file.
8075
8076 2006-07-28  Simon Josefsson  <jas@extundo.com>
8077
8078         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
8079         #include's.
8080
8081 2006-07-28  Simon Josefsson  <jas@extundo.com>
8082
8083         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
8084         #include's.
8085
8086 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
8087
8088         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
8089         setgid on directories only if they set these bits.
8090         * lib/modechange.h: Remove obsolete comment about masks.
8091
8092 2006-07-28  Eric Blake  <ebb9@byu.net>
8093
8094         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
8095         macro expansion.
8096
8097 2006-07-28  Bruno Haible  <bruno@clisp.org>
8098
8099         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
8100
8101 2006-07-28  Bruno Haible  <bruno@clisp.org>
8102
8103         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
8104
8105 2006-07-28  Bruno Haible  <bruno@clisp.org>
8106
8107         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8108         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
8109         Define fallbacks.
8110         Avoids link error on FreeBSD 4.x.
8111         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8112
8113         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
8114         encoding.
8115         * lib/mbswidth.c (iswcntrl): Likewise.
8116
8117 2006-07-27  Bruno Haible  <bruno@clisp.org>
8118
8119         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
8120         test.
8121
8122 2006-07-27  Bruno Haible  <bruno@clisp.org>
8123
8124         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
8125         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
8126         defined.
8127
8128 2006-07-26  Eric Blake  <ebb9@byu.net>
8129
8130         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
8131
8132 2006-07-26  Eric Blake  <ebb9@byu.net>
8133
8134         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
8135         like mingw that lack mkstemp.
8136         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
8137         avoid compilation warning on mingw.
8138
8139 2006-07-26  Bruno Haible  <bruno@clisp.org>
8140
8141         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
8142         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
8143         INT_FAST*_MIN, INTPTR_MIN.
8144
8145 2006-07-25  Bruno Haible  <bruno@clisp.org>
8146
8147         * modules/version-etc (Depends-on): Add stdarg.
8148
8149 2006-07-25  Bruno Haible  <bruno@clisp.org>
8150
8151         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
8152         complex commands.
8153
8154 2006-07-25  Bruno Haible  <bruno@clisp.org>
8155
8156         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
8157         defined in <stdarg.h> or config.h.
8158
8159 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
8162         (gl_STDIO_SAFER): Remove.
8163
8164 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8165
8166         * MODULES.html.sh (File stream based Input/Output):
8167         Add fopen-safer, tmpfile-safer; remove stdio-safer.
8168         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
8169         * modules/fopen-safer, modules/tmpfile-safer: New files.
8170         * modules/stdio-safer: Remove.
8171
8172 2006-07-24  Bruno Haible  <bruno@clisp.org>
8173
8174         * modules/tmpdir: New file.
8175         * MODULES.html.sh (File system functions): Add it.
8176
8177 2006-07-24  Bruno Haible  <bruno@clisp.org>
8178
8179         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
8180         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
8181
8182 2006-07-24  Bruno Haible  <bruno@clisp.org>
8183
8184         * modules/clean-temp: New file.
8185
8186 2006-07-24  Bruno Haible  <bruno@clisp.org>
8187
8188         * m4/tmpdir.m4: New file, from GNU gettext.
8189
8190 2006-07-24  Bruno Haible  <bruno@clisp.org>
8191
8192         * lib/tmpdir.h: New file, from GNU gettext.
8193         * lib/tmpdir.c: New file, from GNU gettext.
8194
8195 2006-07-24  Bruno Haible  <bruno@clisp.org>
8196
8197         * lib/clean-temp.h: New file, from GNU gettext.
8198         * lib/clean-temp.c: New file, from GNU gettext.
8199
8200 2006-07-23  Eric Blake  <ebb9@byu.net>
8201
8202         * modules/stdio-safer (Files): Add tmpfile-safer.c.
8203         (Depends-on): Add binary-io.
8204
8205 2006-07-23  Eric Blake  <ebb9@byu.net>
8206
8207         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
8208
8209 2006-07-23  Eric Blake  <ebb9@byu.net>
8210
8211         * lib/tmpfile-safer.c: New file.
8212         * lib/stdio-safer.h (fopen_safer): Add prototype.
8213         * lib/stdio--.h (tmpfile): Make safer.
8214
8215 2006-07-23  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
8218         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
8219         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
8220         gl_linked_remove_at): Use it.
8221
8222 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8223         and Simon Josefsson <jas@extundo.com>
8224
8225         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
8226
8227         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
8228
8229 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8230
8231         * modules/close-stream: New file.
8232         * modules/closeout (Description): Make it clear that it exits
8233         with a diagnostic on error.
8234         (Depends-on): Add close-stream.  Remove fpending, stdbool.
8235         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
8236
8237 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8238
8239         * m4/close-stream.m4: New file.
8240
8241 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8242
8243         * lib/close-stream.c, lib/close-stream.h: New files.
8244
8245 2006-07-22  Bruno Haible  <bruno@clisp.org>
8246
8247         Merge from GNU gettext 0.15.
8248
8249         2006-05-01  Bruno Haible  <bruno@clisp.org>
8250
8251                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
8252
8253         2006-07-22  Bruno Haible  <bruno@clisp.org>
8254
8255                 * modules/javaversion: New file.
8256                 * MODULES.html.sh (Java): Add javaversion.
8257
8258         2006-03-12  Bruno Haible  <bruno@clisp.org>
8259
8260                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
8261
8262         2005-12-04  Bruno Haible  <bruno@clisp.org>
8263
8264                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
8265                 (untested).
8266
8267         2006-06-21  Bruno Haible  <bruno@clisp.org>
8268
8269                 Avoid warnings from recent versions of mcs.
8270                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
8271                 -o, -L, -r any more. Use options documented since mcs-1.0
8272                 instead. Similarly for -g.
8273
8274         2005-12-04  Bruno Haible  <bruno@clisp.org>
8275
8276                 * build-aux/csharpcomp.sh.in: Suffix for resources is
8277                 .resources, not .resource.
8278
8279         2005-07-09  Bruno Haible  <bruno@clisp.org>
8280
8281                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
8282                 add a .dll suffix.
8283                 Reported by Mark Junker <mjscod@gmx.de>.
8284
8285         2006-07-22  Bruno Haible  <bruno@clisp.org>
8286
8287                 * modules/gettext: Upgrade to gettext-0.15.
8288                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
8289                 m4/visibility.m4.
8290                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
8291
8292 2006-07-22  Bruno Haible  <bruno@clisp.org>
8293
8294         Merge from GNU gettext 0.15.
8295
8296         2006-03-25  Bruno Haible  <bruno@clisp.org>
8297
8298                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
8299
8300         2006-07-21  Bruno Haible  <bruno@clisp.org>
8301
8302                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
8303                 "1.1".
8304
8305         2006-05-09  Bruno Haible  <bruno@clisp.org>
8306
8307                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
8308                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
8309                 for the conftestver execution.
8310
8311         2006-05-01  Bruno Haible  <bruno@clisp.org>
8312
8313                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
8314                 optional target-version argument. Verify that the compiler
8315                 groks source of the specified source-version, or add -source
8316                 option as necessary. Verify that the compiler produces
8317                 bytecode in the specified target-version, or add -target and
8318                 -source options as necessary. Make the result of the test
8319                 available as variable CONF_JAVAC. Also log error output in
8320                 config.log.
8321
8322         2006-03-11  Bruno Haible  <bruno@clisp.org>
8323
8324                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
8325
8326         2006-05-09  Bruno Haible  <bruno@clisp.org>
8327
8328                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
8329                 CLASSPATH_SEPARATOR to a semicolon.
8330
8331         2006-03-12  Bruno Haible  <bruno@clisp.org>
8332
8333                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
8334                 available as variable CONF_JAVA, for subsequent autoconf
8335                 tests. Also log error output in config.log.
8336
8337         2006-07-19  Bruno Haible  <bruno@clisp.org>
8338
8339                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
8340                 that getline works on glibc2 systems. Needed to avoid trouble
8341                 in relocatable.c.
8342                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
8343
8344         2005-12-04  Bruno Haible  <bruno@clisp.org>
8345
8346                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
8347                 launcher (untested).
8348
8349         2005-12-04  Bruno Haible  <bruno@clisp.org>
8350
8351                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
8352
8353         2006-07-22  Bruno Haible  <bruno@clisp.org>
8354
8355                 * gettext.m4: Update from GNU gettext-0.15.
8356                 * nls.m4: Likewise.
8357                 * po.m4: Likewise.
8358                 * inttypes-pri.m4: Likewise.
8359                 * inttypes-h.m4: Renamed from inttypes.m4.
8360                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
8361
8362 2006-07-22  Bruno Haible  <bruno@clisp.org>
8363
8364         Merge from GNU gettext 0.15.
8365
8366         2005-07-05  Bruno Haible  <bruno@clisp.org>
8367
8368                 * printf-args.c (printf_fetchargs): Work around broken
8369                 definition of wint_t on mingw.
8370
8371         2005-02-12  Bruno Haible  <bruno@clisp.org>
8372
8373                 * xallocsa.h: Add extern "C" for C++.
8374
8375         2006-05-17  Bruno Haible  <bruno@clisp.org>
8376
8377                 Cygwin portability.
8378                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
8379
8380         2006-04-30  Bruno Haible  <bruno@clisp.org>
8381
8382                 * progreloc.c: Include <mach-o/dyld.h> if available.
8383                 (find_executable): Use _NSGetExecutablePath when possible.
8384
8385         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8386
8387                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
8388                 function.
8389
8390         2005-12-29  Bruno Haible  <bruno@clisp.org>
8391
8392                 * progreloc.c (set_program_name_and_installdir): Fix
8393                 compilation error.
8394
8395         2005-12-04  Bruno Haible  <bruno@clisp.org>
8396
8397                 Cygwin portability.
8398                 * progreloc.c: Include <windows.h> also on Cygwin.
8399                 (find_executable): Add support for Cygwin.
8400                 (set_program_name_and_installdir): Handle also platforms with
8401                 nonempty EXEEXT.
8402
8403         2006-07-11  Bruno Haible  <bruno@clisp.org>
8404
8405                 * javacomp.c: Fix a comment.
8406                 Reported by Jim Meyering.
8407
8408         2006-04-30  Bruno Haible  <bruno@clisp.org>
8409
8410                 * javacomp.h (compile_java_class): Add source_version,
8411                 target_version arguments.
8412                 * javacomp.c: Rewritten to choose only a compiler that
8413                 respects the specified source_version and target_version.
8414
8415         2006-06-27  Bruno Haible  <bruno@clisp.org>
8416
8417                 Assume correct S_ISDIR macro.
8418                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
8419
8420         2006-07-22  Bruno Haible  <bruno@clisp.org>
8421
8422                 * javaversion.h: New file, from GNU gettext.
8423                 * javaversion.c: New file, from GNU gettext.
8424                 * javaversion.java: New file, from GNU gettext.
8425                 * javaversion.class: New file, from GNU gettext.
8426
8427         2006-05-17  Bruno Haible  <bruno@clisp.org>
8428
8429                 Cygwin portability.
8430                 * javaexec.c (execute_java_class): Test for jview program
8431                 also on Cygwin.
8432
8433         2006-04-09  Bruno Haible  <bruno@clisp.org>
8434
8435                 * fatal-signal.c: Don't include string.h.
8436                 (at_fatal_signal): Use a copying loop instead of memcpy.
8437
8438         2005-12-04  Bruno Haible  <bruno@clisp.org>
8439
8440                 * csharpexec.c: Add support for 'clix' launcher (untested).
8441                 (execute_csharp_using_sscli): New function.
8442                 (execute_csharp_program): Call it.
8443
8444         2006-06-21  Bruno Haible  <bruno@clisp.org>
8445
8446                 Avoid warnings from recent versions of mcs.
8447                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
8448                 -o, -L, -r any more. Use options documented since mcs-1.0
8449                 instead. Similarly for -g.
8450
8451         2005-07-09  Bruno Haible  <bruno@clisp.org>
8452
8453                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
8454                 add a .dll suffix.
8455                 Reported by Mark Junker <mjscod@gmx.de>.
8456
8457         2006-06-17  Bruno Haible  <bruno@clisp.org>
8458
8459                 * config.charset: Update for NetBSD 3.0.
8460
8461         2006-05-17  Bruno Haible  <bruno@clisp.org>
8462
8463                 Cygwin portability.
8464                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
8465
8466         2006-05-16  Bruno Haible  <bruno@clisp.org>
8467
8468                 * localcharset.c [CYGWIN]: Include <windows.h>.
8469                 (get_charset_aliases): For Cygwin, return the same CPxxx
8470                 aliases list as under WIN32.
8471                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
8472                 the environment variables. Fall back to GetACP().
8473
8474         2006-04-05  Bruno Haible  <bruno@clisp.org>
8475
8476                 * config.charset: Update Juan Manuel Guerrero's address.
8477
8478         2005-02-12  Bruno Haible  <bruno@clisp.org>
8479
8480                 * allocsa.h: Add extern "C" for C++.
8481
8482         2005-02-10  Bruno Haible  <bruno@clisp.org>
8483
8484                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
8485                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
8486
8487         2006-07-22  Bruno Haible  <bruno@clisp.org>
8488
8489                 * gettext.h: Update to GNU gettext-0.15.
8490
8491 2006-07-22  Bruno Haible  <bruno@clisp.org>
8492
8493         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
8494         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
8495         lib-prefix.m4, longdouble.m4, ssize_t.m4.
8496
8497 2006-07-21  Eric Blake  <ebb9@byu.net>
8498
8499         * modules/stdlib-safer: New file.
8500         * MODULES.html.sh (File stream based Input/Output): Add
8501         stdlib-safer.
8502
8503 2006-07-21  Eric Blake  <ebb9@byu.net>
8504
8505         * lib/stdlib-safer.h: New file from coreutils, required by
8506         stdlib--.h.
8507
8508 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
8509
8510         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
8511
8512 2006-07-20  Bruno Haible  <bruno@clisp.org>
8513
8514         * gnulib-tool: Recognize new option --assume-autoconf.
8515         (autoconf_minversion): New variable.
8516         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
8517
8518 2006-07-20  Bruno Haible  <bruno@clisp.org>
8519
8520         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
8521
8522 2006-07-19  Derek R. Price  <derek@ximbiot.com>
8523
8524         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
8525         Reindent and repaginate.
8526
8527 2006-07-19  Derek Price  <derek@ximbiot.com>
8528
8529         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
8530         Correct grammar.
8531
8532 2006-07-17  Bruno Haible  <bruno@clisp.org>
8533
8534         * modules/list: New file.
8535         * modules/array-list: New file.
8536         * modules/carray-list, modules/carray-list-tests: New files.
8537         * modules/linked-list, modules/linked-list-tests: New files.
8538         * modules/avltree-list, modules/avltree-list-tests: New files.
8539         * modules/rbtree-list, modules/rbtree-list-tests: New files.
8540         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
8541         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
8542         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
8543         * modules/oset: New file.
8544         * modules/array-oset: New file.
8545         * modules/avltree-oset, modules/avltree-oset-tests: New files.
8546         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
8547         * tests/test-carray_list.c: New file.
8548         * tests/test-linked_list.c: New file.
8549         * tests/test-avltree_list.c: New file.
8550         * tests/test-rbtree_list.c: New file.
8551         * tests/test-linkedhash_list.c: New file.
8552         * tests/test-avltreehash_list.c: New file.
8553         * tests/test-rbtreehash_list.c: New file.
8554         * tests/test-avltree_oset.c: New file.
8555         * tests/test-rbtree_oset.c: New file.
8556         * MODULES.html.sh (Container data structures): New section.
8557
8558 2006-07-17  Bruno Haible  <bruno@clisp.org>
8559
8560         * m4/gl_list.m4: New file.
8561
8562 2006-07-17  Bruno Haible  <bruno@clisp.org>
8563
8564         * lib/gl_list.h: New file.
8565         * lib/gl_list.c: New file.
8566         * lib/gl_array_list.h: New file.
8567         * lib/gl_array_list.c: New file.
8568         * lib/gl_carray_list.h: New file.
8569         * lib/gl_carray_list.c: New file.
8570         * lib/gl_linked_list.h: New file.
8571         * lib/gl_linked_list.c: New file.
8572         * lib/gl_anylinked_list1.h: New file.
8573         * lib/gl_anylinked_list2.h: New file.
8574         * lib/gl_avltree_list.h: New file.
8575         * lib/gl_avltree_list.c: New file.
8576         * lib/gl_anyavltree_list1.h: New file.
8577         * lib/gl_anyavltree_list2.h: New file.
8578         * lib/gl_rbtree_list.h: New file.
8579         * lib/gl_rbtree_list.c: New file.
8580         * lib/gl_anyrbtree_list1.h: New file.
8581         * lib/gl_anyrbtree_list2.h: New file.
8582         * lib/gl_anytree_list1.h: New file.
8583         * lib/gl_anytree_list2.h: New file.
8584         * lib/gl_linkedhash_list.h: New file.
8585         * lib/gl_linkedhash_list.c: New file.
8586         * lib/gl_anyhash_list1.h: New file.
8587         * lib/gl_anyhash_list2.h: New file.
8588         * lib/gl_avltreehash_list.h: New file.
8589         * lib/gl_avltreehash_list.c: New file.
8590         * lib/gl_rbtreehash_list.h: New file.
8591         * lib/gl_rbtreehash_list.c: New file.
8592         * lib/gl_anytreehash_list1.h: New file.
8593         * lib/gl_anytreehash_list2.h: New file.
8594
8595         * lib/gl_oset.h: New file.
8596         * lib/gl_oset.c: New file.
8597         * lib/gl_array_oset.h: New file.
8598         * lib/gl_array_oset.c: New file.
8599         * lib/gl_avltree_oset.h: New file.
8600         * lib/gl_avltree_oset.c: New file.
8601         * lib/gl_rbtree_oset.h: New file.
8602         * lib/gl_rbtree_oset.c: New file.
8603         * lib/gl_anytree_oset.h: New file.
8604
8605 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8606
8607         * m4/mkancesdirs.m4: New file.
8608         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
8609         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
8610         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
8611         it.
8612
8613 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8614
8615         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
8616         * lib/mkancesdirs.h: New files.
8617         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
8618         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
8619         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
8620         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
8621         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
8622         callers changed.  Revamp internals significantly, by not
8623         attempting to create directories that are temporarily more
8624         permissive than the final results.  Do not attempt to use
8625         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
8626         This removes some race conditions, fixes some bugs, and simplifies
8627         things.  Use new dirchownmod function to do owner and mode changes.
8628         * lib/mkdir-p.h: Likewise.
8629         * lib/modechange.c (octal_to_mode): New function.
8630         (struct mode_change): New member mentioned.
8631         (make_node_op_equals): New arg mentioned.  All callers changed.
8632         (mode_compile): Keep track of which mode bits the user has explicitly
8633         mentioned.
8634         (mode_adjust): New arg DIR, so that we implement the X op correctly.
8635         New arg PMODE_BITS, to keep track of which mode bits the user
8636         mentioned; it treats S_ISUID and S_ISGID speciall.
8637         All callers changed.
8638         * lib/modechange.h: Likewise.
8639
8640 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8641
8642         * MODULES.html.sh: Add mkancestors.
8643         * modules/mkancesdirs: New module.
8644         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
8645         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
8646         The chdir-safer and afs files are now orphans; I'll remove them
8647         unless someone speaks up.
8648         Add lib/dirchownmod.c, lib/dirchownmod.h.
8649         (Depends-on): Remove alloca, chown, save-cwd, dirname.
8650         Add lchown, mkancesdirs.
8651         (Maintainer): Add self.
8652
8653 2006-07-15  Karl Berry  <karl@gnu.org>
8654
8655         * gnulib-tool: help message wording/arrangement.
8656
8657 2006-07-14  Simon Josefsson  <jas@extundo.com>
8658
8659         * doc/gnulib.texi (Libtool and Windows): New section.
8660
8661 2006-07-12  Simon Josefsson  <jas@extundo.com>
8662
8663         * modules/gendocs (License): Fix license, approved by Karl.
8664
8665 2006-07-12  Eric Blake  <ebb9@byu.net>
8666
8667         * MODULES.html.sh: Add gendocs.
8668
8669 2006-07-11  Eric Blake  <ebb9@byu.net>
8670
8671         * modules/fdl: New module, to install doc/fdl.texi.
8672         * MODULES.html.sh: Add new section for documentation modules.
8673         * gnulib-tool: Avoid space-tab.
8674         (--doc-base): New option, to manage files from doc.
8675
8676 2006-07-11  Eric Blake  <ebb9@byu.net>
8677
8678         * m4/absolute-header.m4: Fix comments to match recent change.
8679
8680 2006-07-11  Eric Blake  <ebb9@byu.net>
8681
8682         * gnulib-tool: List --doc-base before --tests-base.
8683
8684 2006-07-11  Derek R. Price  <derek@ximbiot.com>
8685
8686         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
8687
8688 2006-07-11  Bruno Haible  <bruno@clisp.org>
8689
8690         * README: Mention where to put documentation.
8691
8692 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8693
8694         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
8695
8696 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
8697
8698         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
8699         to stdint.m4.
8700
8701 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
8702
8703         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
8704         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
8705         "no/such/file/stdint.h" when there is no such file, so that
8706         the resulting C code can be parsed by dodgy compilers.
8707         Problems reported by Bob Proulx.
8708
8709 2006-07-10  Derek R. Price  <derek@ximbiot.com>
8710
8711         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
8712         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
8713         macros into the GNU _D_EXACT_NAMLEN.
8714         * lib/savedir.c:  Likewise.
8715         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
8716
8717 2006-07-10  Derek R. Price  <derek@ximbiot.com>
8718         and Paul Eggert  <eggert@cs.ucla.edu>
8719
8720         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
8721         * m4/savedir.m4:
8722         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
8723         macros into the GNU _D_EXACT_NAMLEN.
8724
8725 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
8728         around the absolute name, to work around a problem with the HP-UX
8729         11.23 native C compiler, reported by Bob Proulx.
8730
8731 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8732
8733         * doc/maintain.texi, make-stds.texi: Sync from
8734         <http://savannah.gnu.org/projects/gnustandards>.
8735
8736 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8737
8738         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
8739
8740 2006-07-09  Jim Meyering  <jim@meyering.net>
8741
8742         * m4/glob.m4: Remove a doubled word in a comment.
8743
8744 2006-07-09  Jim Meyering  <jim@meyering.net>
8745
8746         * lib/argp-pv.c: Remove a doubled word in a comment.
8747         * lib/check-version.c (check_version): Likewise.
8748         * lib/javacomp.c (compile_java_class): Likewise.
8749
8750 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8751
8752         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
8753         for the benefit of people using Autoconf 2.60.  If you want to
8754         support older Autoconf versions you can copy m4/onceonly_2_57.m4
8755         (or m4/onceonly.m4, if pre-2.57) manually.
8756
8757 2006-07-08  Jim Meyering  <jim@meyering.net>
8758
8759         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
8760         comment.
8761         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
8762         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
8763         comment.
8764
8765 2006-07-08  Jim Meyering  <jim@meyering.net>
8766
8767         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
8768
8769 2006-07-07  Simon Josefsson  <jas@extundo.com>
8770
8771         * tests/test-crc.c: Change expected crc value, the test vector
8772         were probably computed using the old broken crc.c?
8773
8774 2006-07-06  Simon Josefsson  <jas@extundo.com>
8775
8776         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
8777         now the canonical place for the M4 file).
8778
8779         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
8780         from the sys_socket dependency now.
8781
8782         * modules/inet_pton (Files): Ditto.
8783
8784         * modules/inet_ntop (Files): Ditto.
8785
8786 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
8787
8788         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
8789         not gl_PREREQ_GETUSERSHELL.
8790
8791 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8792
8793         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
8794         with only one argument, for Autoconf 2.60.
8795         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
8796         expand to nothing, so add a shell command to avoid syntax error.
8797         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8798
8799 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8800
8801         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
8802
8803 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8804
8805         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
8806         no longer needed.  Check for isblank decl.
8807         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
8808         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
8809         of existence.
8810
8811 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8812
8813         * lib/getloadavg.c: Use __VMS, not VMS.
8814         * lib/getopt.c: Likewise.
8815         * lib/getpagesize.h: Likewise.
8816         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
8817         and probably does not work.
8818
8819 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         * lib/.cppi-disable: Add wcwidth.
8822         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
8823         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
8824         (ISGRAPH): Remove.  All uses changed to isgraph.
8825         (FOLD) [!defined _LIBC]: Remove special case.
8826         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
8827         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
8828         HAVE_ISBLANK.
8829         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
8830         case.
8831
8832 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
8833
8834         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
8835         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
8836         brackets.  Other minor changes to suppress some compiler
8837         warnings.
8838
8839 2006-07-06  Derek R. Price  <derek@ximbiot.com>
8840         and Paul Eggert  <eggert@cs.ucla.edu>
8841
8842         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
8843         of invoking obsolescent AC_HEADER_DIRENT macro.
8844         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8845         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
8846         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8847         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8848         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
8849         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8850         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
8851         * m4/readdir.m4: Remove; no longer needed.
8852
8853 2006-07-06  Derek R. Price  <derek@ximbiot.com>
8854         and Paul Eggert  <eggert@cs.ucla.edu>
8855
8856         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
8857         Don't worry about this obsolete case any more.
8858         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
8859         directories.
8860         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
8861         worry about this obsolete case any more.
8862         * lib/fts.c: Likewise.
8863         * lib/getcwd.c: Likewise.
8864         * lib/glob.h: Likewise.
8865         * lib/savedir.c: Likewise.
8866
8867 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8868
8869         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
8870         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
8871         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
8872         needed.
8873         All uses removed.
8874         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8875         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8876         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
8877         needed.
8878         * m4/getdate.m4 (gl_GETDATE): Likewise.
8879         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8880         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8881         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8882         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8883         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8884         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8885         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
8886         needed.
8887
8888 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8889
8890         * lib/memcasecmp.c: Include <limits.h>.
8891         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
8892         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
8893         Don't assume isdigit succeeds only on '0' through '9'.
8894
8895 2006-07-05  Eric Blake  <ebb9@byu.net>
8896
8897         * modules/getaddrinfo (Depends-on): Add snprintf.
8898
8899 2006-07-05  Eric Blake  <ebb9@byu.net>
8900
8901         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
8902         to avoid 'header present but could not be compiled' on cygwin.
8903
8904 2006-07-05  Eric Blake  <ebb9@byu.net>
8905
8906         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
8907         missing from netdb.h.
8908         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
8909
8910 2006-07-05  Derek R. Price  <derek@ximbiot.com>
8911
8912         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
8913         no longer needed.
8914         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
8915         * m4/getdate.m4 (gl_GETDATE): Likewise.
8916         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8917         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8918         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8919         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8920         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8921
8922 2006-07-05  Derek R. Price  <derek@ximbiot.com>
8923
8924         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
8925         All uses of is_space replaced by isspace.
8926         * lib/exit.h: Don't talk about STDC_HEADERS.
8927         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
8928         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
8929         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
8930         replaced by isprint etc.
8931         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
8932         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
8933         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
8934         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
8935         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
8936         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
8937
8938 2006-07-05  Bruno Haible  <bruno@clisp.org>
8939
8940         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
8941         the function exists, before testing against AIX.
8942         Reported by Martin Lambers <marlam@marlam.de>.
8943
8944 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8945
8946         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
8947         From Mark D. Baushke.
8948
8949 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8950
8951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
8952         to the absolute name, not just one, to bypass Sun C 5.8's
8953         "warning: #include of /usr/include/... may be non-portable".
8954
8955 2006-07-04  Eric Blake  <ebb9@byu.net>
8956
8957         * modules/dirname-tests: New test module.
8958         * tests/test-dirname.c: New file, replacing dirname.c
8959         TEST_DIRNAME section that was recently deleted.
8960
8961 2006-07-04  Bruno Haible  <bruno@clisp.org>
8962
8963         Assume ANSI C header files and <ctype.h> functions.
8964         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
8965         (mbsnwidth): Use isprint, iscntrl instead.
8966
8967 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8968
8969         Merge from coreutils.
8970         * MODULES.html.sh: Add xstrtold.
8971         * modules/xstrtold: New file.
8972         * modules/cycle-check (Files): Add lib/same-inode.h.
8973         * modules/dirname (Files): Add m4/double-slash-root.m4.
8974         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
8975         * modules/mkdir-p (Files): Add lib/same-inode.h.
8976         * modules/same (Files): Add lib/same-inode.h.
8977
8978 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8979
8980         * m4/absolute-header.m4: Renamed from full-header-path.m4.
8981         This is to keep the terminology clean; POSIX talks about
8982         "absolute pathnames", not "full pathnames", but the GNU
8983         Coding Standards say to use "path" for something else;
8984         so use "absolute" to keep both sides happy.
8985         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
8986         Set gl_absolute_header, not gl_full_header_path.
8987         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
8988         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
8989         All uses changed.
8990
8991         Merge from coreutils.
8992
8993         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
8996         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
8997         want to require the building of c-strtod.o.
8998         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
8999         needs -lm directly.
9000         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
9001
9002         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
9003
9004         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
9005         --as-needed option if available.  Problem reported by Albert Chin in
9006         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
9007         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
9008         cc merely issues a bunch of annoying warnings for --as-needed
9009         (this problem was reported by Bob Proulx).  Also, try linking with
9010         -lm to detect a bug in binutils 2.16 (this problem was reported
9011         by Ralf Wildenhues).
9012
9013         2006-06-18  Jim Meyering  <jim@meyering.net>
9014
9015         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
9016         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
9017         macro.
9018         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
9019         also check for glibc-2.4's abort-inducing bug.
9020
9021         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
9022         Low-probability clean-up should be to use rmdir to get rid of
9023         the just-created directory, not unlink.
9024
9025         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
9026         configure fail, and request a bug report to inform us about it.
9027         Add a comment that, barring reports to the contrary, in 2007 we'll
9028         assume ftruncate is universally available.
9029
9030         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
9031
9032         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
9033
9034         2006-03-12  Jim Meyering  <jim@meyering.net>
9035
9036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
9037         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
9038         * m4/same.m4 (gl_SAME): Likewise.
9039         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
9040
9041         2006-03-11  Eric Blake  <ebb9@byu.net>
9042
9043         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
9044         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
9045         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
9046         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
9047
9048 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9049
9050         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
9051         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
9052         reported by Mark D. Baushke, one in
9053         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
9054
9055         Merge from coreutils.
9056
9057         * lib/.cppi-disable: Add stdint_.h.
9058         * lib/.cvsignore: Add stdint.h.
9059
9060         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9061
9062         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
9063         both double and long double versions.
9064         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
9065         * lib/xstrtold.c: New file.
9066         * lib/xstrtod.h (xstrtold): New decl.
9067
9068         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9069
9070         * lib/filemode.c (setst): Remove.
9071         (strmode): Rewrite to avoid setst.  This makes the code shorter,
9072         (arguably) clearer, and the generated code is a bit smaller on my
9073         Debian GNU/Linux stable x86 host.
9074
9075         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         * lib/filemode.c: Include "filemode.h" first, to test the interface.
9078         Assume that filemode.h includes sys/types.h and sys/stat.h.
9079         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
9080         (ftypelet): Reorder to put common cases first, for efficiency.
9081         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
9082         to do 'M'.
9083         (strmode): Renamed from mode_string, and now stores 12 bytes instead
9084         of 10, for compatibility with FreeBSD.  All callers changed.
9085         (filemodestring): Now stores 12 bytes instead of 10, and sets file
9086         types that can't be deduced solely from st_mode.  First arg is now a
9087         const pointer.
9088         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
9089         (strmode): Renamed from mode_string.
9090         (filemodestring): New decl.
9091         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
9092         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
9093         needed.
9094         (S_ISPORT, S_ISWHT): New macros, if not already defined.
9095
9096         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
9097
9098         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
9099         fsusage.h now does that.  Include fsusage.h first, to test interface.
9100         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
9101         at most one method (the old code could have generated decls that
9102         didn't conform to C89, not that this was ever exercised).
9103         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
9104
9105         2006-03-19  Jim Meyering  <jim@meyering.net>
9106
9107         Work even in a chroot where d_ino values for entries in "/"
9108         don't match the stat.st_ino values for the same names.
9109         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
9110         number, iterate through all entries again, using lstat instead.
9111         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
9112         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
9113
9114         * lib/getcwd.c (__getcwd): Clarify a comment.
9115         Use memcpy in place of a call to strcpy.
9116
9117         2006-03-12  Jim Meyering  <jim@meyering.net>
9118
9119         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
9120         matches that of the current directory (which we're about to chdir ".."
9121         out of), then save the dev-ino of the parent, instead.
9122
9123         * lib/same-inode.h (SAME_INODE): New file/macro.
9124         * lib/chdir-safer.c (SAME_INODE): Remove definition.
9125         Include "same-inode.h", instead.
9126         * lib/same.c: Likewise.
9127         * lib/cycle-check.h: Include "same-inode.h".
9128         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
9129         * lib/cycle-check.c (SAME_INODE): Remove definition.
9130         * lib/root-dev-ino.h: Include "same-inode.h".
9131
9132         2006-03-11  Eric Blake  <ebb9@byu.net>
9133
9134         * lib/same.c (same_name): s/base_name/last_component/
9135         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
9136         * lib/filenamecat.c (file_name_concat): Likewise.
9137
9138         2006-03-11  Eric Blake  <ebb9@byu.net>,
9139                     Paul Eggert  <eggert@cs.ucla.edu>
9140
9141         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
9142         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
9143         drive prefix.
9144         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
9145         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
9146         (last_component): New method.
9147         * lib/dirname.c (dir_len): Determine when drive letters need a
9148         subsequent slash.  Preserve // when it is special.
9149         (dir_name): Don't append dot when drive letter is absolute.
9150         [TEST_DIRNAME]: Move into a full-blown gnulib test.
9151         * lib/basename.c (base_name): New semantics - malloc the result.
9152         Preserve // when it is special.  Preserve relative files that look
9153         like drive letters.
9154         (base_len): Preserve // when it is special.
9155         (last_component): New method, similar to old base_name semantics.
9156         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
9157         base_name.  Strip redundant slashes from ///.
9158
9159 2006-07-03  Jim Meyering  <jim@meyering.net>
9160
9161         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
9162         macro is used before the first cycle_check call.
9163
9164 2006-07-03  Eric Blake  <ebb9@byu.net>
9165
9166         * modules/dirname (Depends-on): Add xstrndup.
9167
9168 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9169
9170         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
9171         test cases, so that config.log is a bit easier to follow.
9172
9173 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9174
9175         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
9176         both are 64 bits, since this seems to be the tradition, and this
9177         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
9178         we ever run into a host that prefers long long to long in this
9179         case, we'll need another configure-time test.  Problem reported by
9180         Jim Meyering.
9181
9182 2006-07-02  Eric Blake  <ebb9@byu.net>
9183
9184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
9185
9186 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
9187
9188         * modules/inttypes (Depends-on): No longer depends on stdint.
9189         * modules/stdint (Description): Say more about assumptions.
9190         Say that the fast types might differ.  Say macros are used.
9191         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
9192         (Makefile.am): Revise list of substituted symbols to match
9193         new stdint.m4.
9194         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
9195         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
9196         * tests/test-stdint.c (verify_same_types)
9197         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
9198         the code conforms to C99/C89.
9199         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
9200         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
9201
9202 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
9203
9204         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
9205         but fix a bug, by requiring at least 64 bits.
9206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9207         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
9208         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
9209         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
9210
9211         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
9212         changes.  Make 2.59 a prerequisite.  Check and substitute for
9213         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
9214         inttypes.h.  Do not use special include files; just use the
9215         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
9216         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
9217         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
9218         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
9219         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
9220         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
9221         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
9222         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
9223         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
9224         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
9225         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
9226         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
9227         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
9228         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
9229         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
9230         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
9231         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
9232         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
9233         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
9234         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
9235         WINT_MAX.  Check for C99 conformance more strictly, by detecting
9236         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
9237         not check for things that C99 does not require, e.g., int8_t.  If
9238         a test isn't needed unless <stdint.h> isn't working, and is
9239         unlikely to be needed for any other reason, then don't do it
9240         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
9241         size_t, since we assume C89 freestanding at least.  Do not check
9242         for sig_atomic_t, wchar_t, or wint_t, since the code now does
9243         the right thing even if the types are not defined.  Instead use:
9244         (gl_STDINT_TYPE_PROPERTIES): New macro.
9245         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
9246         testing whether <sys/types.h> clashes, as Autoconf does this for
9247         us now.  All uses removed.
9248         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
9249         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
9250         (gl_CHECK_TYPE_SAME):
9251         Remove; no longer needed.
9252         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
9253         exists, since we'll return 0 anyway in that case.
9254         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
9255
9256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
9257
9258         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
9259         possible collision with system files.
9260         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
9261         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
9262         WCHAR_MIN and WCHAR_MAX in this case.
9263         (<stddef.h>): Do not include; no longer needed.
9264         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
9265         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
9266         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
9267         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
9268         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
9269         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
9270         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
9271         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
9272         !defined(__c99))]: Include in this case too, since it's harmless
9273         now.
9274         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
9275         dangerous to do so.
9276         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
9277         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
9278         (_STDINT_MIN, _STDINT_MAX): New macros.
9279         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
9280         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
9281         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
9282         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
9283         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
9284         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
9285         macros, not typedefs; this simplifies things quite a bit.
9286         Use long int for all types narrower than int64_t.
9287         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
9288         Define in terms of long long int or int64_t or long int,
9289         not int64_t or int32_t.  This saves some compile-time testing.
9290         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
9291         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
9292         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
9293         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
9294         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
9295         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
9296         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
9297         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
9298         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
9299         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
9300         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9301         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9302         undef any previous version and define our own version, for
9303         simplicity and consistency with the new macros for types.
9304         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9305         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9306         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
9307         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
9308         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
9309         @WINT_T_SUFFIX@ to keep things simple here.
9310         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
9311         Simplify by assuming typical 8/16/32/64 host, since we're
9312         already doing that elsewhere anyway.
9313         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
9314         and assume long long int is 64 bits if available.  This
9315         speeds up 'configure'.
9316
9317 2006-07-01  Eric Blake  <ebb9@byu.net>
9318
9319         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
9320         Reported by Andreas Buening.
9321
9322 2006-07-01  Eric Blake  <ebb9@byu.net>
9323
9324         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
9325
9326 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
9327
9328         * lib/getaddrinfo.c: fixed typo
9329
9330 2006-06-29  Jim Meyering  <jim@meyering.net>
9331
9332         * modules/strftime (Maintainer): Add my name, since with the
9333         FPRINTFTIME changes strftime.c has forked from glibc.
9334
9335 2006-06-29  Eric Blake  <ebb9@byu.net>
9336
9337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
9338
9339 2006-06-29  Eric Blake  <ebb9@byu.net>
9340
9341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
9342
9343 2006-06-29  Eric Blake  <ebb9@byu.net>
9344
9345         * lib/stat_.h: New file.
9346
9347 2006-06-29  Eric Blake  <ebb9@byu.net>
9348
9349         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
9350         unused static function.
9351
9352 2006-06-29  Eric Blake  <ebb9@byu.net>
9353
9354         * doc/functions.texi (Function Portability): Document missing lstat
9355         on mingw.
9356
9357 2006-06-29  Eric Blake  <ebb9@byu.net>
9358
9359         * MODULES.html.sh: Add sys_stat.
9360         * modules/sys_stat: New module.
9361         * modules/mkstemp (Depends-on): Add sys_stat.
9362
9363 2006-06-29  Derek R. Price  <derek@ximbiot.com>
9364
9365         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
9366
9367 2006-06-29  Derek R. Price  <derek@ximbiot.com>
9368
9369         * m4/c-bs-a.m4: Removed.
9370
9371 2006-06-29  Derek R. Price  <derek@ximbiot.com>
9372
9373         * lib/strftime.c: Assume strftime() exists.
9374
9375 2006-06-29  Derek Price  <derek@ximbiot.com>
9376
9377         * modules/c-bs-a: Removed - \a is C89.
9378         * MODULES.html.sh: Remove c-bs-a.
9379
9380 2006-06-29  Bruno Haible  <bruno@clisp.org>
9381
9382         * modules/wcwidth (License): Change to LGPL.
9383
9384 2006-06-28  Simon Josefsson  <jas@extundo.com>
9385
9386         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
9387         on _WIN32.
9388
9389         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
9390         getnameinfo.
9391
9392 2006-06-28  Simon Josefsson  <jas@extundo.com>
9393
9394         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
9395
9396 2006-06-28  Simon Josefsson  <jas@extundo.com>
9397
9398         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
9399         functions there.  It will succeed on Windows XP, but on Windows
9400         2000 and (presumably) earlier, it will fail, and use the internal
9401         re-implementation.
9402         (use_win32_p): New function.
9403         (getaddrinfo): Use strtoul on servname, to support numeric ports.
9404         Support AI_NUMERICSERV to disable getservbyname.
9405         (getnameinfo): New function, only supports
9406         NI_NUMERICHOST|NI_NUMERICSERV for now.
9407
9408         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
9409         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
9410         getnameinfo.
9411
9412 2006-06-28  Eric Blake  <ebb9@byu.net>
9413
9414         * modules/wcwidth: New file.
9415         * modules/mbchar (Depends-on): Add wcwidth.
9416         * modules/mbswidth (Depends-on): Add wcwidth.
9417         * MODULES.html.sh: Add wcwidth.
9418
9419 2006-06-28  Eric Blake  <ebb9@byu.net>
9420
9421         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
9422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
9423
9424 2006-06-28  Eric Blake  <ebb9@byu.net>
9425
9426         * lib/xvasprintf.h: Fix comments.
9427
9428 2006-06-28  Eric Blake  <ebb9@byu.net>
9429
9430         * lib/mbchar.h (wcwidth): Include wcwidth.h.
9431         * lib/mbswidth.c (wcwidth): Move from here...
9432         * lib/wcwidth.h: ...to this new file.
9433
9434 2006-06-28  Derek R. Price  <derek@ximbiot.com>
9435
9436         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
9437
9438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
9439         it's obsolete.
9440         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
9441
9442 2006-06-28  Derek R. Price  <derek@ximbiot.com>
9443
9444         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
9445         Autoconf 2.60 says this stuff was obsolete.
9446
9447 2006-06-28  Bruno Haible  <bruno@clisp.org>
9448
9449         * modules/wcwidth (Files): Add m4/wchar_t.m4.
9450
9451 2006-06-28  Bruno Haible  <bruno@clisp.org>
9452
9453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
9454         gt_TYPE_WCHAR_T.
9455
9456 2006-06-28  Bruno Haible  <bruno@clisp.org>
9457
9458         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
9459         declaration for wcwidth.
9460         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
9461
9462 2006-06-28  Bruno Haible  <bruno@clisp.org>
9463
9464         * lib/mkdtemp.c [MINGW]: Include <io.h>.
9465         (mkdir): Define using _mkdir.
9466
9467 2006-06-28  Bruno Haible  <bruno@clisp.org>
9468
9469         * lib/getaddrinfo.h: Fix POSIX URL.
9470         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
9471         _WIN32.
9472         (use_win32_p): Make static.
9473         (getaddrinfo): Reject service name if it is empty or does not consist
9474         solely of decimal digits, or if its value is > 65535.
9475         (getnameinfo): Remove useless casts.
9476
9477 2006-06-27  Simon Josefsson  <jas@extundo.com>
9478
9479         * modules/sys_select: New file, suggested by Bruno Haible, Paul
9480         Eggert and Martin Lambers.
9481
9482 2006-06-27  Simon Josefsson  <jas@extundo.com>
9483
9484         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
9485         Eggert and Martin Lambers.
9486
9487 2006-06-27  Bruno Haible  <bruno@clisp.org>
9488
9489         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
9490         result to 0, not to empty.
9491         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
9492
9493 2006-06-27  Bruno Haible  <bruno@clisp.org>
9494
9495         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
9496
9497 2006-06-26  Simon Josefsson  <jas@extundo.com>
9498
9499         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
9500         present.
9501
9502 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9503
9504         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
9505         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
9506         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
9507
9508 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
9509
9510         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
9511
9512 2006-06-26  Bruno Haible  <bruno@clisp.org>
9513
9514         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
9515
9516 2006-06-26  Bruno Haible  <bruno@clisp.org>
9517
9518         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
9519
9520 2006-06-26  Bruno Haible  <bruno@clisp.org>
9521
9522         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
9523         SGI C compiler in pre-C99 mode.
9524         Suggested by Mark D. Baushke and Larry Jones.
9525
9526 2006-06-26  Bruno Haible  <bruno@clisp.org>
9527
9528         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
9529         WCHAR_MAX.
9530         Reported by Mark D. Baushke and Larry Jones.
9531
9532 2006-06-26  Bruno Haible  <bruno@clisp.org>
9533
9534         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
9535         in pre-C99 mode.
9536         Suggested by Mark D. Baushke and Larry Jones.
9537
9538 2006-06-23  Simon Josefsson  <jas@extundo.com>
9539             Bruno Haible  <bruno@clisp.org>
9540
9541         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
9542         Emit mostlyclean-local rule.
9543         (func_emit_tests_Makefile_am): Likewise.
9544         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
9545
9546 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
9547
9548         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
9549
9550 2006-06-23  Bruno Haible  <bruno@clisp.org>
9551
9552         * tests/test-stdint.c: Update to match ISO C 99 Technical
9553         Corrigendum 1.
9554
9555 2006-06-23  Bruno Haible  <bruno@clisp.org>
9556
9557         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
9558
9559 2006-06-23  Bruno Haible  <bruno@clisp.org>
9560
9561         * lib/stdint_.h: Treat IRIX like OpenBSD.
9562
9563 2006-06-23  Bruno Haible  <bruno@clisp.org>
9564
9565         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
9566         ISO C 99 Technical Corrigendum 1.
9567
9568 2006-06-22  Simon Josefsson  <jas@extundo.com>
9569
9570         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
9571         MinGW.
9572
9573 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
9574
9575         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
9576         needed.  Some compiler complained about some of them.  Problem reported
9577         by Larry Jones in
9578         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
9579
9580 2006-06-21  Simon Josefsson  <jas@extundo.com>
9581
9582         * tests/test-getaddrinfo.c: New file.
9583
9584         * modules/getaddrinfo-tests: New file.
9585
9586         * MODULES.html.sh: Add inet_pton.
9587
9588         * modules/inet_pton: New file.
9589
9590 2006-06-21  Simon Josefsson  <jas@extundo.com>
9591
9592         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
9593         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
9594         of using the (limited) gnulib implementation on Windows XP.
9595
9596         * m4/inet_pton.m4: New file.
9597
9598 2006-06-21  Simon Josefsson  <jas@extundo.com>
9599
9600         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
9601         variable.
9602
9603         * lib/socket_.h: Don't define WINVER.
9604
9605         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
9606         slightly modified to work in gnulib.
9607
9608 2006-06-21  Simon Josefsson  <jas@extundo.com>
9609
9610         * doc/gnulib.texi (Windows sockets): Add.
9611
9612 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9613
9614         * lib/read-file.c (fread_file): Start with buffer allocation of
9615         0 bytes rather than 1 byte; this simplifies the code.
9616         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
9617         code to free buffer and save/restore errno.
9618         (internal_read_file): Remove unused local.
9619
9620 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9621
9622         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
9623         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
9624         Problem reported by Denis Excoffier in
9625         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
9626
9627 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9628
9629         * modules/sys_socket, modules/socklen: Include sys/types since
9630         FreeBSD 4.x's sys/socket.h needs it.
9631
9632 2006-06-19  Simon Josefsson  <jas@extundo.com>
9633
9634         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
9635
9636 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
9637
9638         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
9639
9640 2006-06-19  Bruno Haible  <bruno@clisp.org>
9641
9642         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
9643         and FULL_PATH_INTTYPES_H in angle brackets.
9644         Reported by Mark D. Baushke <mdb@gnu.org>.
9645
9646 2006-06-17  Eric Blake  <ebb9@byu.net>
9647
9648         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
9649         errno.
9650
9651 2006-06-17  Bruno Haible  <bruno@clisp.org>
9652
9653         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
9654         <sys/inttypes.h>.
9655
9656 2006-06-17  Bruno Haible  <bruno@clisp.org>
9657
9658         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
9659         whether errno is declared. Assume <errno.h> declares errno.
9660
9661 2006-06-17  Bruno Haible  <bruno@clisp.org>
9662
9663         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
9664
9665 2006-06-17  Bruno Haible  <bruno@clisp.org>
9666
9667         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
9668         problem on Solaris 2.5.1.
9669
9670 2006-06-16  Eric Blake  <ebb9@byu.net>
9671
9672         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
9673         * lib/unicodeio.c [!defined errno]: Likewise.
9674         * lib/strtol.c [!defined errno]: Likewise.
9675         * lib/strtod.c [!defined errno]: Likewise.
9676
9677 2006-06-15  Eric Blake  <ebb9@byu.net>
9678
9679         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
9680
9681 2006-06-15  Eric Blake  <ebb9@byu.net>
9682
9683         * config/srclist.txt (ssize_t.m4): Lose sync.
9684
9685 2006-06-15  Bruno Haible  <bruno@clisp.org>
9686
9687         * modules/stdint (Files): Include m4/full-header-path.m4,
9688         m4/size_max.m4, m4/wchar_t.m4.
9689         (Makefile.am): Many more substitutions.
9690         * modules/stdint-tests: New file.
9691         * tests/test-stdint.c: New file.
9692
9693 2006-06-15  Bruno Haible  <bruno@clisp.org>
9694
9695         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
9696         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
9697         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
9698         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
9699         gl_CHECK_TYPE_SAME): New macros.
9700
9701 2006-06-15  Bruno Haible  <bruno@clisp.org>
9702
9703         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
9704
9705 2006-06-15  Bruno Haible  <bruno@clisp.org>
9706
9707         * lib/stdint_.h: Rewritten to be fully auto-configured.
9708         Fixes bug on HP-UX/IA64.
9709
9710 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
9711
9712         * lib/getdate.y (__attribute__): Don't define if already defined.
9713         Problem reported by Larry Jones.
9714         * lib/utimens.c (__attribute__): Likewise.
9715
9716 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
9717
9718         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
9719         reported by Andreas Schwab.
9720
9721 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9722             Bruno Haible  <bruno@clisp.org>
9723
9724         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
9725         check for the declaration of strnlen and a run test that exposes the
9726         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
9727         rpl_strndup.
9728
9729 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9730             Bruno Haible  <bruno@clisp.org>
9731
9732         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
9733
9734 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9735
9736         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
9737         compile test, for Tru64 4.0D.
9738
9739 2006-05-28  Karl Berry  <karl@gnu.org>
9740
9741         * config/srclist.txt (printf-args.c): lose sync.
9742
9743 2006-05-26  Martin Lambers  <marlam@marlam.de>
9744
9745         * lib/getpass.c: Updates the test for the native W32 API, and adds
9746         missing includes, thus fixing compilation warnings.
9747
9748 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9749
9750         * lib/exclude.c (exclude_fnmatch): New function.
9751         (excluded_file_name): Call exclude_fnmatch.
9752         * lib/exclude.h (excluded_file_name): New prototype
9753
9754 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
9755
9756         * lib/tempname.c (small_open, large_open): New macros.
9757         (__open, __open64) [!_LIBC]: Remove.
9758         (__gen_tempname): Use small_open and large_open instead of __open
9759         and __open64.  This fixes a portability bug on HP-UX 11.11i
9760         reported by Simon Wing-Tang in
9761         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
9762
9763 2006-05-24  Bruno Haible  <bruno@clisp.org>
9764
9765         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
9766         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
9767         Reported by Thorsten Maerz <torte@netztorte.de> via
9768         Aaron Stone <aaron@serendipity.cx>.
9769
9770 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
9773         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
9774         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
9775         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
9776         not really conditional on the cache.
9777         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
9778
9779 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9780
9781         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
9782         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
9783         (my_usleep): Don't mishandle maximum value.
9784
9785 2006-05-19  Jim Meyering  <jim@meyering.net>
9786
9787         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
9788
9789 2006-05-17  Bruno Haible  <bruno@clisp.org>
9790
9791         Cygwin portability.
9792         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
9793
9794 2006-05-17  Bruno Haible  <bruno@clisp.org>
9795
9796         * lib/stdint_.h: Fix recognition of Cygwin.
9797
9798 2006-05-15  Bruno Haible  <bruno@clisp.org>
9799
9800         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
9801         on libtool patch by Ralf Wildenhues.
9802
9803 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
9804
9805         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
9806         test for C99 conformance; (bool) 0.5 is an integer constant
9807         expression, but (bool) -0.5 is not.  Problem reported by Fedor
9808         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
9809
9810 2006-05-11  Simon Josefsson  <jas@extundo.com>
9811
9812         * m4/xvasprintf.m4: Fix obvious typo.
9813
9814 2006-05-11  Jim Meyering  <jim@meyering.net>
9815
9816         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
9817         James Lemley.
9818
9819 2006-05-10  Simon Josefsson  <jas@extundo.com>
9820
9821         * lib/md4.c: Typo fix, update copyright years.
9822         (K1, K2): Don't use L because it turn computations into 64-bit on
9823         64-bit platforms.
9824
9825 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9826
9827         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
9828         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
9829         unwanted sign propagation, e.g., on hosts with 64-bit int.
9830         There still are some problems with reeelly weird theoretical hosts
9831         (e.g., 33-bit int) but it's not worth worrying about now.
9832         * lib/sha1.c (rol): Likewise.
9833         (K1, K2, K3, K4): Remove unnecessary L suffix.
9834
9835 2006-05-10  Bruno Haible  <bruno@clisp.org>
9836
9837         * lib/des.c: Cast to avoid warnings.
9838
9839 2006-05-09  Bruno Haible  <bruno@clisp.org>
9840
9841         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
9842         (Depends-on): Depend also on xsize, stdarg.
9843         (configure.ac): Add gl_XVASPRINTF.
9844
9845 2006-05-09  Bruno Haible  <bruno@clisp.org>
9846
9847         * m4/xvasprintf.m4: New file.
9848
9849 2006-05-09  Bruno Haible  <bruno@clisp.org>
9850
9851         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
9852         (EOVERFLOW): Define fallback value.
9853         (xstrcat): New function.
9854         (xvasprintf): Recognize the special case of a string concatenation.
9855
9856 2006-05-08  Eric Blake  <ebb9@byu.net>
9857
9858         * gnulib-tool (func_version): Base copyright year on CVS date.
9859         (func_emit_copyright_notice): New function.
9860         (func_emit_lib_Makefile_am): Use it.
9861         (func_emit_tests_Makefile_am): Likewise.
9862         (func_import): Likewise.
9863
9864 2006-05-08  Bruno Haible  <bruno@clisp.org>
9865
9866         * modules/stdarg: New file.
9867         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
9868
9869 2006-05-08  Bruno Haible  <bruno@clisp.org>
9870
9871         * m4/stdarg.m4: New file, from GNU gettext.
9872
9873 2006-05-08  Bruno Haible  <bruno@clisp.org>
9874
9875         * config/srclist.txt (build-aux/config.rpath): different from latest
9876         release.
9877
9878 2006-05-08  Bruno Haible  <bruno@clisp.org>
9879
9880         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
9881
9882 2006-05-05  Jim Meyering  <jim@meyering.net>
9883
9884         * m4/warning.m4: New file, derived from bison's file by the same name.
9885
9886 2006-05-03  Bruno Haible  <bruno@clisp.org>
9887
9888         * lib/stdint_.h: Shorter URL.
9889         * lib/inttypes.h: Likewise.
9890
9891 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
9894
9895 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9896
9897         * lib/verify.h: Document the internals better.  Most of this change
9898         was written by Bruno Haible.
9899
9900 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9901
9902         * doc/verify.texi: New file, partly based on a proposal by
9903         Bruno Haible.
9904
9905 2006-05-02  Bruno Haible  <bruno@clisp.org>
9906
9907         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
9908         test from here...
9909         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
9910
9911 2006-04-29  Bruno Haible  <bruno@clisp.org>
9912
9913         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
9914         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
9915
9916 2006-04-29  Bruno Haible  <bruno@clisp.org>
9917
9918         * gnulib-tool: Make --update option actually work.
9919
9920 2006-04-29  Bruno Haible  <bruno@clisp.org>
9921
9922         * doc/gcd.texi: New file.
9923         * doc/gnulib.texi: Include it.
9924
9925 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9926
9927         * lib/getdate.y (get_date): When adding relative date, start with the
9928         initial time, not with the result of the first mktime call.
9929
9930 2006-04-25  Bruno Haible  <bruno@clisp.org>
9931
9932         * gnulib-tool (func_import): Output the include directives in three
9933         blocks, sorted separately.
9934         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9935
9936 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9937
9938         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
9939         to define main with arguments, for C++.  Reported by Eric Blake.
9940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9941         Prefer 'int main ()' to 'int main (void)', for C++.
9942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9943         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
9944         for 'main', for C99 and C++.
9945
9946 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9947
9948         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
9949         Don't assume that exit status -1 is valid.
9950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9951         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9952         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9953         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
9954         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
9955         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
9956         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
9957         functions can be used without declaring them, or that you can
9958         exit with status -1.
9959         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9960
9961 2006-04-24  Karl Berry  <karl@gnu.org>
9962
9963         * config/srclist.txt (longdouble.m4): sync lost.
9964
9965 2006-04-24  Eric Blake  <ebb9@byu.net>
9966
9967         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
9968
9969 2006-04-24  Bruno Haible  <bruno@clisp.org>
9970
9971         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
9972         poll() implementation in AIX.
9973         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9974
9975 2006-04-24  Bruno Haible  <bruno@clisp.org>
9976
9977         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
9978         assigned exactly once.
9979
9980 2006-04-23  Claudio Fontana  <claudio@gnu.org>
9981             Bruno Haible  <bruno@clisp.org>
9982
9983         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
9984         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
9985         for AM_CPPFLAGS.
9986
9987 2006-04-23  Bruno Haible  <bruno@clisp.org>
9988
9989         * modules/copy-file: Depend on unistd.
9990         * modules/execute: Likewise.
9991         * modules/fatal-signal: Likewise.
9992         * modules/findprog: Likewise.
9993         * modules/mkdtemp : Likewise.
9994         * modules/pipe: Likewise.
9995         * modules/wait-process: Likewise.
9996
9997 2006-04-23  Bruno Haible  <bruno@clisp.org>
9998
9999         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
10000         condition was already detected.
10001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10002
10003 2006-04-23  Bruno Haible  <bruno@clisp.org>
10004
10005         * lib/copy-file.c: Include <unistd.h> unconditionally.
10006         * lib/execute.c: Likewise.
10007         * lib/fatal-signal.c: Likewise.
10008         * lib/findprog.c: Likewise.
10009         * lib/mkdtemp.c: Likewise.
10010         * lib/pipe.h: Likewise.
10011         * lib/pipe.c: Likewise.
10012         * lib/wait-process.h: Likewise.
10013
10014 2006-04-23  Bruno Haible  <bruno@clisp.org>
10015
10016         * gnulib-tool (func_usage): Fix --import description. Document
10017         --update.
10018         (func_import): Create temporary file in a temporary directory, if
10019         --dry-run is specified. Silence errors from 'grep' when there are no
10020         m4 files in $m4dir.
10021         (func_create_testdir): Silence errors from 'grep' when there are no
10022         m4 files in $m4dir.
10023         Reported by Karl Berry <karl@freefriends.org>.
10024
10025 2006-04-20  Bruno Haible  <bruno@clisp.org>
10026
10027         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
10028         one argument, so that the code will be portable to Autoconf 2.60.
10029         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
10030         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10031         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
10032
10033 2006-04-19  Derek Price  <derek@ximbiot.com>
10034             Eric Blake  <ebb9@byu.net>
10035
10036         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
10037         rather than "/full/path.h".  Update comment to match.  Shorten &
10038         generalize m4_translit call via AS_TR_CPP.
10039
10040 2006-04-19  Derek Price  <derek@ximbiot.com>
10041             Eric Blake  <ebb9@byu.net>
10042
10043         * lib/inttypes.h: Correct grammar in comment.
10044
10045 2006-04-18  Derek Price  <derek@ximbiot.com>
10046             Paul Eggert  <eggert@cs.ucla.edu>
10047
10048         * modules/inttypes: New file.
10049         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
10050
10051 2006-04-18  Derek Price  <derek@ximbiot.com>
10052             Paul Eggert  <eggert@cs.ucla.edu>
10053
10054         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
10055         New files.
10056
10057 2006-04-18  Derek Price  <derek@ximbiot.com>
10058             Paul Eggert  <eggert@cs.ucla.edu>
10059
10060         * lib/inttypes.h: New file.
10061         * lib/strtoimax.c: Assume <inttypes.h>.
10062
10063 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
10064
10065         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
10066         isn't mounted.  Problem reported by Kir Kolyshkin.
10067
10068 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10069
10070         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
10071         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
10072         Derek R. Price.
10073         * lib/regex.h (RE_DUP_MAX): Update comment to match current
10074         implementation.
10075
10076 2006-04-12  Eric Blake  <ebb9@byu.net>
10077
10078         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
10079         is now done automatically by the corresponding Autoconf macro.
10080
10081 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
10082
10083         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
10084         time_r.h.
10085
10086 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10087
10088         Merge regex changes from libc, removing some of our
10089         POSIX-conformance changes that were rejected and redoing them in a
10090         less-intrusive way.
10091
10092         * lib/regcomp.c (re_compile_internal, init_dfa):
10093         Length arg is now size_t, not Idx.  All uses changed.
10094         (peek_token): Forward decl now says internal_function.
10095         (__re_error_msgid, __re_error_msgid_idx):
10096         Now static rather than extern with attribute_hidden.
10097         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
10098         For some reason libc prefers K&R style defns for external functions.
10099         (regerror) [!defined _LIBC]: Likewise.
10100         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
10101         (seek_collating_symbol_entry, lookup_collation_sequence_value):
10102         (build_range_exp, build_collating_symbol):
10103         Use K&R-style defn.
10104         (re_compile_fastmap): Use '\0' to memset, not 0.
10105         (utf8_sb_map): Make the calculations more obvious.
10106         (init_dfa, parse_bracket_exp, build_charclass_op):
10107         Call calloc and cast result, as glibc does.
10108         (init_word_char, fetch_token, peek_token, peek_token_bracket):
10109         (build_range_exp, build_collating_symbol):
10110         Now internal functions.
10111
10112         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
10113
10114         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
10115         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
10116         Don't depend on VMS; depend on __VMS instead, for POSIX
10117         namespace cleanness.
10118         (regoff_t): Define to ssize_t, not long int.
10119
10120         Remove the REG_ macros named below.  Instead, make the old names
10121         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
10122         __USE_GNU_REGEX.
10123         (REG_BACKSLASH_ESCAPE_IN_LISTS):
10124         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
10125         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
10126         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
10127         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
10128         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
10129         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
10130         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
10131         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
10132         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
10133         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
10134         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
10135         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
10136         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
10137         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
10138         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
10139         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
10140         (REG_NREGS):
10141         Remove.  All uses replaced by the old RE_* names.
10142         (RE_BACKSLASH_ESCAPE_IN_LISTS):
10143         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
10144         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
10145         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
10146         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
10147         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
10148         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
10149         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
10150         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
10151         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
10152         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
10153         Don't bother having these macros be independent of each others'
10154         values, since they no longer exist in the POSIX name space.
10155
10156         Rename the following member names back to their old names,
10157         unless !__USE_GNU_REGEX.  All uses changed back.
10158         (buffer): Renamed from re_buffer.
10159         (allocated): Renamed from re_allocated.
10160         (used): Renamed from re_used.
10161         (syntax): Renamed from re_syntax.
10162         (fastmap): Renamed from re_fastmap.
10163         (translate): Renamed from re_translate.
10164         (can_be_null): Renamed from re_can_be_null.
10165         (regs_allocated): Renamed from re_regs_allocated.
10166         (fastmap_accurate): Renamed from re_fastmap_accurate.
10167         (no_sub): Renamed from re_no_sub.
10168         (not_bol): Renamed from re_not_bol.
10169         (not_eol): Renamed from re_not_eol.
10170         (newline_anchor): Renamed from re_newline_anchor.
10171         (num_regs): Renamed from rm_num_regs.
10172         (start): Renamed from rm_start.
10173         (end): Renamed from rm_end.
10174
10175         (free_state): Move up a bit.
10176
10177         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
10178         #define to be empty.
10179         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
10180         when that is what is intended.
10181         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
10182         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
10183         (MAX): New macro.
10184         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
10185         All uses changed back to re_malloc, etc.  It's now the caller's
10186         responsibility to check for overflow; all callers changed.
10187         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
10188         (re_x2nrealloc): Remove.
10189         (free_state): Remove decl.
10190
10191         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
10192         (re_set_registers, re_exec):
10193         Use K&R-style defn.
10194
10195         2006-01-31  Roland McGrath  <roland@redhat.com>
10196
10197         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
10198         Reported by Mike Frysinger <vapier@gentoo.org>.
10199
10200         2006-01-15  Andreas Jaeger  <aj@suse.de>
10201
10202         [BZ #1950]
10203         * lib/regex_internal.c (re_string_reconstruct): Adjust for
10204         build_wcs_upper_buffer change.
10205         (build_wcs_upper_buffer): Change return type.
10206
10207         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
10208
10209         * lib/regex_internal.h: Include <stdint.h> if available.
10210
10211         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
10212
10213         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
10214
10215         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
10216
10217         * lib/regcomp.c: Adjust for changed secondary hash function.
10218
10219         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
10220
10221         * lib/regex.h: Pretty printing.
10222         Clean up namespace a bit.
10223
10224         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
10225
10226         * lib/regexec.c (update_cur_sifted_state, check_arrival,
10227         check_arrival_add_next_nodes): Avoid using uninitialized variable.
10228
10229         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10230                     Ulrich Drepper  <drepper@redhat.com>
10231
10232         [BZ #1302]
10233         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
10234         changed.
10235         (bitset_word_t): Renamed from bitset_word.  All uses changed.
10236
10237         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
10238
10239         [BZ #281]
10240         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
10241         * lib/regcomp.c: Remove unnecessary uses of
10242         unsigned RE_TRANSLATE_TYPE.
10243         * lib/regex_internal.h: Likewise.
10244         * lib/regex_internal.c: Likewise.
10245         * lib/regexec.c: Likewise.
10246         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
10247
10248         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
10249
10250         * lib/regexec.c (find_recover_state): Remove unnecessary
10251         initialization.
10252         (transit_state_bkref): Make DFA a const pointer.
10253         (get_subexp): Likewise.
10254         (check_arrival): Likewise.
10255         (update_cur_sifted_state): Likewise.
10256         (re_search_internal): Likewise.
10257         (prune_impossible_nodes): Likewise.
10258         (acquire_init_state_context): Likewise.
10259         (proceed_next_node): Likewise.
10260         (set_regs): Likewise.
10261         (free_fail_stack_return): Likewise.
10262         (check_arrival_expand_ecl): Mark DFA parameter as const.
10263         (check_arrival_expand_ecl_sub): Likewise.
10264         (check_subexp_limits): Likewise.
10265         (sub_epsilon_src_nodes):  Likewise.
10266         (add_epsilon_src_nodes):  Likewise.
10267         (merge_state_array): Likewise.
10268         (update_regs): Likewise.
10269         (build_trtable): Likewise.
10270         (sift_states_backward): Mark MCTX parameter as const.
10271         (build_sifted_states): Likewise.
10272         (update_cur_sifted_state): Likewise.
10273         (sift_states_mkref): Likewise.
10274         (check_arrival_expand_ecl): Mark eclosure as const.
10275         (check_dst_limits_calc_pos_1): Likewise.
10276         * lib/regex_internal.h (re_match_context_t): Make dfa a const
10277         pointer.
10278
10279         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
10280
10281         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
10282         (transit_state_sb): Likewise.
10283         (transit_state_mb): Likewise.
10284         (sift_states_iter_mb): Likewise.
10285         (check_arrival_add_next_nodes): Likewise.
10286         (check_node_accept_bytes): Change first parameter to pointer-to-const.
10287         [_LIBC] (re_search_2_stub): Use mempcpy.
10288
10289         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
10290         mbrtowc for very simple UTF-8 case.
10291
10292         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
10293         a pointer-to-const.
10294         (re_acquire_state_context): Likewise.
10295         * lib/regex_internal.h: Adjust prototypes.
10296
10297         * lib/regex.c: Prevent using C++ compilers.
10298
10299         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
10300         (re_acquire_state_context): Likewise.
10301
10302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10303
10304         * modules/regex (Depends-on): Add ssize_t.
10305
10306 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10307
10308         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
10309         translation table.
10310
10311 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10312
10313         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
10314
10315 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
10316             Bruno Haible  <bruno@clisp.org>
10317
10318         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
10319         <sys/types.h> and <inttypes.h>.
10320
10321 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10322
10323         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
10324         `__error_t_defined', so argp.h will not typedef the former.
10325
10326 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10327
10328         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
10329         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
10330         glibc names.  Even if glibc is changed to conform to POSIX, the
10331         traditional names will be available anyway, since regex depends on
10332         the extensions module.  Also, fix a longstanding typo in the
10333         implementation of Spencer ERE test #75 from grep 2.3.  Problems
10334         reported by Emanuele Giaquinta.  Also, change sense of cached
10335         variable, so that the message makes sense.
10336
10337 2006-03-24  Simon Josefsson  <jas@extundo.com>
10338
10339         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
10340         including some doc fixes.
10341         (base64_encode_alloc): Fix +1 bug on allocation failures.
10342
10343 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10344
10345         * lib/base64.c (base64_encode): Do not read past end of array with
10346         unsanitized input on systems with CHAR_BIT > 8.
10347
10348 2006-03-24  Eric Blake  <ebb9@byu.net>
10349
10350         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
10351
10352 2006-03-22  Karl Berry  <karl@gnu.org>
10353
10354         * config/srclist.txt (*setenv.[ch]): get from coreutils.
10355         * config/srclistvars.sh (COREUTILS): new var.
10356
10357 2006-03-17  Jim Meyering  <jim@meyering.net>
10358
10359         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
10360         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
10361
10362 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
10363
10364         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
10365         no longer needs it.  Instead, check that regoff_t is as least
10366         as wide as ptrdiff_t.
10367
10368         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
10369         so that our regex.h stays compatible with the installed regex.
10370         This is helpful for installers who configure --without-included-regex.
10371         Problem reported by Emanuele Giaquinta.
10372
10373 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
10374
10375         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
10376         Typedef to long int, not to off_, as POSIX will likely change
10377         in that direction.
10378
10379 2006-03-15  Eric Blake  <ebb9@byu.net>
10380
10381         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
10382
10383 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
10384
10385         * lib/argp-help.c (validate_uparams): Fix typo
10386         * lib/argp-parse.c (argp_default_options): Consistently begin help
10387         messages with a lowercase letter.
10388
10389 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
10392         overrun buffers and shouldn't be used (much as gets shouldn't be
10393         used).
10394         * lib/time_r.c (asctime_r, ctime_r): Likewise.
10395
10396 2006-03-08  Simon Josefsson  <jas@extundo.com>
10397
10398         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
10399         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10400
10401 2006-03-08  Simon Josefsson  <jas@extundo.com>
10402
10403         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
10404         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10405
10406 2006-03-08  Simon Josefsson  <jas@extundo.com>
10407
10408         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
10409         signal that configure disabled the device.
10410
10411 2006-03-08  Simon Josefsson  <jas@extundo.com>
10412
10413         * build-aux/maint.mk: Fix refresh-po, to handle no translated
10414         languages.
10415
10416 2006-03-07  Simon Josefsson  <jas@extundo.com>
10417
10418         * modules/getopt (Depends-on): Add unistd.
10419
10420         * modules/unistd: New file.
10421
10422 2006-03-07  Simon Josefsson  <jas@extundo.com>
10423
10424         * modules/gc-random: New file.
10425
10426 2006-03-07  Simon Josefsson  <jas@extundo.com>
10427
10428         * m4/unistd_h.m4: New file.
10429
10430 2006-03-07  Simon Josefsson  <jas@extundo.com>
10431
10432         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
10433         test to be side-effect free by storing the result in the cache
10434         variable gl_cv_lib_readline, and moving the assignment of
10435         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
10436         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10437
10438 2006-03-07  Simon Josefsson  <jas@extundo.com>
10439
10440         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
10441         error on missing devices (the functions will return an error).
10442
10443         * m4/gc.m4: Move random stuff to gc-random.m4
10444
10445 2006-03-07  Simon Josefsson  <jas@extundo.com>
10446
10447         * lib/unistd_.h: New file.
10448
10449 2006-03-07  Simon Josefsson  <jas@extundo.com>
10450
10451         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
10452
10453 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
10454
10455         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
10456         Problem reported by Juan Manuel Guerrero.
10457
10458 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
10459
10460         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
10461         the unistd module.
10462         * lib/getlogin_r.c: Likewise.
10463         * lib/getlogin_r.h: Likewise.
10464         * lib/glob.c: Likewise.
10465         * lib/pagealign_alloc.c: Likewise.
10466         * lib/unistd_.h: Remove; no longer needed.
10467
10468 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
10469
10470         * MODULES.html.sh (Support for systems lacking POSIX:2001):
10471         Add unistd.
10472         * modules/c-stack (Depends-on): Add unistd.
10473         * modules/getlogin_r: Likewise.
10474         * modules/glob: Likewise.
10475         * modules/pagealign_alloc: Likewise.
10476         * modules/unistd (Files): Remove lib/unistd_.h.
10477         (EXTRA_DIST): Remove.
10478         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
10479         need unistd_.h.
10480         (MOSTLYCLEANFILES): Remove unistd.h-t.
10481
10482 2006-03-03  Simon Josefsson  <jas@extundo.com>
10483
10484         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
10485
10486 2006-03-03  Simon Josefsson  <jas@extundo.com>
10487
10488         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
10489         libidn and bison.
10490
10491 2006-03-03  Simon Josefsson  <jas@extundo.com>
10492
10493         * build-aux/maint.mk: Add indent target.
10494
10495 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
10496
10497         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
10498         our replacement poll.h in any case, to avoid a differing
10499         declaration from a system header.  Seen on AIX.
10500
10501 2006-03-01  Simon Josefsson  <jas@extundo.com>
10502
10503         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
10504         <kasal@ucw.cz>.
10505
10506 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         * modules/gettime (Depends-on): Add extensions module.
10509         * modules/nanosleep (Depends-on): Likewise.
10510         * modules/settime (Depends-on): Likewise.
10511
10512 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
10513
10514         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
10515         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
10516         pedantically.
10517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10518         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
10519
10520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
10521         not "==".  Reported by Ralf Wildenhues.
10522
10523 2006-03-01  Karl Berry  <karl@gnu.org>
10524
10525         * doc/Copyright/request-*: new files, synced from gnuorg.
10526
10527 2006-03-01  Karl Berry  <karl@gnu.org>
10528
10529         * config/srclist.txt (Copyright/*): new entries.
10530
10531 2006-02-28  Simon Josefsson  <jas@extundo.com>
10532
10533         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
10534
10535 2006-02-27  Simon Josefsson  <jas@extundo.com>
10536
10537         * lib/base64.h: Indent #define's.  From Jim Meyering
10538         <jim@meyering.net>.
10539
10540 2006-02-27  Jim Meyering  <jim@meyering.net>
10541
10542         Revert the change of 2006-02-24, so these files can continue
10543         to be sync'd from gettext.
10544         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
10545         of `config.h'.
10546
10547 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         * modules/intprops: New file.
10550         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
10551         Add intprops.
10552         * modules/getloadavg (Files): Remove lib/intprops.h.
10553         (Depends-on): Add intprops.
10554         * modules/human: Likewise.
10555         * modules/inttostr: Likewise.
10556         * modules/openat: Likewise.
10557         * modules/sig2str: Likewise.
10558         * modules/userspec: Likewise.
10559         * modules/utimecmp: Likewise.
10560         * modules/xnanosleep: Likewise.
10561         * modules/xstrtol: Likewise.
10562
10563 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
10564
10565         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
10566         * modules/lock-tests (TESTS): Use $(EXEEXT).
10567         * modules/tls-tests: Likewise.
10568         * modules/argp-tests: Likewise.
10569         (check_PROGRAMS): New var, replacing...
10570         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
10571
10572 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10573
10574         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
10575         `config.h'.
10576
10577 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10578
10579         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
10580
10581 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10582
10583         Sync from coreutils.
10584         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
10585         gl_CHDIR_SAFER.
10586
10587 2006-02-22  Jim Meyering  <jim@meyering.net>
10588
10589         Sync from coreutils.
10590         * m4/chdir-safer.m4: New file.
10591
10592 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10593
10594         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
10595         AT_FDCWD exceeds INT_MAX.
10596         * lib/openat.h (AT_FDCWD): Likewise.
10597
10598 2006-02-17  Eric Blake  <address@hidden>
10599
10600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
10601
10602 2006-02-16  Simon Josefsson  <jas@extundo.com>
10603
10604         * modules/getaddrinfo (Depends-on): Add sys_socket.
10605
10606 2006-02-15  Simon Josefsson  <jas@extundo.com>
10607
10608         * build-aux/maint.mk: Add dsyntax-check rule.
10609
10610 2006-02-15  Eric Blake  <ebb9@byu.net>
10611
10612         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
10613         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
10614         'present but cannot compile' warnings on cygwin.
10615         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
10616         use ws2tcpip.h if sys/socket.h works.
10617         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
10618         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
10619
10620 2006-02-14  Simon Josefsson  <jas@extundo.com>
10621
10622         * modules/maintainer-makefile (Files): Rename.
10623
10624         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
10625         and (the local) Makefile.cfg to maint-cfg.mk.
10626
10627         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
10628         to the latter.
10629
10630         * modules/maintainer-makefile: New module.
10631
10632         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
10633         severaly stripped to make it possible to build it up from scratch
10634         with reliable tests.
10635
10636         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
10637         fixes to permit overriding the default actions when configure and
10638         makefile are not available.
10639
10640 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         Sync from coreutils.
10643         * modules/lstat (Depends-on): Don't depend on xalloc.
10644         (License): Change from GPL to LGPL, since this is now simply a
10645         replacement for a libc function.
10646
10647 2006-02-14  Jim Meyering  <jim@meyering.net>
10648
10649         Sync from coreutils.
10650
10651         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
10652         failure on deficient systems, and simplify gnulib lgpl dependencies.
10653         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
10654         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
10655
10656         * lib/xalloc-die.c: Remove unused definition of N_.
10657
10658 2006-02-14  Jim Meyering  <jim@meyering.net>
10659
10660         Sync from coreutils.
10661         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
10662         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
10663         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
10664         double-quote uses of that variable, to accommodate the rare case in
10665         which getmntent is available in none of the libraries checked.  This
10666         happens at least on FreeBSD 5.0.
10667
10668 2006-02-13  Simon Josefsson  <jas@extundo.com>
10669
10670         * gnulib-tool (Usage): Fix --import, from
10671         karl@freefriends.org (Karl Berry).
10672
10673 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
10674
10675         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
10676
10677 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
10678
10679         * lib/argp-namefrob.h: Restore changes accidentally lost during the
10680         "autoupdate" on 2005-12-12.
10681
10682 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10683
10684         * modules/closeout (Depends-on): Remove atexit.
10685
10686 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10687
10688         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
10689         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
10690
10691 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10692
10693         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
10694         __EXTENSIONS__ if this causes compilation to fail.  Problem
10695         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
10696         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
10697
10698 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
10701         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
10702         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
10703         All uses changed.
10704
10705 2006-01-26  Simon Josefsson  <jas@extundo.com>
10706
10707         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
10708         prototype is visible on mingw32.
10709
10710         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
10711         for mingw32.
10712
10713         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
10714         mingw32).
10715
10716 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
10719         attempt to open for write; this always fails, at least on POSIX
10720         hosts.  This reinstates the 2006-01-09 change, which was
10721         inadvertently removed.
10722
10723 2006-01-26  Bruno Haible  <bruno@clisp.org>
10724
10725         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
10726         Reported by Paul Eggert.
10727
10728 2006-01-26  Bruno Haible  <bruno@clisp.org>
10729             Paul Eggert  <eggert@cs.ucla.edu>
10730
10731         * lib/stdbool_.h (_Bool)
10732         [(! (defined __cplusplus || defined __BEOS__)
10733           && !defined __GNUC__
10734           && !(defined __HP_cc || defined __xlc__
10735                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
10736                || defined __sgi))]:
10737         #define to signed char in these cases too; this simplifies
10738         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
10739         etc., separately) and makes it more conservative.
10740
10741 2006-01-25  Simon Josefsson  <jas@extundo.com>
10742
10743         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
10744         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
10745         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
10746
10747 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10748
10749         * lib/argp-namefrob.h: Bugfix. Remove stray #
10750
10751 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10752
10753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
10754         so that we test the test.
10755         Check for yet another HP-UX cc bug involving *bool |= bool.
10756
10757 2006-01-25  Karl Berry  <karl@gnu.org>
10758
10759         * config/srclist.txt (vasnprintf.c): sync lost.
10760
10761 2006-01-25  Jim Meyering  <jim@meyering.net>
10762
10763         Sync from the stable (b5) branch of coreutils:
10764
10765         * lib/fts.c (fts_children): Don't let close() clobber errno from
10766         failed fchdir().
10767
10768         * lib/fts.c (fts_stat): When following a symlink-to-directory,
10769         don't necessarily interpret stat-fails+lstat-succeeds as indicating
10770         a dangling symlink.  That can also happen at least for ELOOP.
10771         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
10772         FYI, this bug predates the inclusion of fts.c in coreutils.
10773
10774         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
10775         in their own block, so pre-c99 compilers don't object.
10776
10777         Avoid the double-free (first in fts_read, second in fts_close) that
10778         would occur when an `active' directory is made inaccessible (e.g.,
10779         via chmod a-x) during a traversal.
10780         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10781         before returning.  Reproduce this failure by
10782         mkdir -p a/b; cd a; chmod a-x . b
10783         Reported by Stavros Passas.
10784
10785 2006-01-25  Jim Meyering  <jim@meyering.net>
10786
10787         * lib/fileblocks.c: Remove more useless parentheses.
10788         * lib/readutmp.h: Likewise.
10789
10790 2006-01-25  Bruno Haible  <bruno@clisp.org>
10791
10792         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
10793         warnings.
10794         Reported by Paul Eggert.
10795
10796 2006-01-25  Bruno Haible  <bruno@clisp.org>
10797
10798         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
10799         rid of a trap command. For Solaris sh.
10800         Reported by Mark D. Baushke <mdb@gnu.org>.
10801
10802 2006-01-24  Simon Josefsson  <jas@extundo.com>
10803
10804         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
10805         Bruno.
10806
10807 2006-01-24  Karl Berry  <karl@gnu.org>
10808
10809         * config/srclist.txt (argp-namefrob.h): sync lost.
10810
10811 2006-01-24  Jim Meyering  <jim@meyering.net>
10812
10813         * modules/openat (Files): Add lib/intprops.h.
10814         From Mark D. Baushke.
10815
10816 2006-01-24  Jim Meyering  <jim@meyering.net>
10817
10818         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
10819         Reported by Mark D. Baushke.
10820
10821 2006-01-24  Jim Meyering  <jim@meyering.net>
10822
10823         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
10824
10825 2006-01-24  Bruno Haible  <bruno@clisp.org>
10826
10827         * modules/strnlen (Maintainer): Change from glibc to all.
10828
10829 2006-01-24  Bruno Haible  <bruno@clisp.org>
10830
10831         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
10832         Patch by Paul Eggert.
10833
10834 2006-01-24  Bruno Haible  <bruno@clisp.org>
10835
10836         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
10837         already has it.
10838         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
10839         2005-11-26.
10840
10841         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
10842         'signed char' to avoid problems with the built-in _Bool type.
10843         Reported by Paul Eggert on 2005-11-26.
10844
10845 2006-01-24  Bruno Haible  <bruno@clisp.org>
10846
10847         * gnulib-tool (func_import): Avoid constructing complicated sed
10848         expressions inside backquote.
10849         Report and solution by Mark D. Baushke <mdb@gnu.org>.
10850
10851 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
10852
10853         These changes imported from libc.
10854         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
10855         test and two separate function calls.
10856         * lib/strndup.c (__strndup): Add libc_hidden_def.
10857
10858 2006-01-23  Simon Josefsson  <jas@extundo.com>
10859
10860         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
10861         Remove the test_*_SOURCES variable: automake infers it by default.
10862         * modules/tls-tests: Likewise.
10863
10864 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10865
10866         Work around porting bugs reported by Dieter in
10867         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
10868         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
10869         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
10870         Include "getopt.h" first, to check interface.
10871         (getenv): Declare only if defined HAVE_DECL_GETENV &&
10872         !HAVE_DECL_GETENV.
10873         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
10874         (__strndup): Revert to K&R-style function dfns, the glibc style.
10875         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
10876         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
10877         Include strnlen.h first, to get prototype properly.
10878         (strnlen): Renamed from __strnlen.
10879         Remove weak alias.
10880
10881 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10882
10883         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
10884
10885 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10886
10887         * config/srclist.txt: Adjust to reflect glibc reorganization.
10888         This affects only comments.
10889
10890 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10891
10892          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
10893          Reported by Bruce Korb <bkorb@gnu.org>.
10894
10895 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
10896
10897         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
10898         to pacify gcc -Wswitch-default.
10899
10900 2006-01-22  Bruno Haible  <bruno@clisp.org>
10901
10902         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
10903         temporary buffer for sprintf, take into account the precision also
10904         for 'd', 'i', 'u', 'o', 'x', 'X'.
10905
10906 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
10907
10908         * modules/argp-tests: New module
10909         * tests/test-argp.c: New file
10910         * tests/test-argp-2.sh: New file
10911
10912 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
10913
10914         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
10915         (__argp_base_name): Removed
10916         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
10917         typo.
10918         (__argp_base_name): Provide macro definition or extern declaration
10919         depending on the configuration
10920
10921 2006-01-20  Simon Josefsson  <jas@extundo.com>
10922
10923         * modules/inet_ntop (Depends-on): Depend on sys_socket.
10924
10925 2006-01-20  Simon Josefsson  <jas@extundo.com>
10926
10927         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
10928
10929 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
10930
10931         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
10932         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
10933         Suggested by Bruno Haible.
10934
10935 2006-01-20  Karl Berry  <karl@gnu.org>
10936
10937         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
10938         until changes propagate, I guess.
10939
10940 2006-01-19  Simon Josefsson  <jas@extundo.com>
10941
10942         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
10943
10944 2006-01-19  Simon Josefsson  <jas@extundo.com>
10945
10946         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
10947
10948 2006-01-19  Simon Josefsson  <jas@extundo.com>
10949
10950         * gnulib-tool: Set check_PROGRAMS.
10951
10952         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
10953         modules/des-tests, modules/gc-arcfour-tests,
10954         modules/gc-arctwo-tests, modules/gc-des-tests,
10955         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
10956         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
10957         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
10958         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
10959         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
10960         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
10961         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
10962         test_*_SOURCES.
10963
10964 2006-01-18  Simon Josefsson  <jas@extundo.com>
10965
10966         * modules/socklen (Depends-on): Depend on sys_socket.
10967
10968 2006-01-18  Simon Josefsson  <jas@extundo.com>
10969
10970         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
10971         modules/des-tests, modules/gc-arcfour-tests,
10972         modules/gc-arctwo-tests, modules/gc-des-tests,
10973         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
10974         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
10975         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
10976         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
10977         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
10978         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
10979         $(EXEEXT) to automake TESTS variable, for mingw32.
10980
10981 2006-01-17  Simon Josefsson  <jas@extundo.com>
10982
10983         * modules/socklen (Include): Need sys/socket.h.
10984
10985 2006-01-17  Bruno Haible  <bruno@clisp.org>
10986
10987         * modules/ssize_t (Include): Add <sys/types.h>.
10988
10989 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
10990
10991         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
10992         it's not portable and it doesn't work with cross-compiles.
10993         Problem reported by Bruno Haible.  Fix missing-$ typo in
10994         'test "gl_cv_ignore_unused_libraries" ...' that prevented
10995         -zignore from being used with Sun's C compiler.
10996
10997 2006-01-12  Simon Josefsson  <jas@extundo.com>
10998
10999         * lib/base64.c: Fix warning, reported by Bruno Haible
11000         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
11001
11002 2006-01-12  Bruno Haible  <bruno@clisp.org>
11003
11004         * modules/ldd: New file.
11005         * build-aux/ldd.sh.in: New file.
11006         * MODULES.html.sh (Support for building libraries and executables): Add
11007         ldd.
11008
11009 2006-01-12  Bruno Haible  <bruno@clisp.org>
11010
11011         * m4/ldd.m4: New file.
11012
11013 2006-01-12  Bruno Haible  <bruno@clisp.org>
11014
11015         * gnulib-tool (func_import, func_create_testdir): Don't go into an
11016         endless loop while replacing $auxdir with build-aux.
11017
11018 2006-01-11  Simon Josefsson  <jas@extundo.com>
11019
11020         * lib/stdint_.h (SIZE_MAX): Add missing (.
11021
11022 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11023
11024         Sync from coreutils.
11025         * lib/md5.c: Fix commentary typos.
11026         (alignof, UNALIGNED_P): No need for a GCC-specific version.
11027         * lib/md5.h (__attribute__): Remove; unused.
11028         * lib/sha1.c: Fix commentary to match md5 better.
11029         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
11030         so that we don't need to worry about alignment.  All uses changed.
11031         This merges the 2005-10-28 md5 change into sha1.
11032
11033 2006-01-11  Jim Meyering  <jim@meyering.net>
11034
11035         Sync from coreutils.
11036         * lib/md5.c (OP): Fix spacing.
11037
11038 2006-01-11  Bruno Haible  <bruno@clisp.org>
11039
11040         Ensure automatic ordering between gl_LOCK and gl_ARGP.
11041         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
11042         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
11043
11044 2006-01-11  Bruno Haible  <bruno@clisp.org>
11045
11046         Ensure automatic ordering between gl_LOCK and gl_ARGP.
11047         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
11048         the "early" section as well.
11049
11050 2006-01-11  Bruno Haible  <bruno@clisp.org>
11051
11052         Avoid "ar: no archive members specified" error on MacOS X.
11053         * gnulib-tool (func_modules_add_dummy): New function.
11054         (func_import, func_create_testdir): Invoke it.
11055
11056 2006-01-11  Bruno Haible  <bruno@clisp.org>
11057
11058         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
11059         with $auxdir in AC_CONFIG_FILES statements.
11060
11061 2006-01-11  Bruno Haible  <bruno@clisp.org>
11062
11063         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11064         Initialize also noinst_HEADERS to empty.
11065
11066 2006-01-11  Bruno Haible  <bruno@clisp.org>
11067
11068         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
11069         variables.
11070         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
11071         autoreconf.
11072
11073 2006-01-11  Bruno Haible  <bruno@clisp.org>
11074
11075         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
11076         overridable by the user.
11077         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11078
11079 2006-01-10  Simon Josefsson  <jas@extundo.com>
11080
11081         * modules/sys_socket: New file.
11082
11083 2006-01-10  Simon Josefsson  <jas@extundo.com>
11084
11085         * m4/sys_socket_h.m4: New file.
11086
11087 2006-01-10  Simon Josefsson  <jas@extundo.com>
11088
11089         * lib/socket_.h: New file.
11090
11091 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11092
11093         * modules/readutmp (Maintainer): Add myself.
11094
11095 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
11098         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
11099         People who are still concerned with buggy memcmp implementations
11100         can invoke gl_FUNC_MEMCMP themselves.
11101
11102 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11103
11104         * lib/regex_internal.h (BITSET_WORD_BITS):
11105         Work around a bug in 64-bit PGC (before version 6.1-2), where the
11106         preprocessor mishandles large unsigned values as if they were signed.
11107         Problem reported by Claudio Fontana in
11108         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
11109
11110 2006-01-10  Jim Meyering  <jim@meyering.net>
11111
11112         Avoid the double-free (first in fts_read, second in fts_close) that
11113         would occur when an `active' directory is made inaccessible (e.g.,
11114         via chmod a-x) during a traversal.
11115         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
11116         before returning.  Reproduce this failure by
11117         mkdir -p a/b; cd a; chmod a-x . b
11118         Reported by Stavros Passas.
11119
11120         Sync from coreutils.
11121         * lib/sha1.c: Tweak grammar in a comment.
11122
11123 2006-01-10  Jim Meyering  <jim@meyering.net>
11124
11125         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
11126         Patch by Joerg Sonnenberger.
11127
11128 2006-01-10  Bruno Haible  <bruno@clisp.org>
11129
11130         * modules/readutmp: Depend on module free.
11131         * modules/strtok_r: Depend on module restrict.
11132
11133 2006-01-10  Bruno Haible  <bruno@clisp.org>
11134
11135         * modules/gettext (configure.ac): Add an invocation of
11136         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
11137
11138 2006-01-10  Bruno Haible  <bruno@clisp.org>
11139
11140         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
11141         Reported by Werner Lemberg <wl@gnu.org>.
11142
11143 2006-01-10  Bruno Haible  <bruno@clisp.org>
11144
11145         * lib/localcharset.c: Update from GNU gettext.
11146
11147 2006-01-10  Bruno Haible  <bruno@clisp.org>
11148
11149         * lib/argp.h (__const): Remove macro. Use const instead.
11150         * lib/argp-fmtstream.h (__const): Likewise.
11151         * lib/glob_.h (__const): Remove macro.
11152         * lib/glob-libc.h: Use const instead of __const.
11153
11154 2006-01-10  Bruno Haible  <bruno@clisp.org>
11155
11156         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
11157         variable.
11158         Needed to avoid an automake error regarding the 'gettext' module.
11159
11160 2006-01-09  Simon Josefsson  <jas@extundo.com>
11161
11162         * modules/inet_ntop (Depends-on): Add restrict.
11163
11164 2006-01-09  Simon Josefsson  <jas@extundo.com>
11165
11166         * modules/gc-rijndael-tests (License): Put under LGPL.
11167
11168         * modules/gc-des-tests (License): Likewise.
11169
11170         * modules/gc-arcfour-tests (License): Likewise.
11171
11172         * modules/gc-arctwo-tests (License): Likewise.
11173
11174         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
11175
11176         * modules/gc-hmac-sha1-tests (Files): Likewise.
11177
11178         * modules/gc-hmac-md5-tests (License): Likewise.
11179
11180         * modules/gc-sha1-tests (License): Likewise.
11181
11182         * modules/gc-md5-tests (License): Likewise.
11183
11184         * modules/gc-md4-tests (License): Likewise.
11185
11186         * modules/gc-md2-tests (License): Likewise.
11187
11188         * modules/gc-tests (License): Likewise.
11189
11190         * modules/des-tests (License): Likewise.
11191
11192         * modules/md4-tests (License): Likewise.
11193
11194         * modules/md2-tests (License): Likewise.
11195
11196 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11197
11198         Sync from coreutils:
11199
11200         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
11201         * modules/lib-ignore: New file.
11202         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
11203         chdir-safer.m4, lchmod.m4.
11204         * modules/openat: Add mkdirat.c, openat-priv.h.
11205
11206 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11207
11208         Sync from coreutils.
11209         * m4/lib-ignore.m4: New file.
11210         * m4/lchmod.m4: New file.
11211
11212 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         Sync from coreutils.
11215         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
11216         for write access: POSIX says that must fail.
11217         * lib/fts.c (diropen): Likewise.
11218         * lib/save-cwd.c (save_cwd): Likewise.
11219         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
11220         well, for minor improvements on hosts that lack O_DIRECTORY.
11221         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
11222         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
11223         Fall back on chown if open failed with EACCES.
11224
11225         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
11226         Report an error at compile-time if only a 1-second nominal clock
11227         resolution is found.
11228
11229         * lib/lchmod.h: New file.
11230         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
11231         (make_dir_parents): Use lchown rather than chown, and
11232         lchmod rather than chmod.
11233
11234         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
11235         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
11236         "proc" reported by n0dalus.
11237
11238         * lib/mountlist.c: Include <limits.h>.
11239         (dev_from_mount_options)
11240         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
11241         New function.  It no longer assumes "dev=" has the System V meaning
11242         on Linux (since it doesn't).  It also parses "dev=" more carefully.
11243         (read_file_system_list)
11244         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
11245         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
11246         dev= in that case.
11247
11248         * lib/posixtm.h (PDS_PRE_2000): New macro.
11249         * lib/posixtm.c (year): Arg is now syntax_bits rather than
11250         allow_century.  All usages changed.  Reject dates outside the range
11251         1969-1999 if PDS_PRE_2000 is used.
11252
11253 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11254
11255         Sync from coreutils.
11256         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
11257         (Time of day items): Mention the possibility of leap seconds.
11258         Problem reported by Dr. David Alan Gilbert.
11259
11260 2006-01-09  Jim Meyering  <jim@meyering.net>
11261
11262         Sync from coreutils.
11263
11264         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
11265
11266         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
11267
11268         * lib/modechange.c (mode_compile): Reject an invalid mode string
11269         that starts with an octal digit.  From Andreas Gruenbacher.
11270
11271         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
11272         and dup to open_safer and dup_safer, respectively.
11273         (openat_permissive): Fix typo in comment.
11274
11275         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
11276         "gettext.h"; either no longer needed or are guaranteed by openat.h.
11277         (_): Remove; no longer needed.
11278         (openat): Renamed from rpl_openat; no need for rpl_openat
11279         since openat.h renames openat for us.
11280         Replace most of the body with a call to openat_permissive,
11281         to avoid duplicate code.
11282         Port to (probably hypothetical) environments were mode_t is
11283         wider than int.
11284         (openat_permissive): Require mode arg, so that we can check
11285         types better.  Put it just after flags.  Change cwd failure
11286         indicator from pointer-to-bool to pointer-to-errno-value.
11287         All callers changed.
11288         Invoke openat_save_fail and/or openat_restore_fail if
11289         cwd_errno is null, so that openat can call us.
11290         (openat_permissive, fdopendir, fstatat, unlinkat):
11291         Simplify errno handling to avoid some duplicate code,
11292         as it's OK to set errno on success.
11293         * lib/openat.h: Revamp code so that function macros depend on
11294         __OPENAT_PREFIX only, not also on AT_FDCWD.
11295         (openat_ro): Remove.  Caller changed to use openat_permissive.
11296         (openat_permissive): Now a macro, if not a function.
11297         (openat_restore_fail, openat_save_fail): Now always functions,
11298         since mkdirat needs them even if __OPENAT_PREFIX is defined.
11299
11300         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
11301         and openat.c.
11302         * lib/mkdirat.c: Include openat-priv.h.
11303         Remove definitions of macros defined therein.
11304         * lib/openat.c: Likewise.
11305
11306         * lib/mkdirat.c (mkdirat): New file and function.
11307         * lib/openat.h (mkdirat): Declare.
11308
11309         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
11310
11311         * lib/openat.h (openat_permissive): Declare.
11312         (openat_ro): Define.
11313
11314         * lib/openat.c (EXPECTED_ERRNO): New macro.
11315         (openat_permissive): New function -- used in remove.c rewrite.
11316         (all functions): Set errno just before returning, only if there
11317         was an actual failure.
11318         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
11319
11320         Emulate openat-family functions using Linux's procfs, if possible.
11321         Idea and some code based on Ulrich Drepper's glibc changes.
11322
11323         * lib/openat.c: (BUILD_PROC_NAME): New macro.
11324         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
11325         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
11326         before falling back on save_cwd and restore_cwd.
11327         (fdopendir, fstatat, unlinkat): Likewise.
11328
11329         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
11330         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
11331
11332         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
11333         as second argument to va_arg.  Otherwise, some versions of gcc
11334         warn that `if this code is reached, the program will abort'.
11335
11336 2006-01-09  Jim Meyering  <jim@meyering.net>
11337
11338         Sync from coreutils.
11339         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
11340         Require openat-priv.h.
11341
11342 2006-01-09  Bruno Haible  <bruno@clisp.org>
11343
11344         * modules/strnlen (Include): Use strnlen.h.
11345
11346 2006-01-09  Bruno Haible  <bruno@clisp.org>
11347
11348         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
11349
11350 2006-01-09  Bruno Haible  <bruno@clisp.org>
11351
11352         * lib/sysexit_.h (EX_OK): New macro.
11353         Suggested by Martin Lambers <marlam@marlam.de>.
11354
11355 2006-01-09  Bruno Haible  <bruno@clisp.org>
11356
11357         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
11358         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
11359
11360 2006-01-09  Bruno Haible  <bruno@clisp.org>
11361
11362         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
11363         numbers.
11364
11365 2006-01-09  Bruno Haible  <bruno@clisp.org>
11366
11367         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
11368         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
11369         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
11370         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
11371
11372 2006-01-09  Bruno Haible  <bruno@clisp.org>
11373
11374         * build-aux/javacomp.sh.in: New file, moved from lib/.
11375         * modules/javacomp-script (Files): Update.
11376         (configure.ac): Add AC_CONFIG_FILES invocation.
11377         (EXTRA_DIST): Remove variable.
11378
11379         * build-aux/javaexec.sh.in: New file, moved from lib/.
11380         * modules/javaexec (Files): Update.
11381         (configure.ac): Add AC_CONFIG_FILES invocation.
11382         (EXTRA_DIST): Remove javaexec.sh.in.
11383
11384         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
11385         * modules/csharpcomp-script (Files): Update.
11386         (configure.ac): Add AC_CONFIG_FILES invocation.
11387         (EXTRA_DIST): Remove variable.
11388
11389         * build-aux/csharpexec.sh.in: New file, moved from lib/.
11390         * modules/csharpexec (Files): Update.
11391         (configure.ac): Add AC_CONFIG_FILES invocation.
11392         (EXTRA_DIST): Remove csharpexec.sh.in.
11393
11394 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
11395
11396         Sync from coreutils.
11397
11398         Add POSIX ACL support
11399         * lib/acl.h (copy_acl, set_acl): Add declarations.
11400         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
11401         systems other than Linux.
11402         (chmod_or_fchmod): New function: use fchmod when possible,
11403         and chmod otherwise.
11404         (file_has_acl): Add a POSIX ACL implementation, with a
11405         Linux-specific subcase.
11406         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
11407         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
11408         acls are unsupported.
11409         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
11410         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
11411         are unsupported.
11412
11413 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
11414
11415         Sync from coreutils.
11416         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
11417
11418 2006-01-07  Bruno Haible  <bruno@clisp.org>
11419
11420         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
11421         gl_EARLY.
11422
11423 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11424
11425         * lib/strftime.c (tzname): Don't declare if it is already #defined.
11426         Problem reported for Mingw by Mark Junker.
11427
11428 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11429
11430         * README: Gnulib normally doesn't generate a tarball.
11431
11432 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
11435         long int, not int, for nanosecond counts, so that people who are
11436         used to POSIX struct timespec won't be surprised.  Reported by Jim
11437         Meyering.
11438
11439 2005-12-28  Bruno Haible  <bruno@clisp.org>
11440
11441         * build-aux/config.rpath: Update from GNU gettext.
11442
11443 2005-12-16  Jim Meyering  <jim@meyering.net>
11444
11445         * modules/fprintftime: New module.
11446         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
11447
11448 2005-12-16  Jim Meyering  <jim@meyering.net>
11449
11450         * m4/fprintftime.m4: New file.
11451
11452 2005-12-16  Jim Meyering  <jim@meyering.net>
11453
11454         * lib/fprintftime.c, lib/fprintftime.h: New files.
11455
11456 2005-12-15  Simon Josefsson  <jas@extundo.com>
11457
11458         * modules/socklen (configure.ac): Fix M4 macro name, to align with
11459         new m4/socklen.m4.
11460
11461 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11462
11463         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
11464         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
11465
11466 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11467
11468         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
11469         * lib/argp-help.c (fill_in_uparams): Check if the constructed
11470         struct uparams is valid. Fall back to the default values if it is
11471         not.
11472
11473 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11474
11475         * modules/argp (Files): Add argp-pin.c
11476         (Depends-on): dirname
11477         (lib_SOURCES): Add argp-pin.c
11478
11479 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11480
11481         * m4/argp.m4:  Check if program_invocation_name and
11482         program_invocation_short_name are declared and define appropriate
11483         macros if they are not.
11484
11485 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11486
11487         * lib/argp-help.c (__argp_base_name): New function
11488         (__argp_short_program_name): Rewrite using __argp_base_name
11489         * lib/argp-namefrob.h: Define program_invocation_name and
11490         program_invocation_short_name if requested
11491         (__argp_base_name): Add prototype
11492         * lib/argp-parse.c (argp_def): Use gettext wrappers
11493         (argp_default_parser): Use __argp_base_name
11494         * lib/argp-pin.c: New file. Defines program_invocation_name and
11495         program_invocation_short_name on systems that lack them.
11496
11497 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11498
11499         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
11500         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11501         porting problem reported by Georg Schwarz in
11502         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11503
11504 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11505
11506         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
11507         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11508         porting problem reported by Georg Schwarz in
11509         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11510
11511 2005-12-05  Bruno Haible  <bruno@clisp.org>
11512
11513         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
11514         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
11515         Reported by Mark Junker <mjscod@gmx.de>.
11516
11517 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
11520         Use implementation from Albert Chin, with some
11521         comments/corrections by Stepan Kasal and myself.
11522
11523 2005-12-02  Bruno Haible  <bruno@clisp.org>
11524
11525         * gnulib-tool (func_import): Accept GPLed build tool modules when
11526         --lgpl is given.
11527         * modules/csharpcomp-script: New file.
11528         * modules/csharpcomp: Depend on it.
11529         * modules/javacomp-script: New file.
11530         * modules/javacomp: Depend on it.
11531         Suggested by Simon Josefsson.
11532
11533 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11534
11535         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
11536         statement, to work around an HP-UX 10.20 compiler bug reported by
11537         Peter O'Gorman.
11538
11539 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11540
11541         * modules/savedir (Depends-on): Add openat.
11542
11543 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
11544
11545         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
11546         (uintmax_t) [defined uintmax_t]: Do not declare.
11547         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
11548         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
11549         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
11550         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
11551         sake of portability to weird hosts that C allows (though we don't
11552         know of any practical examples).
11553
11554         * lib/savedir.h (fdsavedir): New decl.
11555         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
11556         contains most of the former guts of savedir.
11557         (savedir): Use savedirstream.
11558         Include "openat.h".
11559
11560 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11561
11562         * modules/obstack (Files): Add m4/ulonglong.m4.
11563         Problem reported by Davide Angelocola.
11564
11565 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11566
11567         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
11568         coreutils no longer futzes with rounding modes.
11569
11570 2005-11-14  Jim Meyering  <jim@meyering.net>
11571
11572         * lib/mkstemp-safer.c: Include <config.h>, required for possible
11573         replacement of mkstemp.
11574
11575 2005-11-10  Simon Josefsson  <jas@extundo.com>
11576
11577         * lib/readline.c: Remove EOL.
11578
11579 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11580
11581         * modules/gethrxtime (Depends-on): Add gettime.
11582
11583 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11584
11585         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
11586         or gettimeofday; no longer needed.
11587
11588 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11589
11590         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
11591         time business.
11592         (gethrxtime) [! (HAVE_NANOUPTIME
11593         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
11594         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
11595         our own approximation.
11596
11597 2005-11-08  Eric Blake  <ebb9@byu.net>
11598
11599         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11600
11601 2005-11-08  Eric Blake  <ebb9@byu.net>
11602
11603         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11604
11605 2005-11-04  Bruno Haible  <bruno@clisp.org>
11606
11607         * gnulib-tool: Implement --update mode.
11608
11609 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11610
11611         Fix porting problem reported by Theodoros V. Kalamatianos.
11612         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
11613         Don't assume that futimes failing means we must fail.
11614
11615 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11616
11617         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
11618         variables to suggest the intended function of the PATH_MAX check.
11619
11620 2005-10-30  Kean Johnston  <jkj@sco.com>
11621
11622         Trivial changes to support SCO systems.
11623         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
11624         as PATH_MAX.
11625         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
11626         where __ptr is null when no I/O is pending.
11627
11628 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
11629
11630         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
11631         leave errno alone.  Problem reported by Dmitry V. Levin.
11632
11633 2005-10-28  Simon Josefsson  <jas@extundo.com>
11634
11635         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
11636         Test more.
11637
11638         * tests/test-gc-md2.c, tests/test-md2.c: New files.
11639
11640         * modules/md2, modules/md2-tests: New files.
11641
11642 2005-10-28  Simon Josefsson  <jas@extundo.com>
11643
11644         * m4/inet_ntop.m4: More tests.
11645
11646         * m4/gc-md2.m4, md2.m4: New file.
11647
11648 2005-10-28  Simon Josefsson  <jas@extundo.com>
11649
11650         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
11651         "restrict" keywords, as per POSIX.  Protect the function
11652         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
11653         Don't use K&R prototypes.  Check the sprintf return values.
11654         Re-define EAFNOSUPPORT if not present.  Indent.
11655
11656         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
11657         suggested by Bruno Haible <bruno@clisp.org>.
11658
11659         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
11660
11661         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
11662
11663         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
11664         libgcrypt).
11665
11666         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
11667
11668         * lib/md2.h, lib/md2.c: New files.
11669
11670 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
11673         errno alone.  Problem reported by Frederic Jolliton.
11674
11675 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11676
11677         * modules/verify (License): Change from GPL to LGPL.  This is a
11678         tiny module and there are apparently near-equivalents that are
11679         under the BSD license.
11680
11681 2005-10-24  Simon Josefsson  <jas@extundo.com>
11682
11683         * modules/sha1: Relicense to LGPL.
11684
11685 2005-10-24  Simon Josefsson  <jas@extundo.com>
11686
11687         * lib/md4.h: Shrink buffer size, now that we changed the type.
11688
11689 2005-10-23  Simon Josefsson  <jas@extundo.com>
11690
11691         * gnulib-tool (func_import): Fix --tests-base.
11692
11693 2005-10-22  Simon Josefsson  <jas@extundo.com>
11694
11695         * modules/arcfour (Depends-on): Need stdint.
11696
11697 2005-10-22  Simon Josefsson  <jas@extundo.com>
11698
11699         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
11700         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
11701
11702 2005-10-22  Simon Josefsson  <jas@extundo.com>
11703
11704         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
11705         suggested by Bruno Haible <bruno@clisp.org>.
11706
11707 2005-10-22  Simon Josefsson  <jas@extundo.com>
11708
11709         * lib/crc.h: Include stddef.h, for size_t.
11710
11711 2005-10-22  Simon Josefsson  <jas@extundo.com>
11712
11713         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
11714         arcfour_context struct (simplify test vector testing in GNU
11715         Shishi).
11716
11717 2005-10-21  Simon Josefsson  <jas@extundo.com>
11718
11719         * modules/des, modules/des-tests: New files.
11720
11721         * modules/gc-des, modules/gc-des-tests: New files.
11722
11723         * tests/test-des.c, tests/test-gc-des.c: New file.
11724
11725 2005-10-21  Simon Josefsson  <jas@extundo.com>
11726
11727         * modules/arctwo, modules/arctwo-tests: New files.
11728
11729         * tests/test-arctwo.c: New file.
11730
11731         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
11732
11733         * tests/test-gc-arctwo.c: New file.
11734
11735 2005-10-21  Simon Josefsson  <jas@extundo.com>
11736
11737         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
11738         Bruno Haible <bruno@clisp.org>.
11739
11740         * m4/gc-des.m4: New file.
11741
11742 2005-10-21  Simon Josefsson  <jas@extundo.com>
11743
11744         * m4/arctwo.m4: New file.
11745
11746         * m4/gc-arctwo.m4: New file.
11747
11748 2005-10-21  Simon Josefsson  <jas@extundo.com>
11749
11750         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
11751         block.
11752
11753 2005-10-21  Simon Josefsson  <jas@extundo.com>
11754
11755         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
11756         <bruno@clisp.org>.
11757
11758         * lib/hmac-sha1.c (hmac_sha1): Likewise.
11759
11760         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
11761         Bruno Haible <bruno@clisp.org>.
11762
11763         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
11764         <bruno@clisp.org>.
11765
11766 2005-10-21  Simon Josefsson  <jas@extundo.com>
11767
11768         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
11769
11770 2005-10-21  Simon Josefsson  <jas@extundo.com>
11771
11772         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
11773
11774 2005-10-21  Simon Josefsson  <jas@extundo.com>
11775
11776         * lib/des.h, lib/des.c: New files.
11777
11778         * lib/gc-gnulib.c: Support DES.c
11779
11780 2005-10-21  Simon Josefsson  <jas@extundo.com>
11781
11782         * lib/arctwo.h, lib/arctwo.c: New files.
11783
11784         * lib/gc-gnulib.c: Support ARCTWO.
11785
11786 2005-10-21  Simon Josefsson  <jas@extundo.com>
11787
11788         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
11789         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11790
11791 2005-10-21  Simon Josefsson  <jas@extundo.com>
11792
11793         * gnulib-tool (func_import, func_create_testdir): Define automake
11794         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
11795         Makefile.am snippet),
11796         suggested by Bruno Haible <bruno@clisp.org>.
11797
11798         * modules/gc (Makefile.am): Use it.
11799
11800 2005-10-21  Bruno Haible  <bruno@clisp.org>
11801
11802         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
11803         patch.
11804
11805 2005-10-19  Simon Josefsson  <jas@extundo.com>
11806
11807         * tests/test-gc-rijndael.c: New file.
11808
11809         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
11810
11811 2005-10-19  Simon Josefsson  <jas@extundo.com>
11812
11813         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
11814         interface too.
11815
11816 2005-10-19  Simon Josefsson  <jas@extundo.com>
11817
11818         * tests/test-gc-arcfour.c: New file.
11819
11820         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
11821
11822 2005-10-19  Simon Josefsson  <jas@extundo.com>
11823
11824         * modules/gc-md4, modules/gc-md4-tests: New file.
11825
11826         * tests/test-gc-md4.c: New file.
11827
11828 2005-10-19  Simon Josefsson  <jas@extundo.com>
11829
11830         * m4/gc-md4.m4: New file.
11831
11832 2005-10-19  Simon Josefsson  <jas@extundo.com>
11833
11834         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
11835         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
11836         <kasal@ucw.cz>.
11837
11838 2005-10-19  Simon Josefsson  <jas@extundo.com>
11839
11840         * m4/gc-arcfour.m4: New file.
11841
11842         * m4/gc-rijndael.m4: New file.
11843
11844 2005-10-19  Simon Josefsson  <jas@extundo.com>
11845
11846         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
11847
11848 2005-10-19  Simon Josefsson  <jas@extundo.com>
11849
11850         * lib/gc-gnulib.c: Support ARCFOUR.
11851
11852 2005-10-19  Simon Josefsson  <jas@extundo.com>
11853
11854         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
11855         support.
11856
11857         * lib/gc.h: Add ECB enum type.
11858
11859         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
11860
11861 2005-10-18  Simon Josefsson  <jas@extundo.com>
11862
11863         * tests/test-md5.c: New file.
11864
11865         * modules/md5-tests: New file.
11866
11867 2005-10-18  Simon Josefsson  <jas@extundo.com>
11868
11869         * tests/test-md4.c: New file.
11870
11871         * modules/md4, modules/md4-tests: New files.
11872
11873 2005-10-18  Simon Josefsson  <jas@extundo.com>
11874
11875         * m4/md4.m4: New file.
11876
11877 2005-10-18  Simon Josefsson  <jas@extundo.com>
11878
11879         * lib/md4.h, lib/md4.c: New files, based on md5.?.
11880
11881 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
11882
11883         * gnulib-tool (func_create_testdir): Omit the second check whether
11884         BUILT_SOURCES in nonempty.
11885
11886 2005-10-17  Simon Josefsson  <jas@extundo.com>
11887
11888         * tests/test-rijndael.c: New file.
11889
11890 2005-10-17  Simon Josefsson  <jas@extundo.com>
11891
11892         * modules/sha1: Depend on stdint instead of md5.
11893
11894         * modules/md5: Depend on stdint, remove uint32_t.
11895
11896 2005-10-17  Simon Josefsson  <jas@extundo.com>
11897
11898         * modules/gc-sha1-tests: New file.
11899
11900         * tests/test-gc-sha1.c: New file.
11901
11902 2005-10-17  Simon Josefsson  <jas@extundo.com>
11903
11904         * m4/md5.m4: Remove call to uint32_t.m4.
11905
11906 2005-10-17  Simon Josefsson  <jas@extundo.com>
11907
11908         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
11909
11910         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
11911         md5.h.
11912
11913         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
11914
11915         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
11916
11917 2005-10-17  Simon Josefsson  <jas@extundo.com>
11918
11919         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
11920
11921 2005-10-17  Simon Josefsson  <jas@extundo.com>
11922
11923         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
11924
11925 2005-10-17  Simon Josefsson  <jas@extundo.com>
11926
11927         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
11928
11929         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
11930
11931 2005-10-17  Bruno Haible  <bruno@clisp.org>
11932
11933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
11934         that it can also be used in a test.
11935
11936 2005-10-16  Bruno Haible  <bruno@clisp.org>
11937
11938         * gnulib-tool (func_emit_tests_Makefile_am): Also define
11939         TESTS_ENVIRONMENT, so that individual tests can augment it.
11940
11941         * gnulib-tool (func_create_testdir): Use an intermediate target for
11942         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
11943         macros, like $(ALLOCA_H), which cannot be passed through the command
11944         line.
11945
11946 2005-10-15  Simon Josefsson  <jas@extundo.com>
11947
11948         * modules/rijndael-tests: New file.
11949
11950         * modules/rijndael: New file.
11951
11952 2005-10-15  Simon Josefsson  <jas@extundo.com>
11953
11954         * m4/rijndael.m4: New file.
11955
11956 2005-10-15  Simon Josefsson  <jas@extundo.com>
11957
11958         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
11959
11960         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
11961
11962 2005-10-14  Simon Josefsson  <jas@extundo.com>
11963
11964         * tests/test-arcfour.c: New file.
11965
11966         * modules/arcfour, modules/arcfour-tests: New files.
11967
11968 2005-10-14  Simon Josefsson  <jas@extundo.com>
11969
11970         * m4/arcfour.m4: New file.
11971
11972 2005-10-14  Simon Josefsson  <jas@extundo.com>
11973
11974         * lib/arcfour.h, lib/arcfour.c: New files.
11975
11976 2005-10-14  Roland McGrath  <roland@redhat.com>
11977
11978         Import from libc.  [BZ #1331]
11979         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
11980         macro argument.
11981         Reported by Matej Vela <vela@debian.org>.
11982
11983 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11984
11985         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
11986         include <wchar.h>; no longer needed.
11987
11988 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11989
11990         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
11991
11992 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
11993         and  Ulrich Drepper  <drepper@redhat.com>
11994
11995         Import from libc.
11996         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
11997         instead of inline stream orientation test and two separate
11998         function calls.  Pay no attention to USE_IN_LIBIO.
11999
12000 2005-10-13  Simon Josefsson  <jas@extundo.com>
12001
12002         * modules/gc-hmac-md5-tests: New file.
12003
12004         * tests/test-gc-hmac-sha1.c: New file.
12005
12006         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
12007
12008         * modules/gc-hmac-md5-tests: New file.
12009
12010         * tests/test-gc-md5.c: New file.
12011
12012         * modules/gc-md5-tests: New file.
12013
12014 2005-10-13  Simon Josefsson  <jas@extundo.com>
12015
12016         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
12017         Move memory allocation outside of loop.
12018
12019 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12020
12021         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
12022         intermediate directory is in a read-only file system.  Problem
12023         reported by Eric Blake.
12024
12025 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
12026
12027         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
12028
12029 2005-10-12  Simon Josefsson  <jas@extundo.com>
12030
12031         * tests/test-hmac-sha1.c: New file.
12032
12033         * modules/hmac-sha1-tests: New file.
12034
12035         * modules/hmac-sha1: New file.
12036
12037 2005-10-12  Simon Josefsson  <jas@extundo.com>
12038
12039         * modules/gc-sha1: New file.
12040
12041 2005-10-12  Simon Josefsson  <jas@extundo.com>
12042
12043         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
12044
12045         * tests/test-gc-pbkdf2-sha1.c: New file.
12046
12047 2005-10-12  Simon Josefsson  <jas@extundo.com>
12048
12049         * modules/gc-md5, modules/gc-hmac-md5: New files.
12050
12051         * modules/gc (Files): Remove md5, memxor and hmac files.
12052
12053 2005-10-12  Simon Josefsson  <jas@extundo.com>
12054
12055         * m4/gc-pbkdf2-sha1.m4: New file.
12056
12057         * m4/gc-hmac-sha1.m4: New file.
12058
12059         * m4/gc-sha1: New file.
12060
12061         * m4/hmac-sha1.m4: New file.
12062
12063 2005-10-12  Simon Josefsson  <jas@extundo.com>
12064
12065         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
12066
12067         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
12068
12069 2005-10-12  Simon Josefsson  <jas@extundo.com>
12070
12071         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
12072         suggested by Bruno Haible <bruno@clisp.org>.
12073
12074 2005-10-12  Simon Josefsson  <jas@extundo.com>
12075
12076         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
12077
12078 2005-10-12  Simon Josefsson  <jas@extundo.com>
12079
12080         * lib/gc-pbkdf2-sha1.c: New file.
12081
12082         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
12083
12084 2005-10-12  Simon Josefsson  <jas@extundo.com>
12085
12086         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
12087
12088         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
12089
12090 2005-10-12  Simon Josefsson  <jas@extundo.com>
12091
12092         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
12093         GC_USE_HMAC_MD5, respectively.
12094
12095         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
12096         (gc_md5): Fix typo.
12097
12098         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
12099
12100         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
12101
12102         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
12103
12104 2005-10-12  Bruno Haible  <bruno@clisp.org>
12105
12106         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
12107         Reported by Stepan Kasal <kasal@ucw.cz>.
12108
12109 2005-10-11  Simon Josefsson  <jas@extundo.com>
12110
12111         * tests/test-crc.c: New file.
12112
12113         * modules/crc, modules/crc-tests: New files.
12114
12115 2005-10-11  Simon Josefsson  <jas@extundo.com>
12116
12117         * m4/crc.m4: New file.
12118
12119 2005-10-11  Simon Josefsson  <jas@extundo.com>
12120
12121         * lib/gc.h: Add gc_hash and gc_hash_buffer.
12122
12123         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
12124
12125         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
12126
12127 2005-10-11  Simon Josefsson  <jas@extundo.com>
12128
12129         * lib/crc.h, lib/crc.c: New files.
12130
12131         * lib/gc.h (gc_hash_buffer): Add doc.
12132
12133 2005-10-11  Bruno Haible  <bruno@clisp.org>
12134
12135         * modules/c-strcasestr: New file.
12136         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
12137
12138 2005-10-11  Bruno Haible  <bruno@clisp.org>
12139
12140         * modules/c-strcase: New file.
12141         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
12142
12143 2005-10-11  Bruno Haible  <bruno@clisp.org>
12144
12145         * lib/strcasecmp.c: Include limits.h.
12146         (strcasecmp): Avoid integer overflow on exotic platforms.
12147         * lib/strncasecmp.c: Include limits.h.
12148         (strncasecmp): Avoid integer overflow on exotic platforms.
12149         Reported by Paul Eggert.
12150
12151 2005-10-11  Bruno Haible  <bruno@clisp.org>
12152
12153         * lib/c-strcasestr.h: New file, from GNU gettext.
12154         * lib/c-strcasestr.c: New file, from GNU gettext.
12155
12156 2005-10-11  Bruno Haible  <bruno@clisp.org>
12157
12158         * lib/c-strcase.h: New file, from GNU gettext.
12159         * lib/c-strcasecmp.c: New file, from GNU gettext.
12160         * lib/c-strncasecmp.c: New file, from GNU gettext.
12161
12162 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12163
12164         * modules/mempcpy (License): GPL -> LGPL.
12165         * modules/strchrnul (License): Likewise.
12166         * modules/sysexits (License): Likewise.
12167
12168 2005-10-08  Simon Josefsson  <jas@extundo.com>
12169
12170         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
12171
12172 2005-10-07  Simon Josefsson  <jas@extundo.com>
12173
12174         * m4/memxor.m4: Remove gl_C_RESTRICT call.
12175
12176 2005-10-06  Simon Josefsson  <jas@extundo.com>
12177
12178         * tests/test-hmac-md5.c: New file.
12179
12180         * modules/hmac-md5-tests: New file.
12181
12182         * modules/hmac-md5: New file.
12183
12184 2005-10-06  Simon Josefsson  <jas@extundo.com>
12185
12186         * m4/hmac-md5.m4: New file.
12187
12188         * m4/memxor.m4: Require gl_C_RESTRICT.
12189
12190 2005-10-06  Simon Josefsson  <jas@extundo.com>
12191
12192         * lib/memxor.c (memxor): Avoid casts and warnings.
12193
12194 2005-10-06  Simon Josefsson  <jas@extundo.com>
12195
12196         * lib/hmac-md5.c: New file.
12197
12198         * lib/hmac.h: New file.
12199
12200 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12201
12202         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
12203         promotes to int, not unsigned int, to catch the AIX 5.3
12204         compiler bug.
12205
12206 2005-10-05  Simon Josefsson  <jas@extundo.com>
12207
12208         * modules/memxor: New file.
12209
12210         * modules/iconv (Files): Move config.rpath to havelib, it is used
12211         there.
12212
12213         * modules/havelib (Files): Add config.rpath.
12214
12215 2005-10-05  Simon Josefsson  <jas@extundo.com>
12216
12217         * m4/memxor.m4: New file.
12218
12219 2005-10-05  Simon Josefsson  <jas@extundo.com>
12220
12221         * lib/memxor.c (memxor): Fix compiler error.
12222
12223         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
12224         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
12225
12226         * lib/memxor.h, lib/memxor.c: New files.
12227
12228         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
12229         we assume all systems have it, suggested by Jim Meyering
12230         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
12231         any systems lack sys/socket.h; mingw32 is known to lack it, but we
12232         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
12233         same reasons.
12234
12235 2005-10-05  Simon Josefsson  <jas@extundo.com>
12236
12237         * config/srclist.txt: Add glibc bug 1423 for md5.h.
12238
12239 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12240
12241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
12242         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
12243         needed, since the source code now assumes these .h files.
12244
12245 2005-10-05  Derek Price  <derek@ximbiot.com>
12246
12247         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
12248
12249 2005-10-05  Bruno Haible  <bruno@clisp.org>
12250
12251         * modules/stdint (License): Change to LGPL.
12252
12253 2005-10-04  Simon Josefsson  <jas@extundo.com>
12254
12255         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
12256         D. Baushke" <mdb@gnu.org>.
12257
12258 2005-10-04  Bruno Haible  <bruno@clisp.org>
12259
12260         * lib/verify.h (verify_true): Provide alternative definition for C++.
12261
12262 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
12265         (SSIZE_MAX): New macro, if not already defined.
12266         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
12267         than 2 GiB.
12268
12269 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         Sync from coreutils.
12272         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
12273         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
12274         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
12275         ULLONG_MAX doesn't work with 2.7.2.1.
12276
12277 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
12280         From Ben Pfaff.
12281
12282         * modules/exclude (Depends-on): Depend on verify.
12283         * modules/strtoimax (Depends-on): Likewise.
12284         * modules/utimecmp (Depends-on): Likewise.
12285
12286 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12287
12288         * lib/exclude.c: Include verify.h.
12289         (verify): Remove.  All callers changed to use verify.h's version.
12290         * lib/strtoimax.c: Likewise.
12291         * lib/utimecmp.c: Likewis.e
12292
12293         Sync from coreutils.
12294         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
12295         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
12296         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
12297         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
12298         bother returning ENOSYS if settimeofday or stime fails; just let
12299         them return whatever errno they want to return.
12300         * lib/utimens.c: Include unistd.h, for dup2.
12301         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
12302         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
12303
12304 2005-10-02  Jim Meyering  <jim@meyering.net>
12305
12306         Sync from coreutils.
12307         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
12308         from glibc-2.2.5 that fails for read-only files.
12309
12310 2005-10-02  Jim Meyering  <jim@meyering.net>
12311
12312         Sync from coreutils.
12313         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
12314         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
12315         `#if HAVE_CONFIG_H'.
12316         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
12317         Remove AT_FDCWD test.
12318         Do not consume the fd unless successful.
12319         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
12320         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
12321         block, so that we don't even try to compile it if settimeofday is
12322         available.  This works around a compilation failure on OSF1 V5.1,
12323         due to stime requiring a `long int*' while tv_sec is `int'.
12324
12325 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
12326
12327         Sync from coreutils.
12328         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
12329         against `yes', rather than just testing for nonempty.
12330
12331 2005-10-01  Simon Josefsson  <jas@extundo.com>
12332
12333         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
12334         and Darwin.
12335
12336         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
12337         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
12338         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
12339         freeaddrinfo and gai_strerror are declared by the POSIX headers.
12340         Check if struct addrinfo is declared.
12341
12342 2005-10-01  Simon Josefsson  <jas@extundo.com>
12343
12344         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
12345         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
12346         AI_* and EAI_* definitions.  Protect function declarations.
12347
12348 2005-10-01  Jim Meyering  <jim@meyering.net>
12349
12350         Sync from coreutils.
12351
12352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
12353         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
12354         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
12355         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12356         in the inet and nsl libraries.  Required on Solaris 5.7.
12357
12358 2005-10-01  Jim Meyering  <jim@meyering.net>
12359
12360         Sync from coreutils.
12361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12362         in the inet and nsl libraries.  Required on Solaris 5.7.
12363
12364 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
12365
12366         * lib/getdelim.c (getdelim): Remove unused variables.
12367
12368 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
12369
12370         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
12371         so that the code works even with ancient cpp.  Portability problem
12372         with GCC 2.7.2.1 reported by Thomas M.Ott.
12373
12374 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
12375
12376         * modules/regex (Depends-on): Add strcase.
12377
12378         * modules/gethostname (Licence): Change from GPL to LGPL, since
12379         gethostname.c is a trivial implementation of a standard library
12380         function.
12381         * modules/poll (License): Change from GPL to LGPL, since it's
12382         derived from LGPL code.
12383
12384 2005-09-27  Jim Meyering  <jim@meyering.net>
12385
12386         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
12387         HAVE_CONFIG_H.
12388
12389         * lib/intprops.h (signed_type_or_expr__): Define.
12390         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
12391         for unsigned types.
12392
12393 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12394
12395         * lib/verify.h (verify_expr): Remove, replacing with:
12396         (verify_true): New macro that returns true instead of void.
12397         (verify_type__): Remove.
12398         (verify): Use verify_true rather than verify_type__.
12399
12400 2005-09-26  Bruno Haible  <bruno@clisp.org>
12401
12402         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
12403         is necessary.
12404         (lib_SOURCES): Remove mbchar.c.
12405         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
12406         (Files): Add m4/mbrtowc.m4.
12407         * modules/mbiter: Likewise.
12408         * modules/mbuiter: Likewise.
12409
12410 2005-09-26  Bruno Haible  <bruno@clisp.org>
12411
12412         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
12413         compile mbchar.c if they are not both present.
12414         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
12415         * m4/mbiter.m4 (gl_MBITER): Likewise.
12416         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
12417         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
12418         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
12419
12420 2005-09-25  Jim Meyering  <jim@meyering.net>
12421
12422         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
12423         also uses socklen_t.
12424
12425 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12426
12427         * lib/utimens.c (ENOSYS): Define if not already defined.
12428         (futimens): Support having a null PATH if the file descriptor
12429         is nonnegative.
12430
12431         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
12432         Remove.
12433         (__attribute): Define to empty unless GCC 3.1 or later.
12434         This works around a core dump on OpenBSD 3.4, which has GCC
12435         2.95.3, which dumps core when given __attribute__(()).  It also
12436         simplifies other tests, since we really don't want to bother with
12437         worrying about which ancient version of GCC supported what.
12438         Original problem reported by Yoann Vandoorselaere, with part of
12439         the fix suggested by Derek Price.
12440
12441 2005-09-24  Jim Meyering  <jim@meyering.net>
12442
12443         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
12444         so we can once again use a positive bitfield width of 1 -- now we
12445         don't have to explain why we were using a bitfield width of 2.
12446
12447 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12448
12449         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
12450         and similarly for the other external symbols.  Problem reported
12451         by James Gallager.
12452
12453         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
12454         bug reported by Jim Meyering.
12455
12456         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
12457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
12458         not needed, since socklen is a prerequisite module.
12459
12460 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12461
12462         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
12463         Problem reported by Eric Blake.
12464         (getaddrinfo): Initialize se so that it's not garbage.
12465         Redo internal storage allocation so that it doesn't make unportable
12466         assumptions about alignment.
12467         Fix a memory leak.
12468
12469         * lib/utimens.c (futimens): Use futimesat if available.
12470         Prefer it to futimes since it doesn't have the futimes bug.
12471
12472         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
12473         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
12474         Instead, declare a function that returns a pointer to an array,
12475         and use verify_type__ to declare the size of the array.
12476         Problem and germ of a solution reported by Bruno Haible.
12477         (verify_type__): Use 2, not 1, for bitfield size, to avoid
12478         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
12479
12480 2005-09-23  Jim Meyering  <jim@meyering.net>
12481
12482         Sync from coreutils.
12483         Correct build failure (socklen_t not defined) on at least
12484         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
12485         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
12486
12487 2005-09-23  Jim Meyering  <jim@meyering.net>
12488
12489         * modules/getaddrinfo (Depends-on): Add socklen.
12490
12491 2005-09-23  Bruno Haible  <bruno@clisp.org>
12492
12493         * tests/test-verify.c: New file.
12494
12495 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12496
12497         Sync from coreutils.
12498
12499         * modules/argmatch (Depends-on): Add verify.
12500         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
12501         unistd-safer.
12502         * modules/save-cwd (Depends-on): Likewise.
12503
12504         * modules/openat (Files): Add lib/openat-die.c.
12505         (Depends-on): Remove error, exitfail.
12506         Add dirname.
12507
12508         * modules/verify: New file.
12509         * MODULES.html.sh (Diagnostics <assert.h>): New section,
12510         with "verify" module.
12511
12512 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12513
12514         Sync from coreutils.
12515
12516         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
12517         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
12518         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
12519         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
12520         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
12521         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
12522         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
12523         Don't bother checking for string.h, stdlib.h, unistd.h.
12524         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
12525         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
12526         module's job.
12527         * m4/jm-macros.m4 (gl_MACROS): Likewise.
12528         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
12529
12530         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
12531         (gl_GETDATE): Use it.
12532
12533         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
12534
12535 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12536
12537         Sync from coreutils.
12538
12539         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
12540         stat-time.h.
12541         * lib/argmatch.h: Include verify.h
12542         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
12543         (ARGMATCH_ASSERT): Remove; unused.
12544         * lib/canonicalize.c: Assume STDC_HEADERS.
12545         * lib/exclude.c: Include "strcase.h".
12546         * lib/regex_internal.h [!defined _LIBC]: Likewise.
12547         * lib/getusershell.c: Include stdio--.h rather than stdio.h
12548         and stdio-safer.h.
12549         (getusershell): Call fopen, not fopen_safer.
12550         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
12551         Do not include unistd-safer.h.
12552         (save_cwd): Don't call fd_safer; no longer needed
12553         now that we include fcntl--.h.
12554
12555         * lib/getdate.y (relative_time): New type.
12556         (RELATIVE_TIME_0): New constant.
12557         (parser_control): Use relative_time instead of doing it ourselves.
12558         (%union): Add new relative_time rel member.
12559         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
12560         Now typeless.
12561         (relunit, relunit_snumber): Now of type rel.
12562         (zone, rel, relunit, get_date): Adjust to above changes.
12563
12564         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
12565         Do not include unistd-safer.h.
12566         (getloadavg): Don't call fd_safer; no longer needed
12567         now that we include fcntl--.h.
12568
12569         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
12570         (make_dir_parents): Treat ENOSYS like EEXIST.
12571
12572         Improve quality of diagnostics on restore_cwd failure.
12573         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
12574         (make_dir_parents): Last arg is now int * (for errno), not bool *.
12575         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
12576         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
12577         each time through the loop.  Do not diagnose restore_cwd failure;
12578         that is the caller's job (and perhaps the caller does not care).
12579
12580         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
12581         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
12582         If the file already exists but is not a directory, don't bother
12583         to try to make its parents.
12584         Close potential file descriptor leak if we can't chdir("/") (!).
12585         Don't always return true if chdir($PWD) fails; return true only
12586         if the requested action was done successfully (except for the
12587         chdir($PWD)).
12588         Don't log final directory unless we actually made it.
12589         Refactor to avoid duplicate code to fix up permissions.
12590         Don't attempt to fix up parent permissions if chdir($PWD) fails.
12591
12592         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
12593         to make it a bit faster and (I hope) clearer.
12594         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
12595         Fix bug in formats like %2N.
12596
12597         * lib/verify.h: New file.
12598
12599 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12600
12601         Sync from coreutils.
12602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
12603
12604 2005-09-22  Jim Meyering  <jim@meyering.net>
12605
12606         Sync from coreutils.
12607
12608         * m4/lstat.m4 (gl_FUNC_LSTAT):
12609         Use AC_LIBSOURCES to require lstat.c and lstat.h.
12610         Remove obsolete comment.
12611         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
12612         * m4/xstrtod.m4: Likewise.
12613
12614         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
12615
12616 2005-09-22  Jim Meyering  <jim@meyering.net>
12617
12618         Sync from coreutils.
12619
12620         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
12621
12622         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
12623         the .tm_year member, since otherwise gcc-4.0 would now warn about
12624         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
12625
12626         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
12627         order to avoid an unsuppressible warning from gcc on 64-bit systems.
12628
12629         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
12630         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
12631         when run in a time zone for which daylight savings time is in effect
12632         for the starting date.
12633
12634         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
12635         stop us from restricting permissions of just-created absolute-named
12636         directories.
12637         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
12638         to restore initial working directory.
12639         * lib/mkdir-p.c (make_dir_parents): New parameter:
12640         different_working_dir, to tell caller if/when we change the working
12641         directory and are unable to return to the initial one.
12642         * lib/mkdir-p.h (make_dir_parents): Update prototype.
12643         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
12644         `return false'.  This fixes a bug introduced on 2004-07-30.
12645
12646         * lib/openat.c (fdopendir): Be sure to close the supplied
12647         file descriptor before returning.  This makes our replacement
12648         implementation a little closer to Solaris's, where fdopendir
12649         ties the file descriptor to the returned DIR* pointer.
12650         * lib/openat.c (unlinkat): New function.
12651         * lib/openat.h (unlinkat): Add prototype.
12652         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
12653         (openat_restore_fail): Rename from openat_restore_die.
12654         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
12655
12656         Provide an alternative to exiting immediately upon save_cwd or
12657         restore_cwd failure.  Now, an application can arrange e.g.,
12658         to perform a longjump in that case.
12659         * lib/openat.c: Include dirname.h.
12660         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
12661         (rpl_openat, fdopendir, fstatat): Call openat_save_die
12662         and openat_restore_die rather than calling error directly.
12663         Don't include "error.h" or "exitfail.h"; they're no longer needed.
12664
12665         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
12666         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
12667         define.
12668
12669         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
12670         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
12671                             int utc, int nanoseconds);
12672         Background:
12673         date should not have to allocate a megabyte of virtual memory to
12674         handle a format argument like +%1048575T.  When implemented with
12675         strftime, it must allocate such a buffer, use strftime to fill it
12676         in, print it, then free it.
12677         With fprintftime, it simply prints everything and exits.
12678         With no need for memory allocation, that's one fewer way to fail.
12679         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
12680         optional field width, not before, so we accept %9:z, not %:9z.
12681         (my_strftime): Be sure to use L_('x') for literals.
12682
12683         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
12684         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
12685         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
12686         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
12687         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
12688         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
12689         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
12690         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
12691         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
12692         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
12693         * lib/xgethostname.c, lib/xreadlink.c:
12694         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
12695
12696         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
12697         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
12698         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
12699         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12700         and don't include <sys/file.h>).
12701
12702 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
12703
12704         Sync from coreutils.
12705
12706         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
12707         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
12708         [!LDAV_DONE]: Avoid unused variable warning.
12709
12710 2005-09-21  Bruno Haible  <bruno@clisp.org>
12711
12712         * lib/unicodeio.h (unicode_to_mb): New declaration.
12713
12714 2005-09-20  Derek Price  <derek@ximbiot.com>
12715
12716         * lib/getaddrinfo.c: Don't include <netdb.h> included from
12717         getaddrinfo.h.
12718
12719 2005-09-20  Bruno Haible  <bruno@clisp.org>
12720
12721         * gnulib-tool: Remove trailing slashes from the values specified for
12722         --source-base, --m4-base, --tests-base, --aux-dir.
12723         Suggested by Simon Josefsson <jas@extundo.com>.
12724
12725 2005-09-20  Bruno Haible  <bruno@clisp.org>
12726
12727         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
12728         func_modules_to_filelist, func_import, func_create_testdir): Make all
12729         sorting results locale-independent, so that gnulib-cache.m4 doesn't
12730         change when gnulib-tool is invoked in a different locale.
12731
12732 2005-09-19  Simon Josefsson  <jas@extundo.com>
12733
12734         * m4/socklen.m4: Fix typo.
12735
12736 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12737
12738         Use a consistent style for including <config.h>.
12739         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
12740         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
12741         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
12742         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
12743         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
12744         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
12745         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
12746         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
12747         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
12748         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
12749         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
12750         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
12751         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
12752         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
12753         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
12754         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
12755         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
12756         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
12757         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
12758         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
12759         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
12760         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
12761         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
12762         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
12763         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
12764         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
12765         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
12766         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
12767         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
12768         lib/xstrtoumax.c, lib/yesno.c:
12769         Standardize inclusion of config.h.
12770         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
12771         lib/inttostr.h:  Removed inclusion of config.h from header files.
12772         * lib/inttostr.c:  Adjusted in-tree users.
12773         * lib/timespec.h: Remove superfluous warning to include config.h.
12774         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
12775         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
12776         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
12777         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
12778         config.h with HAVE_CONFIG_H.
12779
12780 2005-09-19  Jim Meyering  <jim@meyering.net>
12781
12782         * modules/pathmax (License): Change to LGPL.
12783
12784 2005-09-19  Derek Price  <derek@ximbiot.com>
12785
12786         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
12787
12788 2005-09-19  Bruno Haible  <bruno@clisp.org>
12789
12790         * gnulib-tool (import): Provide default for --tests-base.
12791
12792 2005-09-19  Bruno Haible  <bruno@clisp.org>
12793
12794         * doc/quote.texi: New file, extracted from gnulib.texi.
12795         * doc/ctime.texi: New file, extracted from gnulib.texi.
12796         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
12797         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
12798         * doc/gnulib.texi: Include them.
12799
12800 2005-09-18  Bruno Haible  <bruno@clisp.org>
12801
12802         Portability fix.
12803         * gnulib-tool (func_readlink): New function.
12804         (func_ln_if_changed): Use it.
12805
12806 2005-09-18  Bruno Haible  <bruno@clisp.org>
12807
12808         * gnulib-tool: Support --with-tests also with --import.
12809         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
12810         (func_import): Use variables $testsbase and $inctests. Emit a
12811         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
12812         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
12813         SUBDIRS += $testsdir.
12814         (func_create_testdir): Update.
12815
12816 2005-09-18  Bruno Haible  <bruno@clisp.org>
12817
12818         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
12819         instead of $dry_run.
12820         (func_cp_if_changed, func_mv_if_changed): Remove functions.
12821         (func_ln_if_changed): Don't handle dry-run here.
12822         (func_import): In dry-run mode, detect more precisely which actions
12823         would be performed, and don't use "...ing" verbs.
12824
12825 2005-09-18  Bruno Haible  <bruno@clisp.org>
12826
12827         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
12828         (func_import): Use join on two temporary files instead of three nested
12829         loops, in order to determine which files are new or old.
12830
12831 2005-09-18  Bruno Haible  <bruno@clisp.org>
12832
12833         * gnulib-tool (func_import): Comment out code that spits out the
12834         new files with --dry-run.
12835
12836 2005-09-18  Bruno Haible  <bruno@clisp.org>
12837
12838         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
12839
12840 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12841
12842         * lib/stat-time.h: New file.
12843         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
12844         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
12845         in a different way.
12846         (timespec_cmp): New function.
12847         * lib/utimecmp.c: Include stat-time.h.
12848         (SYSCALL_RESOLUTION): Depend on whether various struct stat
12849         members exist, not on the obsolescent ST_MTIM_NSEC.
12850         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
12851
12852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
12855
12856 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12857
12858         * MODULES.html.sh (File system functions): Add stat-time.
12859         * modules/stat-time: New file.
12860         * modules/timespec (Files): Remove m4/st_mtim.m4; this
12861         is now done in a different way, by the stat-time module.
12862         * modules/utimecmp (Depends-on): Add stat-time.
12863
12864 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12865
12866         * m4/st_mtim.m4: Remove.  Superseded by...
12867         * m4/stat-time.m4: New file.
12868         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
12869         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
12870
12871 2005-09-15  Derek Price  <derek@ximbiot.com>
12872
12873         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
12874
12875 2005-09-15  Derek Price  <derek@ximbiot.com>
12876
12877         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
12878         * lib/regex_internal.c: Ditto, using this...
12879         (__GNUC_PREREQ): ...new macro.
12880         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
12881         using...
12882         (__GNUC_PREREQ): ...this new macro.
12883
12884         * lib/strstr.h: Include string.h. Define strstr as a macro here.
12885
12886 2005-09-15  Derek Price  <derek@ximbiot.com>
12887             Paul Eggert  <eggert@cs.ucla.edu>
12888
12889         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
12890         changes, consolidating in...
12891         * lib/regex_internal.h: ...this file.
12892
12893 2005-09-13  Jim Meyering  <jim@meyering.net>
12894
12895         * lib/canon-host.c: Filter through gnu indent and reword comments
12896         slightly.
12897         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
12898
12899 2005-09-13  Derek Price  <derek@ximbiot.com>
12900
12901         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
12902         failure.
12903         Reported by Jim Meyering  <jim@meyering.net>.
12904
12905 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12906
12907         * lib/base64.c: Typo.
12908         (base64_encode): Put b64str in initialized data section.
12909
12910 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12911
12912         Merge glibc and coreutils changes into gnulib, plus a few
12913         extra fixes.
12914         * lib/md5.c: Use #error rather than a string.
12915         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
12916         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
12917         (__attribute__): Define to empty for non recent-GCC.
12918         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
12919         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
12920         Renamed from their non-__ counterparts, with new macros replacing
12921         them if not _LIBC.  Add __THROW attribute.
12922         (rol): Remove.
12923         (struct md5_ctx): Align buffer if using GCC.
12924         * lib/sha1.h (struct sha1_ctx): Likewise.
12925         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
12926         The old name was backwards.
12927         (NOTSWAP): Remove; not used.
12928         (rol): New macro, moved here from md5.h.
12929         (sha1_process_block): Remove a FIXME that doesn't make sense.
12930
12931 2005-09-12  Derek Price  <derek@ximbiot.com>
12932
12933         Return usable errors from canon-host.
12934         * lib/canon-host.h: New file.
12935         * lib/canon-host.c (canon_host): Wrap...
12936         (canon_host_r): ...this new function, which now relies exclusively on
12937         getaddrinfo.
12938         (ch_strerror): New function.
12939         (last_cherror): New global.
12940         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
12941         interface.
12942         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
12943         void *.
12944         (freeaddrinfo): Free ai->ai_canonname when set.
12945
12946 2005-09-12  Derek Price  <derek@ximbiot.com>
12947
12948         Make canon-host require getaddrinfo.
12949         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
12950         AC_LIBSOURCE canon-host.h.  Call...
12951         (gl_PREREQ_CANON_HOST): ...this new function, which requires
12952         gl_GETADDRINFO.
12953         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
12954
12955 2005-09-12  Derek Price  <derek@ximbiot.com>
12956
12957         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
12958         LGPL.
12959         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
12960
12961 2005-09-12  Derek Price  <derek@ximbiot.com>
12962
12963         * lib/gai_strerror.c: Include config.h when available.  Include
12964         getaddrinfo.h before other headers to test interface.
12965         Reported by Larry Jones <lawrence.jones@ugs.com>.
12966
12967 2005-09-12  Derek Price  <derek@ximbiot.com>
12968             Paul Eggert  <eggert@cs.ucla.edu>
12969
12970         * modules/glob (Files): Add glob-libc.h.
12971
12972 2005-09-12  Derek Price  <derek@ximbiot.com>
12973             Paul Eggert  <eggert@cs.ucla.edu>
12974
12975         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
12976         glob_.h, glob-libc.h.
12977         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
12978
12979 2005-09-12  Derek Price  <derek@ximbiot.com>
12980             Paul Eggert  <eggert@cs.ucla.edu>
12981
12982         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
12983         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
12984         protecting things that should be done only in gnulib contexts.
12985         * lib/glob_.h: New file, containing only the glob things needed for
12986         gnulib.
12987         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
12988         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
12989         (glob, globfree, glob_pattern_p): Now defined simply in terms of
12990         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
12991         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
12992         and to respect the namespace rules better.
12993
12994 2005-09-08  Simon Josefsson  <jas@extundo.com>
12995
12996         * modules/socklen: New file.
12997
12998 2005-09-08  Simon Josefsson  <jas@extundo.com>
12999
13000         * m4/socklen.m4: New file.
13001
13002 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13003
13004         * modules/utimens (Files): Add m4/utimbuf.m4, since
13005         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
13006         Reported by Sergey Poznyakoff.
13007
13008 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
13011         definitions, since that's the preferred style in glibc.
13012         Fix a minor spacing issue, and update copyright notice to match
13013         glibc's.
13014
13015 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
13018
13019 2005-09-06  Simon Josefsson  <jas@extundo.com>
13020
13021         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
13022         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
13023
13024 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
13027         warning.
13028
13029 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         * config/srclist.txt: Add glibc bug 1302.
13032
13033 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13034
13035         Change bitset word type from unsigned int to unsigned long int,
13036         as this has better performance on typical 64-bit hosts.
13037         Port bitset code to hosts with unusual word sizes.
13038         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
13039         (build_collating_symbol):
13040         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
13041         argument is a bitset.  This is merely a style issue, but it makes
13042         it clearer that an entire array is expected.
13043         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
13044         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
13045         Port to the case where bitset_word is not the same as unsigned int.
13046         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13047         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
13048         Likewise.
13049         * lib/regexec.c (check_dst_limits_calc_pos_1,
13050         check_subexp_matching_top):
13051         (build_trtable, group_nodes_into_DFAstates):
13052         Likewise.
13053         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
13054         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
13055         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
13056         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
13057         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
13058         * lib/regcomp.c (optimize_subexps, lower_subexp):
13059         Work even if bitset_word has holes in its bitwise representation.
13060         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
13061         * lib/regexec.c (check_dst_limits_calc_pos_1,
13062         check_subexp_matching_top):
13063         Likewise.
13064         * lib/regex_internal.c (re_string_reconstruct):
13065         Don't assume UCHAR_MAX == 255.
13066         * lib/regex_internal.h (bitset_set_all): Likewise.
13067         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
13068         All uses changed.
13069         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
13070         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
13071         All uses changed.
13072         (BITSET_WORD_MAX): New macro.
13073         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
13074         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
13075         (bitset_empty, bitset_copy):
13076         Prefer sizeof (bitset) to multiplying it out ourselves.
13077         (bitset_not_merge): Remove; unused.
13078         (bitset_contain): Return bool, not unsigned int with one bit on.
13079         All callers changed.
13080         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
13081         alignment than re_node_set; do this by defining a new internal
13082         type struct dests_alloc and using it to allocate memory.
13083
13084 2005-09-05  Bruno Haible  <bruno@clisp.org>
13085
13086         * gnulib-tool (func_import): Fix comparison in handling of symbolic
13087         links.
13088
13089 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
13090
13091         * modules/size_max (Makefile.am): Add size_max.h
13092
13093 2005-09-04  Derek Price  <derek@ximbiot.com>
13094
13095         * gnulib-tool (func_import): Fix reversed $symbolic logic.
13096
13097 2005-09-03  Simon Josefsson  <jas@extundo.com>
13098
13099         * gnulib-tool: Fix typo.
13100
13101 2005-09-03  Simon Josefsson  <jas@extundo.com>
13102
13103         * config/srclist.txt: Add glibc bug 1293.
13104
13105 2005-09-03  Derek Price  <derek@ximbiot.com>
13106
13107         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
13108         From Larry Jones <lawrence.jones@ugs.com>.
13109
13110 2005-09-02  Simon Josefsson  <jas@extundo.com>
13111
13112         * modules/socklen: New file.
13113
13114 2005-09-02  Simon Josefsson  <jas@extundo.com>
13115
13116         * modules/havelib: New module.
13117
13118         * modules/gettext, modules/iconv, modules/lock, modules/readline:
13119         Use havelib.
13120
13121 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13122
13123         Check for arithmetic overflow when calculating sizes, to prevent
13124         some buffer-overflow issues.  These patches are conservative, in the
13125         sense that when I couldn't determine whether an overflow was possible,
13126         I inserted a run-time check.
13127         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
13128         macros.
13129         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
13130         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
13131         (re_xnrealloc, re_x2nrealloc): New inline functions.
13132         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
13133         parse_bracket_exp):
13134         (build_equiv_class, build_charclass): Check for arithmetic overflow
13135         in size expression calculations.
13136         * lib/regex_internal.c (re_string_realloc_buffers):
13137         (build_wcs_upper_buffer, re_node_set_add_intersect):
13138         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
13139         (re_dfa_add_node, register_state): Likewise.
13140         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
13141         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
13142         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
13143         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
13144
13145 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13146
13147         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
13148         m4/ulonglong.m4.  Problem reported by Martin Lambers.
13149
13150 2005-09-02  Bruno Haible  <bruno@clisp.org>
13151
13152         Support for lib vs. lib64 distinction on biarch platforms.
13153         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
13154         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
13155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
13156
13157 2005-09-02  Bruno Haible  <bruno@clisp.org>
13158
13159         * gnulib-tool (import): In the other first-use case, provide defaults
13160         as well.
13161
13162 2005-09-02  Bruno Haible  <bruno@clisp.org>
13163
13164         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
13165         patches not yet found in the latest gettext release.
13166
13167 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13168
13169         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
13170         to avoid a collision with bits/local_lim.h in glibc.
13171         All uses changed.  Problem reported by Dmitry V. Levin in
13172         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
13173
13174         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
13175         bugs in int versus size_t comparisons.
13176         (re_string_context_at): Fix bug where the code assumed that
13177         Idx is signed.
13178
13179         Use bool where appropriate.
13180         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
13181         All callers changed.
13182         (calc_eclosure_iter): Likewise, for ROOT arg.
13183         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
13184         (build_charclass_op): Likewise, for NON_MATCH arg.
13185         * lib/regex_internal.c (re_string_allocate, re_string_construct):
13186         (re_string_construct_common): Likewise, for ICASE arg.
13187         * lib/regexec.c (re_search_2_stub, re_search_stub):
13188         Likewise, for RET_LEN arg.
13189         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
13190         (set_regs): Likewise, for FL_BACKTRACK arg.
13191         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
13192         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
13193         (calc_eclosure_iter, parse_bracket_exp):
13194         Use bool for internal variables that are booleans.
13195         * lib/regexec.c (re_search_internal, check_matching,
13196         proceed_next_node):
13197         (set_regs, build_sifted_states, sift_states_bkref):
13198         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
13199         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
13200         (find_collation_sequence_value):
13201         Likewise.
13202         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
13203         (re_node_set_compare):
13204         Return bool, not int. All callers changed.
13205         * lib/regexec.c (check_halt_node_context, check_dst_limits):
13206         (build_trtable, check_node_accept): Likewise.
13207         * lib/regex_internal.h: Include stdbool.h.
13208
13209         Fix bugs uncovered when converting to bool.
13210         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
13211         failure instead of charging ahead blindly.
13212         * lib/regex_internal.c (register_state): Likewise.
13213         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
13214         for freeing internal storage.
13215         (group_nodes_into_DFA_states): Use unsigned int, not int, for
13216         bitset pieces used as boolean, to avoid undefined behavior
13217         on hosts that do int overflow checking.
13218
13219 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13220
13221         * config/srclist.txt: Add glibc bugs 1285-1287.
13222
13223 2005-09-01  Jim Meyering  <jim@meyering.net>
13224
13225         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
13226         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
13227         Require gl_STAT_MACROS, too.
13228
13229 2005-09-01  Bruno Haible  <bruno@clisp.org>
13230
13231         * gnulib-tool (import): In the first-use case, provide defaults.
13232
13233 2005-09-01  Bruno Haible  <bruno@clisp.org>
13234
13235         * gnulib-tool (func_import): Remove the .tmp files.
13236
13237 2005-09-01  Bruno Haible  <bruno@clisp.org>
13238
13239         * gnulib-tool (func_import): Fix handling of symbolic links.
13240
13241 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13242
13243         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
13244         old glibc regex code mishandles strings longer than 2**31 bytes.
13245         This patch fixes this when the regex code is used in gnulib
13246         (i.e., outside glibc).
13247
13248         This patch should not affect the use of the regex code inside
13249         glibc.  No doubt this problem also needs to be handled for glibc
13250         as well, but the result will be an incompatible change to the
13251         glibc ABI, and the old ABI will have to be supported too.  That
13252         can be the the subject for another patch.
13253
13254         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
13255         governing whether the rest of this patch is active.  By default,
13256         the macro is disabled and the patch has no effect.
13257         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
13258         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
13259         (struct re_pattern_buffer, re_search, re_search_2, re_match):
13260         (re_match_2, re_set_registers): Use the new types.
13261         * lib/regex_internal.h (Idx, re_hashval_t): New types.
13262         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
13263         New macros.
13264         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
13265         (re_string_context_at, bin_tree_t, re_dfastate_t):
13266         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
13267         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
13268         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
13269         (re_string_char_size_at, re_string_wchar_at):
13270         (re_string_elem_size_at):
13271         Use the new types and macros to port to 64-bit hosts.
13272         Use unsigned types for internal values, so that the code
13273         mostly works even for arrays larger than SSIZE_MAX.
13274         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
13275         (search_duplicated_node, calc_eclosure_iter, fetch_number):
13276         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
13277         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
13278         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
13279         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
13280         (calc_inveclosure, parse_dup_op, build_range_exp):
13281         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
13282         (fetch_number, create_token_tree, mark_opt_subexp):
13283         Likewise.
13284         * lib/regex_internal.c (re_string_construct_common,
13285         create_ci_newstate):
13286         (create_cd_newstate, re_string_allocate, re_string_construct):
13287         (re_string_realloc_buffers, build_wcs_upper_buffer):
13288         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13289         (re_string_reconstruct, re_string_peek_byte_case):
13290         (re_string_fetch_byte_case, re_string_context_at):
13291         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13292         (re_node_set_init_copy, re_node_set_add_intersect):
13293         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13294         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13295         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13296         (re_acquire_state, re_acquire_state_context, register_state):
13297         Likewise.
13298         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
13299         search_cur_bkref_entry):
13300         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
13301         (re_search_internal, re_search_2_stub, re_search_stub)
13302         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
13303         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
13304         (update_cur_sifted_state, check_dst_limits):
13305         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13306         (check_subexp_limits, sift_states_bkref, merge_state_array):
13307         (check_subexp_matching_top, get_subexp, get_subexp_sub):
13308         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
13309         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13310         (expand_bkref_cache, check_node_accept_bytes):
13311         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
13312         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
13313         (acquire_init_state_context, check_halt_node_context):
13314         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
13315         (sift_states_backward, clean_state_log_if_needed):
13316         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
13317         (find_recover_state, transit_state_sb, transit_state_mb):
13318         (transit_state_bkref, build_trtable, match_ctx_clean):
13319         Likewise.
13320         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
13321         to work around an assumption that REG_MISSING is negative.
13322
13323         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
13324         (seek_collating_symbol_entry) [defined _LIBC]:
13325         (lookup_collation_sequence_value) [defined _LIBC]:
13326         (build_range_exp, build_collating_symbol) [defined _LIBC]:
13327         Use prototypes rather than old-style function definitions.
13328         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
13329         (transit_state_sb) [0]:
13330         (find_collation_sequence_value) [defined _LIBC]: Likewise.
13331
13332         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
13333         rm_eo.
13334
13335         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
13336         (optimize_subexps, lower_subexp):
13337         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
13338         since the signed shift might overflow.  Use 1u<<31 instead.
13339         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13340         Likewise.
13341         * lib/regexec.c (check_dst_limits_calc_pos_1,
13342         check_subexp_matching_top): Likewise.
13343
13344         * lib/regcomp.c (optimize_subexps, lower_subexp):
13345         Use CHAR_BIT rather than 8, for clarity.
13346         * lib/regexec.c (check_dst_limits_calc_pos_1):
13347         (check_subexp_matching_top): Likewise.
13348         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
13349         have to worry about portability issues when shifting it left.
13350         Remove no-longer-needed test for table_size > 0.
13351         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
13352         in a word, as the resulting behavior is undefined.
13353         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
13354         in one case, a <= should have been an <, and in another case the
13355         whole test was missing.
13356         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
13357         the standard name CHAR_BIT.
13358         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
13359         this is not true on one's complement and signed-magnitude hosts.
13360
13361         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
13362         next_last_offset.
13363         (struct re_dfa_t): Remove unused member states_alloc.
13364         * lib/regcomp.c (init_dfa): Don't initialize unused members.
13365
13366 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13367
13368         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
13369         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
13370         and large-file glibc and in 32-bit large-file Solaris.
13371
13372 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13373
13374         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
13375         lengths fit in regoff_t; this isn't true if regoff_t is the same
13376         width as size_t.
13377         * lib/regex.c (re_search_internal): 5th arg is LAST_START
13378         (= START + RANGE) instead of RANGE.  This avoids overflow
13379         problems when regoff_t is the same width as size_t.
13380         All callers changed.
13381         (re_search_2_stub): Check for overflow when adding the
13382         sizes of the two strings.
13383         (re_search_stub): Check for overflow when adding START
13384         to RANGE; if it occurs, substitute the extreme value.
13385
13386 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13387
13388         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
13389
13390 2005-08-31  Jim Meyering  <jim@meyering.net>
13391
13392         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
13393         a pointer-to-const.
13394         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
13395         (register_state): Likewise.
13396         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
13397         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13398         (group_nodes_into_DFAstates): Likewise.
13399
13400 2005-08-31  Jim Meyering  <jim@meyering.net>
13401
13402         * check-module: Add a FIXME comment.
13403
13404 2005-08-31  Eric Blake  <ebb9@byu.net>
13405
13406         * modules/unistd-safer (Files): Add unistd--.h.
13407         * modules/stdio-safer (Files): Add stdio--.h.
13408
13409 2005-08-31  Derek Price  <derek@ximbiot.com>
13410
13411         * lib/getdelim.c (getdelim): Return EOF on EOF.
13412         Reported by Larry Jones <lawrence.jones@ugs.com>.
13413
13414 2005-08-31  Bruno Haible  <bruno@clisp.org>
13415
13416         Avoid unnecessary diffs in the generated lib/Makefile.am.
13417         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
13418         the generated files.
13419         (func_import): Don't set cmd.
13420
13421 2005-08-31  Bruno Haible  <bruno@clisp.org>
13422
13423         * lib/strstr.c: Include <stddef.h>, for NULL.
13424         * lib/strcasestr.c: Likewise.
13425         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13426
13427 2005-08-31  Bruno Haible  <bruno@clisp.org>
13428
13429         * gnulib-tool: New option --macro-prefix.
13430         (func_import): Use macro_prefix.
13431         (import): Handle option --macro-prefix.
13432
13433 2005-08-31  Bruno Haible  <bruno@clisp.org>
13434
13435         * gnulib-tool (import): Rename most ac_* variables to cached_*.
13436         Also use new variables cached_lgpl, cached_libtool.
13437
13438 2005-08-31  Bruno Haible  <bruno@clisp.org>
13439
13440         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
13441         always instantiating them.
13442
13443 2005-08-31  Bruno Haible  <bruno@clisp.org>
13444
13445         * gnulib-tool (func_import): Read the previous cached settings
13446         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
13447         earlier added by gnulib but are now dropped. Warn when a gnulib file
13448         overwrites a non-gnulib file.
13449
13450 2005-08-31  Bruno Haible  <bruno@clisp.org>
13451
13452         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
13453         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
13454         projects that don't keep autogenerated files in CVS. Put into
13455         actioncmd only the specified modules, not the transitive closure.
13456
13457 2005-08-31  Bruno Haible  <bruno@clisp.org>
13458
13459         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
13460         Create directories that shall be filled.
13461         (import): Don't look for gl_* macros in configure.ac. Recurse across
13462         all directories containing a gnulib-cache.m4 files, if meaningful.
13463
13464 2005-08-31  Bruno Haible  <bruno@clisp.org>
13465
13466         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
13467         (import): Set seen_libtool when we see gl_LIBTOOL.
13468
13469 2005-08-31  Bruno Haible  <bruno@clisp.org>
13470
13471         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
13472         declaration macro definitions from generated gnulib.m4.
13473
13474 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
13475
13476         * lib/iconvme.h: Add prototype for iconv_alloc.
13477
13478 2005-08-29  Simon Josefsson  <jas@extundo.com>
13479
13480         * lib/iconvme.c: Fix errno.
13481
13482 2005-08-29  Bruno Haible  <bruno@clisp.org>
13483
13484         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
13485         that it works when the directory contains spaces.
13486
13487 2005-08-29  Bruno Haible  <bruno@clisp.org>
13488
13489         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
13490
13491 2005-08-29  Bruno Haible  <bruno@clisp.org>
13492
13493         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
13494         Emit more advice.
13495
13496 2005-08-29  Bruno Haible  <bruno@clisp.org>
13497         and Stepan Kasal  <kasal@ucw.cz>
13498
13499         * check-module: If more parameters are given, check each of them
13500         separately; add more exceptions, as noted by Jim Meyering.
13501         (check_module): New procedure.
13502         (%exempt_header): Now contains all exceptions.
13503
13504 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
13505
13506         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
13507
13508 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
13509
13510         * lib/iconvme.c: Split iconv_string into iconv_alloc.
13511
13512 2005-08-28  Bruno Haible  <bruno@clisp.org>
13513
13514         * m4/gnulib-tool.m4: New file.
13515
13516 2005-08-27  Jim Meyering  <jim@meyering.net>
13517
13518         * modules/unistd-safer (Files): Add pipe-safer.c.
13519         * modules/fcntl-safer (Files): Add creat-safer.c.
13520
13521 2005-08-27  Jim Meyering  <jim@meyering.net>
13522
13523         * m4/stdlib-safer.m4: New file.  From coreutils.
13524         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
13525         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
13526         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
13527         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
13528         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
13529
13530 2005-08-27  Jim Meyering  <jim@meyering.net>
13531
13532         * lib/fopen-safer.c: Merge minor changes from coreutils.
13533         * lib/dup-safer.c: Likewise.
13534         * lib/fd-safer.c: Likewise.
13535
13536         Merge from coreutils.
13537         * lib/stdio--.h: New file.
13538         * lib/stdlib--.h: New file.
13539         * lib/mkstemp-safer.c: New file.
13540
13541         GNU tar needs these.
13542         * lib/pipe-safer.c: New file.
13543         * lib/creat-safer.c: New file.
13544         * lib/fcntl--.h (creat): Define to creat_safer.
13545         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
13546         * lib/unistd--.h (pipe): Define to pipe_safer.
13547         * lib/unistd-safer.h: Declare pipe_safer.
13548
13549 2005-08-26  Simon Josefsson  <jas@extundo.com>
13550
13551         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
13552         Haible <bruno@clisp.org>.
13553
13554 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
13555
13556         * lib/regex_internal.h: Remove all references to
13557         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
13558         or better.
13559         (bitset_not, bitset_merge, bitset_not_merge):
13560         (bitset_mask, re_string_allocate, re_string_construct):
13561         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
13562         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
13563         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
13564         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
13565         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13566         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13567         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
13568         (re_acquire_state_context):
13569         Remove unnecessary forward decls.
13570         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
13571         Put __attribute at function definition,
13572         now that the function decl has been removed.
13573         * lib/regex_internal.c (re_string_peek_byte_case):
13574         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
13575         Likewise.
13576
13577 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
13578
13579         * m4/regex.m4: Add AC_PREREQ(2.50).
13580         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
13581
13582 2005-08-25  Simon Josefsson  <jas@extundo.com>
13583
13584         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
13585         __fsetlocking.
13586
13587 2005-08-25  Simon Josefsson  <jas@extundo.com>
13588
13589         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
13590         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
13591         GLIBC specific code.
13592
13593 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         Make regex safe for g++.  This fixes one real bug (an "err"
13596         that should have been "*err").  g++ problem reported by
13597         Sam Steingold.
13598         * lib/regex_internal.h (re_calloc): New macro, consistent with
13599         re_malloc etc.  All callers of calloc changed to use re_calloc.
13600         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
13601         not int.  All callers changed.
13602         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
13603         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
13604         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
13605         (find_recover_state): Change "err" to "*err"; this fixes what
13606         appears to be a real bug.
13607         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
13608         versus int.
13609
13610 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13611
13612         * modules/regex (Depends-on): Add malloc, since the code
13613         assumes that !malloc(0) means failure.
13614
13615 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13616
13617         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
13618
13619         alloca modernization/simplification for regex.
13620         * lib/regex.c: Remove portability cruft for alloca.  This no longer
13621         needs to be at the start of the file, and can be moved into
13622         regex_internal.h and simplified.
13623         * lib/regex_internal.h: Include <alloca.h>.
13624         (__libc_use_alloca) [!defined _LIBC]: New macro.
13625         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
13626         now works outside glibc.
13627
13628 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13629
13630         * config/srclist.txt: Add glibc bugs 1241, 1245.
13631
13632 2005-08-25  Jim Meyering  <jim@meyering.net>
13633
13634         * lib/open-safer.c: Include <config.h>.
13635         Otherwise, we'd lose LARGEFILE support in any file using
13636         e.g. "fcntl--.h"
13637
13638 2005-08-25  Bruno Haible  <bruno@clisp.org>
13639
13640         * m4/minmax.m4: Require autoconf 2.52.
13641         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
13642         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
13643         alternatives of translit over the alphabet.
13644         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
13645
13646 2005-08-24  Simon Josefsson  <jas@extundo.com>
13647
13648         * tests/test-getpass.c: New file.
13649
13650 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13651
13652         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
13653         for GNU regex features.
13654
13655 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
13658         * lib/regex.h (regerror): Likewise.
13659
13660         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
13661         requires this.  (The code never needed it.)
13662
13663         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
13664         All uses of recently-renamed identifiers changed to use the new,
13665         POSIX-compliant names.  The code will build and run just fine
13666         without these changes, but it's better to eat our own dog food
13667         and use the standard-conforming names.
13668
13669         * lib/regex.h: Fix a multitude of POSIX name space violations.
13670         These changes have an effect only for programs that define
13671         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
13672         do not change anything for programs compiled in the normal way.
13673         Also, there is no effect on the ABI.
13674
13675         (_REGEX_SOURCE): New macro.
13676         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
13677         defined and _GNU_SOURCE is not; this fixes a name space violation.
13678
13679         Rename the following macros to obey POSIX requirements.
13680         The old names are still visible as macros if _REGEX_SOURCE is defined.
13681         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
13682         RE_BACKSLASH_ESCAPE_IN_LISTS.
13683         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
13684         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
13685         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
13686         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
13687         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
13688         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
13689         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
13690         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
13691         (REG_INTERVALS): renamed from RE_INTERVALS.
13692         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
13693         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
13694         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
13695         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
13696         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
13697         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
13698         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
13699         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
13700         RE_UNMATCHED_RIGHT_PAREN_ORD.
13701         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
13702         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
13703         (REG_DEBUG): renamed from RE_DEBUG.
13704         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
13705         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
13706         unusual, since we can't clash with the POSIX REG_ICASE.
13707         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
13708         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
13709         (REG_NO_SUB): renamed from RE_NO_SUB.
13710         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
13711         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
13712         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
13713         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
13714         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
13715         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
13716         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
13717         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
13718         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
13719         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
13720         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
13721         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
13722         RE_SYNTAX_POSIX_MINIMAL_BASIC.
13723         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
13724         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
13725         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
13726         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
13727         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
13728         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
13729         (REG_FIXED): Renamed from REGS_FIXED.
13730         (REG_NREGS): Renamed from RE_NREGS.
13731
13732         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
13733         of other REG_* macros, since POSIX says the user is allowed to
13734         #undef these macros selectively.
13735
13736         (reg_errcode_t): Update comment stating what other tables need
13737         to be consistent.
13738
13739         Rename the following enum values to obey POSIX requirements.
13740         The old names are still visible as macros.
13741         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
13742         is not defined, since GNU is supposed to be a superset of POSIX as
13743         much as possible, and since we want reg_errcode_t to be a signed
13744         type for implementation consistency.
13745         (_REG_NOERROR): Renamed from REG_NOERROR.
13746         (_REG_NOMATCH): Renamed from REG_NOMATCH.
13747         (_REG_BADPAT): Renamed from REG_BADPAT.
13748         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
13749         (_REG_ECTYPE): Renamed from REG_ECTYPE.
13750         (_REG_EESCAPE): Renamed from REG_EESCAPE.
13751         (_REG_ESUBREG): Renamed from REG_ESUBREG.
13752         (_REG_EBRACK): Renamed from REG_EBRACK.
13753         (_REG_EPAREN): Renamed from REG_EPAREN.
13754         (_REG_EBRACE): Renamed from REG_EBRACE.
13755         (_REG_BADBR): Renamed from REG_BADBR.
13756         (_REG_ERANGE): Renamed from REG_ERANGE.
13757         (_REG_ESPACE): Renamed from REG_ESPACE.
13758         (_REG_BADRPT): Renamed from REG_BADRPT.
13759         (_REG_EEND): Renamed from REG_EEND.
13760         (_REG_ESIZE): Renamed from REG_ESIZE.
13761         (_REG_ERPAREN): Renamed from REG_ERPAREN.
13762         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
13763         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
13764         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
13765         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
13766
13767         (_REG_RE_NAME, _REG_RM_NAME): New macros.
13768         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
13769         changed.  But support the old name if the new one is not defined
13770         and if _REGEX_SOURCE.
13771
13772         Change the following member names in struct re_pattern_buffer.
13773         The old names are still supported if !_REGEX_SOURCE.
13774         The new names are always supported, regardless of _REGEX_SOURCE.
13775         (re_buffer): Renamed from buffer.
13776         (re_allocated): Renamed from allocated.
13777         (re_used): Renamed from used.
13778         (re_syntax): Renamed from syntax.
13779         (re_fastmap): Renamed from fastmap.
13780         (re_translate): Renamed from translate.
13781         (re_can_be_null): Renamed from can_be_null.
13782         (re_regs_allocated): Renamed from regs_allocated.
13783         (re_fastmap_accurate): Renamed from fastmap_accurate.
13784         (re_no_sub): Renamed from no_sub.
13785         (re_not_bol): Renamed from not_bol.
13786         (re_not_eol): Renamed from not_eol.
13787         (re_newline_anchor): Renamed from newline_anchor.
13788
13789         Change the following member names in struct re_registers.
13790         The old names are still supported if !_REGEX_SOURCE.
13791         The new names are always supported, regardless of _REGEX_SOURCE.
13792         (rm_num_regs): Renamed from num_regs.
13793         (rm_start): Renamed from start.
13794         (rm_end): Renamed from end.
13795
13796         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
13797         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
13798         Prepend __ to parameter names.
13799
13800         Undo yesterday's changes.
13801
13802 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13803
13804         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
13805         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
13806         lib/regex.c.
13807
13808 2005-08-24  Jim Meyering  <jim@meyering.net>
13809
13810         Sync from coreutils.
13811         * m4/fcntl-safer.m4: New file.
13812
13813         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
13814         and object files for this module.
13815
13816 2005-08-24  Jim Meyering  <jim@meyering.net>
13817
13818         Sync from coreutils.
13819         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
13820
13821 2005-08-24  Jim Meyering  <jim@meyering.net>
13822
13823         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
13824         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
13825
13826 2005-08-24  Jim Meyering  <jim@meyering.net>
13827
13828         * modules/fcntl-safer: New module.
13829         * modules/fts (Depends-on): Add fcntl-safer.
13830         * MODULES.html.sh (File descriptor based Input/Output):
13831         Add fcntl-safer.
13832
13833 2005-08-24  Bruno Haible  <bruno@clisp.org>
13834
13835         Support for unit test modules.
13836         * modules/README: Mention tests modules.
13837         * modules/TEMPLATE-TESTS: New file.
13838         * gnulib-tool: New options --extract-tests-module, --with-tests and
13839         --tests-base (unused for the moment).
13840         (testsbase, inctests): New variables.
13841         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
13842         (func_verify_module): Exclude TEMPLATE-TESTS.
13843         (func_verify_nontests_module, func_verify_tests_module): New functions.
13844         (func_get_dependencies): Add implicit dependency for tests modules.
13845         (func_get_tests_module): New function.
13846         (func_modules_transitive_closure): When --with-tests was specified,
13847         include the unit tests as well, unless explicitly avoided.
13848         (func_emit_lib_Makefile_am): Ignore the tests modules here.
13849         (func_emit_tests_Makefile_am): New function.
13850         (func_create_testdir): When --with-tests was specified, emit a
13851         tests/ directory.
13852         * MODULES.html.sh (Future developments): Update.
13853
13854 2005-08-24  Bruno Haible  <bruno@clisp.org>
13855
13856         * modules/tls-tests: New file.
13857         * tests/test-tls.c: New file, from GNU gettext.
13858
13859 2005-08-24  Bruno Haible  <bruno@clisp.org>
13860
13861         * modules/lock-tests: New file.
13862         * tests/test-lock.c: New file, from GNU gettext.
13863
13864 2005-08-24  Bruno Haible  <bruno@clisp.org>
13865
13866         * lib/lock.h: Add multiple inclusion guard.
13867         * lib/tls.h: Add multiple inclusion guard.
13868
13869 2005-08-24  Bruno Haible  <bruno@clisp.org>
13870
13871         * gnulib-tool: Add support for the --aux-dir option to
13872         --create-testdir, --create-megatestdir, --test, --megatest.
13873         (func_create_testdir, func_create_megatestdir): Optionally emit a
13874         AC_CONFIG_AUX_DIR directive.
13875         (create-testdir, create-megatestdir, test, megatest): Provide a
13876         default value for $auxdir.
13877
13878 2005-08-24  Bruno Haible  <bruno@clisp.org>
13879
13880         * gnulib-tool (import): Use compound statement instead of subshell
13881         where possible.
13882
13883 2005-08-24  Bruno Haible  <bruno@clisp.org>
13884
13885         * gnulib-tool (import): Change --aux-dir default to "build-aux".
13886
13887 2005-08-24  Bruno Haible  <bruno@clisp.org>
13888
13889         * gnulib-tool (func_version): Update.
13890
13891 2005-08-24  Bruno Haible  <bruno@clisp.org>
13892
13893         * gnulib-tool (func_import, func_create_testdir,
13894         func_create_megatestdir): Quote all autoconf macro arguments.
13895
13896 2005-08-24  Bruno Haible  <bruno@clisp.org>
13897
13898         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
13899         option --force, because --force causes the aclocal.m4 of each
13900         subdirectory to be newer than the corresponding config.h.in.
13901
13902 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13903
13904         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
13905         All contents moved to gl_REGEX.
13906         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
13907         assume that it does.
13908
13909 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13910
13911         * lib/regex.h (REG_NOSYS)
13912         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
13913         Define, since POSIX requires it as of 2001.
13914         (_REG_ENOSYS)
13915         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
13916         New private symbol, used to keep the enum signed in all cases.
13917         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
13918         Youngman in
13919         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
13920
13921         * lib/regex_internal.c (re_string_skip_chars, register_state):
13922         (calc_state_hash):
13923         Remove forward decls; no longer needed now that we use prototypes.
13924         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
13925         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
13926         (clean_state_log_if_needed): Likewise.
13927
13928 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13929
13930         * config/srclist.txt: Add glibc bugs 1231-1233.
13931
13932 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         Fix problems reported by Sam Steingold in
13935         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
13936         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
13937         assumed that reg_errcode_t is a signed type, which is not
13938         necessarily true if _XOPEN_SOURCE is not defined.
13939         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
13940         since some compilers warn about it otherwise.
13941
13942 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
13945         (init_word_char, create_initial_state, duplicate_node_closure):
13946         (fetch_token, peek_token_bracket, build_range_exp):
13947         (build_collating_symbol): Remove forward decls; no longer needed
13948         now that we use prototypes.
13949
13950         * lib/regcomp.c:
13951         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
13952         (re_compile_fastmap_iter, regcomp, regerror, regfree):
13953         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
13954         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
13955         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
13956         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
13957         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
13958         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
13959         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
13960         (build_range_exp, build_collating_symbol, parse_bracket_exp):
13961         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
13962         (build_charclass, build_charclass_op, fetch_number, create_tree):
13963         (create_token_tree, mark_opt_subexp, duplicate_tree):
13964         Use prototypes rather than old-style definitions.
13965
13966         * lib/regex_internal.c:
13967         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
13968         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
13969         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13970         (re_string_reconstruct, re_string_peek_byte_case):
13971         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
13972         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13973         (re_node_set_init_copy, re_node_set_add_intersect):
13974         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13975         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13976         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13977         (re_acquire_state, re_acquire_state_context, register_state):
13978         (create_ci_newstate, create_cd_newstate, free_state):
13979         Likewise.
13980         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
13981         re_search_2):
13982         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
13983         (re_search_internal, prune_impossible_nodes):
13984         (acquire_init_state_context, check_matching, static):
13985         (check_halt_node_context, check_halt_state_context, proceed_next_node):
13986         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
13987         (update_regs, sift_states_backward, build_sifted_states):
13988         (clean_state_log_if_needed, merge_state_array):
13989         (update_cur_sifted_state, add_epsilon_src_nodes):
13990         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
13991         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
13992         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
13993         (find_recover_state, check_subexp_matching_top, transit_state_mb):
13994         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
13995         (check_arrival, check_arrival_add_next_nodes):
13996         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13997         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
13998         (check_node_accept_bytes, check_node_accept, extend_buffers):
13999         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
14000         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
14001         (sift_ctx_init):
14002         Likewise.
14003
14004         * lib/regex_internal.h:
14005         (re_string_allocate, re_string_construct, re_string_reconstruct):
14006         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
14007         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
14008         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
14009         (re_string_context_at, re_string_peek_byte_case):
14010         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
14011         is defined, since we now use prototypes always.
14012
14013         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
14014         C89 or better.  All uses removed.
14015
14016 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14017
14018         * config/srclist.txt: Add glibc bugs 1220-1227.
14019
14020 2005-08-20  Jim Meyering  <jim@meyering.net>
14021
14022         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
14023         of unused local, dfa.
14024
14025 2005-08-20  Bruno Haible  <bruno@clisp.org>
14026
14027         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
14028
14029 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14030
14031         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
14032         (re_node_set_insert_last, re_dfa_add_node):
14033         Rename local variables to avoid GCC shadowing warnings.
14034
14035 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14036
14037         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
14038         [defined lint]: Suppress bogus uninitialized-variable warnings.
14039
14040         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
14041         and let the caller return REG_ESPACE if out of space.  This
14042         removes an uninitialied-variable warning with GCC 4.0.1, and also
14043         avoids taking the address of a local variable.  All callers
14044         changed.
14045
14046 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14047
14048         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
14049         $LIBCSRC/posix/regexec.c.
14050         Add glibc bug 1217 for regcomp.c.
14051
14052 2005-08-19  Jim Meyering  <jim@meyering.net>
14053
14054         * lib/regexec.c (proceed_next_node): Redo local variables to
14055         avoid GCC shadowing warnings.
14056
14057 2005-08-18  Bruno Haible  <bruno@clisp.org>
14058
14059         * lib/strstr.c (strstr): Fix return value in multibyte case.
14060         * lib/strcasestr.c (strcasestr): Likewise.
14061
14062 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14063
14064         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
14065
14066 2005-08-17  Jim Meyering  <jim@meyering.net>
14067
14068         Make the %s format (seconds since the epoch) work for a negative
14069         number and when used with a zero-padded field width, e.g. %015s.
14070
14071         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
14072         label so that it precedes the code to set `digits'.  Otherwise,
14073         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
14074         print `00-22'.  Now, it prints `-0022', as it should.
14075
14076 2005-08-17  Bruno Haible  <bruno@clisp.org>
14077
14078         * modules/strstr (Files): Add m4/mbrtowc.m4.
14079         (Depends-on): Add mbuiter.
14080
14081 2005-08-17  Bruno Haible  <bruno@clisp.org>
14082
14083         * modules/strcasestr: New file.
14084         * MODULES.html.sh (String handling, based on ANSI C 89): Add
14085         strcasestr.
14086
14087 2005-08-17  Bruno Haible  <bruno@clisp.org>
14088
14089         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
14090
14091 2005-08-17  Bruno Haible  <bruno@clisp.org>
14092
14093         * modules/mbuiter: New file.
14094         * MODULES.html.sh (Extended multibyte and wide character utilities):
14095         Add mbuiter.
14096
14097 2005-08-17  Bruno Haible  <bruno@clisp.org>
14098
14099         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
14100         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
14101
14102 2005-08-17  Bruno Haible  <bruno@clisp.org>
14103
14104         * m4/strcasestr.m4: New file.
14105
14106 2005-08-17  Bruno Haible  <bruno@clisp.org>
14107
14108         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
14109         * lib/strstr.c: Completely rewritten, with multibyte locale support.
14110
14111 2005-08-17  Bruno Haible  <bruno@clisp.org>
14112
14113         * lib/strcasestr.h: New file.
14114         * lib/strcasestr.c: New file.
14115
14116 2005-08-17  Bruno Haible  <bruno@clisp.org>
14117
14118         * lib/strcasecmp.c: Use mbuiter.h.
14119
14120 2005-08-17  Bruno Haible  <bruno@clisp.org>
14121
14122         * lib/mbuiter.h: New file.
14123
14124 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
14125
14126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
14127         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
14128         and gl_GETOPT are both invoked via different paths (as happens
14129         with GNU tar CVS because it uses both argp and getopt), the former
14130         wins.
14131
14132 2005-08-16  Bruno Haible  <bruno@clisp.org>
14133
14134         * modules/tls: New file.
14135         * MODULES.html.sh (Multithreading): Add tls.
14136
14137 2005-08-16  Bruno Haible  <bruno@clisp.org>
14138
14139         * modules/strnlen1: New file.
14140         * MODULES.html.sh (String handling): Add strnlen1.
14141
14142 2005-08-16  Bruno Haible  <bruno@clisp.org>
14143
14144         * modules/strcase (Files): Add m4/mbrtowc.m4.
14145         (Depends-on): Add strnlen1, mbchar.
14146
14147 2005-08-16  Bruno Haible  <bruno@clisp.org>
14148
14149         * modules/mbiter: New file.
14150         * MODULES.html.sh (Extended multibyte and wide character utilities):
14151         Add mbiter.
14152
14153 2005-08-16  Bruno Haible  <bruno@clisp.org>
14154
14155         * modules/mbfile: New file.
14156         * MODULES.html.sh (Extended multibyte and wide character utilities):
14157         Add mbfile.
14158
14159 2005-08-16  Bruno Haible  <bruno@clisp.org>
14160
14161         * modules/mbchar: New file.
14162         * MODULES.html.sh (Extended multibyte and wide character utilities):
14163         New section.
14164
14165 2005-08-16  Bruno Haible  <bruno@clisp.org>
14166
14167         * m4/tls.m4: New file, from GNU gettext.
14168
14169 2005-08-16  Bruno Haible  <bruno@clisp.org>
14170
14171         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
14172         always.
14173         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
14174
14175 2005-08-16  Bruno Haible  <bruno@clisp.org>
14176
14177         * m4/mbiter.m4: New file.
14178
14179 2005-08-16  Bruno Haible  <bruno@clisp.org>
14180
14181         * m4/mbfile.m4: New file.
14182
14183 2005-08-16  Bruno Haible  <bruno@clisp.org>
14184
14185         * m4/mbchar.m4: New file.
14186
14187 2005-08-16  Bruno Haible  <bruno@clisp.org>
14188
14189         * lib/tls.h: New file, from GNU gettext.
14190         * lib/tls.c: New file, from GNU gettext.
14191
14192 2005-08-16  Bruno Haible  <bruno@clisp.org>
14193
14194         * lib/strnlen1.h: New file.
14195         * lib/strnlen1.c: New file.
14196
14197 2005-08-16  Bruno Haible  <bruno@clisp.org>
14198
14199         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
14200         (mbi_init): Update.
14201         (mbi_avail, mbi_advance): Let the iteration end before the terminating
14202         NUL byte, not after it.
14203
14204 2005-08-16  Bruno Haible  <bruno@clisp.org>
14205
14206         * lib/strcase.h (strcasecmp): Add note in comments.
14207         * lib/strncasecmp.c: Use code from strcasecmp.c.
14208         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
14209         (strcasecmp): Work correctly in multibyte locales.
14210
14211 2005-08-16  Bruno Haible  <bruno@clisp.org>
14212
14213         * lib/mbiter.h: New file.
14214
14215 2005-08-16  Bruno Haible  <bruno@clisp.org>
14216
14217         * lib/mbfile.h: New file.
14218
14219 2005-08-16  Bruno Haible  <bruno@clisp.org>
14220
14221         * lib/mbchar.h: New file.
14222         * lib/mbchar.c: New file.
14223
14224 2005-08-16  Bruno Haible  <bruno@clisp.org>
14225
14226         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
14227         the valid ones. Makes the comparison operations transitive:
14228         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
14229         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
14230
14231 2005-08-15  Simon Josefsson  <jas@extundo.com>
14232
14233         * modules/ssize_t (License): Change to 'unlimited'.
14234
14235         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
14236
14237 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14238
14239         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
14240         Add comments for each pending glibc patch.
14241
14242 2005-08-15  Bruno Haible  <bruno@clisp.org>
14243
14244         * lib/regex.h (__restrict_arr): Don't define to __restrict if
14245         __cplusplus is defined.
14246
14247 2005-08-14  Jim Meyering  <jim@meyering.net>
14248
14249         Sync from coreutils.
14250
14251         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
14252         Use the hash-table-based cycle-detection code not just when
14253         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
14254         Reported by James Youngman in
14255         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
14256         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
14257         FTS_TIGHT_CYCLE_CHECK.
14258         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
14259         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
14260         once again.
14261         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
14262         * lib/fts.c (fd_safer): Remove decl.
14263         Include fcntl--.h rather than unistd-safer.h
14264         (fts_safe_changedir): Don't call fd_safer; no longer needed
14265         now that we include fcntl--.h.
14266
14267 2005-08-12  Simon Josefsson  <jas@extundo.com>
14268
14269         * modules/getndelim2: Use ssize_t module.
14270         * modules/getnline: Likewise.
14271         * modules/safe-read: Likewise.
14272         * modules/xreadlink: Likewise.
14273
14274         * modules/ssize_t: New file.
14275
14276 2005-08-12  Simon Josefsson  <jas@extundo.com>
14277
14278         * m4/readline.m4: Look for termcap, curses or ncurses if required.
14279
14280 2005-08-12  Simon Josefsson  <jas@extundo.com>
14281
14282         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14283         ssize_t.
14284
14285 2005-08-12  Simon Josefsson  <jas@extundo.com>
14286
14287         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
14288         readline, getdelim and check_version.
14289         (Support for systems lacking ISO C 99: Sizes of integer types):
14290         Add size_max.
14291
14292 2005-08-12  Bruno Haible  <bruno@clisp.org>
14293
14294         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
14295
14296 2005-08-11  Simon Josefsson  <jas@extundo.com>
14297
14298         * modules/readline: New file.
14299
14300         * modules/strnlen (Files): Add strnlen.h.
14301
14302 2005-08-11  Simon Josefsson  <jas@extundo.com>
14303
14304         * m4/readline.m4: New file.
14305
14306 2005-08-11  Simon Josefsson  <jas@extundo.com>
14307
14308         * lib/readline.h, readline.c: New file.
14309
14310 2005-08-11  Simon Josefsson  <jas@extundo.com>
14311
14312         * doc/gnulib.texi (Initial import, Finishing touches): Mention
14313         gl_AVOID.
14314
14315 2005-08-11  Bruno Haible  <bruno@clisp.org>
14316
14317         * lib/strnlen.h (strnlen): Change parameter name to match comment.
14318
14319 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
14320
14321         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
14322
14323 2005-08-10  Simon Josefsson  <jas@extundo.com>
14324
14325         * tests/test-iconvme.c: New file.
14326
14327 2005-08-10  Simon Josefsson  <jas@extundo.com>
14328
14329         * m4/strnlen.m4: New file.
14330
14331         * m4/strndup.m4: Don't check for strnlen declaration, done in
14332         strnlen.m4.
14333
14334 2005-08-10  Simon Josefsson  <jas@extundo.com>
14335
14336         * lib/strndup.c: Use strnlen.h.
14337
14338         * lib/strnlen.h: New file.
14339
14340 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14341
14342         * README: Typos.
14343
14344 2005-08-02  Simon Josefsson  <jas@extundo.com>
14345
14346         * modules/readline: New file.
14347
14348 2005-08-02  Simon Josefsson  <jas@extundo.com>
14349
14350         * modules/getdelim: New file.
14351
14352         * modules/getline: Rewrite, don't use getndelim2.
14353
14354 2005-08-02  Simon Josefsson  <jas@extundo.com>
14355
14356         * m4/getline.m4: Separate out getdelim stuff into separate module.
14357
14358         * m4/getdelim.m4: New file.
14359
14360 2005-08-02  Simon Josefsson  <jas@extundo.com>
14361
14362         * lib/getline.h, getline.c: Rewrite.
14363
14364         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
14365
14366 2005-07-31  Bruno Haible  <bruno@clisp.org>
14367
14368         * lib/lock.h (gl_lock_initializer): New macro.
14369         (gl_lock_define_initialized): Use it.
14370         (gl_rwlock_initializer): New macro.
14371         (gl_rwlock_define_initialized): Use it.
14372         (gl_recursive_lock_initializer): New macro.
14373         (gl_recursive_lock_define_initialized): Use it.
14374
14375 2005-07-30  Karl Berry  <karl@gnu.org>
14376
14377         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
14378         Report from Ben Pfaff, regarding getopt.
14379
14380 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
14381
14382         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
14383         normal way.
14384         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
14385         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
14386         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
14387         (gl_GETOPT): Use the new macros.  Most of the implementation
14388         is moved to the new macros.  This is for programs like Emacs
14389         that don't want all the functionality of gl_GETOPT.
14390
14391 2005-07-26  Bruno Haible  <bruno@clisp.org>
14392
14393         * m4/lock.m4: Update from GNU gettext.
14394
14395 2005-07-26  Bruno Haible  <bruno@clisp.org>
14396
14397         * lib/lock.h: Update from GNU gettext.
14398         * lib/lock.c: Update from GNU gettext.
14399
14400 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14401
14402         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
14403         obsolescent AC_TRY_RUN.  Include the default includes files, for
14404         'exit'.
14405
14406 2005-07-24  Bruno Haible  <bruno@clisp.org>
14407
14408         * modules/visibility: New file.
14409         * MODULES.html.sh (Misc): Add visibility.
14410
14411 2005-07-24  Bruno Haible  <bruno@clisp.org>
14412
14413         * m4/visibility.m4: New file.
14414
14415 2005-07-24  Bruno Haible  <bruno@clisp.org>
14416
14417         * doc/visibility.texi: New file.
14418
14419 2005-07-22  Bruno Haible  <bruno@clisp.org>
14420
14421         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
14422         $(ALLOCA_H), redundant through BUILT_SOURCES.
14423         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
14424         redundant through BUILT_SOURCES.
14425         * modules/byteswap (Makefile.am): Remove explicit dependency on
14426         $(BYTESWAP_H), redundant through BUILT_SOURCES.
14427         * modules/fnmatch (Makefile.am): Remove explicit dependency on
14428         $(FNMATCH_H), redundant through BUILT_SOURCES.
14429         * modules/getopt (Makefile.am): Remove explicit dependency on
14430         $(GETOPT_H), redundant through BUILT_SOURCES.
14431         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
14432         redundant through BUILT_SOURCES.
14433         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
14434         redundant through BUILT_SOURCES.
14435         * modules/stdbool (Makefile.am): Remove explicit dependency on
14436         $(STDBOOL_H), redundant through BUILT_SOURCES.
14437         * modules/stdint (Makefile.am): Remove explicit dependency on
14438         $(STDINT_H), redundant through BUILT_SOURCES.
14439         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
14440         Remove explicit dependency on $(SYSEXITS_H).
14441         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
14442
14443 2005-07-18  Simon Josefsson  <jas@extundo.com>
14444
14445         * lib/check-version.c (check_version): Accept identical versions too.
14446
14447 2005-07-18  Bruno Haible  <bruno@clisp.org>
14448
14449         * modules/lock: New file.
14450         * MODULES.html.sh (Multithreading): New section.
14451
14452 2005-07-18  Bruno Haible  <bruno@clisp.org>
14453
14454         * m4/lock.m4: New file, from GNU gettext.
14455
14456 2005-07-18  Bruno Haible  <bruno@clisp.org>
14457
14458         * lib/lock.h: New file, from GNU gettext.
14459         * lib/lock.c: New file, from GNU gettext.
14460
14461 2005-07-18  Bruno Haible  <bruno@clisp.org>
14462
14463         * lib/lock.h (gl_once_t): New type.
14464         (gl_once_define, gl_once): New macros.
14465         * lib/lock.c (fresh_once): New variable.
14466         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
14467         functions.
14468
14469 2005-07-16  Simon Josefsson  <jas@extundo.com>
14470
14471         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
14472         workaround, suggested by Bruno.
14473
14474 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14475
14476         * modules/xalloc (Depends-on): Add xalloc-die.
14477         * modules/xvasprintf (Depends-on): Add xalloc-die.
14478
14479 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14480
14481         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
14482         with a minor change.
14483
14484 2005-07-15  Bruno Haible  <bruno@clisp.org>
14485
14486         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
14487         When using lib/poll.c, define poll as rpl_poll.
14488
14489 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
14490
14491         * modules/argp (Depends-on): Remove unlocked-io.
14492
14493 2005-07-14  Derek Price  <derek@ximbiot.com>
14494
14495         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
14496         for glob symlink bug.
14497
14498 2005-07-14  Bruno Haible  <bruno@clisp.org>
14499
14500         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
14501         Instead, test for *_unlocked function declarations directly.
14502
14503 2005-07-11  Simon Josefsson  <jas@extundo.com>
14504
14505         * modules/size_max: New file.
14506
14507         * modules/xsize: Depend on size_max module for size_max.m4.
14508
14509 2005-07-11  Simon Josefsson  <jas@extundo.com>
14510
14511         * lib/size_max.h: New file.
14512
14513 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
14514
14515         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
14516         copyright symbol and the year.
14517         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
14518         (version_etc_va): Use parameterized copyright notice.
14519         Reword to conform to the current GNU coding standards.
14520
14521 2005-07-11  Karl Berry  <karl@gnu.org>
14522
14523         * doc/gnulib.texi (Quoting): new node.
14524         (Initial import): more info, from Patrice.
14525
14526 2005-07-11  Bruno Haible  <bruno@clisp.org>
14527
14528         * gnulib-tool (func_usage): Document option --avoid.
14529         (Command line options): Handle --avoid.
14530         (func_acceptable): New function.
14531         (func_modules_transitive_closure): Use it.
14532
14533 2005-07-11  Bruno Haible  <bruno@clisp.org>
14534
14535         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
14536         Reported by Jim Meyering.
14537
14538 2005-07-10  Bruno Haible  <bruno@clisp.org>
14539
14540         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
14541         Needed when size_t is smaller than 'unsigned int'.
14542         Reported by Paul Eggert.
14543
14544 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
14545
14546         * modules/argp (Depends-on): Add unlocked-io
14547
14548 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
14549
14550         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
14551         block of defines.
14552
14553 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14554
14555         * config/srclist.txt: Comment out regcomp.c, since we have a porting
14556         fix now.
14557
14558 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
14559         and Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
14562         in wint_t, not wchar_t.  Remove now-unnecessary cast.
14563
14564 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14565
14566         * modules/regex (Files): Add lib/regex_internal.c,
14567         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
14568         (Depends-on): Add extensions.
14569         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
14570
14571 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
14574         pathconf.
14575         * m4/same.m4 (gl_SAME): Likewise.
14576         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
14577
14578         * m4/regex.m4: Adjust to new libc regex implementation.
14579         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
14580         all the .c and .h parts of (the new) regex.
14581         Quote the m4 stuff better.
14582         Check for RE_ICASE bug of old gnulib.
14583         Check for REG_STARTEND of recent libc.
14584         Rename local variables from jm_* to gl_*.
14585         Quote operand of "test -f".
14586         Say "recent enough" version of libc, not "version 2".
14587         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
14588         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
14589         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
14590         Remove check for btowc, isascii.
14591         Require AM_LANGINFO_CODESET.
14592
14593 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14594
14595         * lib/regex.c, regex.h: Sync from libc.
14596         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
14597         * lib/regexec.c:
14598         New files, synced from libc, except that regex_internal.h
14599         currently has a small porting fix.
14600
14601 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14602
14603         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
14604         regex_internal.c, regexec.c.
14605         Add regex_internal.h too, but as a comment, since the libc version
14606         is currently broken in gnulib mode.
14607
14608 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14609
14610         Support programs like Emacs that use gnulib but not gettext.
14611         * MODULES.html.sh (Internationalization functions): Add gettext-h.
14612         * modules/gettext-h: New file.
14613         * modules/gettext (Files): Remove lib/gettext.h.
14614         (Depends-on): Add gettext-h.
14615         (Makefile.am): Remove lib_SOURCES.
14616         * modules/argmatch, modules/c-stack, modules/closeout:
14617         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
14618         * modules/execute, modules/file-type, modules/getaddrinfo:
14619         * modules/getopt, modules/human, modules/javacomp:
14620         * modules/javaexec, modules/mkdir-p, modules/obstack:
14621         * modules/openat, modules/pagealign_alloc, modules/pipe:
14622         * modules/quotearg, modules/regex, modules/rpmatch:
14623         * modules/unicodeio, modules/userspec, modules/version-etc:
14624         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
14625         * modules/xsetenv:
14626         Depend on gettext-h, not gettext.
14627
14628 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14629
14630         * gnulib-tool (func_import): Add support for 'public domain' license.
14631         * modules/alloca, modules/atexit, modules/memmove:
14632         Now public domain, not GPL.
14633         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
14634         * modules/realloc, modules/strerror, modules/strtod:
14635         Now LGPL, not GPL.
14636
14637 2005-07-05  Bruno Haible  <bruno@clisp.org>
14638
14639         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
14640         autoconf CVS. Needed for mingw.
14641
14642 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14643
14644         Remove the dependency of the strftime module on the tzset module.
14645         * modules/strftime (Depends-on): Remove dependency on tzset.
14646
14647 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14648
14649         Remove the dependency of the strftime module on the tzset module.
14650         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
14651         gl_FUNC_TZSET_CLOBBER.
14652
14653 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14654
14655         Remove the dependency of the strftime module on the tzset module.
14656         * lib/strftime.c (my_strftime)
14657         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
14658         Copy the input structure, to work around some of the bug with
14659         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
14660         Solaris releases, you should also use the tzset module, but we won't
14661         require it as a dependency any more since we don't want LGPLed code
14662         to depend on GPLed code.
14663
14664 2005-07-02  Jim Meyering  <jim@meyering.net>
14665
14666         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
14667         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
14668         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
14669         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
14670
14671 2005-07-02  Jim Meyering  <jim@meyering.net>
14672
14673         * lib/backupfile.c (backup_args): Change a `0' to NULL.
14674
14675 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14676
14677         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
14678         declares only 'struct timespec;' (!).
14679
14680 2005-07-01  Jim Meyering  <jim@meyering.net>
14681
14682         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
14683         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
14684         * lib/save-cwd.c, tempname.c:
14685         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
14686         and don't include <sys/file.h>).
14687
14688 2005-06-29  Jim Meyering  <jim@meyering.net>
14689
14690         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
14691         type name.  Use the variable name instead.
14692         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
14693         Likewise.
14694
14695 2005-06-28  Simon Josefsson  <jas@extundo.com>
14696
14697         * modules/check-version (Files): Add check-version.m4.
14698
14699 2005-06-28  Simon Josefsson  <jas@extundo.com>
14700
14701         * m4/check-version.m4: New file, suggested by Jim Meyering
14702         <jim@meyering.net>.
14703
14704 2005-06-28  Simon Josefsson  <jas@extundo.com>
14705
14706         * lib/check-version.h, lib/check-version.c: New files.
14707
14708 2005-06-28  Simon Josefsson  <jas@extundo.com>
14709
14710         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
14711         collision with global variable.  Better indentation.  Don't
14712         increment buffer pointer beyond buffer end.  Based on comments
14713         from Paul Eggert <eggert@cs.ucla.edu>.
14714
14715         * lib/base64.h: Indent.
14716
14717 2005-06-28  Simon Josefsson  <jas@extundo.com>
14718
14719         * doc/gnulib.texi (Library version handling): New section.
14720
14721 2005-06-28  Jim Meyering  <jim@meyering.net>
14722
14723         * check-module (find_included_lib_files): Hard-code another
14724         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
14725         but modules/fts-lgpl (correctly) does not list those files.
14726
14727         * modules/canonicalize (Files): Add lib/pathmax.h.
14728
14729 2005-06-25  Simon Josefsson  <jas@extundo.com>
14730
14731         * modules/check-version: New file.
14732
14733 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14734
14735         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
14736         initializer of struct addrinfo, as an indication that we don't
14737         care how many members the structure has.
14738
14739 2005-06-24  Derek Price  <derek@ximbiot.com>
14740         and Bruno Haible  <bruno@clisp.org>
14741
14742         Remove stat module & update lstat.
14743         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
14744         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14745         * m4/stat.m4: Remove this file.
14746
14747 2005-06-24  Derek Price  <derek@ximbiot.com>
14748         and Bruno Haible  <bruno@clisp.org>
14749
14750         Remove stat module & update lstat.
14751         * lib/stat.c: Remove this file...
14752         (slash_aware_lstat): ...moving this content and its support...
14753         * lib/lstat.c (rpl_lstat): ...into here.
14754         * lib/lstat.h: New file.
14755
14756 2005-06-24  Derek Price  <derek@ximbiot.com>
14757         and Bruno Haible  <bruno@clisp.org>
14758
14759         Remove stat module & update lstat.
14760         * config/srclist.txt (libc sources): Remove stat.
14761
14762 2005-06-24  Derek Price  <derek@ximbiot.com>
14763         and Bruno Haible  <bruno@clisp.org>
14764
14765         Remove stat module & update lstat.
14766         * MODULES.html.sh (stat): Remove.
14767         * MODULES.html: Regenerated.
14768         * modules/lstat (Description): Correct function name.
14769         (Files): Add "lstat.h".
14770         (Depends-on): Remove stat, add xalloc, stat-macros.
14771         * modules/stat: Remove this file.
14772         (Include): Add "lstat.h", remove <sys/stat.h>.
14773
14774 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14775
14776         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
14777         (ranged_convert): Don't save conversion in a temporary struct.
14778         This causes a warning with GCC 4.0.0, and anyway in the typical
14779         case it's not worth the extra 100 bytes or so of code.
14780         (ranged_convert, __mktime_internal): When calling a function via a
14781         pointer P, use P () rather than (*P) (), as we now assume C89 or
14782         better.
14783
14784 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14785
14786         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
14787         "who -r" failed to give output.  Problem reported by Tim Waugh.
14788
14789         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
14790         (xcalloc): Use it to avoid needless tests.
14791         Problem reported by Jim Meyering.
14792
14793 2005-06-20  Derek Price  <derek@ximbiot.com>
14794
14795         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
14796         unnecessary for Autoconfs > 2.59c.
14797
14798 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14799
14800         * lib/argp.h (__option_is_short): Check upper limit of
14801         __key. Isprint() requires its argument to have the value
14802         of an unsigned char or EOF.
14803
14804 2005-06-16  Jim Meyering  <jim@meyering.net>
14805
14806         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
14807         when either N or S is zero.
14808
14809 2005-06-16  Derek Price  <derek@ximbiot.com>
14810
14811         * m4/bison.m4: Declare YACC & YFLAGS precious.
14812
14813 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
14816         multibyte string or pattern, fall back on unibyte matching.
14817         Problem reported by James Youngman.
14818
14819 2005-06-08  Bruno Haible  <bruno@clisp.org>
14820
14821         * modules/csharpcomp: New file.
14822         * MODULES.html.sh (C#): Add csharpcomp.
14823
14824 2005-06-08  Bruno Haible  <bruno@clisp.org>
14825
14826         * m4/csharpcomp.m4: New file, from GNU gettext.
14827
14828 2005-06-08  Bruno Haible  <bruno@clisp.org>
14829
14830         * lib/csharpcomp.h: New file, from GNU gettext.
14831         * lib/csharpcomp.c: New file, from GNU gettext.
14832         * lib/csharpcomp.sh.in: New file, from GNU gettext.
14833
14834 2005-06-08  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
14837         warning on mingw.
14838
14839 2005-06-07  Derek Price  <derek@ximbiot.com>
14840
14841         Sync from CVS.
14842         * lib/glob_.h: Indent nested #ifdef.
14843
14844 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14845
14846         Sync from coreutils.
14847         Use "file name" when talking about file names, instead of "filename"
14848         or "path", as per the GNU coding standards.
14849         * lib/mkdir-p.c: Renamed from makepath.c.
14850         (make_dir_parents): Renamed from make_path.  All callers changed.
14851         * lib/mkdir-p.h: Likewise.  All includers changed.
14852         * lib/filenamecat.c: Renamed from path-concat.c.
14853         (file_name_concat): Renamed from path_concat.  All callers changed.
14854         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
14855         * lib/filenamecat.h: Likewise.  All includers changed.
14856         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
14857         in comments or local variable names.
14858         * lib/basename.c: Likewise.
14859         * lib/canonicalize.c, canonicalize.h: Likewise.
14860         * lib/dirname.c, dirname.h: Likewise.
14861         * lib/euidaccess.c: Likewise.
14862         * lib/exclude.c: Likewise
14863         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
14864         * lib/fsusage.c, fsuage.h: Likewise.
14865         * lib/fts.c, fts_.h: Likewise.
14866         * lib/getcwd.c: Likewise.
14867         * lib/getloadavg.c: Likewise.
14868         * lib/mkstemp.c: Likewise.
14869         * lib/mountlist.c, mountlist.h: Likewise.
14870         * lib/openat.c, openat.h: Likewise.
14871         * lib/readlink-stub.c: Likewise.
14872         * lib/readutmp.c, readutmp.h: Likewise.
14873         * lib/rename.c: Likewise.
14874         * lib/rmdir.c: Likewise.
14875         * lib/same.c: Likewise.
14876         * lib/savedir.c: Likewise.
14877         * lib/stripslash.c: Likewise.
14878         * lib/tempname.c: Likewise.
14879         * lib/xreadlink.c: Likewise.
14880         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
14881         All uses changed.
14882         * lib/exclude.h: Likewise.
14883
14884         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
14885         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14886         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
14887         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14888         * lib/pathmax.h: Include <limits.h> unconditionally, since other
14889         files have been getting away with it for years (MORE/BSD 4.3
14890         is extinct now).
14891         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
14892         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14893
14894         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
14895         Define to 256, not 255, as per modern POSIX.
14896
14897 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14898
14899         Sync from coreutils.
14900         Use "file name" when talking about file names, instead of "filename"
14901         or "path", as per the GNU coding standards.
14902         * MODULES.html.sh: mkdir-p renamed from makepath.
14903         filenamecat renamed from path-concat.
14904         * modules/filenamecat: Renamed from modules/path-concat.
14905         (Files): filenamecat.h and filenamecat.c renamed from
14906         path-concat.h and path-concat.c.
14907         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
14908         (Include): filenamecat.h, not path-concat.h.
14909         * modules/mkdir-p: Renamed from modules/makepath.
14910         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
14911         makepath.c.
14912         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
14913         (Include): mkdir-p.h, not makepath.h.
14914
14915 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         Sync from coreutils.
14918         * m4/mkdir-p.m4: Renamed from makepath.m4.
14919         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
14920         Rename files from makepath.c to mkdir-p.c, and from
14921         makepath.h to mkdir-p.h.
14922         * m4/filenamecat.m4: Renamed from path-concat.m4.
14923         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
14924         Rename files from path-concat.c to filenamecat.c,
14925         and from path-concat.h to filenamecat.h.
14926         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
14927         "file name" in local variables or comments.
14928         * m4/rename.m4: Likewise.
14929
14930 2005-06-01  Bruno Haible  <bruno@clisp.org>
14931
14932         * modules/csharpexec: New file.
14933         * MODULES.html.sh (C#): New section.
14934
14935 2005-06-01  Bruno Haible  <bruno@clisp.org>
14936
14937         * m4/csharp.m4: New file, from GNU gettext.
14938         * m4/csharpexec.m4: New file, from GNU gettext.
14939
14940 2005-06-01  Bruno Haible  <bruno@clisp.org>
14941
14942         * lib/csharpexec.h: New file, from GNU gettext.
14943         * lib/csharpexec.c: New file, from GNU gettext.
14944         * lib/csharpexec.sh.in: New file, from GNU gettext.
14945
14946 2005-05-31  Derek Price  <derek@ximbiot.com>
14947             Paul Eggert  <eggert@cs.ucla.edu>
14948
14949         Sync from cvs.
14950         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
14951
14952 2005-05-31  Derek Price  <derek@ximbiot.com>
14953             Paul Eggert  <eggert@cs.ucla.edu>
14954
14955         Sync from cvs.
14956         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
14957
14958 2005-05-29  Derek Price  <derek@ximbiot.com>
14959
14960         * config/srclist.txt (glob_.h, glob.c): Add these files.
14961
14962 2005-05-29  Derek Price  <derek@ximbiot.com>
14963
14964         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
14965         * modules/glob: New file.
14966         * modules/getlogin_r: Add link to POSIX spec in description.
14967
14968 2005-05-29  Derek Price  <derek@ximbiot.com>
14969             Paul Eggert  <eggert@cs.ucla.edu>
14970
14971         * m4/glob.m4: New file.
14972
14973 2005-05-29  Derek Price  <derek@ximbiot.com>
14974             Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         * lib/glob_.h, lib/glob.c: New files.
14977
14978 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         * modules/fts (Files): Remove m4/inttypes-pri.m4.
14981         * modules/fts-lgpl (Depends-on): Remove gettext.
14982
14983 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14984
14985         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
14986         and don't require gt_INTTYPES_PRI.
14987
14988 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14989
14990         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
14991
14992         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
14993         the configuration hassle isn't worth it.
14994         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
14995         (LONGEST_MODIFIER, PRIuMAX): Remove.
14996
14997 2005-05-27  Bruno Haible  <bruno@clisp.org>
14998
14999         * lib/getlogin_r.h: Remove second include of <stddef.h>.
15000
15001 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
15002
15003         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
15004         _POSIX_PTHREAD_SEMANTICS for Solaris.
15005
15006 2005-05-25  Derek Price  <derek@ximbiot.com>
15007
15008         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
15009
15010 2005-05-25  Derek Price  <derek@ximbiot.com>
15011             Paul Eggert  <eggert@cs.ucla.edu>
15012
15013         * modules/getlogin_r, m4/getlogin_r.m4: New files.
15014         * lib/getlogin_r.c, getlogin_r.h: New files.
15015
15016 2005-05-25  Bruno Haible  <bruno@clisp.org>
15017             Derek Price  <derek@ximbiot.com>
15018
15019         * lib/getlogin_r.h: Simplify API documentation.
15020
15021 2005-05-23  Derek Price  <derek@ximbiot.com>
15022
15023         * modules/minmax (Files): Add m4/minmax.m4.
15024         (configure.ac): Add gl_MINMAX.
15025
15026 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
15029         so that unistd-safer.h (GPL'ed code) need not be included.
15030
15031 2005-05-22  Bruno Haible  <bruno@clisp.org>
15032
15033         * m4/minmax.m4: New file.
15034         Based on a patch by Derek Price <derek@ximbiot.com>.
15035
15036 2005-05-22  Bruno Haible  <bruno@clisp.org>
15037
15038         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
15039         (INT64_MIN): Fix definition.
15040         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15041
15042         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
15043         NEED_SIGNED_INT_TYPES.
15044
15045         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
15046         HAVE_SYSTEM_INTTYPES.
15047
15048 2005-05-22  Bruno Haible  <bruno@clisp.org>
15049
15050         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
15051         Also include <sys/param.h> if it defines MIN, MAX.
15052         Based on a patch by Derek Price <derek@ximbiot.com>.
15053
15054 2005-05-21  Jim Meyering  <jim@meyering.net>
15055
15056         * modules/fts (Files): Add m4/inttypes-pri.m4.
15057         (Depends-on): Add lstat and remove gettext.  Alphabetize.
15058
15059 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15060
15061         New fts module.
15062         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
15063         (setup_dir, free_dir): New functions.
15064         (enter_dir, leave_dir): Define trivial
15065         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
15066         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
15067         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
15068         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
15069         Move to fts-cycle.c.
15070         (fts_open): Use setup_dir.
15071         (fts_close): Use free_dir.
15072         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
15073         This adds a label and some gotos, but the alternatives were messier.
15074         Check for memory allocation failure when entering a dir.
15075         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
15076         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
15077         (FTS): New member fts_cycle, that is a union that contains the
15078         old active_dir_ht and cycle_state.  All uses changed to mention
15079         fts_cycle.ht and fts_cycle.state.
15080         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
15081         fts.c, with the following changes:
15082         (setup_dir, free_dir): New functions.
15083         (enter_dir): Now returns bool.  Return true if successful, false
15084         if memory exhausted.  All callers changed.
15085         Do not bother partly cleaning up on
15086         memory allocation failure; that is free_dir's job.
15087         However, free ad if hash_insert fails, to avoid memory leak.
15088         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
15089         fts->fts_options to see which union member to use.
15090
15091 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15092
15093         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
15094         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
15095
15096 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15097
15098         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
15099
15100 2005-05-20  Jim Meyering  <jim@meyering.net>
15101
15102         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
15103         Now a macro, to pacify GCC.
15104
15105 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
15106
15107         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
15108         of -1.
15109
15110 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
15111
15112         * lib/chown.c (rpl_chown): Return -1 on failure.
15113
15114 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
15115
15116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
15117         Don't check for stddef.h.
15118         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
15119         don't use its results.
15120         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
15121         since we include them unconditionally.  Don't require
15122         AM_STDBOOL_H, since stdbool is a prerequisite.
15123         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
15124         since we assume C89 or better.
15125         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
15126         as we don't use their results.
15127         Don't check for fchdir, memmove, memset, strrchr, as we use
15128         them unconditionally.
15129         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
15130         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
15131
15132 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
15133
15134         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
15135         Include <stddef.h> unconditionally, since we assume C89 now.
15136         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
15137         * lib/fts.c: Include fts_.h first, to check interface.
15138         Do not include intprops.h; no longer needed.
15139         Include cycle-check.h and hash.h, since fts_.h no longer does.
15140         Remove unnecessary casts of closedir to void.
15141         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
15142         decide whether to decrement nlinks.
15143         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
15144         (FTS): Use struct hash_table * instead of Hash_table, so that
15145         we no longer need to include hash.h here.
15146
15147 2005-05-18  Jim Meyering  <jim@meyering.net>
15148
15149         * modules/dirfd (License): Change to LGPL.  Most of the code
15150         is already in the public domain.
15151
15152 2005-05-18  Jim Meyering  <jim@meyering.net>
15153
15154         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
15155         Reported by Yoann Vandoorselaere.
15156
15157 2005-05-17  Jim Meyering  <jim@meyering.net>
15158
15159         * m4/fts.m4: New file, from coreutils.
15160
15161 2005-05-17  Jim Meyering  <jim@meyering.net>
15162
15163         * lib/fts.c, lib/fts_.h: New files, from coreutils.
15164
15165 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15166
15167         Sync from coreutils.
15168         * m4/unlinkdir.m4: New file.
15169
15170 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15171
15172         Sync from coreutils.
15173         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
15174         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
15175         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
15176         White space changes only.
15177         * lib/makepath.c (make_path): Port to hosts where leading "//" is
15178         special.
15179         * lib/yesno.c: Include getline.h, not ctype.h.
15180         (yesno): Don't remove leading white space; POSIX doesn't allow it.
15181         Use getline to remove arbitrary restriction on response length.
15182
15183 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15184
15185         * config/srclist-update: Spell out "Street" in FSF postal
15186         mail address; this is the style the FSF seems to prefer.
15187
15188         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
15189         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
15190         this updates FSF postal mail address.
15191
15192         Sync from coreutils.
15193         * modules/unlinkdir: New file.
15194         * modules/yesno (Depends-on): Add getline.
15195         * MODULES.html.sh (File system functions): Add unlinkdir.
15196
15197 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15198
15199         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
15200         lib/strsep.h:
15201         Change the initial comment to refer to GPL, not LGPL.
15202         gnulib-tool will change it to LGPL as needed.
15203
15204         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
15205         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
15206         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
15207         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
15208         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
15209         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
15210         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
15211         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
15212         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
15213         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
15214         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
15215         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
15216         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
15217         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
15218         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
15219         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
15220         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
15221         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
15222         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
15223         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
15224         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
15225         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
15226         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
15227         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
15228         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
15229         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
15230         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
15231         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
15232         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
15233         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
15234         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
15235         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
15236         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
15237         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
15238         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
15239         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
15240         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
15241         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
15242         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
15243         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
15244         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
15245         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
15246         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
15247         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
15248         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
15249         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
15250         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
15251         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
15252         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
15253         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
15254         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15255         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
15256         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
15257         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
15258         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
15259         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
15260         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
15261         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
15262         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
15263         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
15264         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
15265         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
15266         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
15267         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
15268         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
15269         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
15270         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
15271         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
15272         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
15273         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
15274         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
15275         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
15276         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
15277         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
15278         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
15279         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
15280         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
15281         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
15282         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
15283         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
15284         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
15285         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
15286         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
15287         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
15288         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
15289         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
15290         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
15291         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
15292         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
15293         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
15294         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
15295         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
15296         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
15297         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
15298         lib/yesno.c, lib/yesno.h:
15299         Update FSF postal mail address.
15300
15301 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15302
15303         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
15304         tests/test-memmem.c, tests/test-stpncpy.c:
15305         Update FSF postal mail address.
15306
15307 2005-05-13  Bruno Haible  <bruno@clisp.org>
15308
15309         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
15310         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
15311         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
15312         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
15313         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
15314         Add support for 64-bit integers in the MSVC compiler.
15315
15316 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15317
15318         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
15319
15320 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
15321
15322         * gnulib-tool (func_import): Sort and uniquify recommended includes.
15323
15324 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15325
15326         * doc/getdate.texi (General date syntax): Don't say that date
15327         date --iso-8601=ns generates acceptable dates; it doesn't yet.
15328         Problem reported by Nic Ferrier.
15329
15330 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15331
15332         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
15333         specified in ai_socktype. Fix invalid ai_protocol
15334         check. ai_protocol is usually set to 0 or depending on
15335         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
15336         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
15337         ai_socktype / ai_protocol in the returned addrinfo structure.
15338
15339 2005-05-10  Simon Josefsson  <jas@extundo.com>
15340
15341         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
15342         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15343
15344 2005-05-10  Karl Berry  <karl@gnu.org>
15345
15346         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
15347         (from http://www.gnu.org/licenses).
15348         * doc/COPYING.LIB: also rename to COPYING.LESSER.
15349         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
15350         fdl.texi suffices.
15351
15352 2005-05-10  Karl Berry  <karl@gnu.org>
15353
15354         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
15355         (COPYING.DOC): remove.
15356
15357         * config/srclist-update: new FSF address.
15358
15359 2005-05-10  Derek Price  <derek@ximbiot.com>
15360
15361         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
15362         possible.
15363
15364 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15365             Bruno Haible  <bruno@clisp.org>
15366
15367         * modules/inet_ntop: New file.
15368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15369         inet_ntop.
15370
15371 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15372             Bruno Haible  <bruno@clisp.org>
15373
15374         * m4/inet_ntop.m4: New file.
15375
15376 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15377             Bruno Haible  <bruno@clisp.org>
15378
15379         * lib/inet_ntop.h: New file.
15380         * lib/inet_ntop.c: New file, from glibc with modifications.
15381
15382 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         * modules/time_r (License): Change to LGPL.
15385         * modules/extensions (License): Change to LGPL.  Actually,
15386         the license is more permissive than that, but currently gnulib-tool
15387         doesn't know how to handle more-permissive licenses.
15388
15389         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
15390         Problem reported by Dave Love.
15391
15392 2005-05-08  Jim Meyering  <jim@meyering.net>
15393
15394         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
15395         blank.
15396
15397 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15398
15399         * modules/argmatch (Depends-on): Add stdbool.
15400         * modules/backupfile (Depends-on): Likewise.
15401         * modules/chdir-long (Depends-on): Likewise.
15402         * modules/closeout (Depends-on): Likewise.
15403         * modules/cycle-check (Depends-on): Likewise.
15404         * modules/dirname (Depends-on): Likewise.
15405         * modules/fnmatch (Depends-on): Likewise.
15406         * modules/fsusage (Depends-on): Likewise.
15407         * modules/fwriteerror (Depends-on): Likewise.
15408         * modules/getcwd (Depends-on): Likewise.
15409         * modules/getloadavg (Depends-on): Likewise.
15410         * modules/hard-locale (Depends-on): Likewise.
15411         * modules/makepath (Depends-on): Likewise.
15412         * modules/mountlist (Depends-on): Likewise.
15413         * modules/nanosleep (Depends-on): Likewise.
15414         * modules/posixtm (Depends-on): Likewise.
15415         * modules/quotearg (Depends-on): Likewise.
15416         * modules/readtokens (Depends-on): Likewise.
15417         * modules/readtokens0 (Depends-on): Likewise.
15418         * modules/readutmp (Depends-on): Likewise.
15419         * modules/save-cwd (Depends-on): Likewise.
15420         * modules/strftime (Depends-on): Likewise.
15421         * modules/userspec (Depends-on): Likewise.
15422         * modules/utimecmp (Depends-on): Likewise.
15423         * modules/xgetcwd (Depends-on): Likewise.
15424         * modules/xnanosleep (Depends-on): Likewise.
15425         * modules/xstrtod (Depends-on): Likewise.
15426         * modules/yesno (Depends-on): Likewise.
15427
15428 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15429
15430         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
15431         needless checks.
15432
15433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15434
15435         Merge from coreutils.  Among other things,
15436         add bulletproofing for cases where stdin, stdout, or stderr are closed.
15437         * lib/fd-safer.c: New file.
15438         * lib/fcntl-safer.h, open-safer.c: Remove.
15439         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
15440         * lib/dup-safer.c: Include unistd-safer.h first.
15441         Don't include errno.h.
15442         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
15443         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
15444         * lib/file-type.c: Rely on file-type.h change.
15445         * lib/getloadavg.c: Include unistd-safer.h.
15446         (getloadavg): Use safer open.
15447         * lib/getusershell.c: Include "stdio-safer.h".
15448         (getusershell): Use safer fopen.
15449         * lib/long-options.c (long_options): Use NULL rather than 0.
15450         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
15451         'free'.
15452         * lib/modechange.c: Likewise.
15453         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
15454         (MODE_DONE): New constant.
15455         (struct mode_change): Remove 'next' member.
15456         (make_node_op_equals): New function; like the old one of the
15457         same name, except it allocates an array.
15458         (mode_compile, mode_create_from_ref): Use it.
15459         (mode_compile): Allocate result as an array, not a linked list.
15460         Parse octal string ourself, so that we catch mistakes like "+0".
15461         (mode_adjust): Arg is an array, not a linked list.
15462         * lib/modechange.c: Include stat-macros.h, xalloc.h.
15463         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
15464         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
15465         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
15466         Remove.  This is now stat-macros.h's job.
15467         (talloc): Remove.  All callers replaced by xalloc, so that
15468         our invokers don't have to worry about reporting memory failures.
15469         (make_node_op_equals): Remove.
15470         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15471         New constants.
15472         (struct mode_change): Moved here from modechange.h.
15473         (mode_append_entry): Remove.
15474         (mode_compile): Remove MASKED_OPS arg, since it encouraged
15475         apps to have incorrect behavior.  Use simpler algorithm for head
15476         and tail.  Don't futz with umask; that's now the job of mode_adjust.
15477         Detect more invalid usages rather than having somewhat-random behavior.
15478         Don't insert an "a=" action, as that leads to incorrect behavior.
15479         (mode_compile, mode_create_from_ref): Return NULL on error instead
15480         of an enum, since now there's only one way to have an error.  All
15481         callers changed.
15482         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
15483         at the correct time.  Simplify calculation of "+u" and its ilk.
15484         Don't mishandle "+X".
15485         (mode_free): Remove "register" and localize decls.
15486         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15487         (struct mode_change): Move to modechange.c; callers don't
15488         need to see this stuff.
15489         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
15490         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
15491         (mode_change, mode_adjust): Reflect the new signatures noted above.
15492         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
15493         that might redefine system include files.
15494         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
15495         (my_usleep): Use NULL rather than (void *) 0.
15496         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
15497         Use siginterrupt to specify that system calls should be interrupted.
15498         (rpl_nanosleep): Move initialization of suspended closer to call of
15499         my_usleep.
15500         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
15501         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
15502         (desirable_utmp_entry): New function.
15503         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
15504         using x2nrealloc, to simplify logic.
15505         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
15506         size calculation.  Do not assume utmp file is a regular file.
15507         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
15508         (READ_UTMP_CHECK_PIDS): New constant.
15509         * lib/save-cwd.c: Include unistd-safer.h.
15510         (save_cwd): Use fd_safer.
15511         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
15512         [!_LIBC] Include "stat-macros.h" instead.
15513         * lib/unistd-safer.h (fd_safer): New decl.
15514
15515 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15516
15517         * modules/getloadavg (Depends-on): Add unistd-safer.
15518         * modules/getusershell (Depends-on): Add stdio-safer.
15519         * modules/lstat (Depends-on): Remove xalloc.
15520         * modules/mkstemp (Depends-on): Add stat-macros.
15521         * modules/modechange (Depends-on): Remove xstrtol.
15522         Add stat-macros, xalloc.
15523         * modules/save-cwd (Depends-on): Add unistd-safer.
15524         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
15525         * modules/unistd-safer (Files): Add lib/fd-safer.c
15526         (Makefile.am): Remove lib_SOURCES.
15527
15528         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
15529         Remove fcntl-safer; unistd-safer supersedes it.
15530
15531 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15532
15533         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
15534         AC_HEADER_STAT.
15535         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
15536         (gl_PREREQ_CHOWN): Remove.
15537         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
15538         it.  Don't require AC_HEADER_STAT.
15539         (gl_PREREQ_LSTAT): Remove.
15540         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
15541         Don't require AC_HEADER_STAT.
15542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
15543         (gl_PREREQ_RMDIR): Remove.
15544         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
15545         mention stat-macros.h or AC_HEADER_STAT, since we'll make
15546         the stat-macros module a prerequisite.
15547         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
15548         * m4/filemode.m4 (gl_FILEMODE): Likewise.
15549         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
15550         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
15551         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
15552         variable names.
15553         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
15554         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
15555         variable prefixes.
15556         * m4/fcntl-safer.m4: Remove.
15557         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
15558         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
15559         Invoke gl_PREREQ_FD_SAFER.
15560         (gl_PREREQ_FD_SAFER): New macro.
15561         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
15562         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
15563         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
15564         Remove duplicate call to AC_LIBOBJ(readutmp).
15565         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
15566
15567         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
15568         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
15569
15570 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15571
15572         * MODULES.html.sh (Misc): Add byteswap.
15573
15574 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
15575
15576         * modules/getcwd (Depends-on): Add extensions.
15577         * modules/openat (Depends-on): Likewise.
15578
15579 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
15580
15581         * modules/byteswap: New file.
15582
15583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
15584
15585         * m4/byteswap.m4: New file.
15586
15587 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
15588
15589         * lib/byteswap_.h: New file.
15590
15591 2005-04-25  Karl Berry  <karl@gnu.org>
15592
15593         * m4/gettext.m4: Update from GNU gettext 0.14.4.
15594
15595 2005-04-25  Albert Chin  <china@thewrittenword.com>
15596
15597         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
15598         Toolkit C bug.
15599
15600 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
15601
15602         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
15603         (func_ln_if_changed) Remove forcibly for no error message
15604         in case file does not exist.
15605
15606 2005-04-19  Simon Josefsson  <jas@extundo.com>
15607
15608         * gnulib-tool (Options): Make --symlink mean --symbolic.
15609
15610 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
15611
15612         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
15613
15614 2005-04-16  Simon Josefsson  <jas@extundo.com>
15615
15616         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
15617
15618 2005-04-15  Simon Josefsson  <jas@extundo.com>
15619
15620         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
15621
15622 2005-04-15  Simon Josefsson  <jas@extundo.com>
15623
15624         * gnulib-tool: Rename --symlink to --symbolic.
15625
15626 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
15627
15628         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
15629         symbolic links to files instead of copying/moving.  Add --aux-dir,
15630         specifying directory relative --dir where auxiliary build tools
15631         are placed.
15632
15633 2005-04-14  Bruno Haible  <bruno@clisp.org>
15634
15635         * modules/allocsa (License): Change to LGPL.
15636         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
15637
15638 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15639
15640         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
15641         that "UTC +1 second" continues to work.  Problem reported
15642         by Dmitry V. Levin.
15643         (relunit_snumber): New rule.
15644         (relunit): Use it.
15645
15646 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15647
15648         * lib/getdate.y (universal_time_zone_table): New constant.
15649         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
15650         universal_time_zone_table.
15651         (lookup_zone): Prefer universal_time_zone_table to
15652         local_time_zone_table, so that "GMT" time stamps are allowed in
15653         London during the summer.  Problem reported by Ian Abbott.
15654
15655 2005-04-12  Jim Meyering  <jim@meyering.net>
15656
15657         * lib/human.c (humblock): Set *options even when returning due to
15658         xstrtoumax conversion failure.  Thanks to a used-uninitialized
15659         warning from gcc-4.
15660
15661 2005-04-09  Jim Meyering  <jim@meyering.net>
15662
15663         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
15664         -Wuninitialized: initialize tm0.tm_year.
15665
15666 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15667
15668         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
15669         count, since there's no maximum.  All uses changed.
15670         Add member dsts_seen.
15671         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
15672         not being INT_MAX.
15673         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
15674         Use pc_rels_seen to decide whther a date is absolute.
15675
15676         * lib/getdate.y (number): Don't overwrite year.
15677         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
15678         check.
15679
15680 2005-04-02  Simon Josefsson  <jas@extundo.com>
15681
15682         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
15683         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
15684
15685 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
15686
15687         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
15688         where no absolute path name can be longer than PATH_MAX.
15689
15690 2005-03-27  Jim Meyering  <jim@meyering.net>
15691
15692         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
15693
15694 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15695
15696         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
15697         "one's complement" -> "ones' complement" in comment, as per Knuth.
15698         "value of type" -> "type or expression" in comment.
15699         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
15700
15701 2005-03-26  Jim Meyering  <jim@meyering.net>
15702
15703         Comment nits.
15704         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
15705         Correct typos: s/or/of/.
15706
15707 2005-03-26  Jim Meyering  <jim@meyering.net>
15708
15709         * modules/check-include-files: Move to ../ and rename to...
15710         * check-module: ...this.
15711
15712 2005-03-25  Jim Meyering  <jim@meyering.net>
15713
15714         * modules/xvasprintf (Files): Add xalloc.h.
15715
15716 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * modules/gettext (Files): config/config.rpath ->
15719         build-aux/config.rpath
15720         * modules/iconv (Files): Likewise.
15721         Problem reported by Oskar Liljeblad.
15722
15723 2005-03-23  Jim Meyering  <jim@meyering.net>
15724
15725         * modules/check-include-files: New script to check for
15726         missing dependencies, multiple includes, etc.
15727
15728         * modules/c-strtold (Depends-on): Add xalloc.
15729         * modules/c-strtod (Depends-on): Add xalloc.
15730         * modules/hash (Depends-on): Add xalloc.
15731         (Files): Remove lib/xalloc.h.
15732
15733         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
15734         * modules/userspec (Files): Add lib/inttostr.h.
15735
15736 2005-03-23  Jim Meyering  <jim@meyering.net>
15737
15738         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
15739
15740 2005-03-22  Jim Meyering  <jim@meyering.net>
15741
15742         * modules/stat-macros: New module.
15743         * modules/canonicalize, modules/euidaccess, modules/file-type,
15744         * modules/filemode, modules/lchown, modules/makepath,
15745         * modules/rmdir, modules/stat: Depend on new stat-macros module
15746         rather than listing lib/stat-macros.h manually.
15747         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
15748
15749 2005-03-22  Jim Meyering  <jim@meyering.net>
15750
15751         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
15752
15753 2005-03-22  Bruno Haible  <bruno@clisp.org>
15754
15755         * config/srclist.txt: Replace target directory 'config' with
15756         'build-aux'.
15757         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
15758         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
15759         ../build-aux/.
15760
15761 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * modules/chdir-long (Depends-on): Add mempcpy.
15764
15765         * modules/acl, modules/backupfile, modules/c-strtod,
15766         modules/c-strtold, modules/canon-host, modules/canonicalize,
15767         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
15768         modules/exclude, modules/exitfail, modules/file-type,
15769         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
15770         modules/getdate, modules/getline, modules/getpagesize,
15771         modules/getpass, modules/getugroups, modules/group-member,
15772         modules/hard-locale, modules/hash, modules/human, modules/idcache,
15773         modules/inttostr, modules/long-options, modules/makepath,
15774         modules/md5, modules/memcasecmp, modules/memcoll,
15775         modules/modechange, modules/mountlist, modules/path-concat,
15776         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
15777         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
15778         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
15779         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
15780         modules/strftime, modules/strndup, modules/strverscmp,
15781         modules/timespec, modules/unlocked-io, modules/userspec,
15782         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
15783         modules/yesno:
15784         Remove lib_SOURCES line from Makefile.am section, as this is now
15785         done automatically by the corresponding Autoconf macro.
15786
15787 2005-03-21  Jim Meyering  <jim@meyering.net>
15788
15789         Changes imported from coreutils.
15790
15791         * lib/cycle-check.c: Don't include xalloc.h.
15792
15793         * lib/path-concat.c: Don't include assert.h.
15794         (path_concat): Remove assertion that would have triggered
15795         for ABASE starting with more than one slash.
15796         Reported by Andreas Schwab.
15797
15798         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
15799         properly when ABASE is an absolute file name.
15800         Correct the description of this function.
15801         Include <assert.h>.
15802         Add an assertion and a test driver.
15803         This fixes a bug introduced on 2004-07-02.
15804         Andreas Schwab reported the resulting failure of cp --parents:
15805         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
15806
15807 2005-03-21  Jim Meyering  <jim@meyering.net>
15808
15809         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
15810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
15811
15812 2005-03-21  Jim Meyering  <jim@meyering.net>
15813         and  Paul Eggert  <eggert@cs.ucla.edu>
15814
15815         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
15816         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
15817         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
15818         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
15819         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
15820         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
15821         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
15822         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
15823         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
15824         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
15825         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
15826         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
15827         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
15828         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
15829         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
15830         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
15831         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
15832         for these modules.
15833
15834 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
15835
15836         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
15837         (which shouldn't happen), generate nothing instead of returning 0
15838         immediately, so that nstrftime (NULL, ...) doesn't return 0.
15839
15840 2005-03-16  Bruno Haible  <bruno@clisp.org>
15841
15842         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
15843         HAVE_LONGLONG_64BIT.
15844
15845 2005-03-16  Bruno Haible  <bruno@clisp.org>
15846
15847         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
15848         HAVE_LONGLONG_64BIT.
15849
15850 2005-03-16  Bruno Haible  <bruno@clisp.org>
15851
15852         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
15853         HAVE_LONGLONG_64BIT.
15854
15855 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
15856
15857         * lib/strftime.c (my_strftime): Prepend space to format so that we can
15858         reliably distinguish strftime failure from empty output on POSIX
15859         hosts.
15860
15861 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
15862
15863         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
15864         (iconv_string): Don't guess a size-zero buffer, as that might cause
15865         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
15866         result would be 'too large', where 'too large' is (heuristically)
15867         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
15868         overflow concerns.  This will prevent some unwanted malloc failures
15869         when the inputs are very large.
15870
15871 2005-03-15  Karl Berry  <karl@gnu.org>
15872
15873         * config/srclist.txt (config.rpath): from gettext.
15874         * config/config.rpath: update.
15875
15876 2005-03-15  Bruno Haible  <bruno@clisp.org>
15877
15878         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
15879         to 'negate'.
15880
15881         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
15882         variable.
15883
15884         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
15885         results.
15886
15887 2005-03-14  Simon Josefsson  <jas@extundo.com>
15888
15889         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
15890         <fx@gnu.org>.
15891
15892 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
15893
15894         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
15895         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
15896         intprops.h.
15897         * lib/strtol.c: Likewise.
15898
15899 2005-03-14  Jim Meyering  <jim@meyering.net>
15900
15901         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
15902         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
15903         to be nonzero so that we (and caller) can detect the difference
15904         between a valid zero-length expansion and an error return, even
15905         when the underlying strftime fails before writing anything into
15906         that location.
15907
15908 2005-03-14  Bruno Haible  <bruno@clisp.org>
15909
15910         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
15911         Update from GNU gettext 0.14.3.
15912
15913 2005-03-10  Jim Meyering  <jim@meyering.net>
15914
15915         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
15916
15917 2005-03-10  Jim Meyering  <jim@meyering.net>
15918
15919         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
15920         so that this module works on systems without fchdir.
15921
15922 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
15923
15924         Factor int-properties macros into a single file, except for
15925         glibc-related files.
15926         * lib/intprops.h: New file.
15927         * lib/getloadavg.c: Include it instead of limits.h.
15928         (INT_STRLEN_BOUND): Remove.
15929         * lib/human.c: Include intprops.h.
15930         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
15931         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
15932         302/1000.
15933         * lib/inttostr.h: Include intprops.h instead of limits.h.
15934         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
15935         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
15936         for consistency with intprops.h.
15937         (time_t_is_integer, twos_complement_arithmetic): Use them.
15938         * lib/sig2str.h: Include <signal.h>, intprops.h.
15939         (INT_STRLEN_BOUND): Remove.
15940         * lib/strftime.c (TYPE_SIGNED): Remove.
15941         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
15942         * lib/strtol.c: Adjust comments to match intprops.h.
15943         * lib/userspec.c: Include intprops.h.
15944         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
15945         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
15946         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
15947         instead of rolling our own expressions.
15948         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
15949
15950         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
15951         instead of int.
15952         (my_strftime): Do not mishandle years close to INT_MAX, by doing
15953         the right thing even if adding 1900 would overflow.  Similarly
15954         for tm_mon + 1 and tm_yday + 1.
15955         Make %Y always equivalent to %C%y, and similarly for %G and %g.
15956         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
15957         (DO_SIGNED_NUMBER): New macro.
15958         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
15959
15960 2005-03-07  Bruno Haible  <bruno@clisp.org>
15961
15962         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
15963
15964 2005-03-07  Bruno Haible  <bruno@clisp.org>
15965
15966         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
15967
15968 2005-03-04  Derek R. Price  <derek@ximbiot.com>
15969
15970         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
15971         (func_import): Only replace files via --import when they have actually
15972         changed.
15973
15974 2005-03-03  Derek R. Price  <derek@ximbiot.com>
15975
15976         * m4/mmap-anon.m4: New file.
15977         * m4/pagealign_alloc.m4: New file.
15978
15979 2005-03-03  Derek R. Price  <derek@ximbiot.com>
15980             Bruno Haible  <bruno@clisp.org>
15981
15982         * modules/pagealign_alloc: New file.
15983         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
15984
15985 2005-03-03  Derek R. Price  <derek@ximbiot.com>
15986             Bruno Haible  <bruno@clisp.org>
15987
15988         * lib/pagealign_alloc.h: New file.
15989         * lib/pagealign_alloc.c: New file.
15990
15991 2005-03-03  Bruno Haible  <bruno@clisp.org>
15992
15993         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
15994         Use an all-permissive copyright notice, recommended by RMS.
15995
15996 2005-03-02  Bruno Haible  <bruno@clisp.org>
15997
15998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
15999         of AIX, the replacement has to be done only after <string.h> is
16000         included, therefore not in config.h. stpncpy.h does the replacement,
16001         and stpncpy.c uses it.
16002
16003 2005-03-02  Bruno Haible  <bruno@clisp.org>
16004
16005         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
16006         stpncpy.c uses it.
16007
16008 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16009
16010         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
16011         The workaround isn't strictly needed for POSIX conformance, and
16012         it's too much of a pain to configure and maintain.  We'll ask
16013         people to fix their kernels instead.
16014         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
16015         (NANOSLEEP_BUG_WORKAROUND): Remove.
16016         (xnanosleep): Remove the workaround.
16017
16018 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
16021         Reported by Derek Price.
16022         (Include): Add "timespec.h".
16023
16024         * modules/xnanosleep (Depends-on): Remove gethrxtime.
16025
16026 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16027
16028         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
16029         to detect nanosleep bug.
16030
16031 2005-03-01  Bruno Haible  <bruno@clisp.org>
16032
16033         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
16034
16035 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         * modules/gethrxtime: New file.
16038         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
16039         (Depends-on): Add gethrxtime.
16040         (configure.ac): Add gl_XNANOSLEEP.
16041         (Makefile.am): Remove lib_SOURCES line.
16042
16043 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
16046         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
16047
16048 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16049
16050         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
16051         * lib/timespec.h (gettime): Return void, since it always
16052         succeeds now.  All uses changed.
16053         * lib/gettime.c (gettime) Likewise.
16054         [HAVE_NANOTIME]: Prefer nanotime.
16055         Assume gettimeofday succeeds, as POSIX requires.
16056         Assime time () succeeds, since other code already does.
16057         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
16058         (timespec_subtract): Remove.
16059         (NANOSLEEP_BUG_WORKAROUND): New constant.
16060         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
16061         things considerably.  Use it only on GNU/Linux hosts, since the
16062         workaround shouldn't be needed elsewhere.
16063
16064 2005-02-24  Bruno Haible  <bruno@clisp.org>
16065
16066         * modules/gettext (Files): Add m4/glibc2.m4.
16067
16068 2005-02-24  Bruno Haible  <bruno@clisp.org>
16069
16070         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
16071         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
16072         * m4/progtest.m4:
16073         Update from GNU gettext 0.14.2.
16074         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
16075
16076 2005-02-24  Bruno Haible  <bruno@clisp.org>
16077
16078         * lib/localcharset.c: Update from GNU gettext 0.14.2.
16079         * lib/config.charset: Update from GNU gettext 0.14.2.
16080
16081 2005-02-24  Bruno Haible  <bruno@clisp.org>
16082
16083         * lib/gettext.h: Update from GNU gettext 0.14.2.
16084
16085 2005-02-23  Simon Josefsson  <jas@extundo.com>
16086
16087         * m4/iconvme.m4: New file.
16088
16089 2005-02-23  Jim Meyering  <jim@meyering.net>
16090
16091         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
16092         change.
16093         Thanks to Bruno Haible for catching it.
16094
16095 2005-02-22  Simon Josefsson  <jas@extundo.com>
16096
16097         * modules/iconvme: New file.
16098
16099         * MODULES.html.sh: Add iconvme.
16100
16101 2005-02-22  Simon Josefsson  <jas@extundo.com>
16102
16103         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
16104
16105 2005-02-22  Simon Josefsson  <jas@extundo.com>
16106
16107         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
16108
16109 2005-02-22  Jim Meyering  <jim@meyering.net>
16110
16111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
16112         s/ifndef/ifdef/.
16113
16114 2005-02-20  Neil Conway  <neilc@samurai.com>
16115
16116         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
16117         returned by OSX/Darwin if the specified buffer is not large
16118         enough for the hostname.
16119
16120 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16121
16122         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
16123         pass it to _help, otherwise the latter coredumps trying to
16124         dereference state.root_argp.
16125
16126 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16127
16128         * modules/chdir-long (Depends-on): Add memrchr.
16129         * modules/memrchr (Files): Add lib/memrchr.h.
16130         (Include): "memrchr.h".
16131
16132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16133
16134         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
16135
16136 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16137
16138         * lib/memrchr.h: New file.
16139         * lib/chdir-long.c: Include it.
16140         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
16141         Don't bother including stddef.h.
16142
16143 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
16144
16145         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
16146         inclusion.
16147         Include <sys/types.h>, for dev_t.
16148         (ME_DUMMY, ME_REMOTE): Move from here....
16149         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
16150         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
16151         Dmitry V. Levin.
16152         Include mountlist.h first, to test the interface.
16153
16154 2005-01-29  Bruno Haible  <bruno@clisp.org>
16155
16156         * lib/progname.c (program_name): Initialize.
16157         Needed when linking statically on MacOS X.
16158
16159 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16160
16161         Sync from coreutils.
16162         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
16163         (Depends-on): Add c-strtod.
16164         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
16165
16166 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16167
16168         Sync from coreutils.
16169         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
16170
16171         Remove files that are specific to coreutils.
16172         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
16173
16174 2005-01-28  Bruno Haible  <bruno@clisp.org>
16175
16176         * modules/javacomp: New file.
16177         * MODULES.html.sh (Java): Add javacomp.
16178
16179 2005-01-28  Bruno Haible  <bruno@clisp.org>
16180
16181         * m4/javacomp.m4: New file, from GNU gettext.
16182
16183 2005-01-28  Bruno Haible  <bruno@clisp.org>
16184
16185         * lib/javacomp.sh.in: New file, from GNU gettext.
16186         * lib/javacomp.h: New file, from GNU gettext.
16187         * lib/javacomp.c: New file, from GNU gettext.
16188
16189 2005-01-26  Simon Josefsson  <jas@extundo.com>
16190
16191         * lib/gai_strerror.c: Use GPL in header.
16192
16193 2005-01-26  Bruno Haible  <bruno@clisp.org>
16194
16195         * modules/javaexec: New file.
16196         * MODULES.html.sh (Java): Add javaexec.
16197
16198 2005-01-26  Bruno Haible  <bruno@clisp.org>
16199
16200         * m4/javaexec.m4: New file, from GNU gettext.
16201
16202 2005-01-26  Bruno Haible  <bruno@clisp.org>
16203
16204         * lib/javaexec.sh.in: New file, from GNU gettext.
16205         * lib/javaexec.h: New file, from GNU gettext.
16206         * lib/javaexec.c: New file, from GNU gettext.
16207
16208 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16209
16210         * modules/lchown (Depends-on): Remove lchown.h
16211
16212 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16213
16214         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
16215         must be defined if the header file was not found, in order
16216         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
16217
16218 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16219
16220         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
16221         initializers for struct pentry_state.
16222         (__argp_error): Check return value of __asprintf
16223         (__argp_failure): Translate error message
16224
16225         * lib/argp-parse.c: Removed braces around the expansion of N_()
16226
16227 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16228
16229         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
16230         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
16231         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
16232         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
16233         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
16234         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
16235         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
16236         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
16237         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
16238         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
16239         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
16240         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
16241         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
16242         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
16243         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
16244         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
16245         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
16246         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
16247         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
16248         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
16249         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
16250         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
16251         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
16252         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
16253         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
16254         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
16255         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
16256         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
16257         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
16258         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
16259         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
16260         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
16261         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
16262         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
16263         xstrtol.m4, xstrtoumax.m4, yesno.m4:
16264         Use an all-permissive copyright notice, recommended by RMS.
16265
16266 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16267
16268         * modules/chdir-long (Depends-on): Remove mempcpy.
16269
16270 2005-01-21  Jim Meyering  <jim@meyering.net>
16271
16272         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
16273         same value as for Solaris 9.
16274
16275         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
16276         component length.  This included changing the parameter to be
16277         of type `char *' rather than `char const *'.
16278         * lib/chdir-long.h (chdir_long): Update prototype.
16279
16280         * lib/openat.c (fdopendir, fstatat): New functions.
16281         * lib/openat.h: Include headers required for use of DIR and struct
16282         stat.
16283         [AT_SYMLINK_NOFOLLOW]: Define.
16284         (fdopendir, fstatat): Add prototypes.
16285
16286 2005-01-21  Bruno Haible  <bruno@clisp.org>
16287
16288         * modules/classpath: New file.
16289         * MODULES.html.sh (Java): Add classpath.
16290
16291 2005-01-21  Bruno Haible  <bruno@clisp.org>
16292
16293         * lib/classpath.h: New file, from GNU gettext.
16294         * lib/classpath.c: New file, from GNU gettext.
16295
16296 2005-01-20  Simon Josefsson  <jas@extundo.com>
16297
16298         * modules/version-etc-fsf: New file.
16299
16300 2005-01-20  Simon Josefsson  <jas@extundo.com>
16301
16302         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
16303         * lib/version-etc.c: Remove version_etc_copyright.
16304         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
16305         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
16306
16307 2005-01-20  Simon Josefsson  <jas@extundo.com>
16308
16309         * lib/base64.h (isbase64): Add.
16310
16311         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
16312         using a unsigned prototype, don't inline.
16313         (base64_decode): Use it.
16314
16315 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16316
16317         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
16318         it.
16319
16320 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16321
16322         * lib/save-cwd.c (save_cwd): Remove code to support the case
16323         where fchdir is missing or flaky.
16324
16325 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
16328
16329 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16330
16331         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
16332         AC_LIBSOURCES now does this.
16333         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
16334         with new ullong_max module.
16335
16336 2005-01-19  Bruno Haible  <bruno@clisp.org>
16337
16338         * modules/sh-quote: New file.
16339         * MODULES.html.sh (Executing programs): Add sh-quote.
16340
16341 2005-01-19  Bruno Haible  <bruno@clisp.org>
16342
16343         * lib/sh-quote.h: New file, from GNU gettext.
16344         * lib/sh-quote.c: New file, from GNU gettext.
16345
16346 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16347
16348         Merge from coreutils.
16349         * m4/ullong_max.m4: New file.
16350         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
16351         (gl_MACROS): Assume localeconv exists.
16352
16353 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16354
16355         Merge changes from coreutils, as described below in several
16356         changelogs dated today.
16357
16358         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
16359         (O_DIRECTORY): Remove; not needed here, since "." must be
16360         a directory.  All uses removed.
16361         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
16362         universal on Suns, and we also need to test for IRIX.
16363         Revamp code to use 'if' rather than '#if'.
16364         Avoid unnecessary comparison of cwd->desc to 0.
16365
16366         * lib/utimens.c (futimens): Robustify the previous patch, by checking
16367         for known valid error numbers rather than observed invalid ones.
16368
16369 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16370
16371         * modules/ullong_max: New file.
16372
16373         * modules/chdir-long, modules/openat: New files.
16374         * modules/save-cwd (Depends-on): Depend on chdir-long.
16375         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
16376
16377 2005-01-18  Jim Meyering  <jim@meyering.net>
16378
16379         Merge from coreutils.
16380         * m4/chdir-long.m4, m4/openat.m4: New files.
16381         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
16382         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
16383         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
16384         is sane and DOES follow symlinks.  Besides, testing 20 different
16385         systems found no broken chown implementations.
16386         Prompted by a change in rsync's copy of this macro.
16387         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
16388
16389         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
16390
16391         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
16392         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
16393         NULL-means-set-to-current-time semantics.
16394         Remove temporary file immediately, rather than waiting
16395         for configure's at-exit trap code to do it.
16396
16397 2005-01-18  Jim Meyering  <jim@meyering.net>
16398
16399         * lib/version-etc.c (version_etc_copyright): Update copyright date.
16400
16401         * lib/utimens.c (futimens): Account for the fact that futimes
16402         can also fail with errno == ENOSYS or errno == ENOENT.
16403         Patch from Dmitry V. Levin.
16404
16405         Change the name of the robust chdir function from chdir to chdir_long.
16406         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
16407         (restore_cwd): Use chdir_long, not chdir.
16408         * lib/chdir-long.c: Renamed from chdir.c.
16409         * lib/chdir-long.h: Renamed from chdir.h.
16410         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
16411         Hurd.
16412
16413 2005-01-18  Bruno Haible  <bruno@clisp.org>
16414
16415         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
16416         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
16417         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
16418         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
16419         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
16420         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
16421         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
16422         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
16423         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
16424         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
16425         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
16426         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
16427         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
16428         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
16429         Use an all-permissive copyright notice, recommended by RMS.
16430
16431 2005-01-18  Bob Proulx  <bob@proulx.com>
16432
16433         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
16434         simplify offsetof() macro construct to avoid compile failure with
16435         native HP-UX 11.0 ANSI C compiler.
16436
16437 2005-01-17  Bruno Haible  <bruno@clisp.org>
16438
16439         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
16440         redundant because stpncpy.m4 takes care of it.
16441
16442 2005-01-17  Bruno Haible  <bruno@clisp.org>
16443
16444         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
16445
16446 2005-01-17  Bruno Haible  <bruno@clisp.org>
16447
16448         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
16449         used.
16450
16451 2005-01-17  Bruno Haible  <bruno@clisp.org>
16452
16453         * lib/fwriteerror.h (fwriteerror): Change specification to include
16454         fclose.
16455         * lib/fwriteerror.c: Include <stdbool.h>.
16456         (fwriteerror): At the end, close the file stream. Record whether
16457         stdout was already closed.
16458
16459 2005-01-17  Bruno Haible  <bruno@clisp.org>
16460
16461         * lib/execute.c (environ): Declare if needed.
16462         * lib/pipe.c (environ): Likewise.
16463         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
16464
16465 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16466
16467         * modules/argp: Depend on vsnprintf
16468
16469 2005-01-10  Jim Meyering  <jim@meyering.net>
16470
16471         * modules/closeout (Depends-on): Add atexit.
16472
16473 2005-01-06  Bruno Haible  <bruno@clisp.org>
16474
16475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
16476
16477 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16478
16479         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
16480         definitions to be after all include files, to avoid collisions.
16481         Problem reported by Bob Proulx.
16482
16483 2005-01-04  Jim Meyering  <jim@meyering.net>
16484
16485         Changes imported from coreutils.
16486         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
16487         as the mkstemp template, use a temporary directory and an
16488         8.3-friendly template to avoid trouble on systems like DJGPP.
16489         Reported by Juan M. Guerrero via Stepan Kasal.
16490         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
16491         close. Remove the temporary directory right away, rather than waiting
16492         for configure's at-exit trap code to do it.
16493         Suggestion from Stepan Kasal.
16494
16495 2005-01-01  Simon Josefsson  <jas@extundo.com>
16496
16497         * gnulib-tool: Print #include directives when --import'ing.
16498
16499 2004-12-28  Simon Josefsson  <jas@extundo.com>
16500
16501         * tests/test-base64.c: Include required header files.  Remove
16502         unused variables.
16503
16504 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16505
16506         * modules/error (Depends-on): Remove gettext.
16507
16508 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16509
16510         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
16511         not needed.  This removes a dependency on the gettext module.
16512         [defined _LIBC]: Do not include <libintl.h>; not needed.
16513
16514 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
16515
16516         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
16517         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
16518
16519 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
16520
16521         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
16522         HAVE_DECL_STRTOLD.
16523
16524 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16525
16526         * modules/getdate (Depends-on): Remove alloca-opt.
16527
16528 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16529
16530         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
16531
16532 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16533
16534         * lib/argp-parse.c: Include <stddef.h>.
16535         (alignof, alignto): New macros.
16536         (parser_init): Don't assume that void * is aligned sufficiently
16537         for struct option.
16538
16539         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
16540         need to extend the stack.
16541         (YYINITDEPTH): New macro, so that the initial stack isn't overly
16542         large.
16543
16544 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16545
16546         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
16547
16548 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
16551         (2004-10-24) change.  Apparently this was a false alarm.
16552
16553         * modules/getdate: Depend on alloca-opt, not alloca.
16554
16555 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16556
16557         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
16558         Remove now-obsolete comment about AIX.
16559         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
16560         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
16561         (YYMAXDEPTH): New macro.
16562
16563 2004-12-18  Simon Josefsson  <jas@extundo.com>
16564
16565         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
16566
16567 2004-12-18  Bruno Haible  <bruno@clisp.org>
16568
16569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
16570
16571 2004-12-18  Bruno Haible  <bruno@clisp.org>
16572
16573         * lib/fatal-signal.c (fatal_signals): Make non-const.
16574         (init_fatal_signals): New function.
16575         (uninstall_handlers, install_handlers): Ignore signals that were set to
16576         SIG_IGN.
16577         (at_fatal_signal): Call init_fatal_signals.
16578         (init_fatal_signal_set): Likewise. Ignore signals that were set to
16579         SIG_IGN.
16580         Reported by Paul Eggert.
16581
16582 2004-12-18  Bruno Haible  <bruno@clisp.org>
16583
16584         * doc/alloca.texi: New file.
16585         * doc/alloca-opt.texi: New file.
16586
16587 2004-12-17  Jim Meyering  <jim@meyering.net>
16588
16589         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
16590         Otherwise, install-sh could exit with improper exit status when
16591         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
16592
16593 2004-12-16  Simon Josefsson  <jas@extundo.com>
16594
16595         * tests/test-base64.c: Add license.
16596
16597 2004-12-15  Stepan Kasal  <address@hidden>
16598
16599         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
16600
16601 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16602
16603         * modules/getcwd (Files): Add m4/d-ino.m4.
16604         Suggested by Mark D. Baushke.
16605
16606 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
16607
16608         * lib/getdate.y (textint): New member "negative".
16609         (time_zone_hhmm): New function.
16610         Expect 14 shift-reduce conflicts, not 13.
16611         (o_colon_minutes): New rule.
16612         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
16613         (yylex): Set the "negative" member of signed numbers.
16614
16615 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
16616
16617         * doc/getdate.texi (Time of day items, Time zone items):
16618         Describe new formats +00:00, UTC+00:00.
16619
16620 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16621
16622         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
16623         spurious "-l"s.  Problem reported by Stepan Kasal.
16624
16625 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
16626
16627         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
16628         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
16629
16630 2004-12-04  Simon Josefsson  <jas@extundo.com>
16631
16632         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
16633         Vandoorselaere <yoann@prelude-ids.org>.
16634
16635 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
16636
16637         Changes imported from coreutils.
16638         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
16639         exist.
16640         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
16641
16642 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
16643
16644         Changes imported from coreutils.
16645         * lib/hard-locale.c: Assume <locale.h> exists.
16646         Include "strdup.h".
16647         (GLIBC_VERSION): New macro.
16648         (hard_locale): Assume setlocale exists.
16649         Rewrite to avoid #ifdef.
16650         Use strdup rather than malloc + strcpy.
16651         * lib/human.c: Assume <locale.h> exists.
16652         (human_readable): Assume localeconv exists.
16653
16654 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
16655
16656         * modules/hard-locale (Depends-on): Add strdup.
16657
16658 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
16659
16660         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
16661         convert T2, not T.  (Imported from libc.)
16662
16663 2004-11-30  Simon Josefsson  <jas@extundo.com>
16664
16665         * modules/restrict (License): Change to LGPL.
16666
16667 2004-11-30  Simon Josefsson  <jas@extundo.com>
16668
16669         * m4/restrict.m4: Add copyright and copying conditions.
16670
16671 2004-11-30  Simon Josefsson  <jas@extundo.com>
16672
16673         * m4/base64.m4: New file.
16674
16675 2004-11-30  Simon Josefsson  <jas@extundo.com>
16676
16677         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
16678         base64.
16679
16680         * tests/test-base64.c: New file.
16681
16682         * modules/base64: New file.
16683
16684 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16685
16686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16687         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
16688
16689         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
16690
16691 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16692
16693         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
16694         (__getcwd.c): Don't restore errno; glibc doesn't.
16695         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
16696         first, falling back to our code only if its results look suspicious.
16697         Ensure that the resulting buffer is only as large as necessary.
16698
16699         * lib/readutmp.c: Include readutmp.h first.
16700         Include <errno.h>, since readutmp.h no longer does that.
16701         * lib/readutmp.h: Don't include <errno.h>,
16702         <sys/param.h>, <time.h>; not needed to establish interface.
16703         (errno): Remove decl.
16704         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
16705         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
16706         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
16707
16708 2004-11-28  Simon Josefsson  <jas@extundo.com>
16709
16710         * lib/base64.h, base64.c: New file.
16711
16712 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
16715
16716 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
16717
16718         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
16719         (Depends-on): Remove pathmax, same.  Add mempcpy.
16720         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
16721         (Makefile.am): Append getcwd.h to lib_SOURCES.
16722         (Include): Add getcwd.h.
16723         (Maintainer): Change from Jim Meyering to "all, glibc",
16724         since getdate now uses intended-for-glibc code.
16725         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
16726         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
16727
16728 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
16731         HP's ANSI C compiler.
16732         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
16733         Declaring int functions causes warnings on some modern systems and
16734         shouldn't be needed to compile on ancient ones.
16735         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
16736         defined.
16737
16738         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
16739         with the following changes.
16740         (__set_errno): Parenthesize properly.
16741         Include <stdbool.h>.
16742         (MIN, MAX, MATCHING_INO): New macros.
16743         (__getcwd): Define with prototype, not K&R form.
16744         Use heuristics to allocate default buffer on stack if possible.
16745         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
16746         behavior, and to avoid the PATH_MAX limit when computing
16747         ../../../../...
16748         Use MATCHING_INO to compare inode number to file.
16749         Check for arithmetic overflow in size calculations.
16750         Fix bug in reallocation of dot array that caused getcwd to fail
16751         on directories nested deeper than 75.
16752         Be more careful about saving errno on error.
16753         Do not use realloc; use only free+malloc, as this is a bit
16754         more flexible and avoids a needless copy operation.
16755         Do not inspect st_dev and st_ino for symbolic links; POSIX
16756         doesn't specify the latter.
16757         Check for closedir errors.
16758         Avoid needless casts.
16759         Use "#ifdef weak_alias" around weak_alias, to be like other
16760         glibc code.
16761         The following changes to getcwd.c have effect only when used in
16762         gnulib; they have no effect inside glibc proper.
16763         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
16764         as alloca isn't used.
16765         (alloca, __alloca): Likewise.
16766         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
16767         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16768         unconditionally, as gnulib assumes C89 or better.
16769         Do not include <sys/param.h>.
16770         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
16771         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
16772         better.
16773         (NULL) [!defined NULL]: Remove; we assume C89 or better.
16774         Include <dirent.h> in a way that is compatible with modern Autoconf.
16775         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
16776         New macros, if not already defined.
16777         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
16778         Use "_LIBC", not "defined _LIBC", for consistency.
16779         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
16780         a mempcpy module.
16781         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
16782         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
16783         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
16784         credit only to Jim Meyering and adjust the copyright dates.
16785         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
16786         <stdlib.h>, <unistd.h>, "pathmax.h".
16787         Instead, include "xgetcwd.h" (first) and "getcwd.h".
16788         (INITIAL_BUFFER_SIZE): Remove.
16789         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
16790
16791 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16792
16793         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
16794         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
16795         Use the _ONCE methods, for efficiency.
16796         Check for fcntl.h.  In test program, include <errno.h>
16797         and <fcntl.h> if available.  Remove old K&R cruft from
16798         test program.  Check for common errors in GNU/Linux,
16799         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
16800         don't do AC_LIBOBJ, as that's getcwd.m4's job.
16801         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
16802         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
16803         name accordingly.
16804         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
16805         accommodate new getcwd.c.
16806         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
16807         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
16808         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
16809         that's all we need now.
16810
16811 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16812
16813         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
16814         argp-parse.c depends on getopt internals, that means we should
16815         always use our getopt, to be on the safe side.
16816         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
16817         order not to spoil the result of an eventual previous invocation
16818         of gl_GETOPT_SUBSTITUTE.
16819
16820 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16821
16822         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
16823         redefinition warnings. To avoid them, include the defines
16824         in `#if !defined __need_getopt ... #endif'. The only place
16825         where __getopt_argv_const is used is in definitions
16826         of getopt_long and getopt_long_only below, which are as well
16827         protected by `#ifndef __need_getopt'.
16828         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
16829         __need_getopt after including <stdio.h> and <unistd.h> These
16830         headers might have defined it.
16831
16832 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16833
16834         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
16835
16836 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16837
16838         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
16839         (futimens): New function, which uses futimes if available.
16840         (futimens, utimens): Support timespec==NULL, with same semantics
16841         as utime and utimens.
16842         * lib/utimens.h (futimens): New decl.
16843
16844 2004-11-23  Jim Meyering  <jim@meyering.net>
16845
16846         * lib/getopt_.h: Remove trailing blanks.
16847
16848 2004-11-23  Jim Meyering  <jim@meyering.net>
16849
16850         * lib/__fpending.c: Add comment.
16851
16852 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16853
16854         * modules/canonicalize (Depends-on): Add xreadlink.
16855         Problem reported by James Youngman.
16856
16857 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
16860         New macros.
16861         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
16862         optopt): Use them instead of invoking ## directly; otherwise, the
16863         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
16864
16865 2004-11-19  Bruno Haible  <bruno@clisp.org>
16866
16867         * lib/strtok_r.c: Move comments from here...
16868         * lib/strtok_r.h: ... to here.
16869
16870 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16871
16872         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
16873         implementations that mishandle size_t overflow.
16874
16875 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16876
16877         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
16878         might fail.  Problem reported by Yoann Vandoorselaere.
16879         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
16880         implementations that mishandle size_t overflow.
16881
16882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16883
16884         * modules/canon-host (Depends-on): Add strdup.
16885
16886 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
16889
16890 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16891
16892         * lib/canon-host.c: Include "strdup.h".
16893         (canon_host): Use getaddrinfo if available, so that IPv6 works.
16894         Use strdup instead of malloc/strcpy to duplicate strings.
16895
16896         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
16897         (human_space_before_unit): New constant.
16898         * lib/human.c (human_readable): Support it.
16899
16900         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
16901         (xgetcwd): Set errno correctly when failing.
16902         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
16903         the failure is actually due to a PATH_MAX problem.
16904
16905         Further getopt changes to make it more likely that glibc will
16906         buy the changes back.
16907         * lib/getopt.c (POSIXLY_CORRECT): New constant.
16908         (getopt): Use it, so to preserve glibc semantic
16909         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
16910         when compiling for libc.
16911         * lib/getopt_.h (__getopt_argv_const): Bring it back.
16912         (getopt_long, getopt_long_only): Use it.
16913
16914         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
16915         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
16916         (getopt): Argv is now char * const *, as per standard.
16917         (_getopt_internal_r, _getopt_internal): Argv is now char **,
16918         not char *__getopt_argv_const *.
16919         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
16920         _getopt_long_only_r): Likewise.
16921         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
16922         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
16923         _getopt_long_r, _getopt_long_only_r): Likewise.
16924         * lib/getopt_.h (__getopt_argv_const): Remove.
16925         (getopt): Argv is now char * const *, as per standard.
16926
16927         * lib/getdate.y (tORDINAL): New token.
16928         (day, relunit): Allow it for relative times.
16929         (relative_time_table): Use tORDINAL for ordinals.
16930
16931 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16932
16933         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
16934         Document that "second" isn't allowed as an ordinal number.
16935
16936 2004-11-16  Jim Meyering  <jim@meyering.net>
16937
16938         * modules/closeout (Depends-on): Add fpending.
16939
16940 2004-11-15  Jim Meyering  <jim@meyering.net>
16941
16942         * lib/closeout.c: Include "__fpending.h" once again.
16943         Include <stdbool.h>.
16944         (close_stdout): Don't fail just because stdout was closed initially,
16945         since some programs don't write to stdout in the normal course of
16946         operation (other than --version and --help), and we don't want this
16947         function to make e.g. `touch file >&-' fail.
16948         But do fail if it was closed and someone has tried to write to it.
16949         E.g., `printf foo >&-' must fail.
16950
16951 2004-11-13  Jim Meyering  <jim@meyering.net>
16952
16953         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
16954
16955 2004-11-12  Simon Josefsson  <jas@extundo.com>
16956
16957         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
16958         small doc fix is still pending.
16959
16960 2004-11-11  Simon Josefsson  <jas@extundo.com>
16961
16962         * modules/strtok_r: New file.
16963
16964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16965         strtok_r.
16966
16967 2004-11-11  Simon Josefsson  <jas@extundo.com>
16968
16969         * m4/strtok_r.m4: New file.
16970
16971         * m4/getopt.m4: Replace opterr.
16972
16973 2004-11-11  Simon Josefsson  <jas@extundo.com>
16974
16975         * lib/strtok_r.h, strtok_r.c: New file.
16976
16977 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
16980         of replacing opterr, getopt, etc.  This should handle the
16981         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
16982
16983 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16984
16985         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
16986         we can stop lying to compilers about the constness of argv when we
16987         are compiled outside glibc.
16988         (getopt, getopt_long, getopt_long_only): Use it.
16989         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
16990         _getopt_internal, getopt): Likewise.
16991         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
16992         _getopt_long_only_r): Likewise.
16993         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
16994         _getopt_long_r, _getopt_long_only_r): Likewise.
16995
16996         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
16997         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
16998         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
16999         the other external symbols.
17000         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
17001         declaration, since the above renaming now works around collisions.
17002
17003 2004-11-11  Jim Meyering  <jim@meyering.net>
17004
17005         * lib/linebreak.c: Remove trailing blanks.
17006         * lib/alloca_.h: Likewise.
17007         * lib/acosl.c: Likewise.
17008         * lib/euidaccess.c: Likewise.
17009         * lib/allocsa.h: Likewise.
17010
17011 2004-11-10  Simon Josefsson  <jas@extundo.com>
17012
17013         * m4/getaddrinfo.m4: New file.
17014
17015 2004-11-10  Simon Josefsson  <jas@extundo.com>
17016
17017         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
17018
17019 2004-11-10  Simon Josefsson  <jas@extundo.com>
17020
17021         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17022         getaddrinfo.
17023
17024         * modules/getaddrinfo: New file.
17025
17026 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17027
17028         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
17029
17030 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17031
17032         * lib/mktime.c (SHR): New macro, which is a portable
17033         substitute for >> that should work even on Crays.
17034         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
17035         Problem reported by Mark D. Baushke in
17036         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
17037         * lib/getdate.y (SHR): Likewise.
17038         (tm_diff): Use it.
17039         * lib/strftime.c (SHR): Likewise.
17040         (tm_diff): Use it.
17041         * lib/quotearg.c (struct quoting_options): Use unsigned int for
17042         quote_these_too, so that right shifts are well defined.  All uses
17043         changed.
17044
17045 2004-11-10  Jim Meyering  <jim@meyering.net>
17046
17047         Ensure that no close failure goes unreported.
17048         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
17049         return early when it seems there's nothing to flush.
17050         Don't include __fpending.h.
17051
17052 2004-11-10  Jim Meyering  <jim@meyering.net>
17053
17054         * modules/closeout (Depends-on): Remove fpending.
17055
17056 2004-11-10  Jim Meyering  <jim@meyering.net>
17057
17058         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
17059
17060 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17061
17062         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
17063         gl_FUNC_STRFTIME.
17064         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
17065         and AC_REQUIRE when possible, to avoid duplicate checks.
17066         Check for <wchar.h>.
17067
17068 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17069
17070         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
17071
17072 2004-11-09  Bruno Haible  <bruno@clisp.org>
17073
17074         * m4/sockpfaf.m4: New file.
17075
17076 2004-11-05  Bruno Haible  <bruno@clisp.org>
17077
17078         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
17079         Reported by Mark D. Baushke <mdb@cvshome.org>.
17080
17081 2004-11-04  Bruno Haible  <bruno@clisp.org>
17082
17083         2004-09-11  Bruno Haible  <bruno@clisp.org>
17084                 * allocsa.valgrind: New file.
17085         2004-02-06  Bruno Haible  <bruno@clisp.org>
17086                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
17087                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
17088                 Reported by Christopher Seip <chris.seip@hp.com>.
17089
17090 2004-11-04  Bruno Haible  <bruno@clisp.org>
17091
17092         * modules/allocsa (Files): Add lib/allocsa.valgrind.
17093         (Makefile.am): Distribute it.
17094
17095 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17096
17097         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
17098         with errno == ERANGE if the buffer is too small.
17099         Problem reported by Mark D. Baushke.
17100
17101 2004-11-03  Albert Chin  <china@thewrittenword.com>
17102             Paul Eggert  <eggert@cs.ucla.edu>
17103
17104         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
17105         equivalent, substitute $ac_type for equivalent type rather than
17106         blindly using uint32_t *always* which won't work if uint32_t is not
17107         available.  Define _UINT32_T to work around typedef of uint32_t if
17108         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
17109         2.5.1.
17110
17111 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17112
17113         * m4/jm-macros.m4: Sync from coreutils.
17114         (gl_MACROS): Check for mbrlen, for pathchk.
17115         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
17116
17117 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17118
17119         * lib/xreadlink.c (MAXSIZE): New macro.
17120         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
17121         size does not exceed MAXSIZE.  Avoid cast.
17122         As suggested by Mark D. Baushke in
17123         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
17124         if readlink fails with buffer size just under MAXSIZE, try again
17125         with MAXSIZE.
17126
17127 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17128
17129         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
17130
17131 2004-11-02  Derek R. Price  <derek@ximbiot.com>
17132         and  Paul Eggert  <eggert@cs.ucla.edu>
17133
17134         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
17135         (get_date): Overparenthesize to avoid GCC warning.
17136
17137 2004-11-02  Bruno Haible  <bruno@clisp.org>
17138
17139         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
17140         returns void.
17141
17142 2004-11-02  Bruno Haible  <bruno@clisp.org>
17143
17144         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
17145         function returns void.
17146
17147 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
17148
17149         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
17150         fflush_unlocked, flockfile, funlockfile, funlockfile,
17151         fputs_unlocked, putc_unlocked.
17152
17153 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
17154
17155         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17156         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
17157         already declared.
17158
17159 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17160
17161         * modules/getdate (Files): Add doc/getdate.texi.
17162         (Depends-on): Add setenv, xalloc.
17163
17164 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17165
17166         * lib/getdate.y: Add support for TZ="foo" within a date string.
17167         Fix some bugs near time_t boundaries.  Reject dates with
17168         out-of-range components, e.g., "Sept 31".
17169         Include <stdlib.h>, "setenv.h", "xalloc.h".
17170         (ISDIGIT_LOCALE): Remove; unused.
17171         Note that the TZ and time functions used here are not reentrant.
17172         (mktime_ok, get_tz): New functions.
17173         (TZBUFSIZE): New constant.
17174         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
17175         This requires that we sometimes generate our own TZ="XXX..." setting.
17176
17177 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17178
17179         * doc/getdate.texi: New file, from coreutils with modifications for
17180         the new TZ parsing.
17181
17182 2004-10-27  Derek R. Price  <derek@ximbiot.com>
17183
17184         * lib/mktime.c (not_equal_tm): Remove redundant check.
17185
17186 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17187
17188         * modules/regex (lib_SOURCES): Add regex.c.
17189         Reported by James Youngman in
17190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
17191
17192 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17193
17194         * lib/getdate.y: Use Bison 1.875 features, and some minor
17195         code cleanups.  This change does not affect semantics.
17196         Don't include <stdlib.h>; no longer needed.
17197         Don't include unlocked-io.h; only the "#if TEST" code uses
17198         stdio, and performance isn't crucial there.
17199         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
17200         Bison 1.875 features as described below.
17201         All uses of "PC." replaced by "pc->".
17202         (YYSTYPE): Add a forward declaration.
17203         (yylex, yyerror): Use full prototypes in forward decls.
17204         Use "%pure-parser" rather than obsolescent "%pure_parser".
17205         Use %parse-param and %lex-param instead of obsolescent
17206         YYPARSE_PARAM and YYLEX_PARAM.
17207         (meridian_table, month_and_day_table, time_units_table,
17208         relative_time_table, time_zone_table, military_table,
17209         lookup_zone, lookup_word, get_date):
17210         Use NULL instead of 0 where appropriate.
17211         (to_hour): Avoid abort (), to avoid a dependency on
17212         stdlib.h.
17213         (yyerror, yylex): Now accepts parser_control * arg.
17214         (main) [TEST]: Use '\0' rather than 0 for char.
17215
17216 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17217
17218         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
17219
17220 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17221
17222         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
17223         It's now the caller's responsibility to handle the case where
17224         !HAVE_GETPAGESIZE && !defined getpagesize.
17225
17226         * lib/mktime.c (leapyear): Arg is long int, not int.
17227
17228 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17229
17230         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
17231
17232 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
17233
17234         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
17235         missing.  Problem reported by James Youngman.
17236
17237 2004-10-16  Simon Josefsson  <jas@extundo.com>
17238
17239         * gnulib-tool: Fix comments.  Fix parse problem.
17240         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
17241
17242 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17243
17244         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
17245         implementation of getopt_long.  Problem reported by Alexander Taler in:
17246         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
17247
17248 2004-10-15  Bruno Haible  <bruno@clisp.org>
17249
17250         * gnulib-tool: Untabify. Initialize supplied_libname.
17251         (func_usage): More homogenous output.
17252         (func_modules_transitive_closure, func_modules_to_filelist,
17253         func_emit_lib_Makefile_am): New functions.
17254         (func_import): New function, extracted from big case statement. Use
17255         func_get_license, func_modules_transitive_closure,
17256         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
17257         opt_lgpl. Don't use test -a, as it's not portable.
17258         (func_create_testdir): Use func_modules_transitive_closure,
17259         func_modules_to_filelist, func_emit_lib_Makefile_am.
17260
17261 2004-10-15  Bruno Haible  <bruno@clisp.org>
17262
17263         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
17264
17265 2004-10-15  Bruno Haible  <bruno@clisp.org>
17266
17267         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
17268         the portions belonging to each module.
17269         Suggested by Derek Robert Price <derek@ximbiot.com>.
17270
17271 2004-10-12  Simon Josefsson  <jas@extundo.com>
17272
17273         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17274         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
17275         to real functions.
17276
17277 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17278
17279         * modules/vsnprintf: New file.
17280
17281 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17282
17283         * m4/vsnprintf.m4: New file.
17284
17285 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17286
17287         * lib/vsnprintf.h: New file.
17288         * lib/vsnprintf.c: New file.
17289
17290 2004-10-11  Bruno Haible  <bruno@clisp.org>
17291
17292         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
17293         vsnprintf.
17294
17295 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17296
17297         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
17298
17299 2004-10-07  Bruno Haible  <bruno@clisp.org>
17300
17301         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
17302         fits into the provided buffer.
17303
17304 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17305
17306         * lib/diacrit.c, diacrit.h: Add GPL notice.
17307
17308         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
17309         notice.
17310         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
17311         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
17312         This avoids a potential constant-folding bug.
17313
17314 2004-10-05  Bruno Haible  <bruno@clisp.org>
17315
17316         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
17317         for the declaration of strsep.
17318
17319 2004-10-05  Bruno Haible  <bruno@clisp.org>
17320
17321         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
17322
17323 2004-10-04  Simon Josefsson  <jas@extundo.com>
17324
17325         * modules/memmem: New file.
17326         * tests/test-memmem.c: New file.
17327         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
17328
17329 2004-10-04  Simon Josefsson  <jas@extundo.com>
17330
17331         * m4/memmem.m4: New file.
17332
17333 2004-10-04  Simon Josefsson  <jas@extundo.com>
17334
17335         * lib/memmem.h: New file.
17336         * lib/memmem.c: New file, taken from glibc.
17337
17338 2004-10-04  Simon Josefsson  <jas@extundo.com>
17339
17340         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
17341         '#ifdef USE_UNLOCKED_IO'.
17342
17343 2004-10-04  Simon Josefsson  <jas@extundo.com>
17344
17345         * config/srclist.txt: Add memmem from glibc.
17346
17347 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17348
17349         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
17350
17351         * modules/argmatch, modules/argp, modules/closeout, modules/error,
17352         modules/exclude, modules/getdate, modules/getline,
17353         modules/getndelim2, modules/getpass, modules/getpass-gnu,
17354         modules/getusershell, modules/linebuffer, modules/md5,
17355         modules/mountlist, modules/posixtm, modules/readtokens,
17356         modules/readutmp, modules/regex, modules/sha1,
17357         modules/version-etc, modules/yesno:
17358         Remove dependency on unlocked-io.
17359
17360 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17361
17362         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
17363
17364         * m4/unlocked-io.m4: Add copyright notice.
17365         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
17366
17367 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17368
17369         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
17370         * lib/xmalloc.c (xmemdup): Likewise.
17371         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
17372         XFREE): Remove these long-obsolescent macros.
17373         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
17374         * lib/xstrdup.c: Remove.
17375
17376         * lib/regex.c (re_comp): Cast gettext return value to char *,
17377         Problem reported by Martin Neitzel via Mark D. Baushke.
17378
17379 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17380
17381         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
17382         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
17383         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
17384         regex.c, sha1.c, version-etc.c, yesno.c:
17385         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
17386         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
17387         the includer's responsibility.
17388
17389         Sync from coreutils.
17390
17391         * lib/modechange.c (mode_compile): Don't decrement a pointer that
17392         points to the start of a string, as the C Standard says the
17393         resulting behavior is undefined.
17394
17395         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
17396         simple -> simple_backups, numbered_existing ->
17397         numbered_existing_backups, numbered -> numbered_backups
17398         to avoid shadowing problems.  All uses changed.
17399         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
17400         * lib/backupfile.c (check_extension, numbered_backup):
17401         Rename locals to avoid shadowing 'basename'.
17402         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
17403         once.
17404
17405         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
17406         * lib/.cvsignore: Add getopt.h.
17407
17408 2004-10-04  Bruno Haible  <bruno@clisp.org>
17409
17410         * modules/README: New file.
17411         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
17412         not a module.
17413
17414 2004-10-02  Jim Meyering  <jim@meyering.net>
17415
17416         * lib/dirfd.h, getpagesize.h: Add copyright notice.
17417
17418 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17419
17420         * modules/strsep: New file.
17421
17422 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17423
17424         * m4/strsep.m4: New file.
17425
17426 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17427
17428         * lib/strsep.h: New file.
17429         * lib/strsep.c: New file.
17430
17431 2004-10-01  Simon Josefsson  <jas@extundo.com>
17432
17433         * lib/snprintf.c (snprintf): Handle size==0.
17434
17435 2004-10-01  Simon Josefsson  <jas@extundo.com>
17436             Bruno Haible  <bruno@clisp.org>
17437
17438         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
17439         (snprintf): Declare 'args'.
17440
17441 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17442
17443         * lib/snprintf.c: Remove comments as to why each header is needed.
17444
17445 2004-10-01  Bruno Haible  <bruno@clisp.org>
17446
17447         * MODULES.html.sh: Add strsep.
17448
17449 2004-09-30  Simon Josefsson  <jas@extundo.com>
17450
17451         * modules/snprintf: New file.
17452
17453 2004-09-30  Simon Josefsson  <jas@extundo.com>
17454
17455         * m4/snprintf.m4: New file.
17456
17457 2004-09-30  Simon Josefsson  <jas@extundo.com>
17458
17459         * lib/snprintf.h, lib/snprintf.c: New files.
17460
17461 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
17462
17463         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
17464         (hol_entry_help): Never translate an empty string.
17465         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
17466         * lib/argp.h (OPTION_NO_TRANS): New option.
17467
17468 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17469
17470         * modules/argp (Maintainer): Replace Simon Josefsson
17471         by Sergey Poznyakoff.
17472
17473 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17474
17475         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
17476         changes merged back into glibc.
17477
17478 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17479
17480         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
17481
17482 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
17483
17484         * lib/xvasprintf.c: Include xalloc.h.
17485         (xvasprintf): Use xalloc_die, not xmalloc_die.
17486
17487 2004-09-29  Bruno Haible  <bruno@clisp.org>
17488
17489         * modules/alloca-opt: New file, derived from modules/alloca.
17490         * modules/allocsa: Depend on alloca-opt instead of alloca.
17491         * modules/setenv: Likewise.
17492         * modules/vasnprintf: Likewise.
17493         * MODULES.html.sh: Add alloca-opt.
17494
17495 2004-09-28  Simon Josefsson  <jas@extundo.com>
17496
17497         * gnulib-tool: New parameter --lgpl, to asseert that modules are
17498         LGPL, and to replace license template from GPL to LGPL.
17499
17500 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
17501
17502         * modules/dummy: Change license to LGPL.
17503
17504 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
17505
17506         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
17507
17508 2004-09-24  Simon Josefsson  <jas@extundo.com>
17509
17510         * modules/minmax (License): Change from GPL to LGPL.
17511
17512 2004-09-23  Simon Josefsson  <jas@extundo.com>
17513
17514         * gnulib-tool (--import): Typo.
17515
17516 2004-09-23  Simon Josefsson  <jas@extundo.com>
17517
17518         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
17519
17520 2004-09-22  Bruno Haible  <bruno@clisp.org>
17521
17522         * modules/*: Add 'License' field.
17523         * gnulib-tool: Accept --extract-license option.
17524         (func_get_license): New function.
17525
17526 2004-09-21  Bruno Haible  <bruno@clisp.org>
17527
17528         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
17529         Reported by Simon Josefsson.
17530
17531 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17532
17533         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
17534         gl_AC_TYPE_LONG_LONG.
17535
17536 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17537
17538         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
17539
17540 2004-09-18  Simon Josefsson  <jas@extundo.com>
17541         and  Paul Eggert  <eggert@cs.ucla.edu>
17542
17543         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
17544         calls with autoreconf.  Define GL_LIB.
17545
17546 2004-09-14  Karl Berry  <karl@gnu.org>
17547
17548         * config/srclist.txt: unsync setenv.c, sigh.
17549
17550 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
17553         Problem reported by Bruno Haible in:
17554         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
17555
17556 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17557
17558         * config/srclist.txt: Comment out argp-pvh.c.
17559
17560 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17561
17562         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
17563         in case some system header has #define'd it.  Problem reported by
17564         Soeren D. Schulze in
17565         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
17566
17567 2004-09-09  Karl Berry  <karl@gnu.org>
17568
17569         * regex.[ch]: delete from the root.  These were supposed to be
17570                 synced with emacs cvs, but this has not happened for about
17571                 a year, and anyway nothing else uses emacs regex.[ch].
17572                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
17573                 lib/regex[.ch] is untouched.
17574
17575 2004-09-09  Bruno Haible  <bruno@clisp.org>
17576
17577         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
17578
17579 2004-09-09  Bruno Haible  <bruno@clisp.org>
17580
17581         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
17582         modifications.
17583         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
17584
17585 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
17586
17587         * modules/xvasprintf: New file.
17588         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
17589
17590 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
17591
17592         * lib/xvasprintf.h: New file.
17593         * lib/xvasprintf.c: New file.
17594         * lib/xasprintf.c: New file.
17595
17596 2004-09-08  Bruno Haible  <bruno@clisp.org>
17597
17598         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
17599
17600 2004-09-08  Bruno Haible  <bruno@clisp.org>
17601
17602         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
17603         length is > INT_MAX.
17604         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
17605         more.
17606
17607 2004-09-08  Bruno Haible  <bruno@clisp.org>
17608
17609         * lib/stdint_.h: New file, taken from GNU clisp.
17610
17611 2004-09-08  Bruno Haible  <bruno@clisp.org>
17612             Oskar Liljeblad  <oskar@osk.mine.nu>
17613
17614         * modules/stdint: New file.
17615         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
17616
17617 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17618
17619         Import from coreutils.
17620         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
17621         strings on unbounded length.  alloca's performance benefits aren't
17622         that important here.
17623         (V_STRDUP): Remove.
17624         (parse_with_separator): New function, with most of the internals
17625         of the old parse_user_spec.  Allow user to omit both user and group,
17626         for compatibility with FreeBSD.
17627         Clone only the user name, not the entire spec.
17628         Do not set *uid, *gid unless entirely successful.
17629         Avoid memory leak in some failing cases.
17630         Fix regression for USER.GROUP reported by Dmitry V. Levin in
17631         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
17632         (parse_user_spec): Rewrite to use parse_with_separator.
17633
17634 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17635
17636         * modules/userspec: Don't depend on alloca.
17637
17638 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
17641
17642 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17643
17644         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
17645         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
17646         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
17647
17648 2004-08-16  Simon Josefsson  <jas@extundo.com>
17649
17650         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
17651         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
17652         Add --dry-run for --import.
17653         Let user provided command line parameters override configure.ac
17654         settings.
17655
17656 2004-08-12  Simon Josefsson  <jas@extundo.com>
17657
17658         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
17659         as discussed with Paul Eggert in threads rooted at
17660         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
17661         and
17662         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
17663         Before, the test was empty, and relied on ELIDE_CODE in source
17664         code.)
17665         (gl_PREREQ_GETOPT): New macro.
17666         (gl_GETOPT): Use them.
17667
17668 2004-08-12  Simon Josefsson  <jas@extundo.com>
17669
17670         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
17671         * lib/getopt_.h: Renamed from getopt.h.
17672
17673 2004-08-12  Simon Josefsson  <jas@extundo.com>
17674
17675         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
17676         Change default library name from libfoo to libgnu.
17677         Now, if you have a configure.ac that says:
17678                 gl_SOURCE_BASE(gl)
17679                 gl_M4_BASE(gl/m4)
17680                 gl_MODULES(error getopt etcetera)
17681                 gl_INIT
17682         you can import all you need by running:
17683                 ../gnulib/gnulib-tool --import
17684
17685         * modules/getopt (Files): Rename getopt.h to getopt_.h.
17686         (Makefile.am): Rewrite, use logic from argz.
17687         (Include): Use <getopt.h> instead of "getopt.h".
17688
17689 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17690
17691         * modules/argp (Files): Add m4/unlocked-io.m4.
17692         (Depends-on): Add extensions.
17693
17694 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17695
17696         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
17697         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
17698         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
17699         Check for program_invocation_name, program_invocation_short_name,
17700         flockfile, funlockfile, features.h, _getopt_long_only_r.
17701
17702 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17703
17704         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
17705         its complicated substitute.
17706         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
17707         and program_invocation_name.
17708         (__argp_basename) [!_LIBC]: Remove; the only use was
17709         replaced by its body.
17710         (__argp_short_program_name): Change condition from
17711         !defined __argp_short_program_name to
17712         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
17713         to match argp-namefrob.h.
17714         (__argp_failure): Don't assume strerror_r returns char *.
17715         * lib/argp-parse.c (N_): Define unconditionally.
17716         (argp_default_options): Fill out initializers with 0 to avoid
17717         gcc warnings.
17718
17719 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17720
17721         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
17722         getopt1.c.
17723
17724 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17725
17726         Merge from coreutils.
17727
17728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
17729
17730         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
17731         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
17732
17733 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17734
17735         Merge from coreutils.
17736
17737         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
17738         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
17739         for Reliant Unix 5.43.
17740
17741         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
17742         (union fooround): Use uintmax_t, not long int.
17743         The rest is a merge from libc:
17744         [defined _LIBC]: Include <shlib-compat.h>.
17745         (_obstack) [defined _LIBC]: Remove after 2.3.4.
17746
17747         * lib/settime.c (settime): Recode to avoid warning with
17748         Sun Forte C 6U2.
17749
17750         * lib/strverscmp.c: Convert to UTF-8.
17751
17752 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17753
17754         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17755         m4/uintmax_t.m4.
17756
17757 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17758
17759         * modules/xalloc-die: New file.
17760         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
17761
17762         * modules/md5 (Files): Add m4/uint32_t.m4.
17763         * modules/sha1: Renamed from modules/sha.
17764         (Files):
17765         Rename lib/sha.h to lib/sha1.h.
17766         Rename lib/sha.c to lib/sha1.c.
17767         Rename m4/sha.m4 to m4/sha1.m4.
17768         (lib_SOURCES): Likewise.
17769         (configure.ac): Rename gl_SHA to gl_SHA1.
17770         (Include): sha.h -> sha1.h.
17771
17772 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17773
17774         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
17775         * m4/sha1.m4: Renamed from sha.m4.
17776         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
17777
17778 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17779
17780         * lib/obstack.h (obstack_empty_p):
17781         Don't assume that chunk->contents is suitably aligned.
17782         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
17783         Likewise. Problem reported by Benno in
17784         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
17785
17786         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
17787         readable.  This could be improved further but it'd take some work.
17788
17789 2004-08-08  Simon Josefsson  <jas@extundo.com>
17790
17791         * modules/xgethostname (Depends-on): Remove exit and error (not
17792         used).
17793
17794         * modules/getpass-gnu: Add getpass.h.
17795         (Depends-on): Add stdbool.
17796         * modules/getpass: Add getpass.h.
17797
17798 2004-08-08  Simon Josefsson  <jas@extundo.com>
17799
17800         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
17801         Check getpass declaration.
17802
17803 2004-08-08  Simon Josefsson  <jas@extundo.com>
17804
17805         * lib/xgethostname.c: Don't include error.h (not used).
17806
17807         * lib/getpass.h: Add.
17808         * lib/getpass.c: Include getpass.h first.
17809
17810 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
17811
17812         * lib/xalloc-die.c: New file.
17813         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
17814         All uses removed.
17815         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
17816         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
17817         xalloc-die.c.
17818         (_, N_, xalloc_die): Move to xalloc-die.c.
17819         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
17820         so that we needn't mess with xalloc_msg_memory_exhausted.
17821
17822         * lib/sha1.h: Renamed from sha.h.
17823         (SHA1_H): Renamed from _SHA_H.
17824         (sha1_ctx): Renamed from sha_ctx.
17825         (sha1_init_ctx): Renamed from sha_init_ctx.
17826         (sha1_process_block): Renamed from sha_process_block.
17827         (sha1_process_bytes): Renamed from sha_process_bytes.
17828         (sha1_finish_ctx): Renamed from sha_finish_ctx.
17829         (sha1_read_ctx): Renamed from sha_read_ctx.
17830         (sha1_stream): Renamed from sha_stream.
17831         (sha1_buffer): Renamed from sha_buffer.
17832         * lib/sha1.c: Likewise; renamed from sha.c.
17833         Do not include <sys/types.h>.
17834         Include <stddef.h> rather than <stdlib.h>.
17835
17836 2004-08-08  Bruno Haible  <bruno@clisp.org>
17837
17838         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
17839         FILESYSTEM_PREFIX_LEN.
17840         * lib/progreloc.c: Likewise.
17841         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
17842
17843 2004-08-06  Simon Josefsson  <jas@extundo.com>
17844
17845         * modules/progname (Depends-on): Don't depend on stdbool.
17846
17847 2004-08-06  Simon Josefsson  <jas@extundo.com>
17848
17849         * modules/getsubopt: New file.
17850         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17851         getsubopt.
17852
17853 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17854
17855         More merge from coreutils.
17856
17857         * m4/utimens.m4, m4/utimecmp.m4: New files.
17858         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
17859         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
17860         prereq.m4, sha.m4: Import changes from coreutils.
17861
17862 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17863
17864         More merge from coreutils.
17865         * modules/raise, modules/readtokens0, modules/utimens:
17866         * modules/utimecmp, module/xnanosleep: New files.
17867         * modules/strftime: Add lib/strftime.h.
17868         Change include from <time.h> to "strftime.h".
17869         * modules/yesno: Add lib/yesno.h.
17870         * modules/backupfile: Remove lib/addext.c.
17871         * modules/euidaccess: Add stat-macros.h.
17872         * modules/canonicalize, modules/euidaccess,
17873         modules/filemode, modules/lchown, modules/makepath,
17874         modules/rmdir, modules/stat: Likewise.
17875
17876 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17877
17878         Merge from tar.
17879         * lib/argp-help.c (make_hol, hol_append): Don't assume that
17880         SIZE_MAX is a valid preprocessor constant.
17881         (__argp_basename): Change from "#ifndef _LIBC"
17882         to "#ifndef __argp_short_program_name", so that
17883         we don't compile these functions for tar.
17884
17885         More merges from coreutils.
17886         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
17887         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
17888         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
17889         * lib/addext.c: Remove; no longer needed.
17890         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
17891         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
17892         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
17893         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
17894         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
17895         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
17896         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
17897         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
17898         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
17899         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17900         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
17901         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
17902         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
17903         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
17904         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
17905         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
17906         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
17907         Import changes from coreutils.
17908
17909 2004-08-05  Simon Josefsson  <jas@extundo.com>
17910
17911         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
17912
17913 2004-08-05  Simon Josefsson  <jas@extundo.com>
17914
17915         * m4/getsubopt.m4: New file.
17916
17917 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
17918
17919         Merge from coreutils.
17920
17921         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
17922         * m4/getcwd-path-max.m4: New files.
17923
17924         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
17925         FILESYSTEM_PREFIX_LEN ->
17926         FILE_SYSTEM_PREFIX_LEN.
17927         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
17928         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
17929         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
17930         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
17931
17932         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
17933         prerequisite modules now handle the DOS stuff.
17934         Don't check for unistd.h.
17935
17936 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
17937
17938         Merge from coreutils.
17939
17940         * lib/.gdb-history: Remove; this doesn't belong here.
17941
17942         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
17943         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
17944         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
17945         * lib/getcwd.c: New files.
17946
17947         * lib/dirname.h: Include <stdbool.h>.
17948         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
17949         for consistency with POSIX terminology.  All uses changed.
17950         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
17951         (strip_trailing_slashes): Use bool for booleans.
17952         * lib/stripslash.c (strip_trailing_slashes): Likewise.
17953
17954         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
17955         sometimes returns a positive errno value even when it succeeds.
17956         (print_errno_message) [!LIBC]: Fall back on strerror if
17957         __strerror_r fails.
17958
17959         * lib/path-concat.c (mempcpy): Don't define if a system header defines
17960         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
17961         (longest_relative_suffix): New function.
17962         (path_concat): Use it.  Assume first argument is not NULL.
17963         Port to DOS.  Omit redundant separators.
17964         Report an error instead of returning NULL.
17965         Use mempcpy instead of memcpy.
17966         (xpath_concat): Remove: not declared or used.
17967
17968         * lib/same.h: Include <stdbool.h>
17969         (same_name): Return bool, not int.
17970         * lib/same.c (same_name): Likewise.
17971         (errno): Don't declare; we assume C89 or better now.
17972
17973         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
17974         if not already defined.
17975
17976         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
17977         * lib/dup-safer.c (errno): Likewise.
17978
17979 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
17980
17981         Merge from coreutils.
17982         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
17983         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
17984         * modules/path-concat: Don't depend on strdup.
17985
17986 2004-08-03  Simon Josefsson  <jas@extundo.com>
17987
17988         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
17989         * lib/progname.h: Don't include stdbool.h.
17990
17991 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
17994         * MODULES.html.sh (func_all_modules): Remove fatal.
17995
17996 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
17997
17998         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
17999
18000 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18001
18002         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
18003         working.
18004
18005 2004-08-02  Simon Josefsson  <jas@extundo.com>
18006
18007         * lib/getsubopt.h: New file, with comments from Bruno Haible.
18008         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
18009         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
18010
18011 2004-08-01  Simon Josefsson  <jas@extundo.com>
18012
18013         * lib/xgetdomainname.c: Include stdlib.h, for free().
18014
18015 2004-07-19  Bruno Haible  <bruno@clisp.org>
18016
18017         * MODULES.html.sh (func_all_modules): Add dummy.
18018
18019 2004-07-16  Simon Josefsson  <jas@extundo.com>
18020
18021         * modules/dummy: New file.
18022
18023 2004-07-16  Simon Josefsson  <jas@extundo.com>
18024
18025         * lib/dummy.c: New file.
18026
18027 2004-07-16  Bruno Haible  <bruno@clisp.org>
18028
18029         * lib/backupfile.h: Add extern "C" for C++.
18030         * lib/closeout.h: Likewise.
18031         * lib/copy-file.h: Likewise.
18032         * lib/findprog.h: Likewise.
18033         * lib/full-write.h: Likewise.
18034         * lib/pathname.h: Likewise.
18035         * lib/progname.h: Likewise.
18036         * lib/stpcpy.h: Likewise.
18037         * lib/stpncpy.h: Likewise.
18038         * lib/strcase.h: Likewise.
18039         * lib/strstr.h: Likewise.
18040         * lib/xalloc.h: Likewise.
18041
18042         * lib/mbswidth.h: Add extern "C" for C++.
18043         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
18044
18045 2004-07-13  Robert Millan  <robertmh@gnu.org>
18046
18047         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
18048
18049 2004-07-09  Simon Josefsson  <jas@extundo.com>
18050
18051         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
18052         failed without this.)
18053
18054 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18055
18056         * modules/chown (Files): Add lib/fchown-stub.c, since
18057         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
18058
18059 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18060
18061         * lib/fchown-stub.c: New file.
18062
18063 2004-06-24  Jim Meyering  <jim@meyering.net>
18064
18065         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
18066
18067 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18068
18069         * modules/argz: Omit "#include".
18070
18071         * MODULES.html.sh (func_all_modules): Add calloc, to match
18072         2004-06-01 addition of calloc module.
18073
18074 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18075
18076         * m4/argz.m4: New file, which is autoupdated from libtool.
18077
18078 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18079
18080         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
18081         libtool.
18082
18083 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18084
18085         * config/srclist-update: Don't insist on "USA." before the
18086         close-comment, as libtool omits the period and puts the */ on a
18087         separate line.
18088         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
18089         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
18090
18091 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
18092
18093         * modules/argz: New file.
18094         * MODULES.html.sh (func_all_modules): Add argz.
18095
18096 2004-06-12  Jim Meyering  <jim@meyering.net>
18097         and  Paul Eggert  <eggert@cs.ucla.edu>
18098
18099         * modules/hash (Files): Add lib/xalloc.h.
18100         * modules/pipe (Depends-on): Add wait-process.
18101         * modules/stat (Depends-on): Add xalloc.
18102         * modules/userspec (Files): Add lib/userspec.h.
18103         * modules/xstrto
18104
18105         Upgrade from gettext-0.13.
18106         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
18107         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
18108         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
18109
18110 2004-06-10  Jim Meyering  <jim@meyering.net>
18111
18112         * lib/calloc.c: New file.
18113
18114 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         * lib/getdate.y (yylex): Allow space between sign and number.
18117         Problem reported by Dan Jacobson.
18118
18119 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18120
18121         Merge from coreutils CVS.
18122
18123         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
18124         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
18125         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
18126         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
18127         xstrtol.m4: Fix copyright date and/or serial number.
18128
18129         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
18130         See if we need an fchown replacement.
18131         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
18132         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
18133         and use the replacement function if we detect either defect.
18134
18135         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
18136         gl_UTIMECMP.
18137
18138 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18139         and  Jim Meyering  <jim@meyering.net>
18140
18141         Merge from coreutils CVS.
18142
18143         * lib/stat-macros.h: New file, with contents from file-type.h
18144         and coreutils' system.h.
18145         * lib/file-type.c: Include "stat-macros.h".
18146         * lib/file-type.h (file_type): Move all macro definitions to new file,
18147         stat-macros.h.
18148
18149         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
18150         Wrap old code with this conditional.
18151         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
18152         function that does not dereference symlinks.
18153         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
18154
18155         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
18156         dependency problems.
18157         (xreadlink): Accept new arg SIZE, for efficiency.
18158         All decls and uses changed.
18159         * lib/xreadlink.h: Include <stddef.h>, for size_t.
18160
18161         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
18162         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
18163
18164         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
18165         sysexits.h.
18166
18167 2004-06-01  Jim Meyering  <jim@meyering.net>
18168
18169         * m4/calloc.m4: New file.
18170
18171 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
18172
18173         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
18174         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
18175         Also, fix a typo in a diagnostic.
18176
18177 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
18178
18179         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
18180         or AC_FUNC_REALLOC.
18181
18182 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
18183
18184         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
18185         macros to be defined.
18186         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
18187         the allocator returns NULL because the requested size is zero.
18188
18189 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
18192         var.  Add comment explaining why libc still defines it.  This
18193         merges the following patch from glibc:
18194         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
18195
18196 2004-05-20  Andreas Schwab  <schwab@suse.de>
18197
18198         * m4/free.m4: Replace free if it not known to work, not the other
18199         way round.
18200
18201 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18202
18203         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
18204         present in glibc since revision 1.1 of this file.
18205         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
18206         obstack_alignment_mask, obstack_alloc, obstack_base,
18207         obstack_blank, obstack_blank_fast, obstack_chunk_size,
18208         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
18209         obstack_grow0, obstack_init, obstack_int_grow,
18210         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
18211         obstack_next_free, obstack_object_size, obstack_ptr_grow,
18212         obstack_ptr_grow_fast, obstack_room): Remove declarations of
18213         nonexistent functions.
18214
18215 2004-05-18  Karl Berry  <karl@gnu.org>
18216
18217         * config/srclist.txt: break link for vasnprintf.c.
18218
18219 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18220
18221         Port obstack to the AS/400, where pointers are 16 bytes wide and
18222         you cannot cast an integer to a valid pointer.  This patch is
18223         currently waiting to be integrated into glibc; see
18224         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
18225
18226         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
18227         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
18228         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
18229         (struct obstack): temp member is now a union of a pointer and
18230         an integer, instead of an integer.  All integer uses changed.
18231         This does not affect the physical layout of struct obstack,
18232         except on hosts (like the AS/400) where the size or alignment of
18233         void * is greater than that of ptrdiff_t.
18234         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
18235         __STDC__)]: Store temporary in pointer member of union, not
18236         integer member.
18237         * lib/obstack.c: Include <stddef.h>, for offsetof.
18238         (struct fooalign): Remove; it doesn't need a name.
18239         (union fooround): Change double to long double, and add void *.
18240         (DEFAULT_ALIGNMENT): Use offsetof to compute.
18241         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
18242         not a macro.  Hence the values are always int; so remove all
18243         casts-to-int in uses.
18244
18245 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18246
18247         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
18248         we can get this patch merged into glibc.
18249
18250 2004-05-17  Derek R. Price  <derek@ximbiot.com>
18251             Paul Eggert  <eggert@cs.ucla.edu>
18252
18253         * m4/argp: Depend on alloca.
18254
18255 2004-05-17  Derek R. Price  <derek@ximbiot.com>
18256             Paul Eggert  <eggert@cs.ucla.edu>
18257
18258         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
18259         freecoding.
18260
18261 2004-05-17  Bruno Haible  <bruno@clisp.org>
18262
18263         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
18264         precision that consists of a '.' followed by an empty digit string.
18265         Patch by Tor Lillqvist <tml@iki.fi>.
18266
18267 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18268
18269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
18270         for backward compatibility with older code.  We need our own
18271         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
18272         it under some other name, and our alloca.h will define it.
18273
18274 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18275             Derek Price  <derek@ximbiot.com>
18276
18277         * lib/alloca.c: Include <alloca.h>, to get our interface.
18278         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
18279         include <alloca.h> first.  Use C89 prototype for alloca; this
18280         requires including <stddef.h> for size_t.  Use extern "C" if C++.
18281         Use #elif for simplicity, since we can assume C89 now.
18282         Don't try to source the system alloca.h since it will not be found
18283         and to prevent recursively including its replacement.
18284         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
18285         * lib/regex.c: Likewise.
18286
18287 2004-05-16  Derek Price  <derek@ximbiot.com>
18288             Paul Eggert  <eggert@cs.ucla.edu>
18289
18290         getline cleanup.  This changes the getndelim2 API: both order of
18291         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
18292         no delimiter).
18293
18294         * lib/getline.c: Don't include stddef.h or stdio.h, since our
18295         interface does that.
18296         (getline): Always use getdelim, so that we don't have two
18297         copies of this code.
18298         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
18299         if available.
18300         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
18301         (GETNDELIM2_MAXIMUM): New macro.
18302         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
18303         instead of the old practice of delim2==0.  All callers changed.
18304         Return -1 on overflow, instead of returning junk.
18305         Do not set *linesize unless allocation succeeds.
18306         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
18307         that we include sys/types.h.
18308         * lib/getnline.h: Likewise.
18309         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
18310         (getndelim2): Reorder arguments.
18311         * lib/getnline.c (getnline, getndelim):
18312         Don't discard the NMAX argument.
18313         (getnline): Invoke getndelim, to avoid code duplication.
18314         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
18315         of (size_t) -1 by callers of the getnline family.
18316
18317 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18318
18319         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
18320         Check for gettimeofday.
18321         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
18322         Check for settimeofday, stime.
18323
18324 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18325
18326         * lib/nanosleep.c (suspended): Change its type from int to
18327         sig_atomic_t volatile.
18328         (first_call): Make it private to rpl_nanosleep, and have it
18329         be zero initially as that's a bit faster.
18330         (my_usleep): Round up fractional times instead of truncating them,
18331         as this is the usual meaning for 'sleep'.
18332
18333         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
18334         doesn't work.
18335         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
18336         (ENOSYS): Define if not defined.
18337         (settime): Fall back on stime if it exists and settimeofday fails.
18338         But don't bother with fallbacks if a method fails with errno == EPERM.
18339
18340 2004-05-11  Jim Meyering  <jim@meyering.net>
18341
18342         Prior to this change, the save_cwd caller required read access to the
18343         current directory on most systems (ones with the fchdir function).
18344
18345         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
18346         fails, try write-only, and finally, resort to using xgetcwd.
18347
18348 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18349
18350         * lib/obstack.c, obstack.h: Import changes from libc.
18351
18352 2004-04-28  Bruno Haible  <bruno@clisp.org>
18353
18354         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
18355         also implicitly appends .exe to executables.
18356         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
18357         accepts Windows pathnames.
18358         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18359         Treat Cygwin like Windows, since it now accepts Windows pathnames.
18360         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18361         Treat Cygwin like Windows, since it now accepts Windows pathnames.
18362         Reported by Derek Robert Price <derek@ximbiot.com>.
18363
18364 2004-04-21  Karl Berry  <karl@gnu.org>
18365
18366         * config/srclist.txt (localcharset.c): break sync.
18367
18368 2004-04-20  Paul Eggert  <eggert@twinsun.com>
18369
18370         * m4/host-os.m4: Add a copyright notice.
18371
18372 2004-04-20  Jim Meyering  <jim@meyering.net>
18373
18374         Change UTILS_ to gl_ in AC_DEFINE'd names.
18375         Change utils_- and jm_-prefixed variables, too.
18376         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
18377         UTILS_FUNC_MKDIR_TRAILING_SLASH.
18378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
18379
18380         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
18381         Don't emit trailing blanks.
18382         Also rename jm_-prefixed variables to have gl_ prefix.
18383
18384         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
18385         Also rename jm_-prefixed variables to have gl_ prefix.
18386
18387         * m4/jm-macros.m4: Reflect the renamings.
18388         * m4/prereq.m4: Likewise.
18389
18390 2004-04-20  Jim Meyering  <jim@meyering.net>
18391
18392         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
18393         memory.
18394
18395 2004-04-20  Jim Meyering  <jim@meyering.net>
18396             Bruno Haible  <bruno@clisp.org>
18397
18398         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
18399         memory when realloc fails.
18400
18401 2004-04-19  Jim Meyering  <jim@meyering.net>
18402
18403         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
18404         now that readutmp.c may call `free (0)'.
18405
18406 2004-04-19  Bruno Haible  <bruno@clisp.org>
18407
18408         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
18409         * m4/inttypes_h.m4: Likewise.
18410         * m4/stdint_h.m4: Likewise.
18411         * m4/intmax_t.m4: Likewise.
18412         * m4/uintmax_t.m4: Likewise.
18413
18414 2004-04-18  Jim Meyering  <jim@meyering.net>
18415
18416         * m4/prereq.m4: Don't forbid jm_ prefix.
18417
18418         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
18419         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
18420         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
18421         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
18422         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
18423         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
18424         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
18425         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
18426         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
18427         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
18428         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
18429         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
18430         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
18431         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
18432         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
18433         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
18434         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
18435         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
18436         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
18437
18438 2004-04-18  Jim Meyering  <jim@meyering.net>
18439
18440         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
18441         failure, don't leak memory and do call END_UTMP_ENT.
18442
18443 2004-04-16  Jim Meyering  <jim@meyering.net>
18444
18445         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
18446         coreutils' stat program.
18447         (gl_PREREQ): Don't require jm_PREREQ_STAT.
18448
18449 2004-04-11  Paul Eggert  <eggert@twinsun.com>
18450
18451         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
18452         C89.
18453         (CHAR_BIT): Remove, since we assume C89.
18454         Include <stdint.h> if available, as per current Autoconf CVS advice.
18455
18456 2004-03-31  Jim Meyering  <jim@meyering.net>
18457
18458         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
18459         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
18460         * m4/xalloc.m4: Likewise.
18461
18462 2004-03-30  Paul Eggert  <eggert@twinsun.com>
18463
18464         Merge from coreutils.
18465
18466         * m4/inttostr.m4: New file.
18467         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
18468         Require AM_STDBOOL_H and gl_TIMESPEC instead.
18469         Require gl_CLOCK_TIME.
18470         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
18471
18472 2004-03-30  Paul Eggert  <eggert@twinsun.com>
18473
18474         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
18475         not bool, to be more consistent with Unix conventions.
18476         Suggested by Bruno Haible.
18477
18478         Merge from coreutils.
18479
18480         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
18481         * lib/umaxtostr.c: New files.
18482
18483         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
18484         the usual <time.h> dance.
18485         (get_date): Change signature to support fractional time stamps.
18486         All callers changed.
18487         * lib/getdate.y: Include "getdate.h" first, as we can now
18488         assume C89 and don't need to worry about 'const'.
18489         Similarly, include "unlocked-io.h" near start, not in middle.
18490         Include <limits.h>.
18491         (textint.value): Use long int rather than int.
18492         (textint.digits): Use size_t rather than int.
18493         (BILLION, LOG10_BILLION): New constants.
18494         (parser_control): New member rel_ns.  Members day_ordinal,
18495         time_zone, month, day, hour, minutes, rel_year, rel_month,
18496         rel_day, rel_hour, rel_minutes, rel_seconds
18497         are now long int, not int.  Member seconds is now struct timespec,
18498         not int.  New member timespec_seen.  Members dates_seen, days_seen,
18499         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
18500         not int.
18501         (%union.intval): Now long int, not int.
18502         New member timespec.
18503         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
18504         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
18505         (spec): Now is a timespec or an item list.
18506         (timespec, items): New nonterminals.
18507         (time, rel, relunit, number, get_date):
18508         Add support for fractional seconds.
18509         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
18510         (gmtime, localtime, mktime): Remove decls; not needed with C89.
18511         (to_hour): First arg is now long int, not int.
18512         (to_year): Returns long int, not int.
18513         Don't treat year -70 like 70.
18514         (tm_diff): Returns long int, not int.
18515         (lookup_word): Use bool instead of int when appropriate.
18516         (yylex): Use size_t for count, not int.
18517         Detect overflow when parsing large integer constants.
18518         Add support for fractions.
18519         (get_date): Make pointers 'const' if possible.
18520         Use more-portable code to detect integer overflow.
18521         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
18522         Don't use ctime; it's not reliable if the year has >4 digits.
18523
18524         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
18525         This is for compatibility with BSD.
18526
18527         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
18528         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
18529         From coreutils' system.h.
18530
18531         * lib/userspec.c: Don't include "posixver.h".
18532         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
18533         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
18534         compatible extension.  Simplify code by removing a boolean int
18535         that was always nonzero if a string was nonnull.
18536
18537 2004-03-30  Jim Meyering  <jim@meyering.net>
18538
18539         Merge from coreutils.
18540
18541         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
18542         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
18543         on some systems one must include <grp.h> before it.
18544         Reported by Christian Krackowizer.
18545
18546 2004-03-30  Jim Meyering  <jim@meyering.net>
18547
18548         Merge from coreutils.
18549
18550         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
18551
18552         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
18553         an empty input stream.
18554
18555         * lib/readtokens.c: Include <stdbool.h>.
18556         (readtoken): Use `size_t' rather than int/long.
18557         All callers adjusted.
18558         Use `bool' rather than `int' where appropriate.
18559         Use memset rather than an explicit loop.
18560         Use x2nrealloc rather than xrealloc.
18561         Allow the use of `\0' as a delimiter.
18562         (readtokens): Likewise.
18563         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
18564
18565 2004-03-30  Jim Meyering  <jim@meyering.net>
18566
18567         * m4/realloc.m4: Remove file, since now it does no more than
18568         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
18569         the `configure.ac' section of module/realloc.
18570         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
18571
18572 2004-03-30  Bruno Haible  <bruno@clisp.org>
18573
18574         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
18575         nonnull.
18576
18577 2004-03-29  Paul Eggert  <eggert@twinsun.com>
18578
18579         Merge changes to getloadavg.c from coreutils and Emacs.
18580
18581         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
18582         Define to an expression, not to the empty string.
18583         Include cloexec.h and xalloc.h.
18584         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
18585         Use set_cloexec_flag rather than rolling our own.
18586         * lib/cloexec.c, lib/cloexec.h: New files.
18587
18588 2004-03-29  Paul Eggert  <eggert@twinsun.com>
18589
18590         * m4/cloexec.m4: New file.
18591
18592 2004-03-18  Paul Eggert  <eggert@twinsun.com>
18593
18594         * lib/getopt.h: Sync with libc CVS.
18595
18596 2004-03-18  Paul Eggert  <eggert@twinsun.com>
18597             Bruno Haible  <bruno@clisp.org>
18598
18599         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
18600         mbswidth.
18601
18602 2004-03-18  Paul Eggert  <eggert@twinsun.com>
18603             Bruno Haible  <bruno@clisp.org>
18604
18605         * lib/mbswidth.h: Include <wchar.h> only if
18606         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
18607         <wchar.h>.
18608         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
18609
18610 2004-03-09  Paul Eggert  <eggert@twinsun.com>
18611
18612         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
18613         Sync with libc CVS.
18614         * lib/getopt_int.h: New file, also synced from libc.
18615
18616 2004-03-09  Paul Eggert  <eggert@twinsun.com>
18617
18618         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
18619         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
18620         Bring back getopt.c, getopt.h, getopt1.c.
18621
18622 2004-03-07  Paul Eggert  <eggert@twinsun.com>
18623
18624         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
18625         All uses changed.  Check for sa_sigaction member; this fixes
18626         a bug first reported by Jason Andrade in
18627         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
18628
18629 2004-03-07  Paul Eggert  <eggert@twinsun.com>
18630
18631         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
18632         '#if' expressions.  Unlike the code it replaces, it does not
18633         depend on (defined _SC_PAGESIZE).  However, it does depend on
18634         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
18635         first reported by Jason Andrade in
18636         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
18637
18638 2004-02-25  Simon Josefsson  <jas@extundo.com>
18639
18640         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
18641
18642 2004-02-25  Simon Josefsson  <jas@extundo.com>
18643
18644         * lib/strdup.h: New file.
18645         * lib/strdup.c: Include it.
18646         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
18647         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
18648
18649 2004-02-23  Karl Berry  <karl@gnu.org>
18650
18651         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
18652         (from fencepost.gnu.org:/gd/gnuorg).
18653
18654 2004-02-23  Karl Berry  <karl@gnu.org>
18655
18656         * config/srclistvars.sh (GNUORG) [karl]: redefine.
18657         * config/srclist.txt: add maintain/standards documents.
18658
18659 2004-02-18  Bruno Haible  <bruno@clisp.org>
18660
18661         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
18662         Reported by Derek Robert Price <derek@ximbiot.com>.
18663
18664 2004-02-16  Karl Berry  <karl@gnu.org>
18665
18666         * config/mkinstalldirs, install-sh: update from automake.
18667
18668 2004-02-06  Karl Berry  <karl@gnu.org>
18669
18670         * m4/po.m4: update from gettext 0.14.1.
18671
18672 2004-02-06  Karl Berry  <karl@gnu.org>
18673
18674         * lib/config.charset: update from gettext 0.14.1.
18675
18676 2004-02-05  Paul Eggert  <eggert@twinsun.com>
18677
18678         Add comments and code, prompted by suggestions from Bruno Haible
18679         for sh-quote.
18680         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
18681         describing the enum quoting_style values.
18682         * lib/quotearg.c (quotearg_alloc): New function.
18683         (quotearg_buffer_restyled): Treat lone { and } as special.
18684         Treat = as special.  Work around bug with older shells
18685         that "see" a '\' that is really the 2nd byte of a multibyte char.
18686         Quote empty string with shell_quoting_style.
18687
18688 2004-02-03  Bruno Haible  <bruno@clisp.org>
18689
18690         * m4/pipe.m4: New file, from GNU gettext.
18691
18692 2004-02-03  Bruno Haible  <bruno@clisp.org>
18693
18694         * lib/pipe.h: New file, from GNU gettext.
18695         * lib/pipe.c: New file, from GNU gettext.
18696
18697 2004-01-27  Bruno Haible  <bruno@clisp.org>
18698
18699         * m4/execute.m4: New file, from GNU gettext.
18700
18701 2004-01-27  Bruno Haible  <bruno@clisp.org>
18702
18703         * lib/execute.h: New file, from GNU gettext.
18704         * lib/execute.c: New file, from GNU gettext.
18705         * lib/w32spawn.h: New file, from GNU gettext.
18706
18707 2004-01-24  Paul Eggert  <eggert@twinsun.com>
18708
18709         Merge from diffutils.
18710
18711         * lib/file-type.c (file_type): Add typed memory objects.
18712         * lib/file-type.h (S_TYPEISTMO): New macro.
18713
18714         * lib/c-stack.h (c_stack_action): Remove argv argument.
18715         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
18716         (die): Don't calculate message unless segv_action returns.
18717         (get_stack_location, min_address_from_argv, max_address_from_argv,
18718         volatile stack_base, volatile_stack_size): Remove.
18719         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
18720         that every segmentation violation is a stack overflow.  (Ouch!)
18721         See Debian bug 136249 (still outstanding) for more info about why
18722         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
18723
18724 2004-01-24  Paul Eggert  <eggert@twinsun.com>
18725
18726         Exit-status fix from coreutils.
18727
18728         Use exit_failure consistently in place of EXIT_FAILURE,
18729         so that program exit statuses are consistent on failure.
18730
18731         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
18732         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
18733         * lib/argmatch.h: Comment fix to match the above.
18734         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
18735         Now a macro referring to exit_failure, instead of a separate
18736         variable.  Include "exitfail.h" to get it.
18737         * lib/xstrtol.h: Include "exitfail.h".
18738         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
18739
18740         * lib/long-options.c (parse_long_options): Use prototype
18741         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
18742         for clarity.
18743
18744 2004-01-21  Jim Meyering  <jim@meyering.net>
18745
18746         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
18747         so as not to conflict with a different-sized __mktime_internal
18748         function in GNU libc.
18749         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
18750         Problem building statically-linked `ls' reported by Michael Brunnbauer.
18751
18752 2004-01-20  Karl Berry  <karl@gnu.org>
18753
18754         * config/config.guess: update from config.
18755
18756         * config/srclistvars.sh: GNUWWWLICENSES for karl.
18757
18758 2004-01-20  Bruno Haible  <bruno@clisp.org>
18759
18760         Safer stack allocation.
18761         * lib/setenv.c: Include allocsa.h.
18762         (alloca): Remove fallback definition.
18763         (freea): Remove macro.
18764         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
18765         instead of freea.
18766
18767 2004-01-20  Bruno Haible  <bruno@clisp.org>
18768
18769         * m4/eealloc.m4: New file, from GNU gettext.
18770
18771 2004-01-20  Bruno Haible  <bruno@clisp.org>
18772
18773         * m4/allocsa.m4: New file, from GNU gettext.
18774
18775 2004-01-20  Bruno Haible  <bruno@clisp.org>
18776
18777         * lib/xallocsa.h: New file, from GNU gettext.
18778         * lib/xallocsa.c: New file, from GNU gettext.
18779
18780 2004-01-20  Bruno Haible  <bruno@clisp.org>
18781
18782         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
18783
18784 2004-01-20  Bruno Haible  <bruno@clisp.org>
18785
18786         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
18787         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
18788         specially.
18789
18790 2004-01-20  Bruno Haible  <bruno@clisp.org>
18791
18792         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
18793         patch.
18794
18795 2004-01-20  Bruno Haible  <bruno@clisp.org>
18796
18797         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
18798
18799 2004-01-20  Bruno Haible  <bruno@clisp.org>
18800
18801         * lib/eealloc.h: New file.
18802
18803 2004-01-20  Bruno Haible  <bruno@clisp.org>
18804
18805         * lib/binary-io.h: Avoid warnings on Cygwin.
18806
18807 2004-01-20  Bruno Haible  <bruno@clisp.org>
18808
18809         * lib/allocsa.h: New file, from GNU gettext.
18810         * lib/allocsa.c: New file, from GNU gettext.
18811
18812 2004-01-18  Karl Berry  <karl@gnu.org>
18813
18814         * doc/gpl.texi, doc/lgpl.texi: new files.
18815
18816 2004-01-18  Karl Berry  <karl@gnu.org>
18817
18818         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
18819         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
18820
18821 2004-01-15  Paul Eggert  <eggert@twinsun.com>
18822
18823         Merge from coreutils.
18824
18825         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
18826         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
18827         (gl_DEFAULT_POSIX2_VERSION): Move
18828         the documentation from 'configure' into 'config.hin',
18829         so that 'configure --help' isn't burdened by it and
18830         we don't have to worry about its formatting there.
18831         Reword the documentation so that it's more succinct
18832         and can be run together into a single paragraph.
18833         * m4/same.m4 (gl_SAME): Check for pathconf.
18834
18835 2004-01-15  Paul Eggert  <eggert@twinsun.com>
18836
18837         Merge from coreutils.
18838
18839         * lib/posixver.c: Include posixver.h.
18840
18841         * lib/same.c: Include <stdbool.h>, <limits.h>.
18842         (_POSIX_NAME_MAX): Define if not defined.
18843         (MIN): New macro.
18844         (same_name): If file names are silently truncated, report
18845         that the file names are the same if they are the same after
18846         the silent truncation.
18847
18848         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
18849         conversion function.
18850         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
18851         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
18852         longer needed.
18853
18854 2004-01-15  Jim Meyering  <jim@meyering.net>
18855
18856         Merge from coreutils.
18857
18858         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
18859         if no library is required.
18860         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
18861         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
18862         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
18863         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
18864         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
18865         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
18866         value, $ac_cv_search_crypt, if it's "none required".
18867         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
18868         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
18869         not gl_FUNC_GETLOADAVG.
18870         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
18871         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
18872
18873 2004-01-15  Jim Meyering  <jim@meyering.net>
18874
18875         Merge from coreutils.
18876
18877         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
18878         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
18879         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
18880
18881         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
18882         optional configure-time default.
18883
18884         * lib/version-etc.c (version_etc_copyright): Update copyright date.
18885
18886         * lib/xreadlink.c (xreadlink): Correct outdated comment.
18887
18888 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
18889
18890         Merge from coreutils.
18891
18892         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
18893         value, $ac_cv_search_nanosleep, if it's "none required".
18894
18895 2004-01-14  Paul Eggert  <eggert@twinsun.com>
18896
18897         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
18898         with like-named macro in fnmatch.c.
18899         (EXT): Use an internal constant instead.
18900
18901         Merge fnmatch patches from glibc.
18902         * lib/fnmatch.c (mbsinit): Remove define.
18903         Add libc_hidden_ver (__fnmatch, fnmatch).
18904         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
18905         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
18906
18907 2004-01-14  Karl Berry  <karl@gnu.org>
18908
18909         * config/install-sh: update from automake.
18910
18911 2004-01-13  Karl Berry  <karl@gnu.org>
18912
18913         * config/install-sh: update from automake.
18914
18915 2004-01-09  Karl Berry  <karl@gnu.org>
18916
18917         * config/install-sh: update from automake.
18918
18919 2004-01-05  Karl Berry  <karl@gnu.org>
18920
18921         * config/config.{sub,guess}: update from config.
18922
18923 2003-12-31  Karl Berry  <karl@gnu.org>
18924
18925         * config/depcomp: update from automake.
18926
18927 2003-12-14  Karl Berry  <karl@gnu.org>
18928
18929         * lib/config.charset: update from gettext-runtime.
18930
18931 2003-12-03  Paul Eggert  <eggert@twinsun.com>
18932
18933         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
18934         Bug reported by Alfred M. Szmidt.
18935
18936 2003-12-03  Bruno Haible  <bruno@clisp.org>
18937
18938         * m4/gettext.m4: Upgrade from gettext-0.13.
18939         * m4/po.m4: Upgrade from gettext-0.13.
18940         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
18941         * m4/intmax.m4: New file, from gettext-0.13.
18942         * m4/printf-posix.m4: New file, from gettext-0.13.
18943
18944 2003-11-29  Karl Berry  <karl@gnu.org>
18945
18946         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
18947
18948 2003-11-25  Paul Eggert  <eggert@twinsun.com>
18949             Bruno Haible  <bruno@clisp.org>
18950
18951         * lib/printf-parse.h: Don't include sys/types.h.
18952         (ARG_NONE): New macro.
18953         (char_directive): Change type of *arg_index fields to size_t.
18954         * lib/printf-parse.c: Don't include sys/types.h.
18955         (SSIZE_MAX): Remove macro.
18956         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
18957         Remove unnecessary overflow check.
18958         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
18959         fields.
18960
18961 2003-11-25  Bruno Haible  <bruno@clisp.org>
18962
18963         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
18964
18965 2003-11-25  Bruno Haible  <bruno@clisp.org>
18966
18967         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
18968         gt_TYPE_SSIZE_T.
18969
18970 2003-11-24  Paul Eggert  <eggert@twinsun.com>
18971
18972         * modules/alloca: Remove dependency on xalloc.
18973
18974 2003-11-24  Paul Eggert  <eggert@twinsun.com>
18975
18976         * lib/alloca.c: Remove dependency on xalloc module.
18977         (xalloc_die): Remove.
18978         (memory_full) [!defined emacs]: New macro.
18979         [!defined emacs]: Don't include xalloc.h.
18980         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
18981         address arithmetic overflows.  Change datatypes a bit to avoid
18982         unnecessary casts.
18983
18984 2003-11-22  Jim Meyering  <jim@meyering.net>
18985
18986         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
18987         s/size/size_t/.
18988
18989 2003-11-21  Karl Berry  <karl@gnu.org>
18990
18991         * config/config.{sub,guess}: update from config.
18992
18993 2003-11-18  Karl Berry  <karl@gnu.org>
18994
18995         * config/config.{sub,guess}: update from config.
18996
18997         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
18998
18999 2003-11-17  Paul Eggert  <eggert@twinsun.com>
19000
19001         * README: Mention that S+T cannot overflow if S is the size of
19002         an existing object and T is sufficiently small.
19003
19004 2003-11-17  Jim Meyering  <jim@meyering.net>
19005
19006         On systems without utime and without a utimes function capable of
19007         dealing with a NULL struct utimbuf* argument, this utime replacement
19008         could -- in unusual circumstances -- leak a file descriptor.
19009         * lib/utime.c: Include <unistd.h> and <errno.h>.
19010         (utime_null): Be sure to close `fd' and to preserve errno.
19011         Reported by Geoff Collyer via Arnold Robbins.
19012
19013 2003-11-17  Bruno Haible  <bruno@clisp.org>
19014
19015         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
19016         (Depends-on): Add xsize.
19017
19018 2003-11-17  Bruno Haible  <bruno@clisp.org>
19019
19020         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
19021
19022 2003-11-17  Bruno Haible  <bruno@clisp.org>
19023
19024         * lib/vasnprintf.c (alloca): Remove fallback definition.
19025         (freea): Remove definition.
19026         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
19027         Reported by Paul Eggert.
19028
19029 2003-11-16  Paul Eggert  <eggert@twinsun.com>
19030             Bruno Haible  <bruno@clisp.org>
19031
19032         Protect against address arithmetic overflow.
19033         * lib/printf-args.h: Include stddef.h.
19034         (arguments): Change type of field 'count' to size_t.
19035         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
19036         'unsigned int' where appropriate.
19037         * lib/printf-parse.h: Include sys/types.h.
19038         (char_directive): Change type of *arg_index fields to ssize_t.
19039         (char_directives): Change type of fields 'count', max_*_length to
19040         size_t.
19041         * lib/printf-parse.c: Include sys/types.h and xsize.h.
19042         (SSIZE_MAX): Define fallback value.
19043         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
19044         instead of 'int' where appropriate. Check a_allocated, d_allocated
19045         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
19046         * lib/vasnprintf.c: Include xsize.h.
19047         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
19048         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
19049         overflow. Avoid wraparound when converting a width or precision from
19050         decimal to binary.
19051
19052 2003-11-16  Bruno Haible  <bruno@clisp.org>
19053
19054         Update from GNU gettext.
19055         * lib/printf-parse.c: Generalize to it can be compiled for wide
19056         strings.
19057         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
19058         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
19059         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
19060         SNPRINTF): New macros.
19061         Don't include <alloca.h> if the file is used inside libintl.
19062         (local_wcslen): New function, for Solaris 2.5.1.
19063         (VASNPRINTF): Use it instead of wcslen.
19064
19065 2003-11-16  Bruno Haible  <bruno@clisp.org>
19066
19067         * lib/xsize.h (xmax): New function.
19068         (xsum, xsum3, xsum4): Declare as "pure" functions.
19069
19070 2003-11-12  Paul Eggert  <eggert@twinsun.com>
19071
19072         * modules/xalloc (Files): Undo latest change, since xalloc.h
19073         no longer needs SIZE_MAX or PTRDIFF_MAX.
19074
19075 2003-11-12  Paul Eggert  <eggert@twinsun.com>
19076
19077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
19078         gl_PTRDIFF_MAX.
19079
19080 2003-11-12  Paul Eggert  <eggert@twinsun.com>
19081
19082         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
19083         "return", to pacify some unknown compiler.  Problem reported
19084         by Joerg Schilling.
19085
19086 2003-11-12  Paul Eggert  <eggert@twinsun.com>
19087
19088         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
19089         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
19090         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
19091         heuristic is just as accurate as far as we know, and it removes a
19092         dependency on size_max.m4 and ptrdiff_max.m4.
19093
19094 2003-11-11  Bruno Haible  <bruno@clisp.org>
19095
19096         * modules/xsize (Files): Add m4/size_max.m4.
19097         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
19098
19099 2003-11-11  Bruno Haible  <bruno@clisp.org>
19100
19101         * m4/size_max.m4: New file.
19102         * m4/ptrdiff_max.m4: New file.
19103         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
19104         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
19105         (gl_XALLOC): Invoke it.
19106
19107 2003-11-11  Bruno Haible  <bruno@clisp.org>
19108
19109         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
19110         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
19111         defined.
19112
19113 2003-11-10  Paul Eggert  <eggert@twinsun.com>
19114
19115         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
19116         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
19117         rejected some allocations of exactly SIZE_MAX - 2 bytes.
19118         From Bruno Haible.
19119         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
19120         not (size_t) -1, since it's defined here.
19121
19122 2003-11-09  Karl Berry  <karl@gnu.org>
19123
19124         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
19125
19126 2003-11-06  Paul Eggert  <eggert@twinsun.com>
19127
19128         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
19129         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
19130         Reject sizes of exactly SIZE_MAX bytes.
19131         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
19132         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
19133
19134 2003-11-05  Bruno Haible  <bruno@clisp.org>
19135
19136         * lib/xsize.h: Include limits.h, to avoid a possible collision with
19137         SIZE_MAX defined in <limits.h> on Solaris.
19138
19139 2003-11-04  Jim Meyering  <jim@meyering.net>
19140
19141         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
19142         variable names, rather than @VAR@.
19143         * modules/poll: Likewise.
19144
19145 2003-11-04  Bruno Haible  <bruno@clisp.org>
19146
19147         * modules/xsize: New file.
19148         * modules/linebreak: Depend on xsize.
19149         * MODULES.html.sh (func_all_modules): Add xsize.
19150
19151 2003-11-04  Bruno Haible  <bruno@clisp.org>
19152
19153         * m4/xsize.m4: New file.
19154
19155 2003-11-04  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/xsize.h: New file.
19158         * lib/linebreak.c: Include xsize.h.
19159         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
19160         argument for overflow.
19161         Suggested by Paul Eggert.
19162
19163 2003-11-03  Karl Berry  <karl@gnu.org>
19164
19165         * config/config.{guess,sub}: update from config.
19166
19167 2003-11-03  Jim Meyering  <jim@meyering.net>
19168
19169         * modules/userspec (lib_SOURCES): Add userspec.h.
19170         (Include): Add "userspec.h".
19171         Improve description.
19172
19173 2003-11-03  Jim Meyering  <jim@meyering.net>
19174
19175         * lib/userspec.c: Include "userspec.h".
19176         * lib/userspec.h: New file.
19177
19178 2003-11-03  Bruno Haible  <bruno@clisp.org>
19179
19180         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
19181
19182 2003-11-03  Bruno Haible  <bruno@clisp.org>
19183
19184         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
19185         available, to avoid (extremely rare) race condition.
19186         Suggested by Paul Eggert.
19187
19188 2003-11-02  Karl Berry  <karl@gnu.org>
19189
19190         * config/srclist.txt (vasprintf.c): sync broken, sigh.
19191
19192 2003-10-31  Paul Eggert  <eggert@twinsun.com>
19193
19194         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
19195         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
19196         (read_filesystem_list): Set and use me_type_malloced.
19197         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
19198         whatever the type happens to be), for brevity and consistency.
19199         Check for size calculation overflow on Alphas running OSF/1.
19200
19201 2003-10-31  Jim Meyering  <jim@meyering.net>
19202
19203         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
19204
19205         * lib/linebuffer.c: Include <string.h> for declaration of memset.
19206
19207 2003-10-30  Paul Eggert  <eggert@twinsun.com>
19208             Bruno Haible  <bruno@clisp.org>
19209
19210         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
19211         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
19212
19213 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
19216         netbsd*-gnu*.  Suggested by Robert Millan.
19217
19218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
19219
19220         * modules/group-member: Depend on stdbool.
19221
19222 2003-10-29  Paul Eggert  <eggert@twinsun.com>
19223
19224         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
19225
19226 2003-10-29  Paul Eggert  <eggert@twinsun.com>
19227
19228         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
19229         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
19230         after the 'gnu' in these cases.  This fixes some bugs in the
19231         previous change, and is based on suggestions by Robert Millan.
19232
19233 2003-10-29  Paul Eggert  <eggert@twinsun.com>
19234
19235         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
19236         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
19237         no longer needed.
19238         * lib/quotearg.c (quotearg_n_options): Use it.
19239         * lib/group-member.c: Include <stdbool.h>.
19240         (free_group_info): Arg is now const *; don't free arg.
19241         (get_group_info): Now returns bool and accepts struct group_info *,
19242         rather than returning a malloc'ed struct group_info *.
19243         All uses changed.  Check for overflow in internal size calculation.
19244
19245         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
19246         rather than xmalloc/xrealloc.
19247         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
19248         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
19249         conformance bug: the old code used a pointer after freeing the
19250         storage that it addressed.
19251         * lib/hash.c (hash_initialize): Simplify the code by using
19252         xalloc_oversized rather than doing it by hand.
19253         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
19254         the buffer preserved.  Use free and xmalloc instead.
19255         * lib/quotearg.c (quotearg_n_options): Likewise.
19256         Use a simpler test for size overflow.  Don't use xalloc_oversized
19257         because unsigned int might be wider than size_t (!); this suggests
19258         that we should switch from unsigned int to size_t for slot numbers.
19259
19260 2003-10-28  Paul Eggert  <eggert@twinsun.com>
19261
19262         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
19263         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
19264         NetBSD kernels.  Requested by Richard Stallman.
19265
19266 2003-10-27  Paul Eggert  <eggert@twinsun.com>
19267
19268         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
19269         to allocate the returned structure.  Do not allocate a subarray,
19270         as x2nrealloc will do that.
19271         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
19272         instead of xnrealloc.
19273         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
19274
19275 2003-10-27  Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/stdbool_.h: Better support for BeOS.
19278
19279 2003-10-26  Paul Eggert  <eggert@twinsun.com>
19280
19281         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
19282         now uses inline.
19283
19284 2003-10-26  Paul Eggert  <eggert@twinsun.com>
19285
19286         * lib/xalloc.h (xalloc_oversized): New static inline function, for
19287         callers that want to do their own size-overflow checking.  Include
19288         <stdbool.h>, since xalloc_oversized returns bool.
19289         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
19290         to use xalloc_oversized.
19291
19292         Add two functions x2realloc, x2nrealloc, for programs that grow
19293         arrays dynamically by doubling their sizes.
19294         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
19295         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
19296         New functions.
19297
19298         Port to C99 semantics for 'inline' of external functions.
19299         Bug reported by Bruno Haible.
19300         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
19301         with the old contents of xnmalloc.
19302         (xnmalloc, xmalloc): Use it.
19303         (xnrealloc_inline): New static inline function,
19304         with the old contents of xnrealloc.
19305         (xnrealloc, xrealloc): Use it.
19306
19307         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
19308         that.
19309
19310 2003-10-26  Karl Berry  <karl@gnu.org>
19311
19312         * config/srclist.txt (COPYING.DOC): no longer available from
19313         /gd/gnuorg; don't know where the ultimate source is.
19314
19315 2003-10-25  Paul Eggert  <eggert@twinsun.com>
19316
19317         Fix several address-calculation bugs in the hash modules,
19318         plus some minor code cleanup.
19319
19320         * lib/hash.h: Include <stdbool.h>, for bool.
19321         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
19322         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
19323         hash_get_n_entries, hash_get_max_bucket_length,
19324         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
19325         hash_rehash): Use size_t rather than unsigned.
19326         * lib/hash.c (struct hash_table, hash_get_n_buckets,
19327         hash_get_n_buckets_used, hash_get_n_entries,
19328         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
19329         hash_get_entries, hash_do_for_each, hash_string, is_prime,
19330         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
19331         Likewise.
19332         (SIZE_MAX): Define if not defined.
19333         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
19334         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
19335         hash_print):
19336         Use const * when possible.
19337         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
19338         (check_tuning): Fix bug: if tuning parameters were very close to
19339         0 or 1, rounding errors could have caused subscript violations.
19340         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
19341         (hash_initialize): Add 'fail:' label
19342         to free table and return NULL, and use it to simplify code.
19343         Use calloc rather than clearing the storage ourself.
19344         (hash_initialize, hash_rehash): Check for arithmetic overflow in
19345         buffer size calculations.
19346         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
19347         Include <stddef.h>, for size_t.
19348         * lib/hash-pjw.c (hash_pjw): Likewise.
19349         Switch to method described by Bruno Haible.
19350         Include <limits.h>, for CHAR_BIT.
19351         (SIZE_BITS): New macro.
19352
19353 2003-10-23  Paul Eggert  <eggert@twinsun.com>
19354
19355         * m4/getline.m4 (AM_FUNC_GETLINE):
19356         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
19357         hosts.  Problem reported by Derek Robert Price in
19358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
19359         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
19360         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
19361
19362 2003-10-21  Paul Eggert  <eggert@twinsun.com>
19363
19364         * lib/getndelim2.c (getndelim2): When size calculation overflows,
19365         ceiling the allocation at NMAX bytes rather than silently
19366         discarding input bytes before NMAX is reached.  This makes
19367         a difference only if NMAX exceeds SIZE_MAX / 2.
19368
19369         * lib/obstack.c: Merge from glibc.
19370         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
19371         Add libc_hidden_def (_obstack_newchunk).
19372         (_obstack_free) [! defined _LIBC]: Remove.
19373         [defined _LIBC]: Make a strong alias from obstack_free, rather than
19374         a clone of the function body.
19375         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
19376         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
19377
19378         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
19379         glibc.
19380         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
19381         arg to memcpy.
19382
19383         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
19384         (obstack_ptr_grow_fast, obstack_int_grow_fast):
19385         Don't use lvalue casts, as GCC plans to remove support for them
19386         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
19387         was also present in the non-GCC version, indicating that this
19388         code had always been buggy and had never been widely used.
19389         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
19390         Use the fast variant of each macro, rather than copying the
19391         definiens of the fast variant; that way, we'll be more likely to
19392         catch future bugs in the fast variants.
19393
19394 2003-10-20  Bruno Haible  <bruno@clisp.org>
19395
19396         * modules/wait-process: New file.
19397         * MODULES.html.sh (func_all_modules): Add wait-process.
19398
19399 2003-10-20  Bruno Haible  <bruno@clisp.org>
19400
19401         * m4/wait-process.m4: New file.
19402
19403 2003-10-20  Bruno Haible  <bruno@clisp.org>
19404
19405         * lib/wait-process.h: New file, from GNU gettext.
19406         * lib/wait-process.c: New file, from GNU gettext.
19407
19408 2003-10-19  Jim Meyering  <jim@meyering.net>
19409
19410         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
19411         HPUX 10.20.
19412
19413 2003-10-18  Karl Berry  <karl@gnu.org>
19414
19415         * config/config.guess: update from config.
19416
19417 2003-10-16  Paul Eggert  <eggert@twinsun.com>
19418
19419         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
19420         (getgroups): First arg is int, not size_t.
19421         Don't let 'free' mangle errno.
19422
19423 2003-10-16  Paul Eggert  <eggert@twinsun.com>
19424
19425         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
19426
19427 2003-10-16  Karl Berry  <karl@gnu.org>
19428
19429         * config/config.{guess,sub}: update from config.
19430
19431 2003-10-16  Jim Meyering  <jim@meyering.net>
19432
19433         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
19434         memcpy.
19435
19436 2003-10-15  Paul Eggert  <eggert@twinsun.com>
19437
19438         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
19439         (SIZE_MAX): Remove.
19440         (new_exclude, add_exclude_file): Initial size no longer needs to
19441         be a power of 2.
19442         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
19443         our own address arithmetic overflow checking.
19444
19445         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
19446         (fnmatch): Do not alloca more than 2000 wide characters;
19447         instead, use malloc for large buffers.
19448         Check for address arithmetic overflow, and return -1
19449         with errno set to ENOMEM in that case.
19450         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
19451         (NEW_PATTERN): Do not alloca more than 8000 bytes;
19452         instead, return -1.  Check for address arithmetic overflow.
19453
19454 2003-10-14  Paul Eggert  <eggert@twinsun.com>
19455
19456         Handle invalid suffixes and overflow independently, so that
19457         callers can treat them independently as needed.  Fix some bugs in
19458         suffix handling, e.g., "100k@" was not diagnosed as an invalid
19459         suffix for a human-readable blocksize.  The major caller-visible
19460         change is the addition of a new
19461         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
19462         that both overflow and suffix chars were found.
19463
19464         * lib/human.c (humblock): Don't check separately for invalid suffix
19465         char; that is xstrtoumax's job (now that its bug is fixed).
19466         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
19467         INTMAX_MAX]: New macros.
19468         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
19469         TYPE_MAXIMUM): New macros.
19470         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
19471         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
19472         if overflow occurs, as it's what __strtol does and it's more useful
19473         in practice.
19474         (__xstrtol): If __strtol reports some error other than ERANGE,
19475         reflect it to the caller as LONGINT_INVALID.  If it reports
19476         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
19477         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
19478         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
19479         value.
19480         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
19481         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
19482         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
19483         [defined UINTMAX_MAX]: New macros.
19484
19485 2003-10-14  Bruno Haible  <bruno@clisp.org>
19486
19487         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
19488
19489 2003-10-14  Bruno Haible  <bruno@clisp.org>
19490
19491         * m4/sig_atomic_t: New file, from GNU gettext.
19492         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
19493
19494 2003-10-14  Bruno Haible  <bruno@clisp.org>
19495
19496         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
19497         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
19498         Also use volatile where needed.
19499
19500 2003-10-12  Paul Eggert  <eggert@twinsun.com>
19501
19502         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
19503         Change maintainer from Bruno Haible to 'all'.
19504
19505 2003-10-12  Paul Eggert  <eggert@twinsun.com>
19506
19507         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
19508
19509 2003-10-12  Paul Eggert  <eggert@twinsun.com>
19510
19511         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
19512         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
19513         and define in terms of the other primitives.
19514         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
19515         (SIZE_MAX): Define if not already defined.
19516         (array_size_overflow): New function.
19517         (xalloc_die): Abort instead of exiting if 'error' returns.
19518         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
19519         (xmalloc, xrealloc): Use them.
19520         (xcalloc): Check for address arithmetic overflow.
19521         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
19522         a bit faster than strcpy.
19523
19524 2003-10-10  Simon Josefsson  <jas@extundo.com>
19525
19526         * modules/argp (Depends-on): Add restrict and strcase.
19527
19528 2003-10-10  Simon Josefsson  <jas@extundo.com>
19529
19530         * m4/argp.m4: Add AC_C_INLINE.
19531
19532 2003-10-08  Paul Eggert  <eggert@twinsun.com>
19533
19534         Merge getpass from libc, plus a few fixes.
19535
19536         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
19537         Include <stdbool.h>.
19538         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
19539         __fsetlocking to empty.
19540         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
19541         do include <bits/libc-lock.h>.
19542         Do not include <fcntl.h>; not needed.
19543         [_LIBC]: Include <wchar.h>.
19544         (NOTCANCEL_MODE): New macro.
19545         (flockfile, funlockfile) [_LIBC]: New macros.
19546         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
19547         [!_LIBC]: New macros.
19548         (call_fclose): New function.
19549         (getpass): Use it.  Save tty stream separately; this simplifies the
19550         code and makes it more reliable if stdin happens to equal stdout.
19551         Invoke __fsetlocking on tty.
19552         Handle thread cancellation if needed.
19553         Namespace cleanup (use __tcgetattr, __getline).
19554         Use bool for Booleans.
19555         [USE_IN_LIBIO]: Handle wide streams.
19556         [!_LIBC]: Unconditionally do the fseek, since we don't know what
19557         stream might go where.
19558
19559         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
19560         doesn't have to include <stdio.h> before us.
19561         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
19562         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
19563         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
19564         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
19565         if not declared, so that we can use getpass.c code from libc without
19566         rewriting it.
19567         (flockfile, ftrylockfile, funlockfile): New macros.
19568
19569 2003-10-08  Paul Eggert  <eggert@twinsun.com>
19570
19571         * modules/getpass: Depend on stdbool.
19572
19573 2003-10-08  Paul Eggert  <eggert@twinsun.com>
19574
19575         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
19576
19577 2003-10-07  Karl Berry  <karl@gnu.org>
19578
19579         * config/config.{guess,sub}: update from config.
19580
19581 2003-10-06  Jim Meyering  <jim@meyering.net>
19582             Bruno Haible  <bruno@clisp.org>
19583
19584         This lets translators provide better translations for the
19585         "Written by ..." part of --version output.
19586         * lib/version-etc.h: Include stdarg.h.
19587         (version_etc_copyright): Declare as readonly.
19588         (version_etc): Make this function variadic with a NULL-terminated list
19589         of author name strings.
19590         (version_etc_va): New declaration.
19591         * lib/version-etc.c: Include stdarg.h, stdlib.h.
19592         (version_etc_copyright): Declare as readonly.
19593         (version_etc_va): New function. Provide a different translatable string
19594         for each possible number of authors < 10. Abbreviate when there are 10
19595         authors or more.
19596         (version_etc): Make this function variadic. Call version_etc_va.
19597         Suggestion from Gary V. Vaughan.
19598
19599         * lib/long-options.h (parse_long_options): Change prototype: the
19600         authors string is moved to the end and becomes variadic.
19601         * lib/long-options.c: Include stdarg.h.
19602         (parse_long_options): Make this function variadic, too.
19603         Call version_etc_va, not version_etc.
19604
19605 2003-10-06  Bruno Haible  <bruno@clisp.org>
19606
19607         * modules/version-etc-2: Remove file.
19608         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
19609
19610 2003-10-06  Bruno Haible  <bruno@clisp.org>
19611
19612         * modules/fatal-signal: New file.
19613         * MODULES.html.sh (func_all_modules): Add fatal-signal.
19614
19615 2003-10-06  Bruno Haible  <bruno@clisp.org>
19616
19617         * m4/fatal-signal.m4: New file.
19618         * m4/signalblocking.m4: New file, from GNU gettext.
19619
19620 2003-10-06  Bruno Haible  <bruno@clisp.org>
19621
19622         * lib/version-etc-2.h: Remove file.
19623         * lib/version-etc-2.c: Remove file.
19624
19625 2003-10-06  Bruno Haible  <bruno@clisp.org>
19626
19627         * lib/fatal-signal.h: New file, from GNU gettext.
19628         * lib/fatal-signal.c: New file, from GNU gettext.
19629
19630 2003-10-05  Paul Eggert  <eggert@twinsun.com>
19631
19632         * README: Rework advice for preventing empty .o files.
19633         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
19634         not <sys/types.h>.
19635
19636 2003-10-04  Karl Berry  <karl@gnu.org>
19637
19638         * lib/argp*: update from libc.
19639
19640 2003-10-04  Karl Berry  <karl@gnu.org>
19641
19642         * config/config.{guess,sub}: update from config.
19643
19644 2003-10-02  Bruno Haible  <bruno@clisp.org>
19645
19646         * modules/lchown (Include): Add lchown.h.
19647         * modules/time_r (Include): Use "..." syntax.
19648         * modules/xgetdomainname (Include): Add xgetdomainname.h.
19649
19650 2003-10-01  Simon Josefsson  <jas@extundo.com>
19651
19652         * MODULES.html.sh (func_all_modules): Move gethostname from section
19653         'based on' to section 'lacking' POSIX:2001.
19654
19655 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
19656
19657         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
19658         to output mode on the same stream.
19659
19660 2003-09-29  Paul Eggert  <eggert@twinsun.com>
19661
19662         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
19663         Fix arg typo in previous patch.
19664
19665 2003-09-28  Jim Meyering  <jim@meyering.net>
19666
19667         * lib/error.c: Correct cpp indentation.
19668
19669 2003-09-27  Paul Eggert  <eggert@twinsun.com>
19670
19671         * modules/free: New file.
19672
19673 2003-09-27  Paul Eggert  <eggert@twinsun.com>
19674
19675         * m4/free.m4: New file.
19676
19677 2003-09-27  Paul Eggert  <eggert@twinsun.com>
19678
19679         * lib/minmax.h (MIN, MAX)
19680         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
19681         Omit the special code that used __typeof__, since we worry that
19682         it could be more trouble than it's worth.  See:
19683         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
19684         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
19685
19686         * lib/free.c: New file.
19687
19688 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
19689
19690         Trivial fixes to Makefile.am parts of module listings.
19691         * modules/strstr: Append strstr.h to lib_SOURCES.
19692         * modules/strcase: Likewise, for strcase.h.
19693
19694 2003-09-27  Karl Berry  <karl@gnu.org>
19695
19696         * config/mkinstalldirs: update from automake.
19697
19698 2003-09-26  Paul Eggert  <eggert@twinsun.com>
19699
19700         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
19701         (error_tail): Do not loop, reallocating temporary buffer, since
19702         the output cannot contain more wide characters than the input
19703         contains bytes, the size must be big enough already.  This avoids
19704         one potential size overflow calculation.  Check for size overflow
19705         when calculating temporary buffer size.  Free temporary buffer
19706         when done, if it was allocated with malloc; this plugs a memory
19707         leak.  Remove casts from void * to pointers, that are no longer
19708         needed now that we're assuming C89 or better.
19709
19710         Merge error changes from glibc.
19711
19712         * lib/error.c, error.h: Update copyright notice header to match glibc.
19713         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
19714         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
19715         Disable cancellation while printing error.
19716         * lib/error.h: Prepend __ to parameter names.
19717
19718 2003-09-26  Jim Meyering  <jim@meyering.net>
19719
19720         * lib/error.c (error_tail): Move some declarations
19721         into inner scope where the local variables are used.
19722
19723 2003-09-26  Bruno Haible  <bruno@clisp.org>
19724
19725         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
19726         stpncpy().
19727         Don't define stpncpy through config.h; it's now done through stpncpy.h.
19728
19729 2003-09-26  Bruno Haible  <bruno@clisp.org>
19730
19731         * lib/stpncpy.h (gnu_stpncpy): New declaration.
19732         (stpncpy): Define as alias for gnu_stpncpy.
19733         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
19734
19735 2003-09-25  Simon Josefsson  <jas@extundo.com>
19736
19737         * lib/xgetdomainname.h: New file.
19738         * lib/xgetdomainname.c: New file.
19739
19740 2003-09-25  Simon Josefsson  <jas@extundo.com>
19741             Bruno Haible  <bruno@clisp.org>
19742
19743         * modules/getdomainname: New file.
19744         * modules/xgetdomainname: New file.
19745         * MODULES.html.sh (func_all_modules): Add getdomainname,
19746         xgetdomainname.
19747
19748 2003-09-25  Simon Josefsson  <jas@extundo.com>
19749             Bruno Haible  <bruno@clisp.org>
19750
19751         * m4/getdomainname.m4: New file.
19752
19753 2003-09-25  Simon Josefsson  <jas@extundo.com>
19754             Bruno Haible  <bruno@clisp.org>
19755
19756         * lib/getdomainname.h: New file.
19757         * lib/getdomainname.c: New file.
19758
19759 2003-09-25  Karl Berry  <karl@gnu.org>
19760
19761         * lib/argp-fmtstream.c, argp-help.c: update from libc.
19762
19763 2003-09-25  Karl Berry  <karl@gnu.org>
19764
19765         * config/install-sh: update from automake.
19766
19767 2003-09-25  Bruno Haible  <bruno@clisp.org>
19768
19769         * modules/version-etc-2: New file, from modules/version-etc with
19770         modifications.
19771         * MODULES.html.sh (func_all_modules): Add version-etc-2.
19772
19773 2003-09-25  Bruno Haible  <bruno@clisp.org>
19774
19775         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
19776         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
19777
19778 2003-09-24  Simon Josefsson  <jas@extundo.com>
19779
19780         * modules/xgethostname: Add xgethostname.h.
19781
19782 2003-09-24  Paul Eggert  <eggert@twinsun.com>
19783
19784         * lib/linebuffer.c (freebuffer): Don't free the argument, just
19785         the buffer associated with the argument.  Bug reported by
19786         Simon Josefsson.
19787
19788 2003-09-24  Paul Eggert  <eggert@twinsun.com>
19789
19790         * README: Document assumptions that 'int' is at least 32 bits
19791         wide, that integer arithmetic is 2's complement without overflow,
19792         that there are no holes in integer values, that adding sizes of
19793         two nonoverlapping objects can't overflow, and that all-bits-zero
19794         yields scalar zero.  Fix spelling and capitalization typos.
19795
19796 2003-09-19  Karl Berry  <karl@gnu.org>
19797
19798         * lib/argp.h: update from libc.
19799
19800 2003-09-17  Paul Eggert  <eggert@twinsun.com>
19801
19802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
19803         to avoid spurious warnings like "AC_RUN_IFELSE was called before
19804         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
19805
19806 2003-09-17  Paul Eggert  <eggert@twinsun.com>
19807
19808         * gnulib-tool: Use "test -h", not "test -L", for portability
19809         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
19810         (tags_regexp): Remove, since \| doesn't conform to POSIX.
19811         (sed_extract_prog): Issue s commands one-by-one, rather than
19812         using \| in one s command.
19813
19814 2003-09-16  Paul Eggert  <eggert@twinsun.com>
19815
19816         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
19817         input error, instead of returning NULL the next time we are called
19818         (and therefore losing track of errno).
19819
19820 2003-09-16  Bruno Haible  <bruno@clisp.org>
19821
19822         * gnulib-tool (func_create_testdir): Warn about duplicated
19823         dependencies.
19824
19825 2003-09-15  Paul Eggert  <eggert@twinsun.com>
19826
19827         * modules/argmatch, modules/fatal, modules/obstack,
19828         modules/xalloc, modules/xgethostname: Sort dependencies by
19829         importance, not alphabetically.
19830
19831 2003-09-15  Paul Eggert  <eggert@twinsun.com>
19832
19833         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
19834         fails, so that the caller gets the proper errno.
19835
19836         * lib/readutmp.c (read_utmp): Likewise.
19837         Check for fstat error.  Close stream and free storage
19838         when failing.
19839
19840 2003-09-14  Karl Berry  <karl@gnu.org>
19841
19842         * config/srclist.txt (strdup.c): disable for c89 changes.
19843
19844 2003-09-14  Jim Meyering  <jim@meyering.net>
19845
19846         * lib/getloadavg.c: Correct cpp indentation.
19847         * lib/strdup.c: Likewise.
19848         * lib/vasnprintf.c: Likewise.
19849
19850 2003-09-14  Bruno Haible  <bruno@clisp.org>
19851
19852         * modules/fwriteerror: New file.
19853         * MODULES.html.sh (func_all_modules): Add fwriteerror.
19854
19855 2003-09-14  Bruno Haible  <bruno@clisp.org>
19856
19857         * lib/fwriteerror.h: New file.
19858         * lib/fwriteerror.c: New file.
19859
19860 2003-09-12  Paul Eggert  <eggert@twinsun.com>
19861
19862         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
19863         modules/xgethostname, modules/xalloc: Depend on exit.
19864
19865 2003-09-12  Paul Eggert  <eggert@twinsun.com>
19866
19867         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
19868
19869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
19870         and AC_MINIX, too, so that their extensions are available.
19871
19872         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
19873         This macro has been superseded by gl_BACKUPFILE.
19874
19875         More patches to assume C89 or better.
19876
19877         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
19878
19879         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
19880         unconditionally.
19881         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
19882         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
19883         Include <string.h>, <stdlib.h> unconditionally.
19884         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
19885         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
19886         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
19887         headers or for string.h.
19888         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
19889         or strtoul.
19890
19891         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
19892         headers.
19893         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
19894         * m4/userspec.m4 (gl_USERSPEC): Likewise.
19895         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
19896         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
19897         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
19899         memcpy, memset.
19900         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
19901         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
19902         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
19903         strtol.
19904         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
19905         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
19906         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
19907         strtoul.
19908
19909 2003-09-12  Paul Eggert  <eggert@twinsun.com>
19910
19911         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
19912         * lib/obstack.c [!defined _LIBC]: Likewise.
19913         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
19914         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
19915         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
19916
19917         More changes to assume C89 or better.
19918
19919         * lib/error.c (error_tail): Assume vprintf.
19920
19921         * lib/argmatch.c (getenv): Remove decl.
19922         * lib/progreloc.c (get_full_program_name): Define via prototype.
19923         * lib/setenv.c (clearenv): Likewise.
19924         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
19925         needed.
19926         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
19927         (malloc, memcpy): Remove decls.
19928         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
19929         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
19930         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
19931         (memcpy): Remove macro.
19932         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
19933         (__P): Remove.  All uses removed.
19934         (PTR): Remove.  All uses changed to void *.
19935         (CHAR_BIT, NULL): Remove.
19936         (spaces, zeros, memset_space, memset_zero)
19937         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
19938         Remove.
19939         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
19940         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
19941         Define with prototype.
19942         Remove now-unnecessary prototype decl.
19943         (extra_args_spec): Assume ANSI C.  All uses changed.
19944         (extra_args_spec_iso): Remove.
19945         (my_strftime, emacs_strftimeu): Define via prototype.
19946         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
19947         unconditionally.
19948         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
19949         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
19950         (strtoul, strtol): Remove decls.
19951         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
19952         LONG_MAX): Remove.
19953         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
19954         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
19955         (LOCALE_PARAM_PROTO): New macro.
19956         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
19957         (INTERNAL (strtol), strtol): Define with a prototype.
19958         (PARAMS): Remove.  All uses removed.
19959         * lib/tempname.c: Include <string.h> unconditionally.
19960         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
19961         * lib/xgethostname.c (main): Define with a prototype.
19962         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
19963         Include <stdlib.h> unconditionally.
19964         (calloc, malloc, realloc, free): Remove decls.
19965         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
19966         Include <stdlib.h> unconditionally.  Sort include file names.
19967         (strtod): Remove.
19968         (xstrtod): Define with a prototype.
19969         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
19970         (strtol, strtoul): Remove decls.
19971
19972 2003-09-11  Paul Eggert  <eggert@twinsun.com>
19973
19974         More patches to assume C89 or better.
19975         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
19976         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
19977         string.h, memchr, STDC_HEADERS.
19978
19979 2003-09-11  Paul Eggert  <eggert@twinsun.com>
19980
19981         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
19982         Include <stdlib.h>, <string.h> unconditionally.
19983         Remove now-unnecessary cast to char *.
19984         * lib/strnlen.c: Include <string.h> unconditionally.
19985         * lib/yesno.c (yesno): Define with a prototype.
19986
19987 2003-09-11  Bruno Haible  <bruno@clisp.org>
19988
19989         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
19990
19991 2003-09-10  Jim Meyering  <jim@meyering.net>
19992
19993         * lib/error.c: Correct indentation of cpp directives.
19994
19995 2003-09-10  Bruno Haible  <bruno@clisp.org>
19996
19997         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
19998         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
19999         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
20000         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
20001         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
20002         <stdlib.h> and <string.h> checks.
20003         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
20004         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
20005
20006 2003-09-10  Bruno Haible  <bruno@clisp.org>
20007
20008         * lib/strcspn.c: Include <string.h> unconditionally.
20009         * lib/strpbrk.c: Include <string.h> unconditionally.
20010         * lib/strstr.c: Include <string.h> unconditionally.
20011         * lib/unicodeio.c: Include <string.h> unconditionally.
20012         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
20013         * lib/unsetenv.c: Likewise.
20014         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
20015         * lib/yesno.c: Include <stdlib.h> unconditionally.
20016         (rpmatch): Add prototype.
20017
20018 2003-09-09  Paul Eggert  <eggert@twinsun.com>
20019
20020         More patches to assume C89 or better.
20021         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
20022         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
20023         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
20024         or for string.h.
20025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
20026         stdlib.h.
20027         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
20028         C headers.
20029         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
20030         string.h.
20031         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
20032         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
20033         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
20034         or for string.h.
20035         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
20036         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
20037         C headers.
20038         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
20039         memcpy.
20040         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
20041         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
20042         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
20043         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
20044         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
20045         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
20046         string.h, free.
20047         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
20048         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
20049         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
20050         C headers, or for string.h.
20051         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
20052         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
20053         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
20054         headers, memory.h, stdlib.h, string.h, strings.h.
20055         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
20056         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
20057         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
20058         strchr.
20059         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
20060         headers, memory.h, string.h.
20061         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
20062         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
20063         free.
20064         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
20065         headers.
20066         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
20067         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
20068         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
20069         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
20070         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
20071
20072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
20073
20074         More K&R removal.
20075
20076         * lib/acosl.c (main): Use a prototype.
20077         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
20078         tanl.c: Likewise.
20079
20080         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
20081
20082         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
20083         (getopt, etopt_long, getopt_long_only, _getopt_internal)
20084         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
20085         with a prototype.
20086         * lib/getopt.c (const): Remove macro.
20087         Include <string.h> unconditionally.
20088         (my_index): Remove; all uses changed to strchr.
20089         (strlen): Remove decl.
20090         (exchange): Remove forward decl; no longer needed.
20091         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
20092         Define with prototype.
20093         * lib/getopt1.c (const): Remove macro.
20094         (getopt_long, getopt_long_only, main): Define with prototype.
20095
20096         * lib/getugroups.c: Include <string.h> unconditionally.
20097
20098         * lib/getusershell.c: Include <stdlib.h> unconditionally.
20099         (getusershell, setusershell, endusershell, readname, main):
20100         Define with prototypes.
20101
20102         * lib/group-member.c: Include group-member.h first.
20103         Include <stdlib.h> unconditionally.
20104
20105         * lib/hard-locale.c: Include hard-locale.h first.
20106         Include <stdlib.h>, <string.h> unconditionally.
20107
20108         * lib/hash.c (free, malloc): Remove decls.
20109         Include <stdlib.h> unconditionally.
20110
20111         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
20112         (getenv): Do not declare.
20113
20114         * lib/idcache.c: Include <string.h> unconditionally.
20115
20116         * lib/long-options.c: Include long-options.h first, to test interface.
20117         Include <stdlib.h> unconditionally.
20118
20119         * lib/makepath.c: Include makepath.h first, to test interface.
20120         Include <stdlib.h> and <string.h> unconditionally.
20121
20122         * lib/linebuffer.c: Include <stdlib.h>.
20123         (free): Remove decl.
20124
20125         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
20126         stddef.h. rpl_malloc returns void *, not char *.
20127         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
20128         prototype.
20129
20130         * lib/md5.h: Include <limits.h> unconditionally.
20131         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
20132         (__P): Remove; all uses removed.
20133         * lib/md5.c: Include "md5.h" first.
20134         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
20135         md5_buffer, md5_process_bytes, md5_process_block):
20136         Define with prototypes.
20137         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
20138         * lib/sha.c: Include "sha.h" first.
20139         Include <stdlib.h>, <string.h> unconditionally.
20140
20141         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
20142         * lib/memcmp.c (__ptr_t): Likewise.
20143         * lib/memrchr.c (__ptr_t): Likewise.
20144         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
20145         Include <string.h> unconditionally.
20146         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
20147         * lib/memchr.c: Include <stdlib.h> unconditionally.
20148         * lib/memchr.c (LONG_MAX): Remove.
20149         * lib/memrchr.c (LONG_MAX): Likewise.
20150         * lib/memchr.c (__memchr): Define via a prototype.
20151         * lib/memrchr.c (__memrchr): Likewise.
20152         * lib/memcmp.c (__P): Remove, and remove all uses.
20153         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
20154         Remove forward decls; no longer needed.
20155         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
20156         Use types required by C89 in prototype.
20157
20158         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
20159         * lib/savedir.c: Likewise.
20160         * lib/mkdir.c (free): Remove decl.
20161         * lib/rmdir.c (rmdir): Define with a prototype.
20162         * lib/savedir.c: Include savedir.h first, to test interface.
20163
20164         * lib/mktime.c (STDC_HEADERS): Remove.
20165         Include <stdlib.h>, <string.h> unconditionally.
20166
20167         * lib/modechange.c: Include <stdlib.h> unconditionally.
20168         (malloc): Remove decl.
20169
20170         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
20171         (free): Remove decl.
20172
20173         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
20174         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
20175         (This type really should be intptr_t, but that's a C99ism.)
20176         (_obstack_memcpy): Remove: all uses changed to memcpy.
20177         Include <string.h> unconditionally.
20178         (struct obstack): Assume __STDC__ for types of members
20179         chunkfun, freefun, extra_arg.
20180         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
20181         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
20182         obstack_begin, obstack_specify_allocation,
20183         obstack_specify_allocation_with_arg, obstack_chunkfun,
20184         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
20185         Remove unprototyped decls and the macros that use them.
20186         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
20187         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
20188         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
20189         (defined __STDC__ && __STDC__)]:
20190         Remove nonprototyped code.
20191         Include <stdlib.h> unconditionally.
20192         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
20193         _obstack_allocated_p, _obstack_free, obstack_free,
20194         _obstack_memory_used, print_and_abort):
20195         Define using prototypes.
20196         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
20197         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
20198         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
20199         obstack_next_free, obstack_object_size, obstack_room) [0]:
20200         Remove unused, unprototyped code.
20201
20202         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
20203
20204         * lib/physmem.c (physmem_total, physmem_available, main): Define
20205         with prototypes.
20206
20207         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
20208         (main): Define with a prototype.
20209
20210         * lib/posixver.c (getenv): Remove decl.
20211
20212         * lib/putenv.c (malloc): Returns void *, not char *.
20213         Include <string.h> unconditionally.
20214         (strchr, memcpy, NULL): Do not define.
20215
20216         * lib/readtokens.c: Include readtokens.h first, to test interface.
20217         Include <stdlib.h>, <string.h> unconditionally.
20218         (init_tokenbuffer): Define with a prototype.
20219
20220         * lib/regex.c (PARAMS): Remove.  All uses removed.
20221         All uses of _RE_ARGS removed, too.
20222         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20223         unconditionally.
20224         (bzero): Assume memset exists.
20225         (memcmp, memcpy, NULL): Remove.
20226         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
20227         char, or assignments to local vars of type signed char.
20228         (init_syntax_once, PREFIX(extract_number_and_incr),
20229         PREFIX(print_partial_compiled_pattern),
20230         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
20231         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
20232         PREFIX(regex_grow_registers), PREFIX(regex_compile),
20233         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
20234         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
20235         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
20236         wcs_compile_range, byte_compile_range, truncate_wchar,
20237         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
20238         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
20239         count_mbs_length, wcs_re_match_2_internal,
20240         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
20241         PREFIX(alt_match_null_string_p),
20242         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
20243         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
20244         regfree, PREFIX(extract_number)): Define with prototype.  Remove
20245         now-unnecessary declaration, if any.
20246         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
20247         regcomp, regexec):
20248         Remove now-unnecessary casts among pointer types.
20249         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
20250
20251         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
20252         (free): Remove decl.
20253
20254         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
20255
20256         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
20257         (free): Remove decl.
20258
20259         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
20260         * lib/xgetcwd.c: Likewise.
20261
20262         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
20263         (free): Remove decl.
20264
20265         * lib/strchrnul.c (strchrnul): Define with a prototype.
20266         Fix bug: c_in was not converted to char before searching.
20267
20268         The following changes are not K&R related:
20269
20270         * lib/group-member.h: Include <sys/types.h>, so that this file is
20271         self-contained.
20272         * lib/makepath.h: Likewise.
20273
20274         * lib/getusershell.c (readname, default_index, line_size, readname):
20275         Use size_t, not int, for sizes.
20276         (readname): If the size overflows, report an error instead of
20277         looping forever.
20278
20279 2003-09-09  Paul Eggert  <eggert@twinsun.com>
20280
20281         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
20282         libc.
20283
20284 2003-09-09  Paul Eggert  <eggert@twinsun.com>
20285
20286         * README: New section: portability guidelines.
20287
20288 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
20289
20290         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
20291         C89 spec.
20292
20293 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
20294
20295         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
20296
20297 2003-09-08  Paul Eggert  <eggert@twinsun.com>
20298
20299         Assume C89 or better; remove K&R cruft.
20300         A few of these changes were first proposed by Derek Robert Price
20301         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
20302
20303         * lib/addext.c: Include <string.h> unconditionally.
20304         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
20305         Don't declare getenv or malloc.
20306
20307         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
20308         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
20309         (NULL): Remove.
20310         (find_stack_direction, alloca): Use prototypes.
20311
20312         * lib/atexit.c (atexit): Define using a prototype.
20313
20314         * lib/basename.c, dirname.c, stripslash.c:
20315         Include <string.h> unconditionally.
20316
20317         * lib/bcopy.c: Include <stddef.h>.
20318         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
20319
20320         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
20321
20322         * lib/error.h (error, error_at_line, error_print_progname)
20323         [! (defined (__STDC__) && __STDC__)]: Remove decls.
20324         * lib/error.c: Include error.h first, to check interface.
20325         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20326         (VA_START): Remove; all uses changeed to va_start.
20327         (exit, strerror): Remove decls.
20328         (error_print_progname): Prototype uncondionally.
20329         Don't include <errno.h>; no longer needed.
20330         (private_strerror): Remove.
20331         (error_tail): Always define.
20332         (error, error_at_line): Assume C89 or better; always use prototypes.
20333         * lib/fatal.c: Include "fatal.h" first, to test interface.
20334         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20335         (VA_START): Remove; all uses changed to va_start.
20336         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
20337         this case.
20338         (exit): Remove decl.
20339         (fatal): Prototype unconditionally.  Assume va_start works.
20340         Abort at end, to pacify gcc.
20341
20342         * lib/euidaccess.c (main): Define with a prototype.
20343
20344         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
20345
20346         * lib/exitfail.c: Include <stdlib.h> unconditionally.
20347
20348         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
20349         prototypes.
20350         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
20351         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
20352         (getenv): Remove decl.
20353         (fnmatch): Define using a prototype.
20354         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
20355         (FCT): Define using a prototype.
20356
20357         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
20358
20359         * lib/gethostname.c: Include <stddef.h>.
20360         (gethostname): Define with prototype.  Length is size_t, not int.
20361
20362 2003-09-08  Paul Eggert  <eggert@twinsun.com>
20363
20364         Assume C89 or better; remove K&R cruft.
20365         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
20366         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
20367         string.h, getenv, malloc.
20368         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
20369         headers.
20370         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
20371         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
20372         do not check for strerror.
20373         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
20374         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
20375         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
20376         do not check for doprnt or vprintf.
20377         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
20378         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
20379
20380 2003-09-08  Paul Eggert  <eggert@twinsun.com>
20381
20382         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
20383         getversion.c should have been removed then, but was accidentally
20384         preserved.
20385
20386         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
20387         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
20388
20389 2003-09-08  Karl Berry  <karl@gnu.org>
20390
20391         * config/config.sub, config.guess, srclistvars.sh: update from savannah
20392                 config, forget about prep.
20393
20394         * config/depcomp, missing: update from automake.
20395
20396 2003-09-07  Paul Eggert  <eggert@twinsun.com>
20397
20398         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
20399         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20400
20401 2003-09-07  Paul Eggert  <eggert@twinsun.com>
20402
20403         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
20404         copy_tm_result.  Bug reported by Simon Josefsson in
20405         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20406
20407 2003-09-06  Paul Eggert  <eggert@twinsun.com>
20408
20409         * m4/time_r.m4: New file.
20410         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
20411         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
20412         is. Check for timegm declaration.
20413         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
20414         Do not check for gmtime_r.
20415         Replace mktime if __mktime_internal does not exist and if mktime
20416         hasn't been replaced already.
20417
20418 2003-09-06  Paul Eggert  <eggert@twinsun.com>
20419
20420         * lib/time_r.c, lib/time_r.h: New files.
20421
20422         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
20423         __localtime_r.
20424         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
20425         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
20426
20427         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
20428         __gmtime_r.
20429         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
20430         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
20431         Include <time_r.h>.
20432
20433         * lib/timegm.c: Switch to glibc implementation, with the following
20434         changes:
20435         [defined HAVE_CONFIG_H]: Include <config.h>.
20436         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
20437         (__mktime_internal) [!defined _LIBC]: New decl.
20438         (__gmtime_r) [!defined _LIBC]: New macro and function.
20439         (timegm): Use a prototype, since gnulib assumes C89.
20440         Do not bother declaring tmp to be const, as it's not really usefu.
20441         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
20442         (timegm): Declare only if HAVE_DECL_TIMEGM.
20443
20444 2003-09-06  Paul Eggert  <eggert@twinsun.com>
20445
20446         * MODULES.html.sh (func_all_modules): Add time_r.
20447         * modules/time_r: New file.
20448         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
20449         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
20450
20451 2003-09-03  Paul Eggert  <eggert@twinsun.com>
20452
20453         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
20454         Bug reported by Lute Kamstra in
20455         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
20456
20457         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
20458         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
20459         course with correspondingly smaller numbers for tomorrow and
20460         yesterday.  From Tadayoshi Funaba.  Originally installed into
20461         sh-utils on 1999-08-07, but the patch got lost (I guess during the
20462         coreutils merge?).
20463
20464 2003-08-31  Simon Josefsson  <jas@extundo.com>
20465
20466         * modules/timegm: New file.
20467         * MODULES.html.sh (func_all_modules): Add timegm.
20468
20469 2003-08-31  Simon Josefsson  <jas@extundo.com>
20470
20471         * m4/timegm.m4: New file.
20472
20473 2003-08-31  Simon Josefsson  <jas@extundo.com>
20474
20475         * lib/timegm.h: New file.
20476         * lib/timegm.c: New file.  Based on
20477         wget-1.8.2/src/http.c:mktime_from_utc.
20478
20479 2003-08-31  Karl Berry  <karl@gnu.org>
20480
20481         * lib/argp.h: update from libc.
20482
20483 2003-08-28  Bruno Haible  <bruno@clisp.org>
20484
20485         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
20486         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
20487         followed by '#define fnmatch fnmatch_posix' gives an error.
20488
20489 2003-08-28  Bruno Haible  <bruno@clisp.org>
20490
20491         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
20492         warning on QNX, which defines O_BINARY to 000000.
20493
20494 2003-08-27  Jim Meyering  <jim@meyering.net>
20495
20496         * m4/mkstemp.m4: Require that the system mkstemp be able to create
20497         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
20498         would fail after 32.  Reported by Danny Levinson.  Details here:
20499         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
20500
20501 2003-08-24  Bruno Haible  <bruno@clisp.org>
20502
20503         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
20504         MSVC7 <stdio.h> is included later.
20505
20506 2003-08-22  Simon Josefsson  <jas@extundo.com>
20507
20508         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
20509
20510 2003-08-20  Karl Berry  <karl@gnu.org>
20511
20512         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
20513
20514 2003-08-20  Bruno Haible  <bruno@clisp.org>
20515
20516         * modules/progname: New file.
20517         * MODULES.html.sh (func_all_modules): Add progname.
20518
20519 2003-08-20  Bruno Haible  <bruno@clisp.org>
20520
20521         * lib/progname.h: New file, from GNU gettext.
20522         * lib/progname.c: New file, from GNU gettext.
20523         * lib/progreloc.c: New file, from GNU gettext.
20524
20525 2003-08-19  Jim Meyering  <jim@meyering.net>
20526
20527         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
20528         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
20529
20530 2003-08-19  Bruno Haible  <bruno@clisp.org>
20531
20532         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
20533         more.
20534
20535 2003-08-19  Bruno Haible  <bruno@clisp.org>
20536
20537         * lib/xstrdup.c: Assume <string.h> exists.
20538
20539 2003-08-18  Paul Eggert  <eggert@twinsun.com>
20540
20541         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
20542         in makefile rules.
20543
20544 2003-08-18  Jim Meyering  <jim@meyering.net>
20545
20546         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
20547         * m4/lib-ld.m4: Likewise.
20548
20549 2003-08-18  Jim Meyering  <jim@meyering.net>
20550
20551         * lib/setenv.h: Indent nested cpp directive.
20552         * lib/vasnprintf.c: Remove trailing blanks.
20553
20554 2003-08-17  Simon Josefsson  <jas@extundo.com>
20555
20556         * modules/xstrndup: New file.
20557         * MODULES.html.sh (func_all_modules): Add xstrndup.
20558
20559 2003-08-17  Simon Josefsson  <jas@extundo.com>
20560
20561         * modules/argp: Fix autoconf macro name. Add more dependencies.
20562
20563 2003-08-17  Simon Josefsson  <jas@extundo.com>
20564
20565         * m4/xstrndup.m4: New file.
20566
20567 2003-08-17  Simon Josefsson  <jas@extundo.com>
20568
20569         * m4/argp.m4: New file.
20570
20571 2003-08-17  Simon Josefsson  <jas@extundo.com>
20572             Bruno Haible  <bruno@clisp.org>
20573
20574         * lib/xstrndup.h: New file.
20575         * lib/xstrndup.c: New file.
20576
20577 2003-08-17  Bruno Haible  <bruno@clisp.org>
20578
20579         * modules/strndup (Files, Include): Add lib/strndup.h.
20580
20581 2003-08-17  Bruno Haible  <bruno@clisp.org>
20582
20583         * modules/euidaccess (Files): Add lib/euidaccess.h.
20584
20585 2003-08-17  Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/strndup.h: New file.
20588
20589 2003-08-17  Bruno Haible  <bruno@clisp.org>
20590
20591         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
20592         like AC_GNU_SOURCE.
20593         * modules/extensions (configure.ac): Comment out the invocation of
20594         gl_USE_SYSTEM_EXTENSIONS.
20595
20596 2003-08-16  Paul Eggert  <eggert@twinsun.com>
20597
20598         Merges from coreutils, etc.
20599         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
20600         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
20601         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
20602         fixing a typo.
20603         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
20604         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
20605
20606 2003-08-16  Paul Eggert  <eggert@twinsun.com>
20607
20608         Document merge from coreutils.
20609         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
20610         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
20611         * modules/utime: Add m4/utimes-null.m4.
20612
20613 2003-08-16  Paul Eggert  <eggert@twinsun.com>
20614
20615         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
20616         space, undoing this 2003-08-12 change:
20617         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
20618
20619 2003-08-16  Paul Eggert  <eggert@twinsun.com>
20620
20621         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
20622         strtoul.c from libc, undoing this 2003-08-12 change:
20623         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
20624
20625 2003-08-16  Jim Meyering  <jim@meyering.net>
20626
20627         Merges from coreutils.
20628         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
20629         prefix.  Adjust cache variables similarly.  Create 500 rather than
20630         just 300 files, to exercise bug on Darwin6.5, too.
20631         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
20632         $missing_dir.
20633         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
20634         AM_SYS_POSIX_TERMIOS.
20635         Reported by mkc@mathdogs.com.
20636         Also change use of $am_cv_sys_posix_termios
20637         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
20638         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
20639         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
20640         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
20641         in /proc/mounts until it finds one with matching device number.  This
20642         is unnecessary when the FILE argument *is* a mount point.  No stat call
20643         is necessary in that case.  So, disable the statvfs-testing code on
20644         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
20645         as RedHat bug# 84846.
20646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
20647         to 1MB, so as not to render systems with no stack size limit (e.g.,
20648         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
20649         Include <unistd.h>.  On some systems,
20650         it is required for the definition of _SC_PAGESIZE.
20651
20652 2003-08-16  Jim Meyering  <jim@meyering.net>
20653
20654         Merge from coreutils.
20655         * lib/xstrtoimax.c: #else #if -> #elif.
20656         * lib/xstrtoumax.c: Likewise.
20657
20658 2003-08-16  Jim Meyering  <jim@meyering.net>
20659
20660         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
20661         * m4/utimes.m4: Removed.
20662         * m4/utimes-null.m4: Renamed from utimes.m4.
20663
20664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
20665         to 1MB, so as not to render systems with no stack size limit (e.g.,
20666         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
20667         Include <unistd.h>.  On some systems,
20668         it is required for the definition of _SC_PAGESIZE.
20669
20670 2003-08-16  Jim Meyering  <jim@meyering.net>
20671         and Paul Eggert  <eggert@cs.ucla.edu>
20672
20673         Merges from coreutils, etc.
20674
20675         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
20676         using the latest version from cvs.  This avoids problems with #line
20677         directives using a vendor (Sun) compiler.
20678         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
20679         Don't set GETGROUPS_LIB here; now it's
20680         done via getgroups.m4's wrapper function.
20681         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
20682         rather than just in sh-util/configure.in, so that the
20683         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
20684         same.
20685         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
20686         AC_FUNC_GETLOADAVG where to find getloadavg.c.
20687         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
20688         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
20689         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
20690         Remove code that is now done by the newly-required macros.
20691         Append $(EXEEXT) to DF_PROG.
20692         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
20693         Do not invoke or require the following here,
20694         since prereq.m4 or some gnulib .m4 now does this for us:
20695         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
20696         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
20697         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
20698         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
20699         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
20700         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
20701         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
20702         AC_FUNC_OBSTACK.
20703         Do not replace the following functions, as this is now the job
20704         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
20705         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
20706         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
20707         atexit getpass, strdup, getpagesize.
20708         Replace 'raise'.
20709         Do not check for the following functions, as this is now the job
20710         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
20711         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
20712         setregid.
20713         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
20714         Check for sys/sysctl.h.
20715         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
20716         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
20717         of checking for ssize_t ourselves.
20718
20719         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
20720         Require every macro that gnulib/modules/* suggests for us.
20721         (jm_PREREQ_ADDEXT): New macro.
20722         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
20723         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
20724
20725         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
20726         (gl_PHYSMEM): Use it.
20727         Also check for `table' function.
20728         Check for new headers and functions.
20729         Add check for sys/sysmp.h.
20730         With suggestions from Kaveh Ghazi.
20731         Ignore headers that are present but cannot be compiled.  This
20732         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
20733         C 5.4.
20734
20735 2003-08-15  Paul Eggert  <eggert@twinsun.com>
20736
20737         Document merge from coreutils.
20738         * modules/userspec: Depend on posixver.
20739         * modules/strftime: Depend on tzset.
20740
20741 2003-08-15  Paul Eggert  <eggert@twinsun.com>
20742
20743         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
20744         rather than tab, after '#' in shell-script copyright notices.
20745         Suggested by Bruno Haible.
20746
20747 2003-08-15  Paul Eggert  <eggert@twinsun.com>
20748
20749         * config/srclist-update: Use three spaces, rather than tab, after '#'
20750         in shell-script copyright notices.  Suggested by Bruno Haible.
20751         Remove unnecessary parenthesization in regular expression.
20752
20753 2003-08-15  Jim Meyering  <jim@meyering.net>
20754
20755         Merge from coreutils.
20756         * lib/xgethostname.c: Include <stdlib.h>.
20757         (xghostname): Don't exit for anything other than memory-related
20758         failure; just return NULL.
20759         * lib/userspec.c: Include "posixver.h".
20760         (parse_user_spec): Accept `.' as a separator only
20761         in pre-POSIX-200112 mode.
20762         * lib/strtoimax.c: Use #elif rather than #else #if.
20763         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
20764         Remove function, now that we can rely on a working tzset function.
20765         [!_LIBC]: Ensure that the required autoconf test has been run.
20766         [!defined _NL_CURRENT && HAVE_STRFTIME]:
20767         Use underlying_strftime for %r.
20768         * lib/sha.c: Merge in some clean-up and optimization changes from
20769         glibc.
20770         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
20771         Ensure that it is a multiple of 64.
20772         Rearrange loop exit tests so as to avoid performing an
20773         additional fread after encountering an error or EOF.
20774         * lib/realloc.c: Update copyright date.
20775
20776 2003-08-15  Jim Meyering  <jim@meyering.net>
20777         and Paul Eggert  <eggert@twinsun.com>
20778
20779         Merge from coreutils.
20780         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
20781         member but strut utmpx does not.  Needed for AIX 4.3.3.
20782         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
20783
20784 2003-08-15  Jim Meyering  <jim@meyering.net>
20785         and Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         Merges from coreutils, etc.
20788         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
20789         Require gl_FUNC_TZSET_CLOBBER.
20790         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
20791         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
20792         members.
20793
20794 2003-08-14  Paul Eggert  <eggert@twinsun.com>
20795
20796         Help the merge from coreutils.
20797         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
20798         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
20799         * m4/tzset.m4: Use it too.
20800
20801 2003-08-14  Paul Eggert  <eggert@twinsun.com>
20802
20803         * modules/tzset: New file.
20804
20805 2003-08-14  Jim Meyering  <jim@meyering.net>
20806
20807         Merges from coreutils.
20808         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
20809         variable names, rather than @FNMATCH_H@.
20810         * modules/alloca: Likewise for $(ALLOCA_H).
20811
20812         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
20813         the three copies of the literal target, `fnmatch.h'.
20814         * modules/alloca (alloca.h): Likewise.
20815
20816 2003-08-14  Jim Meyering  <jim@meyering.net>
20817
20818         Merge from coreutils.
20819         * m4/tzset.m4: New file.
20820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
20821         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
20822         otherwise, AIX 5.1 systems would end up using the latter.
20823         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
20824         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
20825         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
20826         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
20827
20828 2003-08-14  Jim Meyering  <jim@meyering.net>
20829
20830         Merge from coreutils.
20831         * lib/obstack.h: Whitespace changes.
20832         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
20833         and xcalloc return values.
20834         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
20835         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
20836         hang on OSF/1 5.1 for DIR on both local and remote file systems.
20837         Reported by (and fix confirmed by) Nelson H. F. Beebe.
20838         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20839         error from mntctl.
20840         Use mntctl's return value to drive the entry-processing loop, since
20841         we can't rely on the value of the vmt_length member in the last
20842         entry.  On some systems doing so could result in exhausting
20843         virtual memory.  Based in part on a patch from Mike Jetzer.
20844
20845 2003-08-14  Jim Meyering  <jim@meyering.net>
20846         and Paul Eggert  <eggert@twinsun.com>
20847
20848         Merges from coreutils, plus other fixes.
20849         * lib/physmem.c: Merge in portability changes from gcc/libiberty
20850         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
20851         for credits and details.  Thanks to Kaveh Ghazi for helping
20852         to keep these files in sync.
20853         (ARRAY_SIZE): Define it.
20854         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
20855         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
20856         (memcasecmp): Don't assume size_t fits in unsigned int.
20857         Remove casts and duplicate code.
20858         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
20859         (memcpy): Remove definition.
20860         Merge in some clean-up and optimization changes from glibc.
20861         [BLOCKSIZE]: Move definition to top of file.
20862         Ensure that it is a multiple of 64.
20863         Rearrange loop exit tests so as to avoid performing an
20864         additional fread after encountering an error or EOF.
20865         * lib/md5.h (md5_uintptr): Define.
20866         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
20867         return to the initial working directory.  Preserve errno
20868         for caller.
20869         * lib/idcache.c: Include "xalloc.h".
20870         (xmalloc, xrealloc): Remove decls.
20871         (getuser): Remove casts no longer required in C89.
20872         * lib/human.c: Include stdio.h, for sprintf.
20873         * lib/group-member.c: Include "xalloc.h".
20874         (xmalloc, xrealloc): Remove decls.
20875         (get_group_info): Remove casts no longer required in C89.
20876         * lib/getusershell.c (readname): Remove casts no longer required in
20877         C89.
20878         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
20879         * lib/getline.c: Whitespace fix, from coreutils.
20880
20881 2003-08-13  Paul Eggert  <eggert@twinsun.com>
20882
20883         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
20884         Check for isascii.
20885
20886         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20887         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20888         Undo previous (whitespace-only) change.
20889
20890 2003-08-13  Paul Eggert  <eggert@twinsun.com>
20891
20892         * lib/exclude.c: Include <ctype.h>
20893         (IN_CTYPE_DOMAIN): New macro.
20894         (is_space): New fn.
20895         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
20896         and empty lines.
20897
20898         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20899         Undo previous (whitespace-only) change.
20900
20901 2003-08-13  Paul Eggert  <eggert@twinsun.com>
20902
20903         * config/srclist-update: Change update back to the old behavior,
20904         leaving whitespace alone.  Use one 'sed' command rather than a
20905         pipeline.
20906         (fixlicense): Now a variable, not a function.
20907         (remove_trailing_blanks): Remove.
20908         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
20909         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
20910         Undo previous (whitespace-only) change.
20911
20912 2003-08-12  Paul Eggert  <eggert@twinsun.com>
20913
20914         Merge from coreutils.
20915         * modules/euidaccess: Add lib_SOURCES, include for new
20916         file euidaccess.h
20917
20918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
20919
20920         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20921         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20922         Normalize leading white space and remove trailing white space.
20923
20924         Merge from coreutils
20925         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
20926
20927         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
20928         0.12.1.  These files are now being upgraded automatically by
20929         ../config/srclist-update.
20930
20931 2003-08-12  Paul Eggert  <eggert@twinsun.com>
20932
20933         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20934         Normalize leading white space and remove trailing white space.
20935         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
20936         notice, as per ../config/srclist-update.
20937
20938         Merge from coreutils.
20939         * lib/euidaccess.h: New file.
20940         * lib/euidaccess.c: Include it.
20941         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
20942         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
20943         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
20944
20945 2003-08-12  Paul Eggert  <eggert@twinsun.com>
20946
20947         * config/srclist-update: Add copyright notice.
20948         (remove_id_lines, remove_trailing_blanks): New constants.
20949         (fixfile): Use them to normalize spacing a bit in copied files.
20950         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
20951         Normalize leading white space and remove trailing white space.
20952
20953         * config/texinfo.tex: Sync with texinfo.
20954
20955         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
20956         strtoul.c from libc, to merge coreutils whitespace changes.
20957
20958         * config/srclist.txt: Get the following m4 files from gettext:
20959         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
20960         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
20961         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
20962         wint_t.m4.
20963
20964 2003-08-12  Karl Berry  <karl@gnu.org>
20965
20966         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
20967         been made.
20968
20969 2003-08-11  Paul Eggert  <eggert@twinsun.com>
20970
20971         * modules/gnu-source, m4/gnu-source.m4:
20972         Remove; we're assuming Autoconf 2.54 or later now.
20973         Suggested by Bruno Haible.
20974         * MODULES.html.sh (func_all_modules): Remove gnu-source.
20975
20976 2003-08-11  Bruno Haible  <bruno@clisp.org>
20977
20978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
20979
20980 2003-08-11  Bruno Haible  <bruno@clisp.org>
20981
20982         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
20983         (vasnprintf): Use it instead of wcslen.
20984
20985 2003-08-11  Bruno Haible  <bruno@clisp.org>
20986
20987         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
20988         value to ensure that _Bool promotes to int. Use #define for _Bool when
20989         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
20990
20991 2003-08-10  Karl Berry  <karl@gnu.org>
20992
20993         * lib/regex.h: update from libc (whitespace fix).
20994
20995 2003-08-09  Paul Eggert  <eggert@twinsun.com>
20996
20997         Merge some files from coreutils.  These changes were
20998         originally made by Jim Meyering.
20999         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
21000         many older Unixes require this.
21001         * lib/alloca.c (alloca): Remove cast to argument of free;
21002         no longer needed in C89.
21003         * lib/alloca_.h, regex.h: Fix white space to match
21004         what GNU indent does.
21005
21006 2003-08-09  Paul Eggert  <eggert@twinsun.com>
21007
21008         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
21009         apparently Emacs's Unicode mode got confused before my 2003-08-05
21010         checkin.
21011
21012 2003-08-08  Paul Eggert  <eggert@twinsun.com>
21013
21014         * m4/extensions.m4: New file.
21015         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
21016         Require gl_USE_SYSTEM_EXTENSIONS.
21017         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
21018         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
21019
21020 2003-08-08  Paul Eggert  <eggert@twinsun.com>
21021
21022         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
21023         * modules/extensions, modules/gnu-source: New files.
21024         * modules/timespec, modules/unlocked-io: Depend on extensions.
21025
21026 2003-08-07  Paul Eggert  <eggert@twinsun.com>
21027
21028         * modules/restrict: New file.
21029         * MODULES.html.sh (func_all_modules): Add restrict.
21030         * modules/regex: Depend on restrict.
21031
21032 2003-08-07  Paul Eggert  <eggert@twinsun.com>
21033
21034         * m4/restrict.m4: New file.
21035         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
21036
21037 2003-08-07  Bruno Haible  <bruno@clisp.org>
21038
21039         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
21040         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
21041
21042 2003-08-07  Bruno Haible  <bruno@clisp.org>
21043
21044         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
21045         makes the module 'getndelim2' compatible with the module 'getline'.
21046
21047 2003-08-05  Paul Eggert  <eggert@twinsun.com>
21048
21049         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
21050         byte with "\201" to avoid glitches when editing that source file
21051         with multi-gnome-terminal.
21052
21053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
21054
21055         * lib/bumpalloc.h: Remove.
21056
21057 2003-08-05  Paul Eggert  <eggert@twinsun.com>
21058
21059         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
21060         * modules/bumpalloc: Remove.
21061
21062 2003-08-04  Paul Eggert  <eggert@twinsun.com>
21063
21064         * lib/getloadavg.c: Change copyright notice and spacing to conform to
21065         GNU coding style.
21066
21067         Merge from coreutils.
21068         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
21069         1. From glibc.
21070         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
21071         from Karl Berry, implemented by Jim Meyering.
21072         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
21073         from Dmitry V. Levin.
21074         Remove anachronistic cast of xrealloc.
21075         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
21076         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
21077         type. Otherwise, it wouldn't compile with at least /bin/cc on
21078         ymp-cray-unicos9.0.2.X.
21079         Combine two mostly-identical uses of alloca into one.
21080         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
21081
21082 2003-08-04  Dave Love  <d.love@dl.ac.uk>
21083
21084         [From Emacs.]
21085
21086         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
21087         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
21088         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
21089         obsolete NLIST_NAME_UNION.
21090         [__GNU__]: Undef BSD and FSCALE.
21091         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
21092
21093 2003-08-03  Paul Eggert  <eggert@twinsun.com>
21094
21095         * lib/stdbool_.h (_Bool): Make it signed char, instead of
21096         an enum type, so that it's guaranteed to promote to int.  See:
21097         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
21098
21099 2003-08-03  Karl Berry  <karl@gnu.org>
21100
21101         * config/depcomp: update from automake.
21102
21103 2003-07-31  Paul Eggert  <eggert@twinsun.com>
21104
21105         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
21106         (strerror): Don't assume that a printable int fits in 14 bytes.
21107
21108 2003-07-31  Bruno Haible  <bruno@clisp.org>
21109
21110         * modules/getpass-gnu: New file.
21111         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
21112
21113 2003-07-31  Bruno Haible  <bruno@clisp.org>
21114
21115         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
21116
21117 2003-07-24  Karl Berry  <karl@gnu.org>
21118
21119         * config/missing: update from automake.
21120
21121 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
21122             Bruno Haible  <bruno@clisp.org>
21123
21124         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
21125         * lib/getline.c (getline, getdelim): Likewise.
21126         Remove _GNU_SOURCE define; now it's defined in config.h through
21127         m4/getline.m4.
21128
21129 2003-07-23  Karl Berry  <karl@gnu.org>
21130
21131         * config/config.sub: update from prep.
21132
21133 2003-07-22  Paul Eggert  <eggert@twinsun.com>
21134
21135         * modules/xalloc (Depends-on): Add exitfail.
21136         * modules/xmemcoll: Likewise.
21137
21138 2003-07-22  Paul Eggert  <eggert@twinsun.com>
21139
21140         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
21141         over-parenthesization in macros.
21142
21143         Sync with coreutils.
21144
21145         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
21146         required by C99.
21147
21148         Use `exit_failure' for xalloc and xmemcoll instead of their own
21149         private exit-failure variables.
21150         * lib/xalloc.h (xalloc_exit_failure): Remove.
21151         * lib/xmalloc.c: Likewise.  Include exitfail.h.
21152         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
21153         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
21154         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
21155         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
21156
21157 2003-07-20  Jim Meyering  <jim@meyering.net>
21158
21159         * modules/closeout (Depends-on): Add exitfail.
21160         Suggestion from Bruno Haible.
21161
21162 2003-07-19  Karl Berry  <karl@gnu.org>
21163
21164         * config/config.sub: update from prep.
21165
21166 2003-07-18  Paul Eggert  <eggert@twinsun.com>
21167
21168         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
21169         Remove.
21170         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
21171         to test that it can stand by itself.  Include "exitfail.h".
21172         Clients should set exit_failure instead.
21173         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
21174
21175 2003-07-18  Bruno Haible  <bruno@clisp.org>
21176
21177         * modules/getndelim2: New file.
21178         * modules/getline: Share files with module getndelim2.
21179         * modules/getnline: Depend on getndelim2 instead of sharing files with
21180         it. Add getnline.c to lib_SOURCES.
21181         * MODULES.html.sh (func_all_modules): Add getndelim2.
21182
21183 2003-07-18  Bruno Haible  <bruno@clisp.org>
21184
21185         * m4/getndelim2.m4: New file.
21186         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
21187         invoke gl_PREREQ_GETNDELIM2.
21188         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
21189         gl_PREREQ_GETNDELIM2.
21190         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
21191         gl_GETNDELIM2.
21192
21193 2003-07-18  Bruno Haible  <bruno@clisp.org>
21194
21195         * lib/getndelim2.h: New file.
21196         * lib/getndelim2.c: Make into a module of its own. Include config.h,
21197         getndelim2.h.
21198         (getndelim2): Make non-static. Change return type to ssize_t.
21199         * lib/getline.h: Change argument names.
21200         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
21201         * lib/getnline.c: Include getndelim2.h.
21202
21203 2003-07-18  Andreas Schwab  <schwab@suse.de>
21204
21205         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
21206
21207 2003-07-17  Karl Berry  <karl@gnu.org>
21208
21209         * config/config.sub: update from prep.
21210
21211 2003-07-17  Bruno Haible  <bruno@clisp.org>
21212
21213         * modules/getnline: New file.
21214         * modules/getline: Add lib/getndelim2.c to source file list.
21215         * MODULES.html.sh (func_all_modules): Add getnline.
21216
21217 2003-07-17  Bruno Haible  <bruno@clisp.org>
21218
21219         * m4/getnline.m4: New file.
21220
21221 2003-07-17  Bruno Haible  <bruno@clisp.org>
21222
21223         * m4/Makefile.am.in: Remove file.
21224         * m4/Makefile.am: Remove file.
21225         * m4/Makefile.in: Remove file.
21226
21227 2003-07-17  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/getnline.h: New file.
21230         * lib/getnline.c: New file.
21231         * lib/getndelim2.c: New file, extracted from getline.c.
21232         (getndelim2): Renamed from getdelim2, with added nmax argument.
21233         * lib/getline.c: Include getndelim2.c.
21234         (getdelim2): Moved out to getndelim2.c.
21235         (getline, getdelim): Update.
21236
21237 2003-07-17  Bruno Haible  <bruno@clisp.org>
21238
21239         * lib/Makefile.am: Remove file.
21240         * lib/Makefile.in: Remove file.
21241
21242 2003-07-17  Bruno Haible  <bruno@clisp.org>
21243
21244         * configure.in: Remove file.
21245         * Makefile.in: Remove file.
21246
21247 2003-07-17  Bruno Haible  <bruno@clisp.org>
21248
21249         * MODULES.html.sh: Put the </BODY> right before </HTML>.
21250
21251 2003-07-16  Karl Berry  <karl@gnu.org>
21252
21253         * config/srclist-update: was running fixlicense twice, which caused
21254                 texinfo.tex to be nullified for some reason.  Simplify,
21255                 $gplsrc is no longer needed as far as I can see?
21256
21257 2003-07-16  Jim Meyering  <jim@meyering.net>
21258
21259         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
21260
21261 2003-07-15  Paul Eggert  <eggert@twinsun.com>
21262
21263         * config/srclist.txt: Get the following files from gettext-runtime/intl
21264         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
21265         ref-del.sin.  From Bruno Haible.
21266         * config/srclist-update (fixfile): Change grep pattern again, since the
21267         previous fix didn't work (there was another trailing $).  Use
21268         '[$]' to escape the $s.
21269
21270 2003-07-15  Karl Berry  <karl@gnu.org>
21271
21272         * lib/vasnprintf.c: update from gettext.
21273
21274 2003-07-15  Karl Berry  <karl@gnu.org>
21275
21276         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
21277         gets expanded when surrounded by '$'.
21278
21279 2003-07-15  Jim Meyering  <jim@meyering.net>
21280
21281         * modules/save-cwd: Don't depend on error.  From Derek Price.
21282
21283 2003-07-15  Jim Meyering  <jim@meyering.net>
21284
21285         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
21286
21287 2003-07-14  Simon Josefsson  <jas@extundo.com>
21288
21289         * modules/mempcpy: New file.
21290         * MODULES.html.sh (func_all_modules): Add mempcpy.
21291
21292 2003-07-14  Simon Josefsson  <jas@extundo.com>
21293
21294         * m4/mempcpy.m4: New file.
21295
21296 2003-07-14  Simon Josefsson  <jas@extundo.com>
21297
21298         * lib/mempcpy.h: New file.
21299         * lib/mempcpy.c: New file.
21300
21301 2003-07-14  Paul Eggert  <eggert@twinsun.com>
21302
21303         * modules/getdate, modules/posixtm: Depend on mktime.
21304
21305 2003-07-14  Paul Eggert  <eggert@twinsun.com>
21306
21307         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
21308         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
21309         unicodeio.c, unicodeio.h, unlocked-io.h:
21310         Switch from LGPL to GPL.
21311
21312 2003-07-14  Paul Eggert  <eggert@twinsun.com>
21313
21314         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
21315         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
21316         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
21317         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
21318         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
21319         updated automatically by ../config/srclist-update.  This changes
21320         their license from LPGL to GPL.
21321
21322 2003-07-14  Paul Eggert  <eggert@twinsun.com>
21323
21324         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
21325         assumed to refer to the root of the most recent stable gettext version.
21326         * config/srclistvars.sh: Add defaults for eggert.
21327         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
21328         Match "This program" as well as "The program".  This is needed
21329         for gettext.
21330
21331 2003-07-14  Jim Meyering  <jim@meyering.net>
21332
21333         Don't emit diagnostics.  Let callers do that.
21334         * lib/save-cwd.c: Don't include "error.h".
21335         (save_cwd): Don't call error.  Ensure that errno is valid
21336         when returning nonzero.
21337
21338         * lib/save-cwd.h (restore_cwd): Update prototype.
21339         * lib/save-cwd.c (restore_cwd): Remove two parameters.
21340         Simplify.  Don't call error upon failure.  Let callers do that.
21341         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
21342         when auditing is enabled.  But don't bother updating the #if.
21343
21344 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
21345
21346         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
21347         it breaks C++ compilation.
21348         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
21349
21350 2003-07-10  Simon Josefsson  <jas@extundo.com>
21351
21352         * modules/strchrnul (Makefile.am): Add strchrnul.h.
21353
21354 2003-07-10  Jim Meyering  <jim@meyering.net>
21355
21356         * m4/clock_time.m4: Remove trailing blank.
21357         * m4/intmax_t.m4: Likewise.
21358
21359 2003-07-10  Jim Meyering  <jim@meyering.net>
21360
21361         * lib/vasnprintf.c: Remove trailing blanks.
21362         Make cpp indentation consistent.
21363
21364 2003-07-09  Paul Eggert  <eggert@twinsun.com>
21365
21366         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
21367         posixver.c, strftime.c, strnlen.c, strverscmp.c:
21368         Switch from LGPL to GPL.
21369
21370 2003-07-09  Paul Eggert  <eggert@twinsun.com>
21371
21372         * config/srclist.txt: Sort sublists.  Add
21373         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
21374         that differ from gnulib for one reason or another; we'd like this list
21375         to be smaller but for now let's document what we have.
21376
21377 2003-07-08  Paul Eggert  <eggert@twinsun.com>
21378
21379         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
21380         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
21381         and sweeter "eval x=$x".
21382         * config/srclist.txt: Get lib/argp* from glibc.
21383
21384 2003-07-07  Paul Eggert  <eggert@twinsun.com>
21385
21386         * lib/mktime.c: Fix some boundary cases and remove need for floating
21387         point.
21388
21389         Issue a compile-time diagnostic if time_t is floating point, or if
21390         two's complement arithmetic is not in effect, or if arithmetic
21391         right shift does not propagate the sign.  These assumptions were
21392         all in the original code but they weren't checked.
21393
21394         (TIME_T_MIDPOINT, verify): New macros.
21395         (__isleap): Remove; it has integer overflow problems.
21396         (leapyear): New function, without those problems.
21397         (ydhms_tm_diff): Remove; splitting into two parts.
21398         (ydhms_diff): New function, containing the arithmetic part of
21399         the old ydhms_tm_diff function.  Issue a compile-time
21400         diagnostic if we are not using C99 integer division.
21401         Avoid casts when possible.
21402         (guess_time_tm): New function, containing the checking part of
21403         the old ydhms_tm_diff function.  Return the new value, rather than
21404         the difference between it and the old.  Accept a new argument T
21405         so that *T specifies the old value.  Check for overflow in the result.
21406
21407         (__mktime_internal): Use a time_t offset, not a long int offset.
21408         This undoes the 2003-06-04 change, which is no longer needed now
21409         that we have better overflow checking.
21410         (localtime_offset): Likewise.
21411
21412         (__mktime_internal): Avoid harmful overflow on hosts where time_t
21413         and long are 64-bit but int is only 32-bit.
21414         (ydhms_diff): Use long int to store year1 and yday1.
21415         Issue a compile-time diagnostic if long int is not wide enough.
21416
21417         (__mktime_internal): Use long int to store adjusted year and yday.
21418         Use plain C rather than preprocessor commands, if that doesn't
21419         affect efficiency.
21420         Check for overflow (and try to repair) after each probe
21421         rather than checking only at the very end.  This avoids some bugs
21422         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
21423         does not equal GMT offset at maximum time).
21424         Use integer to check for overflow rather than floating point; this
21425         is more portable to non-IEEE hosts, and is a tad faster.
21426         When we detect that we are oscillating between two values,
21427         don't check whether tm_isdst has the requested value, since
21428         we already know the answer.  When tm_isdst has the wrong value,
21429         use a different heuristic to find the right one, based on the
21430         extreme values actually observed in practice in tz2003a,
21431         rather than the (overly optimistic) "previous 3 calendar quarters".
21432
21433         (not_equal_tm, print_tm, check_result): Use "const T" rather than
21434         "T const" to accommodate glibc style.
21435         (check_result): Use less-confusing report format.  "long" -> "long int.
21436         (main): Likewise.
21437         Don't loop if the iteration overflows time_t.
21438         Allow a negative step in the iteration.
21439
21440 2003-07-06  Karl Berry  <karl@gnu.org>
21441
21442         * config/depcomp: update from automake.
21443         * config/config.sub: update from prep.
21444
21445 2003-07-03  Karl Berry  <karl@gnu.org>
21446
21447         * config/config.guess: update from prep.
21448
21449 2003-07-01  Paul Eggert  <eggert@twinsun.com>
21450
21451         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
21452         xreadlink.c now includes it unconditionally.
21453
21454 2003-07-01  Paul Eggert  <eggert@twinsun.com>
21455
21456         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
21457         having it depend on HAVE_SYS_TYPES_H.
21458
21459 2003-07-01  Bruno Haible  <bruno@clisp.org>
21460
21461         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
21462         <sys/types.h> should be sufficient.
21463         Reported by Paul Eggert.
21464
21465 2003-06-26  Karl Berry  <karl@gnu.org>
21466
21467         * config/depcomp: update from automake.
21468
21469 2003-06-26  Bruno Haible  <bruno@clisp.org>
21470
21471         * modules/human: Depend on module stdbool.
21472
21473 2003-06-25  Bruno Haible  <bruno@clisp.org>
21474
21475         * modules/readlink: New file.
21476         * modules/xreadlink: Depend on it.
21477         * MODULES.html.sh (func_all_modules): Add readlink.
21478
21479 2003-06-25  Bruno Haible  <bruno@clisp.org>
21480
21481         * m4/readlink.m4: New file.
21482
21483 2003-06-25  Bruno Haible  <bruno@clisp.org>
21484
21485         * lib/readlink.c: New file.
21486
21487 2003-06-22  Karl Berry  <karl@gnu.org>
21488
21489         * config/srclist.txt: update mkinstalldirs from automake.
21490         * config/mkinstalldirs: update.
21491
21492 2003-06-22  Bruno Haible  <bruno@clisp.org>
21493
21494         Portability to mingw32.
21495         * m4/ssize_t.m4: New file, from GNU gettext.
21496         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
21497         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
21498
21499 2003-06-22  Bruno Haible  <bruno@clisp.org>
21500
21501         * modules/safe-read: Add m4/ssize_t.m4.
21502         * modules/xreadlink: Add m4/ssize_t.m4.
21503
21504 2003-06-20  Bruno Haible  <bruno@clisp.org>
21505
21506         Assume C89, so PARAMS isn't needed.
21507         * lib/unicodeio.h (PARAMS): Remove.
21508         * lib/unicodeio.c: Don't use PARAMS.
21509
21510 2003-06-18  Karl Berry  <karl@gnu.org>
21511
21512         * config/config.{guess,sub}: update from prep.
21513
21514 2003-06-18  Jim Meyering  <jim@meyering.net>
21515
21516         Merge changes from coreutils.
21517         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
21518         Remove explicit declarations of xmalloc and realloc.
21519         Include xalloc.h.
21520         (read_utmp): Remove anachronistic cast of xmalloc.
21521
21522 2003-06-17  Paul Eggert  <eggert@twinsun.com>
21523
21524         Assume C89, so PARAMS isn't needed.
21525         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
21526         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
21527         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
21528         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
21529         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
21530         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
21531         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
21532         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
21533         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
21534         lib/xstrtod.h, lib/xstrtol.h: Likewise.
21535         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
21536         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
21537         no longer needed. Anyway, config.h should always be included before any
21538         other file.
21539
21540 2003-06-11  Simon Josefsson  <jas@extundo.com>
21541
21542         * modules/sysexits: New file.
21543         * MODULES.html.sh (func_all_modules): Add sysexits.
21544
21545 2003-06-11  Simon Josefsson  <jas@extundo.com>
21546
21547         * lib/sysexit_.h: New file.
21548
21549 2003-06-11  Derek Price  <derek@ximbiot.com>
21550
21551         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
21552         necessary.
21553
21554 2003-06-11  Bruno Haible  <bruno@clisp.org>
21555
21556         * m4/sysexits.m4: New file.
21557
21558 2003-06-10  Simon Josefsson  <jas@extundo.com>
21559
21560         * lib/argp.h: New file, from glibc.
21561         * lib/argp-ba.c: New file, from glibc.
21562         * lib/argp-eexst.c: New file, from glibc.
21563         * lib/argp-fmtstream.c: New file, from glibc.
21564         * lib/argp-fmtstream.h: New file, from glibc.
21565         * lib/argp-fs-xinl.c: New file, from glibc.
21566         * lib/argp-help.c: New file, from glibc.
21567         * lib/argp-namefrob.h: New file, from glibc.
21568         * lib/argp-parse.c: New file, from glibc.
21569         * lib/argp-pv.c: New file, from glibc.
21570         * lib/argp-pvh.c: New file, from glibc.
21571         * lib/argp-xinl.c: New file, from glibc.
21572
21573 2003-06-10  Simon Josefsson  <jas@extundo.com>
21574
21575         * modules/strchrnul: New file.
21576
21577 2003-06-10  Simon Josefsson  <jas@extundo.com>
21578
21579         * modules/argp: New file.
21580
21581 2003-06-10  Simon Josefsson  <jas@extundo.com>
21582
21583         * m4/strchrnul.m4: New file.
21584
21585 2003-06-10  Simon Josefsson  <jas@extundo.com>
21586
21587         * lib/strchrnul.h: New file.
21588         * lib/strchrnul.c: New file.
21589
21590 2003-06-10  Bruno Haible  <bruno@clisp.org>
21591
21592         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
21593
21594 2003-06-07  Karl Berry  <karl@gnu.org>
21595
21596         * config/config.{guess,sub}: update from prep.
21597
21598 2003-06-07  Jim Meyering  <jim@meyering.net>
21599
21600         * modules/strtod: Use $(...) notation, not @...@ for
21601         AC_REPLACE'd variables.
21602         * modules/localcharset: Likewise.
21603
21604 2003-06-07  Jim Meyering  <jim@meyering.net>
21605
21606         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
21607         in place of my name in the copyright comment.
21608         Remove definition and uses of __P.
21609
21610         From coreutils.
21611         * lib/stat.c: Don't declare xmalloc explicitly.
21612         Instead, include "xalloc.h".
21613         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
21614         xrealloc, and xcalloc return values.
21615         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
21616         Improve comment.
21617         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
21618
21619 2003-06-07  Bruno Haible  <bruno@clisp.org>
21620
21621         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
21622         avoid AC_CONFIG_LINKS.
21623         * modules/fnmatch (Makefile.am): Use explicit creation rule for
21624         fnmatch.h, to avoid AC_CONFIG_LINKS.
21625         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
21626
21627 2003-06-07  Bruno Haible  <bruno@clisp.org>
21628
21629         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
21630         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
21631         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
21632         directory.
21633         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
21634         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
21635         directory.
21636
21637 2003-06-06  Jim Meyering  <jim@meyering.net>
21638
21639         Merge from coreutils.
21640         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
21641         Consolidate declarations and initializations of *_base* locals.
21642
21643         Merge from coreutils.
21644         This avoids a core dump on systems without GNU putenv,
21645         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
21646         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
21647         (unsetenv): New static function, from GNU libc.
21648         (rpl_putenv): Use it.
21649
21650         * lib/modechange.c: Remove trailing blanks.
21651
21652         Merge from coreutils.
21653         * lib/fsusage.c: Remove declaration of statfs.
21654         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
21655
21656         * lib/posixtm.c: Include <stdbool.h> unconditionally.
21657
21658 2003-06-06  Jim Meyering  <jim@meyering.net>
21659
21660         * lib/stdbool_.h: Renamed from stdbool.h.in.
21661
21662 2003-06-06  Jim Meyering  <jim@meyering.net>
21663             Bruno Haible  <bruno@clisp.org>
21664
21665         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
21666         Adjust Makefile.am snippet not to redirect directly to target.
21667         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
21668
21669 2003-06-05  Paul Eggert  <eggert@twinsun.com>
21670
21671         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
21672         mismatch, look in future quarters as well as past.  This fixes a
21673         bug when processing fall-backwards gaps immediately after a long
21674         period of daylight-saving time.
21675
21676         * lib/mktime.c: Assume freestanding C89 or better.
21677         (HAVE_LIMITS_H): Remove.  Assume it's 1.
21678         (__P): Remove; not used.
21679         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
21680         (mktime, not_equal_tm, print_tm, check_result,
21681         main): Use prototypes.  Use const * where appropriate.
21682         (main): Fix typo in testing code that uncovered by above changes.
21683         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
21684
21685 2003-06-04  Paul Eggert  <eggert@twinsun.com>
21686
21687         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
21688         locale.h, localeconv.  This merges changes from coreutils.
21689
21690         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
21691         It can be removed after the next Autoconf is released.
21692         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
21693         needed.
21694
21695 2003-06-04  Paul Eggert  <eggert@twinsun.com>
21696
21697         * lib/mktime.c: Fix Debian bug 177940
21698         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
21699         (localtime_offset): Now long int, not time_t, because we want it
21700         to be guaranteed to be signed.  All uses changed.
21701         (__mktime_internal): If overflow would occur when adding offset,
21702         don't add it.
21703
21704         Merge 'human' changes from coreutils.  Rewrite to support
21705         locale-specific notations like thousands separators.
21706         * lib/human.c: Simplify authorship notice.
21707         Include human.h immediately after config.h.
21708         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
21709         <limits.h>: Do not include, since human.h does.
21710         (SIZE_MAX, UINTMAX_MAX): New macros.
21711         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
21712         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
21713         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
21714         (power_letter): Renamed from suffixes.
21715         (generate_suffix_backwards): Remove.
21716         (adjust_value): Now takes int style (because of human.h changes)
21717         and long double value (for greater precision on some platforms).
21718         (group_number): New function.
21719         (human_readable): Use it.  Use integer options, not enum.
21720         Put the options before the sizes in the arg list.
21721         Support all the new options.
21722         The old human_readable function has been removed;
21723         use inttostr.h instead.
21724         (human_readable, default_block_size, humblock):
21725         Use uintmax_t, not int, for block sizes.
21726         (human_readable_inexact, block_size_types): Remove.
21727         (block_size_opts): New constant.
21728         (human_options): Renamed from human_block_size, with new signature
21729         that allows block sizes up to UINTMAX_MAX.  All callers changed.
21730         * lib/human.h: Add copyright and authorship notice.
21731         Include <limits.h> and <stdbool.h> unconditionally.
21732         (PARAMS): Remove.  All uses removed.
21733         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
21734         (enum human_inexact_style): Remove tag; now a nameless enum.
21735         (human_floor, human_ceiling, human_round_to_even): Now have
21736         values 2, 0, 1 rather than -1, 1, 0.
21737         (human_group_digits, human_suppress_point_zero, human_autoscale,
21738         human_base_1024, human_SI, human_B): New constants.
21739         (human_readable_inexact, human_block_size): Remove.
21740         (human_readable): Size args are now uintmax_t, not int.
21741         (human_options): New decl.
21742
21743         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
21744         unnecessary now that we assume C89 or better.  This change
21745         imported from coreutils.
21746
21747         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21748         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
21749         in the 2003-05-30 sync from glibc.
21750
21751         .h files should stand alone, but we shouldn't include <sys/types.h>
21752         if we can get away with just <stddef.h>.
21753
21754         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
21755         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
21756         rather than <sys/types.h>, as we merely need size_t.
21757         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
21758         to get size_t.
21759         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
21760         Include <stdio.h>, to get FILE.
21761         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
21762         memcasecmp.h has included <stddef.h> and all we need is size_t.
21763         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
21764         our interface, instead of including <sys/types.h>
21765
21766 2003-06-04  Paul Eggert  <eggert@twinsun.com>
21767
21768         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
21769         now, as glibc mktime is buggy on non-glibc systems.
21770
21771 2003-06-03  Karl Berry  <karl@gnu.org>
21772
21773         * config/config.sub: update from prep.
21774
21775 2003-06-02  Paul Eggert  <eggert@twinsun.com>
21776
21777         [from coreutils]
21778         Fix some minor time-related bugs with POSIX time arguments.
21779         Some valid time stamps were being rejected (notably -1, and
21780         time stamps before 1900 on 64-bit hosts).  And some invalid
21781         time stamps were being accepted, e.g. September 31.
21782
21783         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
21784         that we can return (time_t) -1 successfully.
21785         * lib/posixtm.c: Likewise.
21786         [HAVE_STDBOOL_H]: Include <stdbool.h>.
21787         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
21788         (t): Remove static var.
21789         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
21790         of static var.  All uses changed.
21791         (year): Do not reject years before 1900; they can occur with
21792         64-bit time_t.
21793         (posix_time_parse): Do not check for out-of-range components;
21794         that is now the caller's responsibility, since our checks were
21795         only approximations.
21796         (posixtime): Use mktime to check for out-of-range components,
21797         since it knows them exactly.
21798         If mktime returns (time_t) -1, check whether an error actually occurred
21799         by invoking localtime on -1.
21800         (main) [TEST_POSIXTIME]: Check for input data errors, and report
21801         posixtime failures better.
21802         Improve the test data (in comments only).
21803
21804 2003-06-02  Karl Berry  <karl@gnu.org>
21805
21806         * config/mkinstalldirs (version): new variable.
21807         (--version): new option.
21808         (usage): improve message.
21809
21810 2003-05-30  Karl Berry  <karl@gnu.org>
21811
21812         * lib/mktime.c: update from libc.
21813
21814 2003-05-30  Bruno Haible  <bruno@clisp.org>
21815
21816         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
21817         * config/config.rpath: Upgrade to gettext-0.12.1.
21818
21819 2003-05-30  Bruno Haible  <bruno@clisp.org>
21820
21821         * m4/gettext.m4: Upgrade to gettext-0.12.1.
21822         * m4/nls.m4: New file, from gettext-0.12.1.
21823         * m4/po.m4: New file, from gettext-0.12.1.
21824         * m4/progtest.m4: Upgrade to gettext-0.12.1.
21825
21826 2003-05-30  Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
21829         * lib/localcharset.h: Likewise.
21830         * lib/localcharset.c: Likewise.
21831
21832 2003-05-29  Karl Berry  <karl@gnu.org>
21833
21834         * config/config.rpath: update from gettext.
21835
21836 2003-05-28  Paul Eggert  <eggert@twinsun.com>
21837
21838         Assume the headers required for C89 freestanding compilers.
21839         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
21840         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
21841         * m4/human.m4 (gl_HUMAN): Likewise.
21842         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
21843         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
21844         * m4/userspec.m4 (gl_USERSPEC): Likewise.
21845         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
21846         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21847         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
21848
21849 2003-05-28  Paul Eggert  <eggert@twinsun.com>
21850
21851         Assume the headers required for C89 freestanding compilers.
21852         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
21853         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
21854         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
21855         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
21856         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
21857         define, since <limits.h> is guaranteed to do that.
21858         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
21859         * lib/exclude.c: Include <stdbool.h> unconditionally.
21860         * lib/tempname.c: Include <stddef.h> unconditionally.
21861         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
21862         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
21863         <stddef.h> does that.
21864         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
21865         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
21866         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
21867         needed.
21868         * lib/xstrtol.c: Likewise.
21869         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
21870         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
21871
21872         * lib/addext.c (addext): Use assignment rather than cast, to avoid
21873         warnings on some platforms.
21874
21875         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21876         arbitrarily.
21877
21878 2003-05-26  Jim Meyering  <jim@meyering.net>
21879
21880         Merge in a change from coreutils:
21881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
21882         that is guaranteed to be `no'.  Use `no_such_member' to indicate
21883         that condition, rather than `-1' which is slightly misleading.
21884         Change the name of the cache variable to have the gl_ prefix.
21885         Prompted by a patch from Richard Dawe for DJGPP.
21886
21887 2003-05-24  Karl Berry  <karl@gnu.org>
21888
21889         * config/config.guess: update from prep.
21890
21891 2003-05-22  Karl Berry  <karl@gnu.org>
21892
21893         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
21894
21895 2003-05-20  Karl Berry  <karl@gnu.org>
21896
21897         * config/config.guess: update from prep.
21898
21899 2003-05-18  Karl Berry  <karl@gnu.org>
21900
21901         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
21902         might actually be set by the user.
21903
21904         * config/depcomp, install-sh, mdate-sh: update from automake.
21905
21906 2003-05-17  Bruno Haible  <bruno@clisp.org>
21907
21908         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
21909         invalid expansion for AC_EGREP_CPP.
21910         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21911         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21912         Suggested by Akim Demaille <akim@epita.fr> in
21913         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
21914
21915 2003-05-12  Jim Meyering  <jim@meyering.net>
21916
21917         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
21918         the space-padded-by-default conversion specifiers, %e, %k, %l.
21919
21920 2003-05-12  Bruno Haible  <bruno@clisp.org>
21921
21922         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
21923         the string is longer than 4 KB.
21924
21925 2003-05-11  Karl Berry  <karl@gnu.org>
21926
21927         * config/config.{guess,sub}: update from prep.
21928
21929 2003-05-09  Bruno Haible  <bruno@clisp.org>
21930
21931         * modules/error: Add m4/strerror_r.m4 to file list.
21932
21933 2003-05-03  Bruno Haible  <bruno@clisp.org>
21934
21935         Upgrade to Unicode-4.0.
21936         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
21937         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
21938         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
21939         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
21940         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
21941         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
21942         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
21943         Change width of U+E0100..U+E01EF from 1 to 0.
21944
21945 2003-04-25  Jim Meyering  <jim@meyering.net>
21946
21947         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
21948         of type size_t, not int.
21949
21950 2003-04-25  Bruno Haible  <bruno@clisp.org>
21951
21952         * lib/copy-file.c: Include <stddef.h>, for size_t.
21953
21954 2003-04-21  Paul Eggert  <eggert@twinsun.com>
21955
21956         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
21957         code which expansion is under static control.  Patch imported from
21958         Akim Demaille's patch to Bison; see
21959         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
21960
21961 2003-04-14  Bruno Haible  <bruno@clisp.org>
21962
21963         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
21964
21965 2003-04-11  Jim Meyering  <jim@meyering.net>
21966
21967         Merge changes from Coreutils.
21968
21969         2003-03-22  Jim Meyering  <jim@meyering.net>
21970
21971         * lib/strftime.c (widen): Cast alloca return value to proper type.
21972
21973         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
21974
21975         From GNU libc.
21976         * lib/strftime.c (my_strftime): Handle very large width
21977         specifications for numeric values correctly.  Improve checks for
21978         overflow.
21979
21980         2003-01-19  Jim Meyering  <jim@meyering.net>
21981
21982         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
21983         definitions.
21984         (nl_get_alt_digit) [! defined my_strftime]: Define.
21985         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
21986         _nl_get_alt_digit and _nl_get_walt_digit.
21987
21988         * lib/strftime.c (my_strftime): Merge in locale-related changes from
21989         libc. These changes have no effect outside of _LIBC.
21990
21991 2003-04-10  Bruno Haible  <bruno@clisp.org>
21992
21993         * modules/findprog: New file.
21994         * MODULES.html.sh (func_all_modules): Add it.
21995
21996 2003-04-10  Bruno Haible  <bruno@clisp.org>
21997
21998         * m4/findprog.m4: New file.
21999         * m4/eaccess.m4: New file.
22000
22001 2003-04-10  Bruno Haible  <bruno@clisp.org>
22002
22003         * lib/findprog.h: New file, from GNU gettext.
22004         * lib/findprog.c: New file, from GNU gettext.
22005
22006 2003-04-05  Jim Meyering  <jim@meyering.net>
22007
22008         Merge changes from Coreutils.
22009
22010         * lib/exclude.h (PARAMS): Remove definition and uses.
22011         * lib/exclude.c: Remove uses of `PARAMS'.
22012
22013         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
22014         Add test-cases for DOS filenames. Declare program_name.
22015         (main): Set up program_name.  Patch by Rich Dawe.
22016
22017         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
22018         error from mntctl.
22019         Use mntctl's return value to drive the entry-processing loop, since
22020         we can't rely on the value of the vmt_length member in the last
22021         entry.  On some systems doing so could result in exhausting
22022         virtual memory.  Based in part on a patch from Mike Jetzer.
22023
22024 2003-04-04  Bruno Haible  <bruno@clisp.org>
22025
22026         * modules/linebreak: New file.
22027         * MODULES.html.sh (func_all_modules): Add it.
22028
22029 2003-04-04  Bruno Haible  <bruno@clisp.org>
22030
22031         * m4/linebreak.m4: New file.
22032
22033 2003-04-04  Bruno Haible  <bruno@clisp.org>
22034
22035         * lib/linebreak.h: New file, from GNU gettext.
22036         * lib/linebreak.c: New file, from GNU gettext with slight
22037         modifications.
22038         * lib/lbrkprop.h: New file, from GNU gettext.
22039
22040 2003-04-03  Bruno Haible  <bruno@clisp.org>
22041
22042         * modules/utf8-ucs4: New file.
22043         * modules/utf16-ucs4: New file.
22044         * modules/ucs4-utf8: New file.
22045         * modules/ucs4-utf16: New file.
22046         * MODULES.html.sh (func_all_modules): Add them.
22047
22048 2003-04-03  Bruno Haible  <bruno@clisp.org>
22049
22050         * m4/utf-ucs4.m4: New file.
22051         * m4/ucs4-utf.m4: New file.
22052
22053 2003-04-03  Bruno Haible  <bruno@clisp.org>
22054
22055         * lib/utf8-ucs4.h: New file, from GNU gettext.
22056         * lib/utf16-ucs4.h: New file, from GNU gettext.
22057         * lib/ucs4-utf8.h: New file, from GNU gettext.
22058         * lib/ucs4-utf16.h: New file, from GNU gettext.
22059
22060 2003-04-02  Bruno Haible  <bruno@clisp.org>
22061
22062         * modules/binary-io: New file.
22063         * MODULES.html.sh (func_all_modules): Add it.
22064
22065 2003-04-02  Bruno Haible  <bruno@clisp.org>
22066
22067         * lib/binary-io.h: New file, from GNU gettext.
22068
22069 2003-04-01  Bruno Haible  <bruno@clisp.org>
22070
22071         * modules/pathname: New file.
22072         * MODULES.html.sh (func_all_modules): Add it.
22073
22074 2003-04-01  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/pathname.h: New file, from GNU gettext.
22077         * lib/concatpath.c: New file, from GNU gettext.
22078
22079 2003-03-30  Bruno Haible  <bruno@clisp.org>
22080
22081         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
22082
22083 2003-03-30  Bruno Haible  <bruno@clisp.org>
22084
22085         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
22086         function chown() doesn't exist.
22087
22088 2003-03-28  Bruno Haible  <bruno@clisp.org>
22089
22090         * modules/copy-file: New file.
22091         * MODULES.html.sh (func_all_modules): Add it.
22092
22093 2003-03-28  Bruno Haible  <bruno@clisp.org>
22094
22095         * m4/copy-file.m4: New file.
22096
22097 2003-03-28  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/copy-file.h: New file, from GNU gettext.
22100         * lib/copy-file.c: New file, from GNU gettext.
22101
22102 2003-03-18  Jim Meyering  <jim@meyering.net>
22103
22104         * lib/quote.c (quote_n): Fix typo in comment.
22105
22106 2003-03-18  Bruno Haible  <bruno@clisp.org>
22107
22108         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
22109         checking.
22110         * m4/onceonly_2_57.m4: Likewise.
22111
22112 2003-03-17  Bruno Haible  <bruno@clisp.org>
22113
22114         * m4/onceonly.m4: Require autoconf 2.54 or newer.
22115         (m4_quote): Remove macro.
22116         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
22117
22118 2003-03-14  Jim Meyering  <jim@meyering.net>
22119
22120         Merge changes from Coreutils.
22121         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
22122         to be const, in order to avoid warnings.
22123         (obstack_room): Likewise.
22124         (obstack_empty_p): Likewise.
22125
22126 2003-03-14  Bruno Haible  <bruno@clisp.org>
22127
22128         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
22129         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
22130
22131 2003-03-13  Paul Eggert  <eggert@twinsun.com>
22132
22133         Merge changes from Bison.
22134         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
22135         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
22136         when compiling Bison 1.875's `bitset bset = obstack_alloc
22137         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
22138         * lib/hash.c: Include <stdbool.h> unconditionally.
22139
22140 2003-03-13  Paul Eggert  <eggert@twinsun.com>
22141
22142         * m4/onceonly.m4 (m4_quote): New macro.
22143         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
22144         Quote AC_FOREACH variable-expansions properly.
22145
22146 2003-03-13  Paul Eggert  <eggert@twinsun.com>
22147
22148         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
22149
22150 2003-03-09  Paul Eggert  <eggert@twinsun.com>
22151
22152         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
22153         Reported by Bruce Becker; see:
22154         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
22155
22156 2003-03-03  Paul Eggert  <eggert@twinsun.com>
22157             Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
22160         Reported by John Hughes, see
22161         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
22162
22163 2003-02-20  Bruno Haible  <bruno@clisp.org>
22164
22165         * MODULES.html.sh (func_all_modules): Add poll.
22166
22167 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
22168
22169         * modules/poll: New file.
22170
22171 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
22172
22173         * lib/poll_.h: New file.
22174         * lib/poll.c: New file.
22175
22176 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
22177
22178         * m4/poll.m4: New file.
22179
22180 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
22181
22182         * modules/mathl: New file.
22183
22184 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
22185
22186         * lib/mathl.h: New file.
22187         * lib/acosl.c: New file.
22188         * lib/asinl.c: New file.
22189         * lib/atanl.c: New file.
22190         * lib/ceill.c: New file.
22191         * lib/cosl.c: New file.
22192         * lib/expl.c: New file.
22193         * lib/floorl.c: New file.
22194         * lib/frexpl.c: New file.
22195         * lib/ldexpl.c: New file.
22196         * lib/logl.c: New file.
22197         * lib/sincosl.c: New file.
22198         * lib/sinl.c: New file.
22199         * lib/sqrtl.c: New file.
22200         * lib/tanl.c: New file.
22201         * lib/trigl.c: New file.
22202         * lib/trigl.h: New file.
22203
22204 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
22205
22206         * m4/mathl.m4: New file.
22207
22208 2003-02-18  Bruno Haible  <bruno@clisp.org>
22209
22210         * MODULES.html.sh (func_all_modules): Add mathl.
22211
22212 2003-02-17  Bruno Haible  <bruno@clisp.org>
22213
22214         * modules/mkdtemp: New module.
22215         * MODULES.html.sh (func_all_modules): Add it.
22216
22217 2003-02-17  Bruno Haible  <bruno@clisp.org>
22218
22219         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
22220
22221 2003-02-17  Bruno Haible  <bruno@clisp.org>
22222
22223         * lib/mkdtemp.h: New file, from GNU gettext.
22224         * lib/mkdtemp.c: New file, from GNU gettext.
22225
22226 2003-02-02  Jim Meyering  <jim@meyering.net>
22227
22228         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
22229         e.g. glibc-2.2.93.
22230
22231 2003-01-31  Bruno Haible  <bruno@clisp.org>
22232
22233         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
22234         'rpl_rename'.
22235         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
22236         'rpl_strnlen'.
22237         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
22238         'rpl_strtod'.
22239         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
22240         'rpl_utime'.
22241
22242 2003-01-31  Bruno Haible  <bruno@clisp.org>
22243
22244         * lib/rename.c: #undef rename before defining rpl_rename.
22245         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
22246
22247 2003-01-30  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/vasnprintf, modules/vasprintf: New modules.
22250         * MODULES.html.sh (func_all_modules): Add them.
22251
22252 2003-01-30  Bruno Haible  <bruno@clisp.org>
22253
22254         * m4/signed.m4: New file, from GNU gettext.
22255         * m4/longdouble.m4: New file, from GNU gettext.
22256         * m4/wchar_t.m4: New file, from GNU gettext.
22257         * m4/wint_t.m4: New file, from GNU gettext.
22258         * m4/vasnprintf.m4: New file.
22259         * m4/vasprintf.m4: New file.
22260
22261 2003-01-30  Bruno Haible  <bruno@clisp.org>
22262
22263         * lib/printf-args.h: New file, from GNU gettext.
22264         * lib/printf-args.c: New file, from GNU gettext.
22265         * lib/printf-parse.h: New file, from GNU gettext.
22266         * lib/printf-parse.c: New file, from GNU gettext.
22267         * lib/vasnprintf.h: New file, from GNU gettext.
22268         * lib/vasnprintf.c: New file, from GNU gettext.
22269         * lib/asnprintf.c: New file, from GNU gettext.
22270         * lib/vasprintf.h: New file, from GNU gettext with modifications.
22271         * lib/vasprintf.c: New file, from GNU gettext.
22272         * lib/asprintf.c: New file, from GNU gettext.
22273
22274 2003-01-29  Bruno Haible  <bruno@clisp.org>
22275
22276         * modules/stpncpy: New module.
22277         * MODULES.html.sh (func_all_modules): Add it.
22278
22279 2003-01-29  Bruno Haible  <bruno@clisp.org>
22280
22281         * m4/stpncpy.m4: New file.
22282
22283 2003-01-29  Bruno Haible  <bruno@clisp.org>
22284
22285         * lib/stpncpy.h: New file, from GNU gettext with modifications.
22286         * lib/stpncpy.c: New file, from GNU gettext with modifications.
22287
22288 2003-01-28  Bruno Haible  <bruno@clisp.org>
22289
22290         * modules/c-ctype: New module.
22291         * MODULES.html.sh (func_all_modules): Add it.
22292
22293 2003-01-28  Bruno Haible  <bruno@clisp.org>
22294
22295         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
22296         Paul Eggert.
22297         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
22298         Paul Eggert.
22299
22300 2003-01-27  Bruno Haible  <bruno@clisp.org>
22301
22302         * modules/xsetenv: New module.
22303         * MODULES.html.sh (func_all_modules): Add it.
22304
22305 2003-01-27  Bruno Haible  <bruno@clisp.org>
22306
22307         * lib/xsetenv.h: New file, from GNU gettext.
22308         * lib/xsetenv.c: New file, from GNU gettext.
22309
22310 2003-01-23  Jim Meyering  <jim@meyering.net>
22311
22312         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
22313         from working on systems without dirfd (at least Irix and OSF1/Tru64).
22314
22315 2003-01-23  Bruno Haible  <bruno@clisp.org>
22316
22317         * modules/minmax: New module.
22318         * MODULES.html.sh (func_all_modules): Add it.
22319
22320 2003-01-23  Bruno Haible  <bruno@clisp.org>
22321
22322         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
22323         Eggert.
22324
22325 2003-01-22  Bruno Haible  <bruno@clisp.org>
22326
22327         * modules/exit: New module.
22328         * MODULES.html.sh (func_all_modules): Add it.
22329
22330 2003-01-22  Bruno Haible  <bruno@clisp.org>
22331
22332         * lib/exit.h: New file, from GNU gettext.
22333
22334 2003-01-19  Bruno Haible  <bruno@clisp.org>
22335
22336         * gnulib-tool: Recognize option --extract-maintainer.
22337         (func_get_maintainer): New function.
22338         * modules/*: Add Maintainer entry.
22339
22340 2003-01-16  Jim Meyering  <jim@meyering.net>
22341
22342         * m4/regex.m4: The `regex' struct is both input and output.
22343         Initialize it before each use.  Patch by Tim Waugh.
22344
22345 2003-01-16  Bruno Haible  <bruno@clisp.org>
22346
22347         * MODULES.html.sh: Add a table of contents. Add the module name as
22348         leftmost column. Add hyperlinks.
22349
22350 2003-01-15  Bruno Haible  <bruno@clisp.org>
22351
22352         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
22353
22354 2003-01-15  Bruno Haible  <bruno@clisp.org>
22355
22356         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
22357         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
22358         suffix.
22359
22360 2003-01-15  Bruno Haible  <bruno@clisp.org>
22361
22362         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
22363
22364 2003-01-15  Bruno Haible  <bruno@clisp.org>
22365
22366         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
22367         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
22368
22369 2003-01-14  Jim Meyering  <jim@meyering.net>
22370
22371         * lib/same.c (same_name): Tweak a comment.
22372
22373 2003-01-14  Bruno Haible  <bruno@clisp.org>
22374
22375         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
22376         when a string comparison is sufficient.
22377
22378 2003-01-14  Bruno Haible  <bruno@clisp.org>
22379
22380         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
22381         'unsigned int'.
22382
22383 2003-01-14  Bruno Haible  <bruno@clisp.org>
22384
22385         * lib/hash-pjw.c: Add comment about low quality of this function.
22386
22387 2003-01-13  Bruno Haible  <bruno@clisp.org>
22388
22389         * modules/stpcpy: Distribute lib/stpcpy.h.
22390         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
22391
22392 2003-01-13  Bruno Haible  <bruno@clisp.org>
22393
22394         * modules/*: Add a description.
22395         * modules/strpbrk: Fix Makefile.am snippet.
22396         * modules/strtoimax: Fix dependencies.
22397         * modules/strtoumax: Likewise.
22398
22399 2003-01-13  Bruno Haible  <bruno@clisp.org>
22400
22401         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
22402         * modules/alloca (Makefile.am): All object files depend on alloca.h.
22403         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
22404
22405 2003-01-13  Bruno Haible  <bruno@clisp.org>
22406
22407         * gnulib-tool (func_create_testdir): Store config/* files in the main
22408         directory.
22409         * config.rpath: Move to ...
22410         * config/config.rpath: ... here.
22411         * modules/gettext: Contains config/config.rpath, not config.rpath.
22412         * modules/iconv: Likewise.
22413
22414 2003-01-12  Paul Eggert  <eggert@twinsun.com>
22415
22416         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22417         to avoid collisions with libcurses and libreadline.
22418
22419         * m4/getstr.m4: Remove.
22420         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
22421
22422 2003-01-12  Paul Eggert  <eggert@twinsun.com>
22423
22424         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22425         to avoid collisions with libcurses and libreadline.
22426
22427         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
22428         * lib/getstr.h, getstr.c: Remove.
22429         * lib/getline.c: Include "getline.h", to check interface.
22430         Move body of old getstr.c here: this defines MIN_CHUNK and
22431         declares getdelim2, which is renamed from getstr.
22432         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
22433
22434         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
22435         All uses changed.
22436         * lib/linebuffer.h: Likewise.
22437         (readline): Remove backward-compatibility macro.
22438
22439 2003-01-12  Paul Eggert  <eggert@twinsun.com>
22440
22441         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22442         to avoid collisions with libcurses and libreadline.
22443         * getstr: Remove.
22444         * MODULES.html.sh: Remove getstr.
22445         * modules/getline: Depend on unlocked-io, not getstr.
22446
22447 2003-01-12  Jim Meyering  <jim@meyering.net>
22448
22449         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
22450
22451 2003-01-10  Bruno Haible  <bruno@clisp.org>
22452
22453         * modules/alloca: Change Makefile.am requirements. Simplify Include
22454         requirements. Add lib/alloca_.h to file list.
22455
22456 2003-01-10  Bruno Haible  <bruno@clisp.org>
22457
22458         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
22459
22460 2003-01-10  Bruno Haible  <bruno@clisp.org>
22461
22462         * lib/alloca_.h: New file.
22463         * lib/getdate.y: Unconditionally include alloca.h.
22464         * lib/makepath.c: Likewise.
22465         * lib/setenv.c: Likewise.
22466         * lib/userspec.c: Likewise.
22467
22468 2003-01-09  Karl Berry  <karl@gnu.org>
22469
22470         * MODULES.html.sh: include `dirname $0` in PATH, to find
22471         gnulib-tool.
22472
22473 2003-01-09  Bruno Haible  <bruno@clisp.org>
22474
22475         * modules/stdbool: Change configure.ac, Makefile.am requirements.
22476         Simplify Include requirements. Add lib/stdbool.h.in to file list.
22477
22478 2003-01-09  Bruno Haible  <bruno@clisp.org>
22479
22480         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
22481
22482 2003-01-09  Bruno Haible  <bruno@clisp.org>
22483
22484         * lib/stdbool.h.in: New file.
22485
22486 2003-01-09  Bruno Haible  <bruno@clisp.org>
22487
22488         * gnulib-tool (func_all_modules): Ignore files ending in ~.
22489         * MODULES.html.sh: Likewise.
22490
22491 2003-01-08  Jim Meyering  <jim@meyering.net>
22492
22493         * lib/full-write.c: Undefine and define-away `const' after inclusion
22494         of errno.h, not before.  Suggestion from Bruno Haible.
22495
22496 2003-01-08  Bruno Haible  <bruno@clisp.org>
22497
22498         * modules/full-read: Depend on full-write.
22499
22500 2003-01-08  Bruno Haible  <bruno@clisp.org>
22501
22502         * lib/safe-read.c: Include specification header first, to ensure its
22503         selfcontainedness.
22504         * lib/full-write.c: Likewise.
22505
22506 2003-01-07  Jim Meyering  <jim@meyering.net>
22507
22508         * lib/full-write.c: Rework so that it may serve to define full_read,
22509         too.
22510         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
22511
22512 2003-01-07  Bruno Haible  <bruno@clisp.org>
22513
22514         * lib/strtoimax.c: Include <stdint.h> as an alternative to
22515         <inttypes.h>.
22516         * lib/xstrtol.h: Likewise.
22517         * lib/xstrtoimax.c: Likewise.
22518         * lib/xstrtoumax.c: Likewise.
22519         * lib/human.h: Likewise.
22520
22521         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
22522         on systems that have <inttypes.h> but not <stdint.h>.
22523
22524 2003-01-07  Bruno Haible  <bruno@clisp.org>
22525
22526         * MODULES.html.sh: Add copyright notice.
22527         (missed_files): Omit CVS directory entries.
22528         (func_module): Make it work with sed-3.02.
22529         * MODULES.txt: Remove file.
22530
22531 2003-01-06  Jim Meyering  <jim@meyering.net>
22532
22533         * lib/version-etc.c: Update year in translatable copyright string.
22534
22535 2003-01-03  Karl Berry  <karl@gnu.org>
22536
22537         * config/config.{guess,sub}: update from prep.
22538
22539 2003-01-02  Karl Berry  <karl@gnu.org>
22540
22541         * doc/COPYING.DOC: belatedly updated to 1.2.
22542
22543 2003-01-01  Karl Berry  <karl@gnu.org>
22544
22545         * gnulib-tool (func_verify_module): report module name $module in
22546         error message, not $1.
22547         * gnulib-tool (create-testdir): don't complain if destdir couldn't
22548         be created, only if it doesn't exist.
22549         * gnulib-tool (last_checkin_date): don't expand the $Date here.
22550
22551 2002-12-31  Paul Eggert  <eggert@twinsun.com>
22552
22553         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
22554
22555 2002-12-31  Paul Eggert  <eggert@twinsun.com>
22556
22557         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
22558         memcmp if strcoll doesn't work.
22559
22560 2002-12-31  Bruno Haible  <bruno@clisp.org>
22561
22562         * lib/utime.c (utime_null): No need to call ftruncate if the file was
22563         nonempty.
22564
22565 2002-12-31  Bruno Haible  <bruno@clisp.org>
22566
22567         * lib/memcoll.c (STRCOLL): New macro.
22568         (memcoll): Use it.
22569
22570 2002-12-31  Bruno Haible  <bruno@clisp.org>
22571
22572         * lib/localcharset.h: New file.
22573         * lib/localcharset.c: Include it.
22574         * lib/unicodeio.c: Likewise.
22575
22576 2002-12-31  Bruno Haible  <bruno@clisp.org>
22577
22578         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
22579         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
22580
22581 2002-12-31  Bruno Haible  <bruno@clisp.org>
22582
22583         * lib/getline.h: Include <stddef.h>, for size_t.
22584
22585         * lib/unicodeio.h: Include <stddef.h>, for size_t.
22586         * lib/unicodeio.c: Don't include <stddef.h>.
22587
22588 2002-12-31  Bruno Haible  <bruno@clisp.org>
22589
22590         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
22591         HAVE_TM_ZONE.
22592
22593 2002-12-24  Karl Berry  <karl@gnu.org>
22594
22595         * config/config.guess: update from prep.
22596
22597 2002-12-24  Bruno Haible  <bruno@clisp.org>
22598
22599         General infrasructure.
22600         * m4/README: Rewritten.
22601         * m4/onceonly.m4: New file.
22602         * m4/onceonly_2_57.m4: New file.
22603
22604         Module atexit.
22605         * m4/atexit.m4: New file.
22606
22607         Module strtod.
22608         * m4/strtod.m4: New file.
22609
22610         Module strtol.
22611         * m4/strtol.m4: New file.
22612
22613         Module strtoul.
22614         * m4/strtoul.m4: New file.
22615
22616         Module memchr.
22617         * m4/memchr.m4: New file.
22618
22619         Module memcmp.
22620         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
22621         (jm_FUNC_MEMCMP): Invoke it.
22622
22623         Module memcpy.
22624         * m4/memcpy.m4: New file.
22625
22626         Module memmove.
22627         * m4/memmove.m4: New file.
22628
22629         Module memset.
22630         * m4/memset.m4: New file.
22631
22632         Module strcspn.
22633         * m4/strcspn.m4: New file.
22634
22635         Module strpbrk.
22636         * m4/strpbrk.m4: New file.
22637
22638         Module strstr.
22639         * m4/strstr.m4: New file.
22640
22641         Module strerror.
22642         * m4/strerror.m4: New file.
22643
22644         Module mktime.
22645         * m4/mktime.m4: Renamed from jm-mktime.m4.
22646         (gl_PREREQ_MKTIME): New macro.
22647         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
22648
22649         Module malloc.
22650         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
22651         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
22652         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
22653
22654         Module realloc.
22655         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
22656         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
22657         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
22658
22659         Module strftime.
22660         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
22661         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
22662         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
22663         gl_TM_GMTOFF.
22664         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
22665
22666         Module xalloc.
22667         * m4/xalloc.m4: New file.
22668
22669         Module alloca.
22670         * m4/alloca.m4: New file.
22671
22672         Module putenv.
22673         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
22674         (jm_FUNC_PUTENV): Invoke it.
22675
22676         Module setenv.
22677         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
22678         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
22679         when invoked twice.
22680         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
22681         gt_FUNC_SETENV.
22682
22683         Module memrchr.
22684         * m4/memrchr.m4: New file.
22685
22686         Module stpcpy.
22687         * m4/stpcpy.m4: New file.
22688
22689         Module strcase.
22690         * m4/strcase.m4: New file.
22691
22692         Module strdup.
22693         * m4/strdup.m4: New file.
22694
22695         Module strnlen.
22696         * m4/strnlen.m4: New file.
22697
22698         Module strndup.
22699         * m4/strndup.m4: New file.
22700
22701         Module xstrtod.
22702         * m4/xstrtod.m4: New file.
22703
22704         Module xstrtol.
22705         * m4/xstrtol.m4: New file.
22706
22707         Module getdate.
22708         * m4/getdate.m4: New file.
22709
22710         Module unlocked-io.
22711         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
22712         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
22713         * m4/jm-glibc-io.m4n: Remove file.
22714
22715         Module long-options.
22716         * m4/long-options.m4: New file.
22717
22718         Module md5.
22719         * m4/md5.m4: New file.
22720
22721         Module sha.
22722         * m4/sha.m4: New file.
22723
22724         Module getstr.
22725         * m4/getstr.m4: New file.
22726
22727         Module getline.
22728         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
22729         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
22730         <sys/types.h>, for size_t. Use the function name gnu_getline, not
22731         simply getline. Infoke gl_PREREQ_GETLINE.
22732
22733         Module obstack.
22734         * m4/obstack.m4: New file.
22735
22736         Module hash.
22737         * m4/hash.m4: New file.
22738
22739         Module readtokens.
22740         * m4/readtokens.m4: New file.
22741
22742         Module strverscmp.
22743         * m4/strverscmp.m4: New file.
22744
22745         Module stdbool.
22746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
22747         OSF/1.
22748
22749         Module strtoll.
22750         * m4/strtoll.m4: New file.
22751
22752         Module strtoull.
22753         * m4/strtoull.m4: New file.
22754
22755         Module strtoimax.
22756         * m4/strtoimax.m4: New file.
22757
22758         Module strtoumax.
22759         * m4/strtoumax.m4: New file.
22760
22761         Module xstrtoimax.
22762         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
22763         jm_AC_PREREQ_XSTRTOIMAX.
22764         Moved the strtol prerequisites to strtol.m4.
22765         Moved the strtoll prerequisites to strtoll.m4.
22766         Moved the strtoimax prerequisites to strtoimax.m4.
22767
22768         Module xstrtoumax.
22769         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
22770         jm_AC_PREREQ_XSTRTOUMAX.
22771         Moved the strtoul prerequisites to strtoul.m4.
22772         Moved the strtoull prerequisites to strtoull.m4.
22773         Moved the strtoumax prerequisites to strtoumax.m4.
22774
22775         Module chown.
22776         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
22777         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
22778
22779         Module dup2.
22780         * m4/dup2.m4: New file.
22781
22782         Module ftruncate.
22783         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
22784         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
22785
22786         Module getgroups.
22787         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
22788         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
22789
22790         Module gettimeofday.
22791         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
22792         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
22793         gl_PREREQ_GETTIMEOFDAY.
22794
22795         Module mkdir.
22796         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
22797         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
22798
22799         Module mkstemp.
22800         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
22801         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
22802         jm_AC_TYPE_UINTMAX_T.
22803         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
22804
22805         Module stat.
22806         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
22807         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
22808
22809         Module lstat.
22810         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
22811         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
22812
22813         Module timespec.
22814         * m4/timespec.m4 (gl_TIMESPEC): New macro.
22815         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
22816         * m4/st_mtim.m4: Indentation.
22817
22818         Module nanosleep.
22819         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
22820         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
22821         gl_PREREQ_NANOSLEEP.
22822
22823         Module regex.
22824         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
22825         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
22826         (gl_REGEX): New macro.
22827
22828         Module rename.
22829         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
22830         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
22831
22832         Module rmdir.
22833         * m4/rmdir.m4: New file.
22834
22835         Module utime.
22836         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
22837         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
22838         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
22839
22840         Module dirname.
22841         * m4/dirname.m4: New file.
22842
22843         Module getopt.
22844         * m4/getopt.m4: New file.
22845
22846         Module unistd-safer.
22847         * m4/unistd-safer.m4: New file.
22848
22849         Module fnmatch.
22850         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
22851         declaration.
22852         (gl_PREREQ_FNMATCH_EXTRA): New macro.
22853         (gl_FUNC_FNMATCH_POSIX): New macro.
22854         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
22855         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
22856         simply fnmatch.
22857
22858         Module exclude.
22859         * m4/exclude.m4: New file.
22860
22861         Module human.
22862         * m4/human.m4: New file.
22863
22864         Module acl.
22865         * m4/acl.m4: Nop.
22866
22867         Module backupfile.
22868         * m4/backupfile.m4: New file.
22869         * m4/d-ino.m4: Indentation.
22870
22871         Module fsusage.
22872         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
22873         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
22874         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
22875
22876         Module dirfd.
22877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
22878         requirements.
22879
22880         Module euidaccess.
22881         * m4/euidaccess.m4: New file.
22882
22883         Module file-type.
22884         * m4/file-type.m4: New file.
22885
22886         Module fileblocks.
22887         * m4/fileblocks.m4: New file.
22888
22889         Module filemode.
22890         * m4/filemode.m4: New file.
22891
22892         Module isdir.
22893         * m4/isdir.m4: New file.
22894
22895         Module lchown.
22896         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
22897         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
22898
22899         Module makepath.
22900         * m4/makepath.m4: New file.
22901
22902         Module modechange.
22903         * m4/modechange.m4: New file.
22904
22905         Module mountlist.
22906         * m4/mountlist.m4: New file.
22907         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
22908         Indentation.
22909
22910         Module path-concat.
22911         * m4/path-concat.m4: New file.
22912
22913         Module pathmax.
22914         * m4/pathmax.m4: New file.
22915
22916         Module same.
22917         * m4/same.m4: New file.
22918
22919         Module save-cwd.
22920         * m4/save-cwd.m4: New file.
22921
22922         Module savedir.
22923         * m4/savedir.m4: New file.
22924
22925         Module xgetcwd.
22926         * m4/xgetcwd.m4: New file.
22927         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
22928
22929         Module xreadlink.
22930         * m4/xreadlink.m4: New file.
22931
22932         Module safe-read.
22933         * m4/safe-read.m4: New file.
22934
22935         Module safe-write.
22936         * m4/safe-write.m4: New file.
22937
22938         Module closeout.
22939         * m4/closeout.m4: New file.
22940
22941         Module stdio-safer.
22942         * m4/stdio-safer.m4: New file.
22943
22944         Module getpass.
22945         * m4/getpass.m4: New file.
22946
22947         Module getugroups.
22948         * m4/getugroups.m4: New file.
22949
22950         Module group-member.
22951         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
22952         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
22953
22954         Module idcache.
22955         * m4/idcache.m4: New file.
22956
22957         Module userspec.
22958         * m4/userspec.m4: New file.
22959
22960         Module gettime.
22961         * m4/clock_time.m4: New file.
22962         * m4/gettime.m4: New file.
22963
22964         Module settime.
22965         * m4/settime.m4: New file.
22966
22967         Module posixtm.
22968         * m4/posixtm.m4: New file.
22969
22970         Module gethostname.
22971         * m4/gethostname.m4: New file.
22972
22973         Module canon-host.
22974         * m4/canon-host.m4: New file.
22975
22976         Module gettext.
22977         * m4/codeset.m4: New file, from gettext-0.11.5.
22978         * m4/gettext.m4: New file, from gettext-0.11.5.
22979         * m4/glibc21.m4: New file, from gettext-0.11.5.
22980         * m4/iconv.m4: New file, from gettext-0.11.5.
22981         * m4/intdiv0.m4: New file, from gettext-0.11.5.
22982         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
22983         * m4/inttypes.m4: New file, from gettext-0.11.5.
22984         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
22985         * m4/isc-posix.m4: New file, from gettext-0.11.5.
22986         * m4/lcmessage.m4: New file, from gettext-0.11.5.
22987         * m4/lib-ld.m4: New file, from gettext-0.11.5.
22988         * m4/lib-link.m4: New file, from gettext-0.11.5.
22989         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
22990         * m4/progtest.m4: New file, from gettext-0.11.5.
22991         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
22992         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
22993         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
22994
22995         Module localcharset.
22996         * m4/localcharset.m4: New file.
22997
22998         Module hard-locale.
22999         * m4/hard-locale.m4: New file.
23000
23001         Module mbswidth.
23002         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
23003         onceonly macros.
23004         * m4/mbrtowc.m4: Add comment.
23005
23006         Module memcasecmp.
23007         * m4/memcasecmp.m4: New file.
23008
23009         Module memcoll.
23010         * m4/memcoll.m4: New file.
23011
23012         Module unicodeio.
23013         * m4/unicodeio.m4: New file.
23014
23015         Module rpmatch.
23016         * m4/rpmatch.m4: New file.
23017
23018         Module yesno.
23019         * m4/yesno.m4: New file.
23020
23021         Module exitfail.
23022         * m4/exitfail.m4: New file.
23023
23024         Module c-stack.
23025         * m4/c-stack.m4 (gl_C_STACK): New macro.
23026         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
23027
23028         Module error.
23029         * m4/error.m4 (gl_ERROR): New macro.
23030         (jm_PREREQ_ERROR): Use onceonly macros.
23031
23032         Module fatal.
23033         * m4/fatal.m4: New file.
23034
23035         Module getloadavg.
23036         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
23037         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
23038
23039         Module getpagesize.
23040         * m4/getpagesize.m4: New file.
23041
23042         Module getusershell.
23043         * m4/getusershell.m4: New file.
23044
23045         Module physmem.
23046         * m4/physmem.m4: New file.
23047
23048         Module posixver.
23049         * m4/posixver.m4: New file.
23050
23051         Module quotearg.
23052         * m4/quotearg.m4: New file.
23053
23054         Module quote.
23055         * m4/quote.m4: New file.
23056
23057         Module readutmp.
23058         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
23059
23060         Module sig2str.
23061         * m4/sig2str.m4: New file.
23062
23063         Other.
23064         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
23065         ulonglong.m4.
23066         * m4/intmax_t.m4: New file.
23067         * m4/d-type.m4: Indentation.
23068         * m4/jm-macros.m4: Update.
23069         * m4/prereq.m4 (jm_PREREQ): Update.
23070         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
23071         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
23072         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
23073         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
23074         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
23075         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
23076         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
23077         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
23078         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
23079         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
23080         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
23081         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
23082         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
23083         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
23084         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
23085         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
23086         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
23087         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
23088         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
23089
23090 2002-12-24  Bruno Haible  <bruno@clisp.org>
23091
23092         * MODULES.txt: Update according to m4/ changes.
23093
23094         Module gettext.
23095         * config.rpath: New file, from gettext-0.11.5.
23096
23097         * modules/*: New module descriptions.
23098         * gnulib-tool: New file.
23099         * MODULES.html.sh: New file.
23100
23101 2002-12-21  Karl Berry  <karl@gnu.org>
23102
23103         * doc/fdl.texi: update to version 1.2.
23104
23105 2002-12-19  Karl Berry  <karl@gnu.org>
23106
23107         * config/config.guess: update from prep.
23108
23109 2002-12-18  Bruno Haible  <bruno@clisp.org>
23110
23111         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
23112         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
23113
23114 2002-12-17  Bruno Haible  <bruno@clisp.org>
23115
23116         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
23117         stdlib.h, string.h.
23118
23119 2002-12-17  Bruno Haible  <bruno@clisp.org>
23120
23121         * lib/canon-host.c (strdup): Remove unused declaration.
23122
23123         * lib/fsusage.c: Include full_read.h.
23124         (get_fs_usage): Use full_read instead of safe_read.
23125
23126         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
23127
23128 2002-12-12  Karl Berry  <karl@gnu.org>
23129
23130         * config/config.guess: update from prep.
23131
23132 2002-12-11  Bruno Haible  <bruno@clisp.org>
23133
23134         * m4/setenv.m4: New file, from gettext-0.11.5.
23135
23136 2002-12-11  Bruno Haible  <bruno@clisp.org>
23137
23138         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
23139         not unsetenv().
23140         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
23141         modifications:
23142
23143         2002-12-11  Bruno Haible  <bruno@clisp.org>
23144
23145                 * setenv.c (alloca): Fall back to malloc.
23146                 (freea): New macro.
23147                 (setenv): Use freea() to free memory allocated with alloca().
23148
23149         2002-11-13  Bruno Haible  <bruno@clisp.org>
23150
23151                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
23152                 function declarations.
23153                 * unsetenv.c (unsetenv): Likewise.
23154
23155         2002-03-04  Bruno Haible  <bruno@clisp.org>
23156
23157                 Portability to AIX 4.3.3.
23158                 * unsetenv.c: New file, extracted from setenv.c.
23159                 * setenv.c: Move the unsetenv() function to unsetenv.c.
23160
23161         2001-12-20  Bruno Haible  <bruno@clisp.org>
23162
23163                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
23164                 use malloc instead. For SunOS 4.
23165
23166         2001-12-11  Bruno Haible  <bruno@clisp.org>
23167
23168                 * setenv.c: Declare alloca.
23169                 (compar_fn_t): New typedef.
23170                 (KNOWN_VALUE, STORE_VALUE): Use it.
23171
23172         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
23173         setenv.h.
23174
23175 2002-12-10  Paul Eggert  <eggert@twinsun.com>
23176
23177         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
23178         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
23179         Choose values that are less likely to collide with system fnmatch
23180         options.
23181         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
23182         defined (e.g., a pure POSIX system).
23183         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
23184         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
23185
23186 2002-12-06  Paul Eggert  <eggert@twinsun.com>
23187
23188         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
23189         a pain in practice to deal with generated m4 files.  This change
23190         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
23191
23192         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
23193         and jm-glibc-io.m4, as they are no longer a special case.
23194         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
23195         kludge and the auto-generation stuff.  Check only whether the
23196         functions are declared, not whether they exist, since older hosts
23197         that don't declare the functions can't use the optimization anyway.
23198
23199 2002-12-06  Jim Meyering  <jim@meyering.net>
23200
23201         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
23202
23203         Merge in changes from libc's misc/error.c, in preparation
23204         for the merge of gnulib's changes back into libc.
23205
23206         * lib/error.c (_): Define only if not already defined.
23207         Move definition to follow all #include directives.
23208         Include unlocked-io.h only if !_LIBC.
23209         [_LIBC]: Include <libio/libioP.h>.
23210         [USE_IN_LIBIO]: Include <libio/iolibio.h>
23211         (fflush): Tweak definition to use INTUSE.
23212         (putc): Define.
23213
23214 2002-12-05  Paul Eggert  <eggert@twinsun.com>
23215
23216         * lib/alloca.c [defined emacs]: Include "lisp.h".
23217         (xalloc_die) [defined emacs]: New macro.
23218         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
23219         [! defined emacs]: Include <xalloc.h>.
23220         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
23221         (pointer): Typedef to POINTER_TYPE *.
23222         (malloc): Remove decl; we now always use xmalloc.
23223         (alloca): Use old-style definition, since Emacs needs this.
23224         Check for arithmetic overflow when computing combined size.
23225
23226 2002-12-04  Paul Eggert  <eggert@twinsun.com>
23227
23228         Do not generate unlocked-io.h automatically, since it's easier to
23229         maintain it by hand.
23230
23231         * lib/unlocked-io.h: New file, from GNU diffutils,
23232         but with proper copyright notice and attribution.
23233         * lib/gen-uio: Remove.
23234         * lib/Makefile.am: Add copyright notice.
23235         (libfetish_a_SOURCES): Add unlocked-io.h.
23236         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
23237         (DISTCLEANFILES, io_functions): Remove macros.
23238         (EXTRA_DIST): Remove gen_uio.
23239         (unlocked-io.h): Remove rule.
23240
23241 2002-12-04  Jim Meyering  <jim@meyering.net>
23242
23243         Reflect the fact that stat.c and lstat.c are no longer generated.
23244         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
23245         (DISTCLEANFILES): Likewise.
23246         (EXTRA_DIST): Likewise.
23247         (all_local): Don't depend on stat.c or lstat.c.
23248         (stat.c, lstat.c): Remove rules.
23249         (EXTRA_DIST): Remove xstat.in.
23250
23251         * lib/xstat.in: Remove file.  Contents moved into stat.c.
23252         * lib/stat.c: New file.  Contents mostly from xstat.in.
23253         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
23254         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
23255
23256         * lib/safe-read.c: Rework so that it may serve to define safe_write,
23257         too.
23258         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
23259
23260 2002-12-03  Jim Meyering  <jim@meyering.net>
23261
23262         * lib/safe-read.c, safe-write.c: Change variable names and comments,
23263         but not semantics, to minimize the differences between these two files.
23264         (safe_read): Change comment to mention SAFE_READ_ERROR.
23265
23266         * lib/safe-read.c (IS_EINTR): Define.
23267         (safe_read): Use IS_EINTR in place of in-function cpp directives.
23268
23269 2002-12-02  Jim Meyering  <jim@meyering.net>
23270
23271         * lib/safe-read.c (EINTR): Define.
23272         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23273         (INT_MAX): Provide fallback.
23274         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
23275
23276         * lib/safe-read.h (SAFE_READ_ERROR): Define.
23277
23278 2002-12-02  Bruno Haible  <bruno@clisp.org>
23279
23280         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
23281         Define, taken from safe-read.c.
23282         (INT_MAX): Provide fallback.
23283         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
23284         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
23285
23286         * lib/safe-read.c (EINTR): Remove definition.
23287         (safe_read): Don't use EINTR if it is absent.
23288
23289 2002-12-01  Jim Meyering  <jim@meyering.net>
23290
23291         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
23292         zero.
23293         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
23294
23295 2002-11-27  Paul Eggert  <eggert@twinsun.com>
23296
23297         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
23298         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
23299         with `if (! (value < limit)) abort ();', for readability.
23300
23301 2002-11-26  Karl Berry  <karl@gnu.org>
23302
23303         * lib/strdup.c: copy from libc again, with jim's ok.
23304         * lib/.cppi-disable: re-add strdup.c
23305
23306 2002-11-25  Karl Berry  <karl@gnu.org>
23307
23308         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
23309         instead of "strtol.c".
23310
23311 2002-11-25  Karl Berry  <karl@gnu.org>
23312
23313         * config/install-sh: update from automake for variable quoting, $0 in
23314         error msgs, etc.
23315
23316         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
23317         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
23318         entry.
23319
23320 2002-11-25  Jim Meyering  <jim@meyering.net>
23321
23322         * lib/mktime.c: Sync from libc, now that it has the latest fix.
23323
23324 2002-11-24  Karl Berry  <karl@gnu.org>
23325
23326         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
23327         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
23328
23329 2002-11-24  Jim Meyering  <jim@meyering.net>
23330
23331         Update from coreutils:
23332
23333         * lib/mktime.c: Merge in changes from libc.
23334
23335         Avoid a link-time failure on some Linux systems.
23336         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
23337         (otherwise).
23338         (__mon_yday): Declare with the STATIC attribute.
23339         (__mktime_internal): Likewise.
23340         Based on a report from Greg Schafer.
23341
23342 2002-11-23  Jim Meyering  <jim@meyering.net>
23343
23344         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
23345         Use `unsigned', not `int', as type of index.
23346
23347         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
23348
23349         * lib/fsusage.c: Remove unneeded parentheses around operands of
23350         `defined'.
23351
23352 2002-11-22  Paul Eggert  <eggert@twinsun.com>
23353
23354         * lib/quotearg.h: Allow multiple inclusion by surrounding with
23355         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
23356         so that we can be included first.
23357         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
23358         * lib/quotearg.c: Include quotearg.h immediately after config.h.
23359         No need to include stddef.h or sys/types.h any more.
23360         Surround local include files with "", not "<>".
23361         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
23362         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
23363         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
23364         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
23365         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
23366         (ISPRINT): Remove; no longer needed now that we assume C89.
23367
23368         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
23369         Preserve errno.
23370
23371         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
23372         quotearg_char): Use SIZE_MAX rather than
23373         (size_t) -1 when we are talking about "infinity".
23374
23375         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
23376
23377 2002-11-22  Paul Eggert  <eggert@twinsun.com>
23378
23379         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
23380         hint that one should use `if (! x) abort ();' rather than `assert
23381         (x);', and anyway it's one less thing to worry about configuring.
23382         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
23383         hash_rehash, hash_insert): Use abort rather than assert.
23384
23385 2002-11-22  Bruno Haible  <bruno@clisp.org>
23386
23387         * lib/safe-read.h: Assume C89. Add comments.
23388         (safe_read): Change return type to size_t.
23389         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
23390         byte counts > SSIZE_MAX correctly.
23391         * lib/safe-write.h: New file.
23392         * lib/safe-write.c: New file.
23393         * lib/full-read.h: New file.
23394         * lib/full-read.c: New file.
23395         * lib/full-write.h: Assume C89. Add comments.
23396         * lib/full-write.c: Include safe-write.h.
23397         (full_write): Rewritten to use safe_write.
23398         Suggested by Jim Meyering and Paul Eggert.
23399
23400 2002-11-21  Jim Meyering  <jim@meyering.net>
23401
23402         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
23403
23404         Merge in changes from the coreutils.
23405
23406         2002-09-25  Paul Eggert  <eggert@twinsun.com>
23407         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
23408         <stdint.h>.
23409         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
23410         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
23411         int.  Work more efficiently if X is the same width as uintmax_t.
23412         Do not compare X to -1, to avoid bogus compiler warning.
23413         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
23414         Don't assume that f_frsize and f_bsize are the same type.
23415
23416         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
23417         warning on FreeBSD.
23418
23419         * lib/makepath.c (make_path): Restore umask *before* creating the final
23420         component.
23421         (make_path): Minor reformatting.
23422
23423         * lib/xmalloc.c: Adjust to work with new autoconf macros,
23424         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
23425         HAVE_MALLOC/HAVE_REALLOC.
23426
23427         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
23428         dummy ones.  At least on GNU/Linux systems, `auto' means something
23429         else.
23430         From Michael Stone.
23431
23432 2002-11-21  Bruno Haible  <bruno@clisp.org>
23433
23434         Remove case insensitive option matching.
23435         * lib/argmatch.h (argcasematch): Remove declaration.
23436         (ARGCASEMATCH): Remove macro.
23437         (__xargmatch_internal): Remove case_sensitive argument.
23438         (XARGMATCH): Update.
23439         (XARGCASEMATCH): Remove macro.
23440         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
23441         case_sensitive argument.
23442         (argcasematch): Remove function.
23443         (__xargmatch_internal): Remove case_sensitive argument.
23444         (main): Use XARGMATCH instead of XARGCASEMATCH.
23445
23446         * lib/xmalloc.c: Change compile-time error message. Add comment about
23447         required autoconf version.
23448
23449 2002-11-20  Paul Eggert  <eggert@twinsun.com>
23450
23451         Merge argmatch cleanups from Bison.  Assume C89.
23452
23453         * lib/argmatch.c: Include config.h here, not in argmatch.h.
23454         Include stdlib.h, for EXIT_FAILURE.
23455         Always include <string.h>, since we assume C89.
23456         (EXIT_FAILURE): Remove pre-C89 bug workaround.
23457         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
23458         Include <stddef.h> instead, since it's all we need for size_t.
23459         (PARAMS): Remove.  All uses removed.
23460         (ARRAY_CARDINALITY): Do not bother to #undef.
23461         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
23462         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23463         Remove unnecessary parentheses.
23464         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23465         Insert necessary parentheses.
23466         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
23467         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
23468
23469 2002-11-19  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
23472         * lib/mbswidth.h: Include <stddef.h>, for size_t.
23473
23474         * lib/mbswidth.h (PARAMS): Remove macro.
23475         (mbswidth, mbsnwidth): Use ANSI C function declarations.
23476         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
23477
23478         * lib/gcd.h (PARAMS): Remove macro.
23479         (gcd): Use ANSI C function declarations.
23480         * lib/gcd.c (gcd): Likewise.
23481
23482 2002-11-15  Bruno Haible  <bruno@clisp.org>
23483
23484         * lib/strcspn.c: Include <stddef.h>.
23485         (strcspn): Use ANSI C function declaration. Change return type to
23486         size_t. Use NULL.
23487         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
23488         (strpbrk): Use NULL.
23489         * lib/strpbrk.h (PARAMS): Remove macro.
23490         (strpbrk): Use ANSI C function declaration.
23491         * lib/strstr.c: Don't include <sys/types.h>.
23492         * lib/strstr.h (PARAMS): Remove macro.
23493         (strstr): Use ANSI C function declarations.
23494
23495 2002-11-14  Karl Berry  <karl@gnu.org>
23496
23497         * config/mkinstalldirs: `do' on separate line, instead of
23498         `for var; do'.
23499
23500 2002-11-06  Bruno Haible  <bruno@clisp.org>
23501
23502         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
23503         * lib/gcd.c (gcd): Likewise.
23504
23505 2002-11-05  Bruno Haible  <bruno@clisp.org>
23506
23507         * lib/gcd.h: New file, from gettext-0.11.5.
23508         * lib/gcd.c: New file, from gettext-0.11.5.
23509
23510 2002-11-05  Bruno Haible  <bruno@clisp.org>
23511
23512         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23513         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23514         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23515         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23516
23517         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
23518         <libintl.h>.
23519         * lib/makepath.c: Include gettext.h instead of <locale.h> and
23520         <libintl.h>.
23521
23522         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
23523         * lib/human.c: Include gettext.h instead of <libintl.h>.
23524         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
23525         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
23526         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
23527         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
23528         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
23529         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
23530         (textdomain): Remove definition.
23531         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
23532
23533         * lib/long-options.c: Remove include of <libintl.h> and definition of
23534         _.
23535         * lib/same.c: Remove include of <libintl.h> and definition of _.
23536
23537 2002-11-04  Owen Taylor  <otaylor@redhat.com>
23538
23539         * lib/config.charset: A few additions for Solaris.
23540
23541 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
23542
23543         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
23544         * lib/localcharset.c (locale_charset): Declare as extern "C".
23545
23546 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
23547
23548         * lib/config.charset: msdos in uk_UA uses CP1125.
23549
23550 2002-11-04  Bruno Haible  <bruno@clisp.org>
23551
23552         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
23553         * lib/strcase.h: New file, from GNU gettext-0.11.5.
23554         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
23555         * lib/strstr.h: New file, from GNU gettext-0.11.5.
23556         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
23557
23558 2002-11-04  Bruno Haible  <bruno@clisp.org>
23559
23560         * lib/localcharset.c (locale_charset): Don't return an empty string.
23561
23562 2002-11-04  Bruno Haible  <bruno@clisp.org>
23563
23564         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
23565         aliases.
23566
23567 2002-11-04  Bruno Haible  <bruno@clisp.org>
23568
23569         * lib/config.charset: Update for newest glibc. Add canonical names
23570         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
23571
23572 2002-11-04  Bruno Haible  <bruno@clisp.org>
23573
23574         * lib/config.charset: Add support for NetBSD.
23575
23576 2002-11-04  Bruno Haible  <bruno@clisp.org>
23577
23578         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
23579
23580 2002-11-01  Bruno Haible  <bruno@clisp.org>
23581
23582         * configure.in: Add AC_CONFIG_AUX_DIR call.
23583         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
23584         test/Makefile.
23585         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
23586
23587 2002-09-28  Karl Berry  <karl@gnu.org>
23588
23589         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
23590         installed automake until the next release, since changes have been
23591         made.
23592
23593 2002-09-25  Karl Berry  <karl@gnu.org>
23594
23595         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
23596         * lib/getopt*: copy from libc/posix.
23597         * lib/gettext.h: copy from gettext.
23598         * lib/.cppi-disable: add strdup.c, gettext.h.
23599
23600 2002-09-25  Karl Berry  <karl@gnu.org>
23601
23602         * config/srclist.txt: enable gettext.h check.
23603         * config/config.{guess,sub}: update from prep.
23604         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
23605                 from automake 1.6.3.
23606         See srclist*.
23607
23608 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
23609
23610         * regex.c (PATFETCH): Remove the translating fetch.
23611         (PATFETCH_RAW): Rename to PATFETCH.
23612         (set_image_of_range): New fun.
23613         (SET_RANGE_TABLE_WORK_AREA): Use it.
23614         (regex_compile): Don't translate the pattern chars so eagerly.
23615         Only do it when inserting an `exactn' bytecode or when handling
23616         a char-range.
23617         (mutually_exclusive_p): Avoid empty statement.
23618
23619 2002-07-06  Jim Meyering  <meyering@lucent.com>
23620
23621         * m4/README: Don't mention Makefile.am.in.
23622         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
23623
23624 2002-07-01  Jim Meyering  <meyering@lucent.com>
23625
23626         * lib/c-stack.c: Include sys/time.h.
23627         From Volker Borchert.
23628
23629 2002-06-26  Paul Eggert  <eggert@twinsun.com>
23630
23631         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
23632
23633 2002-06-26  Paul Eggert  <eggert@twinsun.com>
23634
23635         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
23636         New macro.  Use it uniformly instead of
23637         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
23638         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
23639         reported by Vin Shelton.
23640
23641 2002-06-22  Paul Eggert  <eggert@twinsun.com>
23642
23643         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
23644         Do not assume SA_SIGINFO behavior.
23645         Bug reported by Jim Meyering on NetBSD 1.5.2.
23646
23647 2002-06-22  Jim Meyering  <meyering@lucent.com>
23648
23649         * m4/c-stack.m4: New file, from diffutils-2.8.2.
23650         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
23651
23652         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
23653         now that configure.ac uses AC_GNU_SOURCE.
23654         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
23655         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
23656
23657         Update to latest tools.  Suggestions from Paul Eggert.
23658         * m4/stdbool.m4: New file, from diffutils-2.8.2.
23659         * m4/gnu-source.m4: Update from diffutils-2.8.2.
23660         * m4/fnmatch.m4: Likewise.
23661         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
23662         to AC_HEADER_STDBOOL
23663
23664 2002-06-22  Jim Meyering  <meyering@lucent.com>
23665
23666         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
23667         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
23668
23669 2002-06-22  Jim Meyering  <meyering@lucent.com>
23670
23671         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
23672
23673         * lib/exitfail.c, exitfail.h: Likewise.
23674         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
23675
23676         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
23677         of fnmatch.h.
23678         (EXTRA_DIST): Add fnmatch_loop.c.
23679         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
23680
23681         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
23682         * lib/fnmatch.c: Update from diffutils-2.8.2.
23683         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
23684         * lib/fnmatch.h: Remove file.
23685
23686 2002-06-21  Jim Meyering  <meyering@lucent.com>
23687
23688         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
23689         * m4/mbrtowc.m4: Likewise.
23690
23691         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
23692         * m4/mbswidth.m4: Reflect name change:
23693         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
23694         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23695
23696         * m4/lib-link.m4: Update from gettext-0.11.2.
23697         * m4/gettext.m4: Likewise.
23698
23699         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
23700         From Alfred M. Szmidt.
23701
23702 2002-06-18  Paul Eggert  <eggert@twinsun.com>
23703
23704         * lib/file-type.h: Report an error if neither S_ISREG nor
23705         S_IFREG is defined, instead of using a test specific to glibc
23706         2.2.  This should be safe, since POSIX requires S_ISREG and
23707         Unix Version 7 had S_IFREG.  We don't need to check for
23708         <sys/types.h> since we don't use any symbols that it defines.
23709
23710 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
23711
23712         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
23713         $@-t, so that each temporary file name is unique and valid in the first
23714         8 characters, for operation under DOS.
23715
23716 2002-06-15  Paul Eggert  <eggert@twinsun.com>
23717
23718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
23719
23720 2002-06-15  Jim Meyering  <meyering@lucent.com>
23721
23722         Work even with DJGPP 2.03, which lacks support for symlinks.
23723         From Richard Dawe.
23724         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
23725         is defined.
23726         * lib/lchown.c (S_ISLNK): Likewise.
23727
23728 2002-06-15  Jim Meyering  <meyering@lucent.com>
23729
23730         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
23731         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
23732         have been included before this file.
23733
23734 2002-06-14  Jim Meyering  <meyering@lucent.com>
23735
23736         * lib/file-type.h: Use the version from diffutils-2.8.2.
23737         * lib/file-type.c: Likewise.
23738
23739 2002-06-07  Jim Meyering  <meyering@lucent.com>
23740
23741         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
23742         They're needed at least for NetBSD 1.5.2.
23743         ($statxfs_includes): Include those same headers.
23744         ($statxfs_includes): Include sys/vfs.h if available.
23745         ($statxfs_includes): Likewise for sys/statvfs.h.
23746         Check for the following members in both structs statfs and statvfs:
23747         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
23748
23749 2002-06-01  Jim Meyering  <meyering@lucent.com>
23750
23751         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
23752         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
23753
23754 2002-05-28  Jim Meyering  <meyering@lucent.com>
23755
23756         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
23757         Reported by Volker Borchert.
23758
23759 2002-05-27  Jim Meyering  <meyering@lucent.com>
23760
23761         Fix a problem seen only on nonconforming systems whereby ls.c's
23762         use of localtime, and then of gettimeofday would cause trouble:
23763         the localtime call used to initialize rpl_gettimeofday's save
23764         mechanism would clobber ls's current local time information so
23765         that in any long listing the first file would always be listed
23766         with date 1970-01-01.  Analysis by Volker Borchert.
23767
23768         * lib/gettimeofday.c (localtime): Undefine.
23769         (rpl_localtime): New function.
23770
23771 2002-05-27  Jim Meyering  <meyering@lucent.com>
23772
23773         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
23774         localtime.
23775
23776         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
23777         use the replacement function; it wouldn't resolve at link time.
23778         Reported by Volker Borchert.
23779
23780 2002-05-22  Jim Meyering  <meyering@lucent.com>
23781
23782         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
23783         file-type.h.
23784         * lib/file-type.h: New file.
23785         * lib/file-type.c (file_type): New file/function.  Extracted from
23786         diffutils.
23787
23788 2002-04-30  Jim Meyering  <meyering@lucent.com>
23789
23790         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
23791
23792 2002-04-29  Paul Eggert  <eggert@twinsun.com>
23793
23794         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
23795
23796 2002-04-29  Paul Eggert  <eggert@twinsun.com>
23797
23798         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
23799         Do not check for alloca.h (no longer used) or stdbool.h (was never
23800         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
23801
23802 2002-04-29  Paul Eggert  <eggert@twinsun.com>
23803
23804         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
23805
23806 2002-04-29  Jim Meyering  <meyering@lucent.com>
23807
23808         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
23809         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
23810         Use AC_FUNC_STRNLEN here instead.
23811
23812         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
23813         With autoconf-2.53a, it's part of AC_PROG_CC.
23814
23815 2002-04-28  Paul Eggert  <eggert@twinsun.com>
23816
23817         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
23818         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
23819
23820 2002-04-28  Paul Eggert  <eggert@twinsun.com>
23821
23822         * lib/sig2str.h, lib/sig2str.c: New files.
23823         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
23824
23825 2002-04-28  Paul Eggert  <eggert@twinsun.com>
23826
23827         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
23828         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
23829         of 127, since 64 is the largest conceivable number for ancient
23830         nonstandard hosts.
23831         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
23832
23833 2002-04-28  Jim Meyering  <meyering@lucent.com>
23834
23835         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
23836
23837 2002-04-24  Jim Meyering  <meyering@lucent.com>
23838
23839         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
23840         (jm_PREREQ): Use it.
23841
23842         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
23843         mach/mach.h fcntl.h.
23844         Check for this function: setlocale.
23845
23846 2002-04-24  Jim Meyering  <meyering@lucent.com>
23847
23848         * lib/gettext.h: New file, from Gettext.
23849         * lib/Makefile.am (INCLUDES): Remove -I../intl.
23850         (libfetish_a_SOURCES): Add gettext.h.
23851
23852 2002-04-16  Jim Meyering  <meyering@lucent.com>
23853
23854         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
23855         ut_pid, ut_id, ut_exit.
23856
23857 2002-04-16  Jim Meyering  <meyering@lucent.com>
23858
23859         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
23860         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
23861         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
23862
23863 2002-04-12  Jim Meyering  <meyering@lucent.com>
23864
23865         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
23866         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
23867         existence of the getmntinfo function.  Needed for Darwin 5.3.
23868
23869         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
23870         This is necessary at least on Darwin 5.3.
23871
23872         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
23873         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
23874         strnlen.o in the library, and that makes some versions of ranlib
23875         object.
23876
23877 2002-04-12  Jim Meyering  <meyering@lucent.com>
23878
23879         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
23880
23881 2002-04-09  Jim Meyering  <meyering@lucent.com>
23882
23883         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
23884         to be more precise.  Rather than saying we're checking whether the
23885         function `works', say what we're testing.
23886         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
23887         Reported by Bruno Haible.
23888
23889 2002-03-10  Jim Meyering  <meyering@lucent.com>
23890
23891         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
23892         Suggestion from Santiago Vila.
23893
23894 2002-03-08  Jim Meyering  <meyering@lucent.com>
23895
23896         * lib/rename.c: Mention that this wrapper is needed also on
23897         mips-dec-ultrix4.4 systems.
23898
23899 2002-03-02  Jim Meyering  <meyering@lucent.com>
23900
23901         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
23902         not HAVE_CLOCK_SETTIME.
23903
23904 2002-02-27  Paul Eggert  <eggert@twinsun.com>
23905
23906         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
23907         Check for clock_settime.
23908
23909 2002-02-27  Paul Eggert  <eggert@twinsun.com>
23910
23911         * lib/nanosleep.h: Rename to....
23912         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
23913
23914         * lib/gettime.c: New file.
23915         * lib/settime.c: New file.
23916         * lib/stime.c: Remove.
23917
23918         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
23919         timespec.h.  Remove nanosleep.h.
23920
23921 2002-02-25  Paul Eggert  <eggert@twinsun.com>
23922
23923         * m4/acl.m4: New file.
23924         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
23925         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
23926
23927 2002-02-25  Paul Eggert  <eggert@twinsun.com>
23928
23929         * lib/acl.c, lib/acl.h: New files.
23930         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
23931
23932 2002-02-24  Jim Meyering  <meyering@lucent.com>
23933
23934         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
23935         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
23936         cause trouble.  Reported by Nelson Beebe.
23937
23938 2002-02-23  Paul Eggert  <eggert@twinsun.com>
23939
23940         * lib/path-concat.c (xpath_concat): Reorder code to pacify
23941         compilers that don't know that xalloc_die never returns.
23942
23943 2002-02-20  Jim Meyering  <meyering@lucent.com>
23944
23945         * lib/getdate.c: Regenerate using bison-1.33.
23946
23947 2002-02-17  Jim Meyering  <meyering@lucent.com>
23948
23949         * config/config.guess (main): Don't use `head -1'; it's no longer
23950         portable. Use `sed 1q' instead.
23951
23952 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
23953
23954         * m4/codeset.m4: Upgrade to gettext-0.11.
23955         * m4/gettext.m4: Upgrade to gettext-0.11.
23956         * m4/glibc21.m4: Upgrade to gettext-0.11.
23957         * m4/iconv.m4: Upgrade to gettext-0.11.
23958         * m4/isc-posix.m4: Upgrade to gettext-0.11.
23959         * m4/lcmessage.m4: Upgrade to gettext-0.11.
23960         * m4/lib-ld.m4: New file, from gettext-0.11.
23961         * m4/lib-link.m4: New file, from gettext-0.11.
23962         * m4/lib-prefix.m4: New file, from gettext-0.11.
23963         * m4/progtest.m4: Upgrade to gettext-0.11.
23964
23965 2002-02-15  Paul Eggert  <eggert@twinsun.com>
23966
23967         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
23968         (jm_PREREQ): Use it.
23969
23970 2002-02-15  Paul Eggert  <eggert@twinsun.com>
23971
23972         * lib/posixver.c, lib/posixver.h: New files.
23973         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
23974
23975 2002-02-02  Paul Eggert  <eggert@twinsun.com>
23976             Bruno Haible  <bruno@clisp.org>
23977
23978         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
23979         (fwrite_success_callback): New declaration.
23980         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
23981         print_unicode_char. Call failure callback instead of error.
23982         (fwrite_success_callback): New function.
23983         (exit_failure_callback): New function.
23984         (fallback_failure_callback): New function.
23985         (print_unicode_char): Call unicode_to_mb.
23986
23987 2002-01-26  Jim Meyering  <meyering@lucent.com>
23988
23989         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
23990         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
23991
23992 2002-01-26  Jim Meyering  <meyering@lucent.com>
23993
23994         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
23995
23996 2002-01-22  Paul Eggert  <eggert@twinsun.com>
23997
23998         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
23999
24000 2002-01-22  Jim Meyering  <meyering@lucent.com>
24001
24002         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
24003         Otherwise, some versions of automake would omit the rule that makes
24004         Makefile from Makefile.in.
24005
24006 2002-01-21  Paul Eggert  <eggert@twinsun.com>
24007
24008         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
24009         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
24010         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
24011         (memcoll): Set errno to zero if there is no error.
24012
24013         * lib/quotearg.c (quotearg_buffer_restyled):
24014         Fix bug with quoting buffers containing NUL when backslashing escapes.
24015         This bug was exposed by the other changes in this patch.
24016         (quotearg_n_options): New arg ARGSIZE.
24017         All callers changed.
24018         (quoting_options_from_style): New function.
24019         (quotearg_n_style): Use it.
24020         (quotearg_n_style_mem): New function.
24021
24022         * lib/quotearg.h (quotearg_n_style_mem): New function.
24023
24024 2002-01-19  Jim Meyering  <meyering@lucent.com>
24025
24026         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
24027         Remove useless quotes: DF_PROG="df".
24028         * m4/strnlen.m4: New file.
24029
24030 2002-01-16  Paul Eggert  <eggert@twinsun.com>
24031
24032         * lib/backupfile.c (ISDIGIT): Comment fix.
24033         * lib/getdate.y (ISDIGIT): Likewise.
24034         * lib/posixtm.c (ISDIGIT, year): Likewise.
24035         * lib/strverscmp.c (ISDIGIT): Likewise.
24036         * lib/userspec.c (ISDIGIT): Likewise.
24037
24038 2002-01-16  Jim Meyering  <meyering@lucent.com>
24039
24040         * lib/getdate.y: Add three semicolons, each just before a closing
24041         brace. Bison (as of version 1.31) no longer papers over that mistake.
24042
24043 2002-01-05  Jim Meyering  <meyering@lucent.com>
24044
24045         * lib/version-etc.c (version_etc_copyright): Update copyright year.
24046
24047 2001-12-19  Paul Eggert  <eggert@twinsun.com>
24048
24049         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
24050         not silently exit merely because the output buffer happens to
24051         have nothing pending.
24052
24053 2001-12-18  Paul Eggert  <eggert@twinsun.com>
24054
24055         See the big note in ../ChangeLog.
24056         * lib/human.c (suffixes): Prefer K to k for 1024.
24057         (generate_suffix_backwards): New function.
24058         (human_readable_inexact): Use it.
24059         * lib/xstrtol.c (__xstrtol): If there is no number but there
24060         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
24061         Accept 'K' as well as 'k'.
24062
24063 2001-12-15  Jim Meyering  <meyering@lucent.com>
24064
24065         * lib/regex.h (__restrict_arr): Update from libc.
24066
24067         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
24068         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
24069         (STREQ): Define.
24070
24071 2001-12-14  Jim Meyering  <meyering@lucent.com>
24072
24073         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
24074         Suggestion from Bruno Haible.
24075
24076 2001-12-10  Jim Meyering  <meyering@lucent.com>
24077
24078         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
24079         xrealloc, Instead, include "xalloc.h".
24080         (initbuffer): Don't cast xmalloc return value to char*.
24081         (readline): Reword comment.
24082         Don't cast xrealloc return value to char*
24083         Return NULL, not 0.
24084
24085 2001-12-09  Jim Meyering  <meyering@lucent.com>
24086
24087         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
24088         about `signed and unsigned type in conditional expression'.
24089         * lib/posixtm.c (posix_time_parse): Likewise.
24090
24091         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
24092
24093         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
24094         to avoid a pedantic warning.
24095
24096         * lib/getstr.c: Don't include assert.h.
24097         (getstr): Remove warning-evoking assertions.
24098         Return -1 if offset parameter is out of bounds.
24099         Change the type of a local from int to size_t.
24100
24101         * lib/strftime.c (my_strftime_localtime_r): Include this function
24102         definition in the `#if ! HAVE_TM_GMTOFF' block.
24103
24104         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
24105         Include xalloc.h instead.
24106
24107 2001-12-02  Jim Meyering  <meyering@lucent.com>
24108
24109         * lib/tempname.c: Don't declare getenv, thus reverting the change of
24110         2001-11-18.  It's no longer necessary, now that stdlib.h is always
24111         included.
24112
24113         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
24114         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
24115
24116 2001-11-30  Akim Demaille  <akim@epita.fr>
24117
24118         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
24119         before being defined.
24120
24121 2001-11-27  Paul Eggert  <eggert@twinsun.com>
24122
24123         * lib/quotearg.h (quotearg_n, quotearg_n_style):
24124         First arg is int, not unsigned.
24125         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
24126         (SIZE_MAX, UINT_MAX): New macros.
24127         (quotearg_n_options): Abort if N is negative.
24128         Avoid overflow check on hosts where size_t is 64 bits and int
24129         is 32 bits, as overflow is impossible there.
24130         Fix off-by-one typo that caused unnecessary reallocation.
24131
24132 2001-11-27  Jim Meyering  <meyering@lucent.com>
24133
24134         * lib/tempname.c: Merge with version from libc.
24135         * lib/regex.c: Likewise.
24136
24137         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
24138         systems for which STDC_HEADERS is 0, it was not included, resulting in
24139         a warning about an integer-to-pointer conversion problem with getenv.
24140         Reported by Volker Borchert.
24141
24142 2001-11-26  Jim Meyering  <meyering@lucent.com>
24143
24144         * lib/gtod.h: Remove file.
24145         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
24146         * lib/gettimeofday.c: Don't include gtod.h.
24147         (GTOD_init): Remove function.
24148         (rpl_gettimeofday): Do its job here instead, rather than aborting.
24149         Suggestion from Volker Borchert.
24150
24151 2001-11-23  Jim Meyering  <meyering@lucent.com>
24152
24153         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
24154         it.
24155         * lib/hash.c (struct hash_table): Define it here instead.
24156
24157 2001-11-22  Jim Meyering  <meyering@lucent.com>
24158
24159         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
24160
24161 2001-11-20  Jim Meyering  <meyering@lucent.com>
24162
24163         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
24164         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
24165
24166 2001-11-19  Jim Meyering  <meyering@lucent.com>
24167
24168         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
24169         directory.  Use "conftestXXXXXX" as the template.
24170         Suggestion from Paul Eggert.
24171
24172         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
24173         immediately, so the test doesn't mistakenly hit the max-open-files
24174         limit.
24175
24176 2001-11-18  Paul Eggert  <eggert@twinsun.com>
24177
24178         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
24179         (TEMPORARIES): New macro.
24180         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
24181         removes an artificial limitation (e.g. HP-UX 10.20, where
24182         TMP_MAX is 17576).
24183
24184 2001-11-18  Jim Meyering  <meyering@lucent.com>
24185
24186         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
24187
24188 2001-11-18  Jim Meyering  <meyering@lucent.com>
24189
24190         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
24191         on SunOS 4.
24192
24193         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
24194         files will be created before anything else.
24195
24196 2001-11-17  Paul Eggert  <eggert@twinsun.com>
24197
24198         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
24199         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
24200
24201 2001-11-17  Jim Meyering  <meyering@lucent.com>
24202
24203         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
24204         Prompted by a report from Bob Proulx.
24205
24206         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
24207         Instead, require UTILS_FUNC_MKSTEMP.
24208
24209 2001-11-17  Jim Meyering  <meyering@lucent.com>
24210
24211         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
24212         Now, that's done as part of AC_FUNC_STRTOD.
24213
24214 2001-11-17  Jim Meyering  <meyering@lucent.com>
24215
24216         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
24217         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
24218         rather than group writable.  Patch by Juan F. Codagnone.
24219
24220         * lib/readtokens.c: Remove explicit declarations of xmalloc and
24221         xrealloc, Instead, include "xalloc.h".
24222
24223         * lib/mountlist.c: Include unlocked-io.h after all system headers.
24224         Remove explicit declarations of xmalloc, xrealloc,
24225         and xstrdup.  Instead, include "xalloc.h".
24226
24227         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
24228         unlocked-io.h.
24229         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
24230         Likewise.
24231         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
24232
24233         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
24234         Reported by Padraig Brady.
24235
24236         * lib/mkstemp.c: #undef mkstemp.
24237         Include config.h.
24238         (rpl_mkstemp): Rename from mkstemp.
24239         Protoize.
24240
24241 2001-11-16  Jim Meyering  <meyering@lucent.com>
24242
24243         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
24244         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
24245         determine the amount of total physical memory, use pstat_getstatic.
24246         HPUX-11 doesn't define _SC_PHYS_PAGES.
24247         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
24248         If sysconf couldn't be used to determine the amount of available
24249         physical memory, use both pstat_getstatic and pstat_getdynamic.
24250         Based on a patch from Bob Proulx.
24251
24252 2001-11-10  Jim Meyering  <meyering@lucent.com>
24253
24254         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
24255         (jm_PREREQ): Use it.
24256
24257 2001-11-09  Jim Meyering  <meyering@lucent.com>
24258
24259         * m4/jm-macros.m4: Require autoconf-2.52f.
24260         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
24261         Use these AC_-prefixed names, not the AM_-prefixed ones.
24262
24263         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
24264
24265 2001-11-05  Jim Meyering  <meyering@lucent.com>
24266
24267         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
24268
24269 2001-11-04  Jim Meyering  <meyering@lucent.com>
24270
24271         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
24272         $DEFS.
24273
24274 2001-11-03  Jim Meyering  <meyering@lucent.com>
24275
24276         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
24277         of AC_DEFUN.
24278
24279         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
24280         know the name of the variable in the macro definition.
24281
24282 2001-11-03  Jim Meyering  <meyering@lucent.com>
24283
24284         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
24285         in argmatch_to_argument call.
24286
24287         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
24288         argument.
24289
24290         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
24291         e.g., a fault due to an attempt to free a NULL pointer.
24292
24293 2001-11-01  Jim Meyering  <meyering@lucent.com>
24294
24295         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
24296         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
24297
24298 2001-11-01  Jim Meyering  <meyering@lucent.com>
24299
24300         * lib/dirfd.c, lib/dirfd.h: New files.
24301         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
24302
24303         * lib/hash.c (hash_print) [TESTING]: Clean up.
24304
24305 2001-10-22  Paul Eggert  <eggert@twinsun.com>
24306
24307         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
24308         to avoid a warning if -Wall.
24309
24310 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
24311
24312         * README: New file
24313         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
24314         (per RMS's instructions, this is now the canonical source)
24315         * lgpl/, gpl/: New directories.
24316
24317 2001-10-21  Paul Eggert  <eggert@twinsun.com>
24318
24319         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
24320
24321 2001-10-21  Jim Meyering  <meyering@lucent.com>
24322
24323         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
24324         this code would end up calling gettext even in packages built
24325         with --disable-nls.
24326         * lib/getopt.c (_): Likewise.
24327         * lib/regex.c (_): Likewise.
24328
24329 2001-10-20  Paul Eggert  <eggert@twinsun.com>
24330
24331         * m4/error.m4 (jm_PREREQ_ERROR):
24332         Do not invoke AC_CHECK_FUNCS with strerror_r, as
24333         AC_FUNC_STRERROR_R does that.
24334         Check for strerror declaration.
24335
24336         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
24337         are supposed to have them these days.
24338         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
24339         Merge changes from latest Autoconf CVS.
24340         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
24341         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
24342         POSIX decided to standardize on the int flavor of strerror_r.
24343
24344 2001-10-20  Paul Eggert  <eggert@twinsun.com>
24345
24346         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
24347         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
24348         Use strerror_r that is only a macro, even if it is not a function.
24349         (strerror): Check for HAVE_DECL_STRERROR before declaring.
24350         (private_strerror): Use prototypes, not old-style function definition.
24351         (print_errno_message): New function.
24352         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
24353         char*-flavored one.
24354         (error_tail, error, error_at_line): Use it.
24355
24356 2001-10-11  Jim Meyering  <meyering@lucent.com>
24357
24358         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
24359         and quote_n (1, ... to avoid clobbering a buffer.
24360
24361 2001-10-05  Jim Meyering  <meyering@lucent.com>
24362
24363         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
24364         hash-pjw.h.
24365         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
24366         * lib/hash-pjw.h: New file.
24367
24368 2001-09-30  Jim Meyering  <meyering@lucent.com>
24369
24370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
24371         `struct fsstat' has the `f_fstypename' member.
24372         Use that to define FS_TYPE, which is now used to make
24373         the getfsstat link test tighter.
24374
24375 2001-09-30  Jim Meyering  <meyering@lucent.com>
24376
24377         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
24378         Include <sys/ucred.h>, for Apple Darwin.
24379         Include sys/mount.h and sys/fs_types.h only if available.
24380         (FS_TYPE): Define.
24381         (read_filesystem_list): Use FS_TYPE.
24382
24383 2001-09-29  Paul Eggert  <eggert@twinsun.com>
24384
24385         * lib/exclude.c (excluded_filename): 0 -> false, since it's
24386         a boolean context.
24387
24388 2001-09-29  Jim Meyering  <meyering@lucent.com>
24389
24390         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24391         [one-argument getmntent function]): Include stdio.h before mntent.h.
24392         SunOS 4.1.x needs it for the declaration of `FILE'.
24393         Patch by Volker Borchert.
24394
24395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24396         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
24397         sys/fs_types.h, and make the link-test for getfsstat guard #include
24398         directives with appropriate #if HAVE_*_H tests so that we can
24399         detect getfsstat on Apple Darwin1.3.7 systems.
24400         Reported by Nelson Beebe.
24401         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
24402
24403 2001-09-28  Paul Eggert  <eggert@twinsun.com>
24404
24405         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24406         #defines strtoimax.  Also treat the other strto* functions
24407         like strtoimax.
24408
24409         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24410         Check for strtoul and strtoumax,
24411         as those declarations are made even in the signed case.
24412         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
24413         Likewise, for strtol and strtoimax.
24414
24415 2001-09-28  Paul Eggert  <eggert@twinsun.com>
24416
24417         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24418         #defines strtoimax.  Also treat the other strto* functions
24419         like strtoimax.
24420
24421         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
24422         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
24423         (strtoimax, strtoumax): Do not declare if already defined as a macro.
24424
24425 2001-09-26  Jim Meyering  <meyering@lucent.com>
24426
24427         Most macros in unlocked-io.h had the wrong number of arguments.
24428         * lib/gen-uio: New script.
24429         (USE_UNLOCKED_IO): Define to 1 if not already defined.
24430         * lib/unlocked-io.hin: Remove file.
24431         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
24432         rather than trying to embed it here.
24433         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
24434         Reported by Padraig Brady.
24435
24436 2001-09-25  Volker Borchert  <bt@teknon.de>
24437
24438         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
24439         `result'.
24440
24441 2001-09-24  Jim Meyering  <meyering@lucent.com>
24442
24443         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
24444
24445 2001-09-23  Jim Meyering  <meyering@lucent.com>
24446
24447         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
24448         instead of the mere test for existence of mntent.h.  The latter
24449         would get a false-positive on AIX 3.4 systems.
24450         In the outer getmntent if-block, don't die if neither of the getmntent
24451         tests succeeds.  Instead, just fall through and continue with the
24452         remaining tests.
24453
24454 2001-09-23  Jim Meyering  <meyering@lucent.com>
24455
24456         * lib/mountlist.c: Remove useless parentheses in #if directives.
24457         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
24458         the deprecated MOUNTED symbol is no longer defined in mntent.h.
24459
24460 2001-09-22  Jim Meyering  <meyering@lucent.com>
24461
24462         * m4/gettext.m4: New file.  From gettext.
24463         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
24464         * m4/progtest.m4: Likewise
24465         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
24466         * m4/glibc21.m4: Likewise.
24467
24468         * m4/libintl.m4: Remove.  No longer used.
24469
24470 2001-09-22  Jim Meyering  <meyering@lucent.com>
24471
24472         * lib/localcharset.c: Update from latest gettext.
24473         * lib/config.charset: Likewise.
24474
24475 2001-09-20  Jim Meyering  <meyering@lucent.com>
24476
24477         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
24478         strtoimax.
24479         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
24480         strtoumax.
24481
24482 2001-09-20  Jim Meyering  <meyering@lucent.com>
24483
24484         * lib/xstrtol.c (strtoimax): Guard declaration with
24485         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
24486         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
24487         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
24488         (strtoumax): Likewise, for completeness (it wasn't necessary).
24489
24490 2001-09-17  Paul Eggert  <eggert@twinsun.com>
24491
24492         * lib/strtoimax.c (HAVE_LONG_LONG):
24493         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
24494         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
24495         to work around bug in IBM C compiler.
24496
24497 2001-09-17  Jim Meyering  <meyering@lucent.com>
24498
24499         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
24500         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
24501         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
24502         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
24503         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
24504         whenever the right hand side need not be expanded by the shell.
24505
24506 2001-09-16  Paul Eggert  <eggert@twinsun.com>
24507
24508         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
24509         library.  It's not correct, as some older glibcs are buggy.
24510         fnmatch wasn't fixed until glibc 2.2.
24511
24512         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
24513         special shell magic here.
24514
24515 2001-09-16  Jim Meyering  <meyering@lucent.com>
24516
24517         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
24518         * m4/jm-macros.m4: Require it.
24519
24520 2001-09-16  Jim Meyering  <meyering@lucent.com>
24521
24522         * lib/mkdir.c: New file.
24523
24524 2001-09-15  Jim Meyering  <meyering@lucent.com>
24525
24526         * m4/jm-macros.m4: Check for help2man.
24527
24528 2001-09-11  Jim Meyering  <meyering@lucent.com>
24529
24530         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
24531         The body, by Paul Eggert, was moved here from configure.in.
24532         * m4/jm-macros.m4: Require UTILS_HOST_OS.
24533
24534 2001-09-04  Paul Eggert  <eggert@twinsun.com>
24535
24536         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
24537         (jm_PREREQ): Use it.
24538
24539 2001-09-04  Paul Eggert  <eggert@twinsun.com>
24540
24541         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
24542         Use ssize_t, not int, to store result of readlink.
24543         Check for ssize_t overflow as well as size_t overflow,
24544         as POSIX says the result of readlink is implementation-defined
24545         when ssize_t overflows.
24546         Remove unnecessary cast to char*.
24547         Use free+malloc instead of realloc, as the storage doesn't need
24548         to be preserved and it's clearer and can be more efficient that way.
24549         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
24550         * lib/xreadlink.h (xreadlink): Update prototype.
24551
24552 2001-09-04  Paul Eggert  <eggert@twinsun.com>
24553
24554         * lib/xgetcwd.c: Revert some of the previous change; intead,
24555         fix the HAVE_GETCWD_NULL code to behave more like the
24556         !HAVE_GETCWD_NULL code used to.
24557
24558         Include "xalloc.h".
24559         (xgetcwd): Do not return NULL when memory is exhausted; instead,
24560         invoke xalloc_die.
24561
24562 2001-09-03  Paul Eggert  <eggert@twinsun.com>
24563
24564         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
24565         sys/param.h, as pathmax.h includes them.
24566
24567 2001-09-03  Paul Eggert  <eggert@twinsun.com>
24568
24569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
24570         (jm_PREREQ_XGETCWD): New macro.
24571
24572         * m4/getcwd.m4: New file.
24573
24574 2001-09-03  Paul Eggert  <eggert@twinsun.com>
24575
24576         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
24577         like the HAVE_GETCWD_NULL code.
24578         Include pathmax.h if not HAVE_GETCWD.
24579         Do not include xalloc.h.
24580         (INITIAL_BUFFER_SIZE): New symbol.
24581         Do not use xmalloc / xrealloc, since the caller is responsible for
24582         handling errors.  Preserve errno around `free' during failure.
24583         Do not overrun buffer when using getwd.
24584
24585 2001-09-03  Paul Eggert  <eggert@twinsun.com>
24586
24587         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
24588         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
24589         getcwd (NULL, 0).
24590
24591 2001-09-03  Paul Eggert  <eggert@twinsun.com>
24592
24593         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
24594         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
24595         spotted by Jim Meyering.
24596
24597 2001-09-03  Jim Meyering  <meyering@lucent.com>
24598
24599         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
24600         failure.
24601
24602 2001-09-02  Jim Meyering  <meyering@lucent.com>
24603
24604         * lib/error.c: Update from GNU libc.
24605
24606 2001-09-01  Jim Meyering  <meyering@lucent.com>
24607
24608         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
24609         Used by df.
24610
24611 2001-09-01  Jim Meyering  <meyering@lucent.com>
24612
24613         * lib/xreadlink.c: New file.
24614         * lib/xreadlink.h: New file.
24615         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
24616         xreadlink.h.
24617
24618         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
24619         doesn't conflict with sparc Solaris 7's definition in
24620         /usr/include/sys/int_types.h.
24621
24622         * lib/exclude.c: Use `""', not `<>' to #include non-system header
24623         files.
24624         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
24625         and strncasecmp as r-values.  Unixware didn't have declarations.
24626
24627 2001-08-31  Paul Eggert  <eggert@twinsun.com>
24628
24629         * lib/xstrtol.h: Add copyright notice.
24630         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
24631         LONGINT_INVALID_SUFFIX_CHAR.
24632
24633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
24634
24635         * lib/xstrtol.c (strtoimax): New decl.
24636
24637 2001-08-31  Paul Eggert  <eggert@twinsun.com>
24638
24639         * lib/xgetcwd.c: Don't include pathmax.h.
24640         Include stdlib.h and unistd.h if available.
24641         Include xalloc.h.
24642         (xmalloc, xstrdup, free): Remove decls.
24643         (xgetcwd): Don't assume sizes fit in unsigned.
24644         Check for overflow when computing sizes.
24645         Simplify reallocation code.
24646
24647 2001-08-31  Paul Eggert  <eggert@twinsun.com>
24648
24649         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
24650         a directory's st_size can have an arbitrary value, so the old
24651         usage could waste an arbitrary amount of memory.  All uses
24652         changed.
24653         * lib/savedir.h: Update prototype.
24654
24655 2001-08-31  Paul Eggert  <eggert@twinsun.com>
24656
24657         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
24658
24659         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
24660         old strtoimax.c.
24661
24662         Also, make the following further changes to make this file's
24663         configuration more similar to that of strtol.c:
24664         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
24665         (strtoumax, uintmax_t, strtoull, strtol): Remove.
24666         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
24667         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
24668         changed to signed values.
24669
24670         And make the following changes as well:
24671         Fix copyright notice, as 1999 was missing.
24672         (verify): New macro.
24673         (strtoimax): Check sizes at compile-time, not run-time.
24674         Prefer strtol to strtoll if both work.
24675         (main): Remove; it was not that useful and was a pain to maintain.
24676
24677         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
24678
24679 2001-08-31  Jim Meyering  <meyering@lucent.com>
24680
24681         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
24682         Use an initial, malloc'd, buffer of length 128 rather than
24683         a statically allocated one of length 1024.
24684
24685 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24686
24687         Simplify code, partly by assuming autoconf 2.52 semantics.
24688
24689         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
24690
24691         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
24692         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
24693         All uses removed.
24694         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
24695         Move AC_REQUIRE to next-to-top level, to avoid confusion.
24696         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
24697         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
24698         jm_AC_HEADER_INTTYPES_H.
24699         * m4/jm-macros.m4 (jm_MACROS): Likewise.
24700
24701         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
24702
24703         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24704         Quote first arg of AC_DEFUN.
24705         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
24706         since they are needed to parse the include file even if we need
24707         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
24708         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
24709         but with opposite signedness.
24710
24711 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24712
24713         Merge 'exclude' changes from tar 1.13.22.
24714         This fixes one or two unlikely storage allocation overflow bugs,
24715         but doesn't change user-visible behavior otherwise.
24716
24717 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24718
24719         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
24720         (jm_PREREQ_EXCLUDE): New macro.
24721
24722 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24723
24724         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
24725         tm to be declared.
24726
24727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24728
24729         * lib/hash.c: Remove '2001' from copyright notice.
24730
24731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24732
24733         * lib/full-write.h: New file.
24734         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
24735         * lib/full-write.c: Correct credits, as cccp.c no longer
24736         exists and anyway it was so heavily changed from the old cccp
24737         code as to be unrecognizable.  Include full-write.h.
24738         (full_write) Return size_t, with short writes meaning failure.
24739         All callers changed.  This fixes a bug with large buffers
24740         on 64-bit hosts.
24741         * lib/utime.c: Include full-write.h.
24742
24743 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24744
24745         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
24746         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
24747         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
24748         Include if available.
24749         (<xalloc.h>): Include
24750         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
24751         (verify): New macro.  Use it to verify that EXCLUDE macros do not
24752         collide with FNM macros.
24753         (struct patopts): New struct.
24754         (struct exclude): Use it, as exclude patterns now come with options.
24755         (new_exclude): Support above changes.
24756         (new_exclude, add_exclude_file):
24757         Initial size must now be a power of two to simplify overflow checking.
24758         (free_exclude, fnmatch_no_wildcards): New function.
24759         (excluded_filename): No longer requires options arg, as the options
24760         are determined by add_exclude.  Now returns bool, not int.
24761         (excluded_filename, add_exclude):
24762         Add support for the fancy new exclusion options.
24763         (add_exclude, add_exclude_file): Now takes int options arg.
24764         Check for arithmetic overflow when computing sizes.
24765         (add_exclude_file): xrealloc might modify errno, so don't
24766         realloc until after errno might be used.
24767
24768         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
24769         New macros.
24770         (free_exclude): New decl.
24771         (add_exclude, add_exclude_file): Now takes int options arg.
24772         (excluded_filename): No longer requires options arg, as the options
24773         are determined by add_exclude.  Now returns bool, not int.
24774
24775 2001-08-30  Paul Eggert  <eggert@twinsun.com>
24776
24777         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
24778
24779 2001-08-27  Jim Meyering  <meyering@lucent.com>
24780
24781         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
24782
24783         * lib/version-etc.c (N_): Remove definition.
24784         Revert most of last change.
24785         Instead, simply don't mark the `Copyright...' string for translation.
24786         Based on advice from Paul Eggert.
24787
24788         * lib/strtoxmax.c: Tweak comment.
24789
24790 2001-08-26  Jim Meyering  <meyering@lucent.com>
24791
24792         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
24793
24794         * m4/xstrtoimax.m4: New file.
24795         * m4/xstrtoumax.m4: Add comments explaining why we
24796         AC_REPLACE_FUNCS(strtol).
24797
24798 2001-08-26  Jim Meyering  <meyering@lucent.com>
24799
24800         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
24801         of copyright with `%s' so translators don't get an untranslated
24802         message in 2002.
24803         (COPYRIGHT_YEAR): Define.
24804         (version_etc): Use fprintf rather than fputs.
24805         Suggestion from Ulrich Drepper.
24806
24807         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
24808
24809         * lib/strtoll.c: New file, from GNU libc.
24810         * lib/xstrtoimax.c: New file.
24811
24812         * lib/xstrtol.h: Add xstrtoimax.
24813         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
24814         * lib/strtoimax.c: New file.  Likewise, but first define
24815         STRTOUXMAX_SIGNED.
24816
24817         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
24818         ...
24819         * lib/strtoxmax.c: ... then renamed to this.
24820
24821 2001-08-18  Paul Eggert  <eggert@twinsun.com>
24822
24823         * m4/inttypes.m4: Add AC_PREREQ(2.13).
24824         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
24825         (jm_AC_TYPE_INTMAX_T): New macro.
24826         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
24827
24828         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
24829
24830         * m4/longlong.m4: Renamed from ulonglong.m4.
24831         * m4/inttypes.m4: Renamed from inttypes_h.m4.
24832         * m4/uintmax_t.m4: Removed.
24833
24834 2001-08-13  Paul Eggert  <eggert@twinsun.com>
24835
24836         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
24837         Port to Solaris 8, where 'sed' requires a space after the 'r'
24838         command, and where sh dislikes "$/".  Clean up the spacing a bit.
24839         Redirect output to $tmp just once.
24840
24841 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
24842
24843         * lib/addext.c (<errno.h>): Include.
24844         (errno): Declare if not defined.
24845         (addext): Work correctly when pathconf returns -1 and leaves
24846         errno alone because there is no limit.  Also, work even if
24847         pathconf returns a value greater than SIZE_MAX.
24848
24849 2001-08-12  Jim Meyering  <meyering@lucent.com>
24850
24851         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
24852         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
24853         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
24854         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
24855         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
24856         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
24857         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
24858         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
24859         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
24860         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
24861         utime.m4, utimes.m4, xstrtoumax.m4:
24862         Quote the first argument in each use of AC_DEFUN.
24863
24864 2001-08-12  Jim Meyering  <meyering@lucent.com>
24865
24866         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
24867         Simply `return getcwd (NULL, 0);'.
24868         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
24869         Use 1300 as initial value for length, not PATH_MAX.
24870
24871         * lib/pathmax.h: Clean up cpp syntax.
24872
24873 2001-08-12  Jim Meyering  <meyering@lucent.com>
24874
24875         * lib/gettimeofday.c: New file.
24876         * lib/gtod.h: New file.
24877         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
24878
24879 2001-08-05  Jim Meyering  <meyering@lucent.com>
24880
24881         * m4/jm-macros.m4: Require autoconf-2.52.
24882
24883 2001-08-04  Jim Meyering  <meyering@lucent.com>
24884
24885         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
24886         stmt, to get in sync with glibc.
24887
24888 2001-08-03  Paul Eggert  <eggert@twinsun.com>
24889
24890         The following changes are from gettext 0.10.39 as maintained by
24891         Bruno Haible.
24892
24893         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
24894         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
24895         with inverted sense.  All uses changed.
24896
24897         * lib/mbswidth.c: Don't include <limits.h>.
24898         Include <stdlib.h> and <string.h> unconditionally.
24899         (iswcntrl, mbsinit, ISCNTRL): New macros.
24900         (mbsnwidth): Use K&R style function declarations.
24901         Don't bother checking for MB_LEN_MAX == 1, since the compiler
24902         can optimize it when MB_CUR_MAX == 1.
24903         The width of control characters is zero, not 1.
24904
24905 2001-08-03  Paul Eggert  <eggert@twinsun.com>
24906
24907         The following changes are from gettext 0.10.39 as maintained by
24908         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
24909
24910         * m4/codeset.m4: Upgrade to serial AM1.
24911         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
24912         all uses changed.  Quote first arg of AC_DEFUN.
24913         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
24914
24915         * m4/iconv.m4: Upgrade to serial AM2.
24916         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
24917         Add --with-libconv-prefix.
24918         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
24919         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
24920         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
24921         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
24922         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
24923
24924         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
24925         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
24926         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
24927         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
24928         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
24929         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
24930         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24931         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
24932         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
24933
24934         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
24935         string.h any more.
24936
24937         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
24938         not the default value.
24939
24940         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
24941         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
24942         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
24943         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
24944         Also check for iswcntrl, used for wcwidth fallback.
24945         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
24946         to Autoconf 2.13.
24947
24948 2001-08-03  Jim Meyering  <meyering@lucent.com>
24949
24950         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
24951         as it was in the original.  Reported by Paul Eggert.
24952
24953 2001-07-16  Jim Meyering  <meyering@lucent.com>
24954
24955         * m4/gettimeofday.m4: New file.
24956         Prompted by a report from Bernhard Baehr.
24957
24958 2001-07-15  Jim Meyering  <meyering@lucent.com>
24959
24960         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
24961         stuff. Now it's in ../Makefile.cfg.
24962
24963 2001-07-15  Jim Meyering  <meyering@lucent.com>
24964
24965         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
24966         (BUILT_SOURCES): Add unlocked-io.h.
24967         (io_functions): Define.
24968         (unlocked-io.h): New rule.
24969         (DISTCLEANFILES): Add unlocked-io.h.
24970         (all-local): Depend on unlocked-io.h, to ensure it is created.
24971
24972         * lib/unlocked-io.hin: New file
24973
24974         * lib/regex.c: Update from glibc.
24975
24976 2001-07-05  Jim Meyering  <meyering@lucent.com>
24977
24978         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
24979         recommendation.
24980         (libfetish_a_SOURCES): Put all .h files here instead.
24981         Remove a thus-exposed (better checks in automake) duplicate and
24982         two unnecessary .h files.
24983
24984 2001-07-04  Jim Meyering  <meyering@lucent.com>
24985
24986         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
24987         that generates jm-glibc-io.m4 so that it doesn't trigger any make
24988         distcheck failure.
24989
24990 2001-07-02  Jim Meyering  <meyering@lucent.com>
24991
24992         The following changes were prompted by suggestions from Bruno Haible.
24993
24994         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
24995         is now generated.
24996         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
24997         definition of EXTRA_DIST.
24998         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
24999         ensure that the generated file is created/updated whenever the list
25000         of $(unlocked_functions) is changed.
25001         (jm-glibc-io.m4): New rule.
25002         (unlocked-io.h): New rule -- currently unused.
25003
25004 2001-06-24  Jim Meyering  <meyering@lucent.com>
25005
25006         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
25007         unmatched right bracket, rather than kludging it with an extra,
25008         falsely-matching quote in a comment.  Patch by Akim Demaille.
25009
25010 2001-06-11  Jim Meyering  <meyering@lucent.com>
25011
25012         * lib/regex.c: Update from GNU libc.
25013
25014 2001-05-27  Jim Meyering  <meyering@lucent.com>
25015
25016         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
25017         Check for ut_type in struct utmp.
25018
25019 2001-05-27  Jim Meyering  <meyering@lucent.com>
25020
25021         * lib/readutmp.h (UT_TYPE): Define.
25022
25023 2001-05-24  Jim Meyering  <meyering@lucent.com>
25024
25025         * lib/argmatch.c: Include "quote.h".
25026         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
25027         quote function.  Reported by Göran Uddeborg.
25028
25029 2001-05-22  Jim Meyering  <meyering@lucent.com>
25030
25031         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
25032         now that we use the package-supplied version unconditionally.
25033         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
25034
25035 2001-05-21  Jim Meyering  <meyering@lucent.com>
25036
25037         * m4/regex.m4: Change a couple backticks to single quotes to avoid
25038         shell syntax errors.
25039
25040 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
25041
25042         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
25043
25044 2001-05-20  Paul Eggert  <eggert@twinsun.com>
25045
25046         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
25047         Don't bother to check library strftime, since
25048         we'll be using our own my_strftime function anyway.
25049         Define my_strftime instead of strftime.
25050
25051 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
25052
25053         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
25054         which is not yet declared.
25055
25056 2001-05-15  Jim Meyering  <meyering@lucent.com>
25057
25058         * m4/regex.m4: Use proper quoting so brackets appear in the test
25059         program.
25060         Reported by, and with help from, Bruno Haible.
25061
25062 2001-05-13  Jim Meyering  <meyering@lucent.com>
25063
25064         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
25065         undefined.
25066
25067 2001-05-11  Paul Eggert  <eggert@twinsun.com>
25068
25069         dirname code cleanup.  base_name now behaves more compatibly
25070         with POSIX basename when given file names that have trailing
25071         slashes, and similarly for dir_name.  Add new primitives
25072         base_len and dir_len.  Put the directory-name-related decls
25073         into dirname.h.
25074
25075         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
25076         * lib/backupfile.c (base_name): Likewise.
25077         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
25078         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
25079         * lib/makepath.c (strip_trailing_slashes): Likewise.
25080         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
25081         ISSLASH): Likewise.
25082         * lib/rename.c (strip_trailing_slashes): Likewise.
25083         * lib/same.c (base_name): Likewise.
25084         * lib/stripslash.c (ISSLASH): Likewise.
25085
25086         * lib/addext.c: Include <dirname.h> after size_t is defined.
25087         * lib/backupfile.c: Likewise.
25088
25089         * lib/addext.c (addext): Use base_len to trim redundant
25090         trailing slashes instead of doing it ourselves.
25091         But do not trim the last slash if it is not redundant.
25092
25093         * lib/backupfile.c (find_backup_file_name,
25094         max_backup_version): Use base_len instead of rolling it ourselves.
25095         Handle the case of "" and (on DOS) "C:" correctly.
25096
25097         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
25098         needed. Include <string.h>, <dirname.h>.
25099         (base_name): Allow file names ending in slashes, other than names
25100         that are all slashes.  In this case, return the basename followed
25101         by the slashes.  This is more general, and can be used in places
25102         where the original base_name purposely had an assertion failure.
25103         (base_len): New function.
25104
25105         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
25106         Do not include <assert.h>; no longer needed.
25107         Include xalloc.h.
25108         (memrchr): Remove decl.
25109         (dir_name_r): Remove.
25110         (dir_len): Renamed from dirlen.  All callers changed.
25111         Rewrite in terms of base_name, for simplicity and consistency.
25112         (dir_name): Never return NULL.  All callers changed.
25113         Do not include <stdlib.h> in test program; no longer needed.
25114         return 0; is fine for test program.
25115
25116         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
25117         New macros.
25118         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
25119
25120         * lib/path-concat.c (path_concat): Use base_len to compute
25121         base length, not strlen; this means we cannot rely on memcpy
25122         to null-terminate.
25123
25124         * lib/same.c (STREQ): Remove.
25125         (same_name): Handle the case where the basename ends in trailing '/'.
25126
25127         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
25128         a slash was stripped.  Do not strip the last slash after a
25129         file system prefix.
25130
25131 2001-05-11  Paul Eggert  <eggert@twinsun.com>
25132
25133         * lib/Makefile.am (libfetish_a_SOURCES):
25134         Add strftime.c, since we now compile it on all hosts.
25135
25136         * lib/strftime.c (my_strftime):
25137         Define to nstrftime if emacs, but only if my_strftime is not defined.
25138         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
25139         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
25140         Add one more extra argument: a nanoseconds value.
25141         All uses changed.
25142         (ns): New macro.
25143         (my_strftime function): Add %N format.
25144         (emacs_strftimeu): Renamed from emacs_strftime,
25145         with extra ut argument.
25146
25147 2001-05-09  Paul Eggert  <eggert@twinsun.com>
25148
25149         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
25150
25151 2001-04-21  Jim Meyering  <meyering@lucent.com>
25152
25153         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
25154         doesn't interfere.
25155
25156 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
25157
25158         * m4/ftruncate.m4: Check for chsize.
25159         Link with ftruncate.o unconditionally if ftruncate is missing.
25160         This was required when cross-compiling to i586-mingw32msvc.
25161
25162 2001-04-08  Jim Meyering  <meyering@lucent.com>
25163
25164         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
25165         recomputed; that's necessary when the offset spans a DST transition.
25166         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
25167
25168 2001-04-02  Jim Meyering  <meyering@lucent.com>
25169
25170         * lib/regex.h, regex.c: Update from GNU libc.
25171
25172 2001-03-24  Jim Meyering  <meyering@lucent.com>
25173
25174         * m4/jm-macros.m4: Require autoconf-2.49d.
25175
25176 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
25177
25178         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
25179
25180 2001-03-19  Paul Eggert  <eggert@twinsun.com>
25181
25182         * lib/version-etc.c (version_etc_copyright): Update to 2001.
25183
25184 2001-03-17  Jim Meyering  <meyering@lucent.com>
25185
25186         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
25187         now that the version in autoconf is equivalent.
25188         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
25189
25190         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
25191         Suggestion from Akim Demaille.
25192
25193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
25194         (jm_PREREQ_TEMPNAME): New function.
25195
25196 2001-03-16  Paul Eggert  <eggert@twinsun.com>
25197
25198         * lib/tempname.c (uint64_t): Define to uintmax_t if
25199         not defined, and if UINT64_MAX is not defined.
25200         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
25201         Reported by John David Anglin.
25202
25203 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
25204
25205         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
25206         resolve alias if codeset is empty.
25207         * lib/config.charset (BeOS): Use wildcard syntax.
25208
25209 2001-03-13  Jim Meyering  <meyering@lucent.com>
25210
25211         * lib/path-concat.c (path_concat)
25212         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
25213         concatenating e.g., `C:' and `foo'.
25214         From Bruno Haible.
25215
25216 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
25217
25218         * lib/localcharset.c (locale_charset): Don't use
25219         setlocale(LC_CTYPE,NULL). Don't return NULL.
25220         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
25221
25222 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
25223
25224         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
25225         support for DOS/DJGPP.
25226
25227 2001-03-01  Paul Eggert  <eggert@twinsun.com>
25228
25229         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
25230         lacks mkstemp.  Compile our own tempname.c if we compile our own
25231         mkstemp.c, as mkstemp relies on tempname.
25232
25233 2001-03-01  Jim Meyering  <meyering@lucent.com>
25234
25235         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
25236         AH_VERBATIM really does output its argument verbatim.
25237
25238 2001-02-28  Paul Eggert  <eggert@twinsun.com>
25239
25240         * lib/Makefile.am (libfetish_a_SOURCES):
25241         Add dup-safer.c, fopen-safer.c.
25242         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
25243
25244         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
25245         * lib/unistd-safer.h: New files.
25246
25247 2001-02-25  Paul Eggert  <eggert@twinsun.com>
25248
25249         The mkstemp replacement is taken from glibc 2.2.2, with some
25250         portability fixes for use outside glibc, as follows:
25251
25252         * lib/tempname.c (struct_stat64): New macro.
25253         (direxists, __gen_tempname): Use it.
25254         This avoids a portability problem with Solaris 8.
25255
25256         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
25257         (<stddef.h>, <stdint.h>, <string.h>):
25258         Include only if STDC_HEADERS || _LIBC.
25259         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
25260         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
25261         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
25262         (__set_errno): Define this macro if <errno.h> doesn't.
25263         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
25264         Define these macros if <stdio.h> doesn't.
25265         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
25266         Define these macros if <sys/stat.h>
25267         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
25268         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
25269         __xstat64): Define if not _LIBC.
25270         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
25271         (__gen_tempname): Invoke gettimeofday only if
25272         HAVE_GETTIMEOFDAY || _LIBC;
25273         otherwise, fall back on plain "time".
25274         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
25275
25276         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
25277
25278         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
25279
25280 2001-02-18  Paul Eggert  <eggert@twinsun.com>
25281
25282         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
25283
25284 2001-02-17  Paul Eggert  <eggert@twinsun.com>
25285
25286         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
25287         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
25288         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
25289         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
25290
25291 2001-02-17  Paul Eggert  <eggert@twinsun.com>
25292
25293         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
25294         Remove workaround macros for hosts that have mbrtowc but not
25295         mbstate_t, as we now insist on proper declarations for both
25296         before using mbrtowc.
25297
25298 2001-02-17  Jim Meyering  <meyering@lucent.com>
25299
25300         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
25301         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
25302         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
25303         UnixWare 7.1.1.
25304
25305         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
25306         rather than AC_CACHE_VAL.
25307
25308 2001-02-17  Jim Meyering  <meyering@lucent.com>
25309
25310         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
25311         around included file name.
25312
25313         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
25314
25315         * lib/strftime.c: Update from GNU libc (the only changes were to
25316         comments).
25317
25318 2001-02-17  Jim Meyering  <meyering@lucent.com>
25319
25320         * lib/regex.c: Update from libc.
25321
25322 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
25323
25324         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
25325         clash.
25326
25327 2001-02-16  Paul Eggert  <eggert@twinsun.com>
25328
25329         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
25330         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
25331         Reported by Mark Hounschell via Paul Eggert.
25332
25333 2001-02-07  Jim Meyering  <meyering@lucent.com>
25334
25335         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
25336
25337 2001-02-05  Jim Meyering  <meyering@lucent.com>
25338
25339         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
25340         it includes the patch required for `large file' support with at least
25341         HP-UX's 10.20 /bin/cc.
25342
25343 2001-02-03  Jim Meyering  <meyering@lucent.com>
25344
25345         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
25346         AS_IF, now that it works once again (mysteriously).
25347         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25348
25349 2001-01-30  Jim Meyering  <meyering@lucent.com>
25350
25351         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
25352         * m4/chown.m4: Rename conftestchown to conftest.chown.
25353         * m4/rename.m4: s/conftestdir/conftest.d1/ and
25354         s/conftestdir2/conftest.d2/.
25355         * m4/utimes.m4: s/conftestdata/conftest.data/
25356         Inspired by Pavel Roskin's change in autoconf.
25357
25358 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
25359
25360         * lib/config.charset: Update for FreeBSD 4.2.
25361
25362 2001-01-27  Jim Meyering  <meyering@lucent.com>
25363
25364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
25365         a use of AS_IF.
25366         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25367
25368 2001-01-26  Jim Meyering  <meyering@lucent.com>
25369
25370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
25371         quotearg.c includes it.
25372
25373 2001-01-26  Jim Meyering  <meyering@lucent.com>
25374
25375         * lib/quotearg.c: Include stddef.h.
25376         * lib/quote.c: Include stddef.h.
25377         Reported by Axel Kittenberger.
25378
25379         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
25380         line in double quotes so that it evokes a better diagnostic.
25381         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
25382         Reported by Axel Kittenberger.
25383
25384 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
25385
25386         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
25387         as if it was a `charset'.
25388
25389 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
25390
25391         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
25392         has const.
25393
25394 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
25395
25396         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
25397         to avoid a warning.  Add back 'const' to inptr.
25398
25399 2001-01-20  Jim Meyering  <meyering@lucent.com>
25400
25401         Be sure that headers are checked before used in code compiled
25402         for the type checks.
25403         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
25404         In place of that, invoke jm_CHECK_ALL_TYPES.
25405         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
25406         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
25407         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
25408         The check for ssize_t was mistakenly run before the test for unistd.h.
25409
25410         The configure-time check for stdbool.h was missing.
25411         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
25412         (jm_PREREQ_HASH): New function.
25413
25414 2001-01-17  Jim Meyering  <meyering@lucent.com>
25415
25416         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
25417         for autoconf-2.49c.
25418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
25419
25420 2001-01-16  Jim Meyering  <meyering@lucent.com>
25421
25422         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
25423         From Bruno Haible.
25424
25425 2001-01-14  Jim Meyering  <meyering@lucent.com>
25426
25427         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
25428         foo and bar.  Create conftestdir/ in the script, not in the C code.
25429         Remove directories in the script, not in the C code.
25430         Remove conftestdir{,2} before trying to create the directory.
25431         Make the entire configure script fail if the mkdir fails.
25432
25433 2001-01-14  Jim Meyering  <meyering@lucent.com>
25434
25435         * lib/rename.c: New file.  From Volker Borchert.
25436         Include stdlib.h, string.h or strings.h, and xalloc.h.
25437         Use strip_trailing_slashes rather than open-coding it.
25438
25439 2001-01-03  Paul Eggert  <eggert@twinsun.com>
25440
25441         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
25442
25443 2001-01-03  Jim Meyering  <meyering@lucent.com>
25444
25445         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
25446         of local `inptr' to avoid warning with some system declarations of
25447         iconv.
25448
25449 2001-01-02  Volker Borchert  <bt@teknon.de>
25450
25451         * m4/rename.m4: New file.
25452         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
25453
25454 2001-01-01  Jim Meyering  <meyering@lucent.com>
25455
25456         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
25457         even on systems with utmpx.h.  It's necessary for the declaration of
25458         utmp's ut_user member.  Reported by Andreas Jaeger.
25459
25460         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
25461         available. They are required for the declarations of getgrgid and
25462         getpwuid resp.
25463         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
25464         Reported by Andreas Jaeger.
25465
25466 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
25467
25468         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
25469         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
25470         so `make install' also works in VPATH builds.
25471
25472 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
25473
25474         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
25475         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
25476         can be used in subdirectories.
25477
25478 2000-12-29  Paul Eggert  <eggert@twinsun.com>
25479
25480         * lib/modechange.c: Do not assume that mode_t uses the
25481         traditional octal encoding.  E.g. "chmod 1 FOO" should set
25482         the other-execute bit of FOO even if S_IXOTH != 1.
25483
25484         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
25485         WOTH, XOTH, ALLM): New macros.
25486         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
25487          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
25488         Use them.
25489         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
25490         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
25491         (mode_compile):
25492         No need to use uintmax_t; unsigned long is long enough.
25493         Don't bother to get suffix since we don't use it.
25494
25495 2000-12-26  Jim Meyering  <meyering@lucent.com>
25496
25497         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
25498         better with autoheader.
25499
25500 2000-12-24  Jim Meyering  <meyering@lucent.com>
25501
25502         * lib/hash.c (is_prime): Return explicit boolean values.
25503         (hash_get_first): Return NULL to appease Irix5.6's 89.
25504         Reported by Nelson Beebe.
25505
25506 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
25507
25508         * lib/localcharset.c (locale_charset): Add support for Win32.
25509
25510 2000-12-18  Paul Eggert  <eggert@twinsun.com>
25511
25512         * lib/physmem.h, lib/physmem.c: New files.
25513
25514         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
25515         (noinst_HEADERS): Add physmem.h.
25516
25517         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
25518         't' for compatibility with Solaris 8 sort.
25519
25520 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
25521
25522         * lib/config.charset: Add support for BeOS.
25523
25524 2000-12-17  Jim Meyering  <meyering@lucent.com>
25525
25526         * m4/dos.m4 (jm_AC_DOS): New file and macro.
25527         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
25528
25529 2000-12-16  Jim Meyering  <meyering@lucent.com>
25530
25531         This bug had a serious impact on chown: `chown N:M FILE' (for integer
25532         N and M) would have treated it like `chown N:N FILE'.
25533
25534         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
25535
25536 2000-12-16  Jim Meyering  <meyering@lucent.com>
25537
25538         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
25539         SHELLS_FILE to a file name that's useful on djgpp systems.
25540         Include stdlib.h.
25541         (ADDITIONAL_DEFAULT_SHELLS): Define.
25542         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
25543         Based mostly on a patch from Prashant TR.
25544
25545 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
25546
25547         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
25548         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
25549         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
25550
25551 2000-12-08  Andreas Schwab  <schwab@suse.de>
25552
25553         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
25554         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
25555
25556 2000-12-07  Jim Meyering  <meyering@lucent.com>
25557
25558         * lib/stripslash.c (ISSLASH): Define.
25559         (strip_trailing_slashes): Use ISSLASH rather than comparing against
25560         `/'.
25561         From Prashant TR.
25562
25563         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
25564         (dir_name_r): Declare this function as static.
25565         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
25566         manifest itself on a name containing a mix of slashes and
25567         backslashes.
25568         Make this function work with names starting with a DOS-style
25569         drive letter and colon prefix.
25570         (dir_name): Append `.' if necessary.
25571         Based mostly on patches from Prashant TR and Eli Zaretskii.
25572
25573         * lib/dirname.h (dir_name_r): Remove prototype.
25574
25575 2000-12-06  Paul Eggert  <eggert@twinsun.com>
25576
25577         * m4/off_t-format.m4: Remove this file.
25578         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
25579
25580 2000-12-06  Jim Meyering  <meyering@lucent.com>
25581
25582         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
25583         replacement strtoull, we may well need the replacement strtoul, too.
25584         Check for declarations of strtoul and strtoull.
25585         Check for strtol.  Mainly as a cue to cause automake to include
25586         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
25587         Check for limits.h -- strtol.c needs it.
25588
25589 2000-12-05  Jim Meyering  <meyering@lucent.com>
25590
25591         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
25592
25593 2000-12-04  Jim Meyering  <meyering@lucent.com>
25594
25595         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
25596         Also include memory.h, stdlib.h, unistd.h if appropriate.
25597         Reported by Andreas Jaeger (conflicting declaration of malloc).
25598
25599 2000-12-02  Jim Meyering  <meyering@lucent.com>
25600
25601         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
25602         * m4/jm-macros.m4 (jm_MACROS): require it.
25603
25604 2000-12-02  Jim Meyering  <meyering@lucent.com>
25605
25606         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
25607
25608 2000-12-01  Paul Eggert  <eggert@twinsun.com>
25609
25610         * lib/memrchr.c: Include <config.h> before any system include file.
25611
25612 2000-11-30  Jim Meyering  <meyering@lucent.com>
25613
25614         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
25615
25616 2000-11-30  Jim Meyering  <meyering@lucent.com>
25617
25618         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
25619
25620 2000-11-29  Paul Eggert  <eggert@twinsun.com>
25621
25622         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
25623
25624 2000-11-26  Jim Meyering  <meyering@lucent.com>
25625
25626         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
25627
25628 2000-11-22  Paul Eggert  <eggert@twinsun.com>
25629
25630         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
25631         size of (size_t) -1; it's not portable.
25632
25633 2000-11-17  Jim Meyering  <meyering@lucent.com>
25634
25635         * lib/strstr.c: Update from GNU libc.
25636
25637 2000-11-17  Akim Demaille  <akim@epita.fr>
25638
25639         * lib/obstack.h: Formatting changes.
25640         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
25641         prevent type checking.
25642         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
25643         cast the value to (void *): assigning a `foo *' to a `void *'
25644         variable is valid.
25645         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
25646
25647 2000-11-16  Jim Meyering  <meyering@lucent.com>
25648
25649         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
25650
25651 2000-11-11  Jim Meyering  <meyering@lucent.com>
25652
25653         * lib/error.c: Add a couple #includes, merging from GNU libc version.
25654
25655 2000-11-10  Jim Meyering  <meyering@lucent.com>
25656
25657         * lib/obstack.h: Update from GNU libc.
25658         * lib/obstack.c: Likewise.
25659
25660 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
25661
25662         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
25663
25664 2000-11-06  Paul Eggert  <eggert@twinsun.com>
25665
25666         * lib/getusershell.c (setusershell): Use rewind rather than
25667         fseek/fseeko, to avoid configuration hassles with fseeko.
25668         Don't bother opening SHELLS_FILE if shellstream is NULL;
25669         it's not necessary.
25670
25671 2000-11-05  Jim Meyering  <meyering@lucent.com>
25672
25673         * lib/makepath.h (make_dir): Declare.
25674         * lib/makepath.c (make_dir): Remove `static' attribute.
25675         Tweak a comment.
25676
25677 2000-11-04  Jim Meyering  <meyering@lucent.com>
25678
25679         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
25680
25681 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
25682
25683         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
25684         last one in a bucket, advance to the next bucket.
25685
25686 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
25687
25688         * lib/fnmatch.c: Do not comment out all the code if we are using
25689         the GNU C library, because in some cases we are replacing buggy
25690         code in the GNU C library itself.
25691
25692 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
25693
25694         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
25695         (regex_compile): Catch bogus \(\1\).
25696
25697 2000-10-30  Paul Eggert  <eggert@twinsun.com>
25698
25699         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
25700         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
25701         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
25702
25703 2000-10-30  Paul Eggert  <eggert@twinsun.com>
25704
25705         * lib/error.h, getline.h, modechange.h:
25706         Remove "2000" from Copyright line, as the file hasn't been
25707         changed this year other than in the copyright notice.
25708
25709         * lib/xalloc.h: Add "2000" to Copyright line, as this file
25710         was changed this year.
25711
25712 2000-10-29  Jim Meyering  <meyering@lucent.com>
25713
25714         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
25715         renaming.
25716         * m4/ls-mntd-fs.m4: Likewise
25717
25718 2000-10-29  Jim Meyering  <meyering@lucent.com>
25719
25720         * lib/xstat.in: Fix grammar in comment.
25721
25722 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
25723
25724         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
25725         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
25726         doesn't define __restrict_arr.
25727
25728 2000-10-28  Jim Meyering  <meyering@lucent.com>
25729
25730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
25731         (jm_PREREQ_MEMCHR): New function.
25732
25733 2000-10-28  Jim Meyering  <meyering@lucent.com>
25734
25735         * lib/memchr.c: Update from libc.
25736         Adjust for portability:
25737         [HAVE_STDLIB_H]: Include stdlib.h.
25738         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
25739         Undef __memchr, too.
25740         [!weak_alias]: Define __memchr to memchr.
25741
25742         * lib/regex.c: Update from libc.
25743         * lib/regex.h: Likewise.
25744         * lib/getopt1.c: Likewise.
25745         * lib/memcmp.c: Likewise.
25746
25747         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
25748         Avoid using fseek, when possible -- it's broken by design.
25749         Patch by Ulrich Drepper.
25750
25751 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
25752
25753         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
25754         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
25755         Giving in to popular pressure to shut up the compiler with casts.
25756
25757 2000-10-26  Jim Meyering  <meyering@lucent.com>
25758
25759         * lib/strftime.c: Update from libc.
25760
25761 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
25762
25763         * regex.c: More `unsigned char' -> `re_char' changes.
25764         Also change several `int' into `re_wchar_t'.
25765         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
25766         (PUSH_FAILURE_POINTER): Don't cast any more.
25767         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
25768         We want GCC to complain, since this piece of code makes
25769         re_match non-reentrant, which *should* be fixed.
25770         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
25771         (EXTEND_BUFFER): Use RETALLOC.
25772         (SET_LIST_BIT): Don't cast.
25773         (re_wchar_t): New type.
25774         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
25775         that those two functions will always properly return.
25776         (IMMEDIATE_QUIT_CHECK): Cast to void.
25777         (analyse_first): Use recursion rather than an explicit stack.
25778         (re_compile_fastmap): Can't fail anymore.
25779         (re_search_2): Don't check re_compile_fastmap for failure.
25780         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
25781         Now also sets the new value (passed in a new argument).
25782         (re_match_2_internal): Use it.
25783         Also, use a new var `reg' of type size_t when looping through regs
25784         rather than reuse the inappropriate `mcnt'.
25785
25786 2000-10-25  Jim Meyering  <meyering@lucent.com>
25787
25788         * lib/obstack.c: Update from libc.
25789
25790 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
25791
25792         * regex.c (regex_compile): Change the way of handling a range from
25793         a char less than 256 to a char not less than 256.
25794
25795 2000-10-24  Andrew Innes  <andrewi@gnu.org>
25796
25797         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
25798         NT-Emacs only.
25799         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
25800         so that re_search functions only quit when callers expect them to.
25801
25802 2000-10-23  Jim Meyering  <meyering@lucent.com>
25803
25804         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
25805         wrong.  That set_locale call must not have any side effects.
25806         From Paul Eggert.
25807
25808 2000-10-22  Jim Meyering  <meyering@lucent.com>
25809
25810         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
25811         [CYCLIC]: Remove now-unused definition.
25812
25813         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
25814         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
25815         Suggestion from Ulrich Drepper.
25816
25817 2000-10-21  Jim Meyering  <meyering@lucent.com>
25818
25819         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
25820         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
25821         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
25822
25823 2000-10-21  Jim Meyering  <meyering@lucent.com>
25824
25825         * lib/dirname.c (memrchr): Declare if necessary.
25826         (dir_name): Remove the restriction that there be no
25827         trailing slashes.  Now, this code skips past them, effectively
25828         ignoring them.
25829         [TEST_DIRNAME] (main): New unit tests.
25830
25831         * lib/memrchr.c: New file from GNU libc.
25832         Undef __memrchr, too.
25833         [!weak_alias]: Define __memrchr to memrchr.
25834         Guard weak_alias use with `#ifdef weak_alias'.
25835
25836 2000-10-21  Jim Meyering  <meyering@lucent.com>
25837
25838         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
25839         (dir_name): Use dir_name_r.
25840         * lib/dirname.h (dir_name_r): Declare it.
25841
25842 2000-10-17  Jim Meyering  <meyering@lucent.com>
25843
25844         * lib/quote.h (PARAMS): Define and use.
25845         Reported by Akim Demaille.
25846
25847         * lib/getopt.c: Update from libc.
25848
25849 2000-10-16  Jim Meyering  <meyering@lucent.com>
25850
25851         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
25852         setlocale.
25853         From Jan Fedak.
25854
25855 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
25856
25857         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
25858
25859 2000-09-25  Jim Meyering  <meyering@lucent.com>
25860
25861         * lib/md5.h (rol): Define (from GnuPG).
25862
25863         * lib/sha.c: Give credit (GnuPG) where due.
25864         (M): Use rol rather than open-coding it.
25865         Add a FIXME comment.
25866
25867 2000-09-21  Jim Meyering  <meyering@lucent.com>
25868
25869         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
25870         Reported by Michael Stone.
25871
25872 2000-09-20  Jim Meyering  <meyering@lucent.com>
25873
25874         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
25875         (noinst_HEADERS): Add sha.h.
25876         Based on code from Scott G. Miller and from GnuPG.
25877
25878 2000-09-18  Jim Meyering  <meyering@lucent.com>
25879
25880         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
25881         LIBS. Otherwise, everyone ends up linking with -lelf for some
25882         configurations.
25883         Reported by Mike Stone.
25884
25885 2000-09-15  Jim Meyering  <meyering@lucent.com>
25886
25887         * lib/regex.c: Update from libc.
25888
25889 2000-09-10  Jim Meyering  <meyering@lucent.com>
25890
25891         * lib/getopt.c (_getopt_internal): Update from glibc.
25892
25893 2000-09-09  Jim Meyering  <meyering@lucent.com>
25894
25895         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
25896         think it should be used as a general replacement for isascii.
25897         * lib/fnmatch.c: Likewise.
25898         * lib/mbswidth.c: Likewise
25899         * lib/regex.c: Likewise.
25900
25901         Don't use atoi.
25902         * lib/userspec.c: Include sys/param.h and limits.h.
25903         Include xstrtol.h.
25904         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
25905         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
25906         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
25907         UID, GID.  Check range.
25908
25909 2000-09-06  Jim Meyering  <meyering@lucent.com>
25910
25911         * lib/getopt.c (_getopt_internal): Update from glibc.
25912
25913 2000-08-30  Jim Meyering  <meyering@lucent.com>
25914
25915         * lib/strftime.c: Merge in changes from GNU libc.
25916
25917 2000-08-26  Jim Meyering  <meyering@lucent.com>
25918
25919         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
25920         * m4/fpending.m4: New file.
25921
25922 2000-08-26  Jim Meyering  <meyering@lucent.com>
25923
25924         * lib/closeout.c: Include "__fpending.h".
25925         (close_stdout_status): Return right away if there's nothing to flush.
25926
25927         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
25928         * lib/__fpending.c: New file.
25929         * lib/__fpending.h: New file.
25930
25931 2000-08-20  Jim Meyering  <meyering@lucent.com>
25932
25933         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
25934         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
25935         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
25936
25937 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
25938
25939         Improve fileutils installation on systems where running
25940         programs (like install) can't be unlinked.
25941         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
25942         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
25943
25944 2000-08-07  Paul Eggert  <eggert@twinsun.com>
25945
25946         Standardize on "memory exhausted" instead of "Memory exhausted"
25947         or "virtual memory exhausted".
25948         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
25949         "virtual memory exhausted".
25950         * lib/same.c (same_name): Invoke xalloc_die instead of printing
25951         our own message.
25952         * lib/userspec.c (parse_user_spec): Likewise.
25953         * lib/bumpalloc.h: comment fix
25954         * lib/same.c, userspec.c: Include xalloc.h.
25955
25956         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
25957         not char *const and pointing to a constant array.
25958         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
25959         (xrealloc): Comment fix.
25960
25961         * lib/userspec.c (parse_user_spec):
25962         Don't translate a message until just before returning,
25963         to avoid unnecessary translation.
25964
25965 2000-08-07  Jim Meyering  <meyering@lucent.com>
25966
25967         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
25968         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
25969         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
25970         getgroups.c, gethostname.c, getopt.h, group-member.c,
25971         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
25972         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
25973         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
25974         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
25975         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
25976         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
25977         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
25978         yesno.c: Back out Copyright date changes for each file with no change
25979         this year.  This eases coordination with other programs using the same
25980         source code modules.  From Paul Eggert.
25981
25982 2000-08-06  Paul Eggert  <eggert@twinsun.com>
25983
25984         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
25985         not char, for compatibility with glibc 2.1.3 strftime.c.
25986
25987 2000-08-03  Greg McGary  <greg@mcgary.org>
25988
25989         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
25990         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
25991         (EXTEND_BUFFER): Use them.
25992
25993 2000-08-01  Jim Meyering  <meyering@lucent.com>
25994
25995         * lib/dirname.c (ISSLASH): Define.
25996         (BACKSLASH_IS_PATH_SEPARATOR): Define.
25997         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
25998         both `\' and `/' may be use as path separators.
25999         Based on a patch from Prashant TR.
26000
26001 2000-07-31  Paul Eggert  <eggert@twinsun.com>
26002
26003         * lib/quotearg.c (quotearg_n_options): Don't make the initial
26004         slot vector a constant, since it might get modified.
26005
26006 2000-07-31  Jim Meyering  <meyering@lucent.com>
26007
26008         * lib/xmalloc.c: Use `virtual memory exhausted', not
26009         `Memory exhausted'.
26010         * lib/obstack.c (print_and_abort): Likewise.
26011
26012 2000-07-30  Paul Eggert  <eggert@twinsun.com>
26013
26014         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
26015         buffer, so that the caller can always quote one small
26016         component of a "memory exhausted" message in slot 0.
26017         From a suggestion by Jim Meyering.
26018
26019 2000-07-30  Jim Meyering  <meyering@lucent.com>
26020
26021         * lib/makepath.c (make_path): Quote the other instance, too.
26022
26023         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
26024         (STATIC_BUF_SIZE): Define.
26025         (quotearg_n_options): Use only statically allocated storage when
26026         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
26027         than STATIC_BUF_SIZE.
26028
26029 2000-07-29  Jim Meyering  <meyering@lucent.com>
26030
26031         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
26032         * lib/dirname.c (dir_name): Likewise.
26033
26034         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
26035         `/'.
26036
26037         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
26038         (dir_name): Assert that there are no trailing slashes.
26039
26040 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
26041
26042         * lib/mbswidth.h (mbswidth): Add a flags argument.
26043         (mbswidth): New declaration.
26044         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
26045         * lib/mbswidth.c (mbswidth): Add a flags argument.
26046         (mbsnwidth): New function.
26047
26048 2000-07-24  Jim Meyering  <meyering@lucent.com>
26049
26050         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
26051
26052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
26053
26054         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
26055
26056 2000-07-23  Paul Eggert  <eggert@twinsun.com>
26057
26058         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
26059         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
26060         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
26061         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
26062         invoke multibyte primitives.
26063
26064 2000-07-23  Paul Eggert  <eggert@twinsun.com>
26065
26066         * lib/quotearg.c:
26067         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
26068         so that mbstate_t is always defined.
26069
26070         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
26071         be 1 in at least one GCC installation, and this configuration
26072         error is likely to be common.  Ignoring MB_LEN_MAX hurts
26073         performance on hosts that have mbrtowc but have only unibyte
26074         locales, but I assume these hosts are rare.
26075
26076 2000-07-23  Paul Eggert  <eggert@twinsun.com>
26077
26078         * lib/mbswidth.c (_XOPEN_SOURCE):
26079         Don't define; this causes problems on Solaris 7.
26080         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
26081
26082 2000-07-23  Jim Meyering  <meyering@lucent.com>
26083
26084         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
26085         too: getgrgid, getpwuid, getuid.
26086
26087 2000-07-23  Jim Meyering  <meyering@lucent.com>
26088
26089         * lib/basename.c (base_name): Add an assertion.
26090
26091 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
26092
26093         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
26094         shadow its mbsinit function.
26095
26096 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
26097
26098         * lib/mbswidth.h: New file.
26099         * lib/mbswidth.c: New file.
26100         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
26101         (noinst_HEADERS): Add mbswidth.h.
26102
26103 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
26104
26105         * lib/config.charset: Add support for FreeBSD. Improve support for
26106         HP-UX and IRIX 6.
26107
26108 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
26109
26110         * m4/mbswidth.m4: New file.
26111         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
26112
26113 2000-07-15  Jim Meyering  <meyering@lucent.com>
26114
26115         * lib/makepath.c: Include quote.h.
26116         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
26117         corresponding argument in a `quote (...)' call.
26118         Give better diagnostics.
26119
26120         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
26121         (noinst_HEADERS): Add quote.h.
26122
26123         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
26124         from tar's src/misc.c.
26125         * lib/quote.h: New file.  Prototypes for same.
26126
26127 2000-07-14  Paul Eggert  <eggert@twinsun.com>
26128
26129         From a suggestion by Bruno Haible.
26130         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
26131         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
26132         to decide whether to define the BeOS workaround macro;
26133         this adjusts to the change to AC_MBSTATE_T.
26134
26135 2000-07-14  Jim Meyering  <meyering@lucent.com>
26136
26137         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
26138         jm_AC_TYPE_UINTMAX_T.
26139
26140 2000-07-13  Paul Eggert  <eggert@twinsun.com>
26141
26142         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
26143
26144         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
26145         quotearg_buffer_restyled): Add support for
26146         clocale_quoting_style.  Undo previous change to
26147         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
26148         and "{RIGHT QUOTATION MARK}" msgids.
26149
26150 2000-07-10  Paul Eggert  <eggert@twinsun.com>
26151
26152         From a suggestion by Bruno Haible.
26153         * m4/mbstate_t.m4 (AC_MBSTATE_T):
26154         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
26155         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
26156         and mbstate_t, to a single-part test that simply defines mbstate_t.
26157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
26158         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
26159
26160 2000-07-10  Jim Meyering  <meyering@lucent.com>
26161
26162         * m4/strerror_r.m4: Mirror the correction made in autoconf.
26163
26164         * m4/gnu-source.m4: Output to confdefs.h directly.
26165         Suggestion from Akim Demaille.
26166
26167 2000-07-09  Paul Eggert  <eggert@twinsun.com>
26168
26169         The old behavior of quoting `like this' doesn't look good with
26170         newer, ISO-style fonts.  See:
26171         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
26172
26173         Instead, quote "like this" by default.  Let the translator
26174         tailor the locale-specific quoting behavior by providing
26175         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
26176
26177         * lib/quotearg.c (N_): New macro.
26178         (gettext_default): New function.
26179         (quotearg_buffer_restyled): Use
26180         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
26181         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
26182
26183 2000-07-09  Jim Meyering  <meyering@lucent.com>
26184
26185         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
26186         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
26187
26188         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
26189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
26190
26191 2000-07-09  Jim Meyering  <meyering@lucent.com>
26192
26193         * lib/Most files: Update copyright dates to include 2000.
26194
26195 2000-07-08  Jim Meyering  <meyering@lucent.com>
26196
26197         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
26198         if not defined.
26199         (xgethostname): Remove now-unnecessary #ifdef.
26200         Move declaration of `err' into loop where it's used.
26201
26202 2000-07-05  Paul Eggert  <eggert@twinsun.com>
26203         and Bruno Haible  <haible@clisp.cons.org>
26204
26205         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
26206         only if the test for an object-type mbstate_t fails.  This
26207         prevents us from mistakenly reporting that mbstate_t is a
26208         system object type after we "#define mbstate_t int" to work
26209         around its lack.
26210
26211 2000-07-05  Paul Eggert  <eggert@twinsun.com>
26212         and Bruno Haible  <haible@clisp.cons.org>
26213
26214         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
26215
26216 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
26217
26218         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
26219         to strerror_r.
26220         Include <ctype.h> for use of isalpha.
26221
26222 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
26223
26224         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
26225         by allocating a larger buffer. Test the gethostname return value for
26226         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
26227         returns an error and ENAMETOOLONG isn't defined.
26228
26229 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
26230
26231         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
26232         dimension.
26233
26234 2000-07-04  Jim Meyering  <meyering@lucent.com>
26235
26236         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
26237         of the deprecated AC_CHECKING.
26238
26239 2000-07-04  Jim Meyering  <meyering@lucent.com>
26240
26241         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
26242         Reported by Bruno Haible.
26243
26244 2000-07-04  Jim Meyering  <meyering@lucent.com>
26245
26246         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
26247         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
26248         lacks mbrtowc.
26249
26250 2000-07-03  Paul Eggert  <eggert@twinsun.com>
26251
26252         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
26253         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
26254
26255 2000-07-03  Paul Eggert  <eggert@twinsun.com>
26256         and Bruno Haible  <haible@clisp.cons.org>
26257
26258         * lib/quotearg.c (mbrtowc):
26259         Assign to *pwc, and return 1 only if result is nonzero.
26260         (iswprint): Use ISPRINT when substituting our own mbrtowc.
26261
26262 2000-07-03  Jim Meyering  <meyering@lucent.com>
26263
26264         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
26265
26266 2000-07-03  Jim Meyering  <meyering@lucent.com>
26267
26268         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
26269         This is necessary to get a definition of e.g., UTMP_FILE on
26270         HP-UX 10.20.
26271         From Bob Proulx.
26272
26273 2000-07-02  Jim Meyering  <meyering@lucent.com>
26274
26275         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
26276
26277         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
26278         AC_LIBOBJ(function_name).
26279         * m4/chown.m4: Likewise.
26280         * m4/fnmatch.m4: Likewise.
26281         * m4/ftruncate.m4: Likewise.
26282         * m4/getgroups.m4: Likewise.
26283         * m4/getline.m4: Likewise.
26284         * m4/group-member.m4: Likewise.
26285         * m4/jm-macros.m4: Likewise.
26286         * m4/lstat.m4: Likewise.
26287         * m4/malloc.m4: Likewise.
26288         * m4/memcmp.m4: Likewise.
26289         * m4/nanosleep.m4: Likewise.
26290         * m4/putenv.m4: Likewise.
26291         * m4/realloc.m4: Likewise.
26292         * m4/regex.m4: Likewise.
26293         * m4/stat.m4: Likewise.
26294         * m4/strftime.m4: Likewise.
26295
26296 2000-07-02  Jim Meyering  <meyering@lucent.com>
26297
26298         * lib/quotearg.c (mbstate_t): Don't define here.
26299
26300 2000-07-02  Jim Meyering  <meyering@lucent.com>
26301
26302         * lib/nanosleep.c (SIGCONT): Define if not already defined.
26303
26304 2000-07-01  Jim Meyering  <meyering@lucent.com>
26305
26306         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
26307
26308 2000-07-01  Jim Meyering  <meyering@lucent.com>
26309
26310         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
26311         problem.
26312
26313 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
26314
26315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
26316         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
26317
26318 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
26319
26320         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
26321         per change in ../m4/ls-mntd-fs.m4.
26322         (read_filesystem_list): Ignore symbolic links.
26323
26324 2000-06-29  Jim Meyering  <meyering@lucent.com>
26325
26326         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
26327         for declaration of strcmp.
26328
26329         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
26330
26331         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
26332         Avoid warning by casting result to `char *' to remove `const'.
26333
26334 2000-06-28  Jim Meyering  <meyering@lucent.com>
26335
26336         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
26337         included by quotearg.c, for which we perform this test.  From
26338         Bruno Haible.
26339
26340 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
26341
26342         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
26343         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
26344         <utmpx.h> exists, put readutmp.o into LIBOBJS.
26345
26346 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
26347
26348         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
26349
26350 2000-06-26  Paul Eggert  <eggert@twinsun.com>
26351
26352         savedir now sets errno on failure and invokes xmalloc to get memory.
26353         Fix a couple of other minor bugs while we're at it.
26354
26355         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
26356         (NAMLEN): Remove macro.
26357         (malloc, realloc): Remove decls.
26358         (stpcpy): Likewise.
26359         ("xalloc.h"): Include.
26360         (NAME_SIZE_DEFAULT): New macro.
26361         (savedir): Use xmalloc / xrealloc to allocate memory.
26362         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
26363         Skip "" directory entries.
26364         Use strlen to calculate directory entry length, since the old method
26365         is rarely used these days and isn't worth supporting.
26366         Don't use a pointer after freeing it.
26367         Check for integer overflow when calculating allocation size.
26368         Use memcpy to copy entries, instead of stpcpy.
26369         Set errno properly when returning NULL.
26370         Check for readdir error.
26371
26372 2000-06-26  Jim Meyering  <meyering@lucent.com>
26373
26374         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
26375
26376 2000-06-25  Jim Meyering  <meyering@lucent.com>
26377
26378         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
26379         Linux header bug when _XOPEN_SOURCE is defined to 500.
26380
26381 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
26382
26383         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
26384         deficiency.
26385
26386 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
26387
26388         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
26389         Include xalloc.h.
26390         Don't include <stdlib.h>.  Don't declare malloc, realloc.
26391
26392 2000-06-24  Jim Meyering  <meyering@lucent.com>
26393
26394         * m4/strerror_r.m4: Revive this file -- to try out an experimental
26395         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
26396         for which strerror does return char*, but which lacks a conveniently
26397         accessible declaration of the function.  If the compile-test says
26398         strerror_r doesn't work, then resort to a `run'-test that works on
26399         BeOS and segfaults on DEC Unix.
26400
26401 2000-06-24  Jim Meyering  <meyering@lucent.com>
26402
26403         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
26404
26405 2000-06-23  Paul Eggert  <eggert@twinsun.com>
26406
26407         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
26408         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
26409
26410 2000-06-23  Paul Eggert  <eggert@twinsun.com>
26411
26412         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
26413         (mbrtowc, mbstate_t): Define substitutes if
26414         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
26415         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
26416         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
26417
26418 2000-06-23  Jim Meyering  <meyering@lucent.com>
26419
26420         * m4/afs.m4: Add missing AC_MSG_RESULT.
26421         Reported by Bruno Haible.
26422
26423         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
26424         Suggestion from Bruno Haible.
26425
26426 2000-06-23  Jim Meyering  <meyering@lucent.com>
26427
26428         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
26429
26430 2000-06-21  Jim Meyering  <meyering@lucent.com>
26431
26432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
26433
26434 2000-06-21  Jim Meyering  <meyering@lucent.com>
26435
26436         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
26437         (noinst_HEADERS): Add getstr.h.
26438
26439         * lib/getline.c (getstr): Move into a separate file.
26440         * lib/getstr.c (getstr): New file, extracted from getline.c, with
26441         the following changes: new parameter, delim2; both delim[12]
26442         parameters have type `int', not `char'.  The latter would lose
26443         with 8-bit delimiters.
26444         * lib/getstr.h: New file.
26445
26446 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
26447
26448         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
26449         than 1024, return a memory chunk of least possible size, instead
26450         of size PATH_MAX + 2. In the loop, increment the size proportionally.
26451         Use free/xmalloc instead of xrealloc to avoid copying for very long
26452         paths.
26453
26454 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
26455
26456         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
26457         the empty string.
26458
26459 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
26460
26461         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
26462         address, not strdup.  Include <stdlib.h> and don't declare free().
26463
26464 2000-06-19  Jim Meyering  <meyering@lucent.com>
26465
26466         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
26467
26468 2000-06-18  Jim Meyering  <meyering@lucent.com>
26469
26470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
26471
26472         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
26473         `checking whether...' message to be consistent with that of the
26474         lstat test.
26475
26476 2000-06-18  Jim Meyering  <meyering@lucent.com>
26477
26478         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
26479         Besides, these days every porting target provides a mkdir function.
26480
26481         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
26482         needed. (this snippet comes from src/system.h).
26483
26484 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
26485
26486         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
26487
26488 2000-06-15  Paul Eggert  <eggert@twinsun.com>
26489
26490         * lib/human.c (adjust_value): New function.
26491         (human_readable_inexact): Apply rounding style even when
26492         printing approximate values.
26493
26494 2000-06-14  Paul Eggert  <eggert@twinsun.com>
26495
26496         * lib/human.c (human_readable_inexact): Allow an input block
26497         size that is not a multiple of the output block size, and vice versa.
26498         Reported by Piergiorgio Sartor.
26499
26500 2000-06-14  Paul Eggert  <eggert@twinsun.com>
26501
26502         * lib/getdate.y (get_date): Apply relative times after time
26503         zone indicator, not before.  Reported by Todd A. Jacobs.
26504
26505 2000-06-13  Jim Meyering  <meyering@lucent.com>
26506
26507         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
26508
26509         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
26510
26511 2000-06-12  Paul Eggert  <eggert@twinsun.com>
26512
26513         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
26514
26515 2000-06-12  Jim Meyering  <meyering@lucent.com>
26516
26517         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
26518         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
26519         optional argument.
26520         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
26521         the optional argument, `lib'.
26522
26523 2000-06-08  Jim Meyering  <meyering@lucent.com>
26524
26525         * m4/largefile.m4: Remove file (now that it's part of autoconf).
26526
26527 2000-06-04  Paul Eggert  <eggert@twinsun.com>
26528
26529         Rewrite largefile configuration so that we don't need to run
26530         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
26531         AC_CANONICAL_HOST in configure.in -- jmm]
26532
26533         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
26534         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
26535         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
26536         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
26537         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
26538         All uses changed.
26539         Instead of inspecting the output of getconf, try to compile the
26540         test program without and with the macro definition.
26541         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
26542         for getconf.  Instead, check for the needed flags by compiling
26543         test programs.
26544
26545 2000-06-04  Paul Eggert  <eggert@twinsun.com>
26546
26547         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
26548
26549 2000-06-04  Jim Meyering  <meyering@lucent.com>
26550
26551         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
26552         SunOS 4.1.4 for which gid_t is an unsigned type.
26553
26554 2000-06-03  Jim Meyering  <meyering@lucent.com>
26555
26556         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
26557         now that autoconf requires that.
26558
26559         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
26560         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
26561         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
26562
26563 2000-06-03  Jim Meyering  <meyering@lucent.com>
26564
26565         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
26566
26567 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
26568
26569         * m4/glibc21.m4: New file.
26570         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
26571
26572 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
26573
26574         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
26575         newer, don't install charset.alias.
26576         * lib/config.charset: Change the Linux/glibc rules so they become empty
26577         on glibc-2.1 or newer.
26578
26579 2000-06-02  Jim Meyering  <meyering@lucent.com>
26580
26581         * lib/mountlist.c: Back out last change.  Instead, do this...
26582         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
26583         me_dummy member using the same `ignore'-testing code.
26584         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
26585         fs_type strings.
26586         From Mark D. Roth.
26587
26588 2000-05-29  Jim Meyering  <meyering@lucent.com>
26589
26590         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
26591         mounts with the `ignore' attribute.  Based on a patch from
26592         Mark D. Roth.
26593
26594 2000-05-28  Jim Meyering  <meyering@lucent.com>
26595
26596         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
26597         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26598         * m4/stat.m4: Likewise.
26599         * m4/lstat.m4: Likewise.
26600         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
26601
26602         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
26603         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
26604
26605 2000-05-26  Jim Meyering  <meyering@lucent.com>
26606
26607         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
26608
26609 2000-05-24  Jim Meyering  <meyering@lucent.com>
26610
26611         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
26612         autoconf requires that.
26613         * m4/lib-check.m4: Likewise.
26614         * m4/jm-macros.m4: Likewise.
26615         * m4/strftime.m4: Likewise.
26616
26617         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
26618         AC_CHECK_DECLS, now that autoconf requires that.
26619
26620 2000-05-22  Jim Meyering  <meyering@lucent.com>
26621
26622         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26623         * m4/lstat.m4: Likewise.
26624
26625 2000-05-22  Jim Meyering  <meyering@lucent.com>
26626
26627         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
26628
26629 2000-05-20  Jim Meyering  <meyering@lucent.com>
26630
26631         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
26632         (jm_PREREQ): Use it.
26633
26634 2000-05-18  Jim Meyering  <meyering@lucent.com>
26635
26636         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
26637         back, too, since it may have been modified by allocate_entry.
26638         (hash_delete): Rewrite to use neither the assignment operator
26639         nor the comma operator in an if-expression.
26640
26641 2000-05-15  Paul Eggert  <eggert@twinsun.com>
26642
26643         * lib/closeout.c:
26644         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
26645         Remove; no longer needed.
26646         "quotearg.h": Add include.
26647         (file_name): Do not bother to explicitly initialize to NULL; it's less
26648         efficient on some hosts.
26649         (close_stdout_status): Remove test as to whether stdout was already
26650         closed; it breaks for the case "echo x | sort >&-".
26651         Quote file name colons.
26652         Do not assume that _("write error") lacks format strings.
26653
26654 2000-05-15  Jim Meyering  <meyering@lucent.com>
26655
26656         * lib/version-etc.c (version_etc_copyright): Update the copyright
26657         string used in all --version output.
26658
26659 2000-05-14  Jim Meyering  <meyering@lucent.com>
26660
26661         * lib/closeout.c (close_stdout_set_file_name): New function.
26662         (close_stdout_status): Use new file-scoped global.
26663         Return right away if fstat says the stdout file descriptor is invalid.
26664         * lib/closeout.h (close_stdout_set_file_name): Declare.
26665
26666 2000-05-10  Jim Meyering  <meyering@lucent.com>
26667
26668         * lib/closeout.c [default_exit_status]: New file-scoped variable.
26669         (close_stdout_set_status): New function.
26670         * lib/closeout.h (close_stdout_set_status): Declare.
26671
26672 2000-05-09  Jim Meyering  <meyering@lucent.com>
26673
26674         * m4/gettext.m4: Rename this...
26675         * m4/libintl.m4: ...to this.
26676
26677 2000-05-08  Jim Meyering  <meyering@lucent.com>
26678
26679         * lib/long-options.c: Don't include closeout.h.
26680         (parse_long_options): Don't call close_stdout for --version.
26681
26682 2000-05-06  Paul Eggert  <eggert@twinsun.com>
26683
26684         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
26685         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
26686         2.1.3 bug.  This avoids a clash when files like regex.c define
26687         _GNU_SOURCE.
26688
26689 2000-05-06  Jim Meyering  <meyering@lucent.com>
26690
26691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
26692         (AC_REPLACE_FUNCS): Add strnlen.
26693
26694         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
26695         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
26696
26697         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
26698         AC_SEARCH_LIBS call for nanosleep.
26699         (LIB_NANOSLEEP): Set and AC_SUBST.
26700
26701 2000-05-06  Jim Meyering  <meyering@lucent.com>
26702
26703         * lib/strnlen.c: Undefine __strnlen and strnlen.
26704         [!weak_alias]: Define __strnlen to strnlen.
26705
26706         * lib/atexit.c: New file, from libiberty.
26707
26708 2000-05-06  Jim Meyering  <meyering@lucent.com>
26709
26710         * lib/closeout.c (close_stdout_status): Also check for errors on the
26711         stderr stream.
26712
26713 2000-05-05  Jim Meyering  <meyering@lucent.com>
26714
26715         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
26716         AC_SEARCH_LIBS call for clock_gettime.
26717         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
26718
26719         * m4/search-libs.m4: Update from autoconf.
26720
26721         su doesn't work on Solaris 2.6.
26722         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
26723         <shadow.h>.  Reported by Dragos Harabor.
26724
26725 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
26726
26727         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
26728         memcpy instead of xmalloc, xrealloc, path_concat.
26729         (locale_charset): Treat empty environment variables as absent.
26730         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
26731
26732 2000-05-04  Jim Meyering  <meyering@lucent.com>
26733
26734         * lib/getopt.c: Update from glibc.
26735         * lib/obstack.c: Likewise.
26736         * lib/obstack.h: Likewise.
26737         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
26738         file
26739
26740         * lib/regex.h: Likewise.
26741         * lib/strndup.c: Likewise.
26742         * lib/strnlen.c: New file, from glibc.
26743
26744 2000-05-03  Jim Meyering  <meyering@lucent.com>
26745
26746         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
26747
26748 2000-05-02  Paul Eggert  <eggert@twinsun.com>
26749
26750         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
26751         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
26752         compile-time test, rather than inspecting host and OS, to
26753         decide whether to define _LARGEFILE_SOURCE.
26754
26755 2000-05-01  Jim Meyering  <meyering@lucent.com>
26756
26757         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
26758
26759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
26760         Based on a patch from Bruno Haible.
26761
26762 2000-05-01  Jim Meyering  <meyering@lucent.com>
26763
26764         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
26765
26766 2000-04-29  Jim Meyering  <meyering@lucent.com>
26767
26768         * lib/path-concat.c: Declare strdup only if it's not defined.
26769         * lib/canon-host.c: Likewise.
26770
26771 2000-04-28  Jim Meyering  <meyering@lucent.com>
26772
26773         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
26774         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
26775         is included first, then limits.h is included by locale.h by libintl.h.
26776         From John David Anglin.
26777
26778 2000-04-25  Jim Meyering  <meyering@lucent.com>
26779
26780         * lib/makepath.c (S_IRWXUGO): Define.
26781         (make_path): Always perform explicit chmod if MODE specifies any
26782         of the `special' permission bits.  Prompted by a bug report against
26783         install from Mate Wierdl and Joost van Baal.
26784
26785 2000-04-18  Jim Meyering  <meyering@lucent.com>
26786
26787         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
26788         (jm_PREREQ): Use it.
26789
26790 2000-04-18  Jim Meyering  <meyering@lucent.com>
26791
26792         * lib/README: New file.
26793
26794         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
26795         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
26796
26797 2000-04-17  Jim Meyering  <meyering@lucent.com>
26798
26799         Get it right :-)
26800         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
26801         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
26802         Suggestion from Akim Demaille.
26803
26804 2000-04-17  Jim Meyering  <meyering@lucent.com>
26805
26806         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
26807         the definition of it to rpl_strftime also defined-away the system's
26808         declaration.
26809
26810 2000-04-15  Jim Meyering  <meyering@lucent.com>
26811
26812         Use `C' to denote so-called `contiguous' files, the same way
26813         that tar does.
26814         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
26815         (ftypelet): Use S_ISCTG.
26816         From Michael Deutschmann.
26817
26818 2000-04-14  Jim Meyering  <meyering@lucent.com>
26819
26820         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
26821         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
26822         clobbered.
26823
26824 2000-04-14  Jim Meyering  <meyering@lucent.com>
26825
26826         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
26827
26828 2000-04-13  Jim Meyering  <meyering@lucent.com>
26829
26830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
26831         AH_VERBATIM to insert required #ifndef into config.h.in.
26832         Suggestion from Akim Demaille.
26833
26834 2000-04-12  Jim Meyering  <meyering@lucent.com>
26835
26836         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
26837         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
26838         Christian Krackowizer.
26839
26840         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
26841         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
26842         (AC_SYS_LARGEFILE): Require.
26843         (AM_C_PROTOTYPES): Require.
26844
26845 2000-04-08  Jim Meyering  <meyering@lucent.com>
26846
26847         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
26848         names don't conflict.  Reported by Eli Zaretskii.
26849
26850 2000-04-07  Jim Meyering  <meyering@lucent.com>
26851
26852         * lib/putenv.c: Move inclusion of errno.h so it follows that of
26853         sys/types.h, to work around system header problems on AIX 3.2.5.
26854         From Bruno Haible.
26855
26856 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
26857
26858         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
26859         bug.  Deal with the different error behavior of Irix iconv.
26860
26861 2000-04-05  Paul Eggert  <eggert@twinsun.com>
26862
26863         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
26864         IRIX if the installer said otherwise.
26865
26866 2000-04-05  Jim Meyering  <meyering@lucent.com>
26867
26868         Portability tweaks required for ultrix4.3.
26869         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
26870         (jm_CHECK_DECLS): Add getutent to the list of functions.
26871         (_jm_DECL_HEADERS): Add utmpx.h.
26872         From John David Anglin.
26873
26874         * m4/strftime.m4: Back out the 2000-04-02 change.
26875         Instead of that change, simply undefine putenv in the test program.
26876
26877 2000-04-05  Jim Meyering  <meyering@lucent.com>
26878
26879         Portability tweaks required for ultrix4.3.
26880         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
26881         getutent.
26882         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
26883         * lib/canon-host.c: Declare strdup.
26884         * lib/path-concat.c: Likewise.
26885         From John David Anglin.
26886
26887 2000-04-04  Jim Meyering  <meyering@lucent.com>
26888
26889         Be more DOS 8.3-friendly.
26890         * lib/ref-add.sin: Renamed from ref-add.sed.in.
26891         * lib/ref-del.sin: Renamed from ref-del.sed.in.
26892         * lib/Makefile.am: Reflect renaming.
26893         Reported by Eli Zaretskii.
26894
26895         Use a temporary file name that won't clash with `charset.alias'
26896         in the DOS 8.3 name space.
26897         * lib/Makefile.am (charset_tmp): Define.
26898         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
26899         (uninstall-local): Likewise.
26900         Reported by Eli Zaretskii.
26901
26902 2000-04-03  Jim Meyering  <meyering@lucent.com>
26903
26904         * m4/gettext.m4: Fix typo in comment.
26905
26906         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
26907         textutils/configure.in).  Suggestion from Paul Eggert.
26908         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
26909
26910 2000-04-02  Paul Eggert  <eggert@twinsun.com>
26911
26912         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
26913         variable in the shell rather than using putenv, which isn't
26914         portable.  This avoids the configure-time inter-test dependency
26915         on the potentially-renamed putenv function.
26916
26917 2000-03-30  Paul Eggert  <eggert@twinsun.com>
26918
26919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
26920         before checking struct stat.st_blksize, so that
26921         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
26922
26923 2000-03-29  Paul Eggert  <eggert@twinsun.com>
26924
26925         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
26926         since strftime.c uses HAVE_STRFTIME to decide whether to use
26927         the underlying strftime.
26928
26929 2000-03-29  Paul Eggert  <eggert@twinsun.com>
26930
26931         * lib/time/strftime.c (my_strftime): Make sure we call the system
26932         strftime, not ourselves, when invoking the underlying strftime.
26933
26934 2000-03-24  Jim Meyering  <meyering@lucent.com>
26935
26936         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
26937         (charset_alias): Define.
26938         (install-exec-local): Factor out common code.
26939         (uninstall-local): Split lines longer than 80.
26940         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
26941         (SUFFIXES): Define.
26942         (.sed.in.sed): New rule.  Don't redirect directly to $@.
26943         (CLEANFILES): Add ref-add.sed and ref-del.sed.
26944
26945 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
26946
26947         * lib/config.charset: Output a line containing "Packages using this
26948         file".
26949         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
26950         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
26951         ref-del.sed): New rules.
26952
26953 2000-03-17  Jim Meyering  <meyering@lucent.com>
26954
26955         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
26956         Otherwise, include <strings.h>
26957
26958 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
26959
26960         * lib/unicodeio.c (utf8_wctomb): New function.
26961         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
26962         format instead of in UCS-4 with platform dependent endianness.
26963
26964 2000-03-10  Jim Meyering  <meyering@lucent.com>
26965
26966         * m4/lib-check.m4: Look for getspnam in -lgen, too.
26967         From Marco Franzen.
26968
26969 2000-03-07  Paul Eggert  <eggert@twinsun.com>
26970
26971         * lib/savedir.c (savedir): Work even if directory size is
26972         negative; this can happen with some screwy NFS configurations.
26973
26974 2000-03-06  Jim Meyering  <meyering@lucent.com>
26975
26976         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
26977         if it's NULL (because we ran out of memory).  From Bruno Haible.
26978
26979 2000-03-05  Jim Meyering  <meyering@lucent.com>
26980
26981         * lib/localcharset.c ("path-concat.h"): Include.
26982         (get_charset_aliases): Use path_concat instead of ANSI string
26983         concatenation.
26984
26985         * lib/unicodeio.h (PARAMS): Define.
26986         Use it to guard prototype.
26987
26988 2000-03-04  Jim Meyering  <meyering@lucent.com>
26989
26990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
26991         for lib/localcharset.c.
26992
26993 2000-03-04  Jim Meyering  <meyering@lucent.com>
26994
26995         * lib/Makefile.am (install-exec-local): Create $(libdir) before
26996         installing into it.
26997         (uninstall-local): Uncomment this rule so `make distcheck' works
26998         once again.
26999
27000         * lib/unicodeio.c (<errno.h>): Include it.
27001         (errno): Declare if not defined.
27002
27003         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
27004
27005         * lib/config.charset: New version, incorporating remarks from a linux
27006         i18n mailing list.  From Bruno Haible.
27007
27008 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
27009
27010         * m4/codeset.m4: New file.
27011         * m4/iconv.m4: New file.
27012         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
27013
27014 2000-03-03  Jim Meyering  <meyering@lucent.com>
27015
27016         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
27017
27018 2000-03-02  Jim Meyering  <meyering@lucent.com>
27019
27020         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
27021         the messages come out on separate lines.
27022
27023         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
27024         rather than jm_CHECK_DECLARATIONS.
27025         * m4/decl.m4: Remove now-unused file.
27026
27027         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
27028         geteuid.
27029
27030 2000-03-02  Jim Meyering  <meyering@lucent.com>
27031
27032         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
27033
27034 2000-03-01  Jim Meyering  <meyering@lucent.com>
27035
27036         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
27037         * lib/unicodeio.c: Likewise.
27038
27039 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
27040
27041         * lib/config.charset: New file.
27042         * lib/localcharset.c: New file.
27043         * lib/unicodeio.h, lib/unicodeio.c: New files.
27044         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
27045         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
27046         (noinst_HEADERS): Add unicodeio.h.
27047         (all-local, install-exec-local, charset.alias): New targets.
27048
27049 2000-02-28  Paul Eggert  <eggert@twinsun.com>
27050
27051         * lib/quotearg.c (ALERT_CHAR): New macro.
27052         (quotearg_buffer_restyled): Use it.
27053
27054 2000-02-27  Jim Meyering  <meyering@lucent.com>
27055
27056         * m4/check-decl.m4: Add getenv to the list.
27057
27058 2000-02-27  Jim Meyering  <meyering@lucent.com>
27059
27060         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
27061         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
27062
27063         * lib/backupfile.c: Guard inclusion of stdlib.h with
27064         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
27065         Declare malloc if needed.
27066
27067         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
27068         `#ifndef HAVE_DECL..'
27069         now that autoconf always defines the HAVE_DECL_ symbols.
27070         * lib/human.c: Likewise.
27071         * lib/same.c: Likewise.
27072         * lib/strtoumax.c: Likewise.
27073
27074         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
27075         declaration check was not run.
27076         * lib/hash.c: Likewise.
27077         * lib/human.c: Likewise.
27078         * lib/same.c: Likewise.
27079         * lib/strtoumax.c: Likewise.
27080
27081         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
27082         `.', then first look up the entire `.'-containing string as a login
27083         name.
27084
27085 2000-02-23  Jim Meyering  <meyering@lucent.com>
27086
27087         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
27088         in place of my hack.
27089
27090 2000-02-18  Paul Eggert  <eggert@twinsun.com>
27091
27092         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
27093         (textint): New typedef.
27094         (parser_control): Member year changed from int to textint.
27095         All uses changed.
27096         (YYSTYPE): Removed; replaced by %union with int and textint members.
27097         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
27098         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
27099         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
27100         (tSNUMBER, tUNUMBER): Now of type <textintval>.
27101         (date, number, to_year): Use width of number in digits, not its value,
27102         to determine whether it's a 2-digit year, or a 2-digit time.
27103         (yylex): Store number of digits of numeric tokens.
27104         Reported by John Kendall.
27105
27106         (parser_control): Changed from struct parser_control to typedef (for
27107         consistency).  All uses changed.
27108
27109         (tID): Removed; not used.
27110         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
27111
27112 2000-02-14  Paul Eggert  <eggert@twinsun.com>
27113
27114         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
27115         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
27116
27117 2000-02-12  Jim Meyering  <meyering@lucent.com>
27118
27119         * lib/userspec.c (ISDIGIT): Define it.
27120         (isdigit): Remove definition.
27121         (is_number): Use ISDIGIT, not isdigit.
27122         <libintl.h>: Include.
27123         (_ and N_): Define.
27124         (parse_user_spec): Mark translatable strings.
27125
27126 2000-02-10  Jim Meyering  <meyering@lucent.com>
27127
27128         With these changes, nanosleep.[ch] are finally enough like the other
27129         lib/* replacement files to compile on a few more losing systems.
27130
27131         * lib/nanosleep.h: Don't include config.h.
27132         Remove prototype from declaration of nanosleep.
27133         (PARAMS): Remove now-unneeded definition.
27134         * lib/nanosleep.c: #undef nanosleep.
27135         (rpl_nanosleep): Rename from nanosleep.
27136
27137 2000-02-10  Jim Meyering  <meyering@lucent.com>
27138
27139         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
27140         gnu_nanosleep to rpl_nanosleep.
27141
27142 2000-02-09  Jim Meyering  <meyering@lucent.com>
27143
27144         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
27145         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
27146
27147 2000-02-08  Akim Demaille  <akim@epita.fr>
27148
27149         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
27150         `[' and `]' and remove uses of `changequote'.
27151         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
27152         (AC_SYS_LARGEFILE): Likewise.
27153         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27154         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
27155         of changequote.
27156         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
27157         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
27158         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
27159         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
27160
27161 2000-02-05  Jim Meyering  <meyering@lucent.com>
27162
27163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
27164         Remove explicit use of AC_HEADER_TIME.  It is required by
27165         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
27166         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
27167         in autoconf whereby the expansion of the latter ended up preceding
27168         the expansion of its prerequisite, AC_HEADER_TIME.
27169         Reported by Volker Borchert.
27170
27171 2000-02-03  Jim Meyering  <meyering@lucent.com>
27172
27173         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
27174
27175 2000-02-03  Jim Meyering  <meyering@lucent.com>
27176
27177         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
27178         rather than with `#if HAVE_UTMPNAME'.
27179
27180 2000-02-02  Jim Meyering  <meyering@lucent.com>
27181
27182         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
27183         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
27184         Reported by Eli Zaretskii.
27185
27186 2000-02-01  Jim Meyering  <meyering@lucent.com>
27187
27188         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
27189
27190 2000-01-31  Jim Meyering  <meyering@lucent.com>
27191
27192         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
27193         functions.  Add the time.h and sys/time.h headers along with the
27194         AC_REQUIRE'ment of AC_HEADER_TIME.
27195
27196 2000-01-31  Jim Meyering  <meyering@lucent.com>
27197
27198         * lib/nanosleep.h (nanosleep): Guard declaration with
27199         `#if ! HAVE_DECL_NANOSLEEP'.
27200         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
27201         the declaration in that vendor's sys/timers.h.
27202         Reported by Christian Krackowizer.
27203
27204         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
27205         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
27206         (ISPRINT): Likewise.
27207         Reported by Tom Tromey.
27208
27209 2000-01-30  Jim Meyering  <meyering@lucent.com>
27210
27211         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
27212
27213         * m4/prereq.m4 (utmp_includes): Define.
27214         Check for ut_user and ut_name members in both struct utmpx
27215         and struct utmp.
27216
27217 2000-01-30  Jim Meyering  <meyering@lucent.com>
27218
27219         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
27220         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
27221         header files where only utmpx.ut_user is declared.
27222
27223         * lib/readutmp.h (UT_USER): Define.
27224
27225 2000-01-29  Jim Meyering  <meyering@lucent.com>
27226
27227         * m4/lib-check.m4: New file containing library-related checks from
27228         fileutils and sh-utils (textutils had none).
27229
27230 2000-01-28  Jim Meyering  <meyering@lucent.com>
27231
27232         * m4/perl.m4: Change format of warning message to look more like that
27233         from the missing script.  Suggestion from François Pinard.
27234
27235 2000-01-25  Jim Meyering  <meyering@lucent.com>
27236
27237         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
27238         well as time.h in the compile check.
27239         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
27240         Fix typo in cross-compiling case: s/yes/no/.
27241
27242 2000-01-23  Jim Meyering  <meyering@lucent.com>
27243
27244         * m4/jm-macros.m4: Move df-related tests here from
27245         fileutils/configure.in
27246
27247         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
27248         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
27249
27250         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
27251         s/space/ac_fsusage_space/.
27252         (jm_FILE_SYSTEM_USAGE): Take two parameters.
27253
27254         * m4/ftruncate.m4: New file (derived from part of
27255         fileutils/configure.in).
27256         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
27257         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
27258
27259         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
27260         AC_SUBST these here, rather than just in sh-util/configure.in, so
27261         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
27262         all the same.
27263         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
27264         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
27265         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
27266         (AC_SUBST(POW_LIBM)): Likewise.
27267         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
27268
27269 2000-01-23  Jim Meyering  <meyering@lucent.com>
27270
27271         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
27272         obstack.c.
27273
27274 2000-01-22  Jim Meyering  <meyering@lucent.com>
27275
27276         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
27277
27278         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
27279
27280         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
27281         configure.in
27282         (AC_CHECK_HEADERS): Likewise for sh-utils.
27283         (AC_CHECK_HEADERS): Likewise for textutils.
27284         Merge the three lists of headers.
27285
27286         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
27287         from fileutils' configure.in.
27288
27289         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
27290         code. Moved tests into their own function (_jm_DECL_HEADERS) in
27291         check-decl.m4.
27292
27293         * m4/check-decl.m4: Use #if rather than #ifdef.
27294         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
27295         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
27296         (_jm_DECL_HEADERS): Define new function.
27297         (jm_CHECK_DECLARATIONS): Require it.
27298
27299 2000-01-22  Jim Meyering  <meyering@lucent.com>
27300
27301         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
27302         [! HAVE_DECL_STRTOULL]: Declare strtoull.
27303         Required for some AIX systems.  Reported by Christian Krackowizer.
27304         [TESTING] (main): New function.
27305
27306         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
27307         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
27308         letters.
27309
27310         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
27311         iswprint.
27312
27313         * lib/strverscmp.c (ISDIGIT): Define.
27314         (strverscmp): Use ISDIGIT, not isdigit.
27315
27316 2000-01-19  Jim Meyering  <meyering@lucent.com>
27317
27318         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
27319         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
27320         defines `struct timespec' in <sys/time.h>
27321
27322         * m4/c-bs-a.m4: Remove uses of changequote altogether.
27323         Thanks to Akim for explaining.
27324
27325 2000-01-17  Paul Eggert  <eggert@twinsun.com>
27326
27327         * lib/nanosleep.c (nanosleep):
27328         Don't use SA_INTERRUPT to decide whether to call sigaction, as
27329         POSIX.1 doesn't require SA_INTERRUPT and some systems
27330         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
27331         it's been part of POSIX.1 since day 1 (in 1988).
27332
27333 2000-01-17  Jim Meyering  <meyering@lucent.com>
27334
27335         * lib/interlock: Remove unused file.  Reported by François Pinard.
27336
27337 2000-01-16  Paul Eggert  <eggert@twinsun.com>
27338
27339         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
27340         alert, backslash, formfeed, and vertical tab unnecessarily in
27341         shell quoting style.
27342
27343 2000-01-16  Jim Meyering  <meyering@lucent.com>
27344
27345         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
27346         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
27347         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
27348         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
27349
27350 2000-01-16  Jim Meyering  <meyering@lucent.com>
27351
27352         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
27353         because the latter didn't work.
27354
27355 2000-01-15  Jim Meyering  <meyering@lucent.com>
27356
27357         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
27358         (AC_REPLACE_FUNCS): Add memcpy and memset.
27359         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
27360         Add strpbrk.
27361         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
27362
27363 2000-01-12  Jim Meyering  <meyering@lucent.com>
27364
27365         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
27366         (jm_PREREQ): Use it.
27367         (jm_PREREQ_READUTMP): New macro.
27368         (jm_PREREQ): Use it.
27369
27370 2000-01-11  Paul Eggert  <eggert@twinsun.com>
27371
27372         Quote multibyte characters correctly.
27373         * m4/c-bs-a.m4: New file.
27374         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
27375         (jm_PREREQ): Use it.
27376
27377 2000-01-11  Paul Eggert  <eggert@twinsun.com>
27378
27379         * m4/uintmax_t.m4: Port to autoconf 2.13.
27380
27381 2000-01-08  Jim Meyering  <meyering@ascend.com>
27382
27383         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
27384         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
27385
27386 2000-01-04  Jim Meyering  <meyering@ascend.com>
27387
27388         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
27389         jm_STRUCT_DIRENT_D_TYPE.
27390         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
27391         jm_STRUCT_DIRENT_D_INO.
27392         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
27393         jm_STRUCT_UTIMBUF.
27394         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
27395         renamings.
27396         * m4/utime.m4: Likewise.
27397
27398         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
27399         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
27400
27401 2000-01-03  Paul Eggert  <eggert@twinsun.com>
27402
27403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
27404         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
27405
27406 2000-01-02  Jim Meyering  <meyering@ascend.com>
27407
27408         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
27409         remember if this is necessary.
27410
27411 1999-12-26  Jim Meyering  <meyering@ascend.com>
27412
27413         * m4/jm-macros.m4: Use it here.
27414         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
27415
27416 1999-12-23  Jim Meyering  <meyering@ascend.com>
27417
27418         * m4/jm-macros.m4: Check for clock_gettime (moved from
27419         fileutils/configure.in)
27420         Check for gettimeofday.
27421
27422 1999-12-20  Jim Meyering  <meyering@ascend.com>
27423
27424         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
27425         autoconf-2.14a-1999-12-20.
27426
27427 1999-12-19  Jim Meyering  <meyering@ascend.com>
27428
27429         * m4/lstat-slash.m4: New file.
27430         * m4/jm-macros.m4: Use the new macro:
27431         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27432
27433 1999-12-07  Jim Meyering  <meyering@ascend.com>
27434
27435         * m4/perl.m4: Require that File::Compare be available, too.
27436         Too many systems seem to lack it.
27437
27438         * m4/strftime.m4: Add checks for most of the cpp macros tested in
27439         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
27440
27441 1999-11-18  Paul Eggert  <eggert@twinsun.com>
27442
27443         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
27444         problem with the QNX 4.25 shell, which doesn't propagate exit
27445         status of failed commands inside shell assignments.
27446
27447 1999-11-17  Jim Meyering  <meyering@ascend.com>
27448
27449         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
27450
27451 1999-11-07  Jim Meyering  <meyering@ascend.com>
27452
27453         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
27454
27455 1999-11-06  Jim Meyering  <meyering@ascend.com>
27456
27457         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
27458         * m4/jm-macros.m4 (jm_MACROS): Use it here.
27459
27460 1999-11-05  Jim Meyering  <meyering@ascend.com>
27461
27462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
27463         configure.in of textutils, fileutils, and sh-utils into this one
27464         (shared between those packages) file.
27465         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
27466         AC_STRUCT_ST_BLKSIZE.
27467
27468 1999-11-03  Jim Meyering  <meyering@ascend.com>
27469
27470         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
27471         of AC_CHECK_TYPE checks includes unistd.h.
27472         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
27473         Suggestion from Akim Demaille.
27474
27475 1999-10-30  Jim Meyering  <meyering@ascend.com>
27476
27477         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
27478         m4-quoted string.
27479         * m4/ls-mntd-fs.m4: Likewise.
27480         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
27481         * m4/jm-winsz1.m4: Likewise.
27482
27483         * m4/const.m4: Remove file, since the fix made it into the experimental
27484         version of autoconf.
27485         * m4/mktime.m4: Likewise.
27486
27487         * m4/check-type.m4: Remove file, now that the latest version of
27488         AC_CHECK_TYPE takes a third arg to specify additional #includes.
27489
27490         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
27491         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
27492         AC_CHECK_TYPE.
27493
27494 1999-10-04  Jim Meyering  <meyering@ascend.com>
27495
27496         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
27497
27498 1999-09-22  Paul Eggert  <eggert@twinsun.com>
27499
27500         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
27501         2.95.1 bug with HP-UX 10.20.
27502
27503 1999-09-17  Jim Meyering  <meyering@ascend.com>
27504
27505         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
27506         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
27507         due to missing strdup (against sh-utils-2.0).
27508
27509 1999-08-29  Jim Meyering  <meyering@ascend.com>
27510
27511         * m4/jm-macros.m4: Require jm_BISON.
27512         * m4/bison.m4: New file.
27513
27514 1999-08-17  Paul Eggert  <eggert@twinsun.com>
27515
27516         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
27517         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
27518
27519 1999-08-05  Jim Meyering  <meyering@ascend.com>
27520
27521         * m4/getline.m4: Rename test file from conftestdata to conftest.data
27522         to avoid conflicts with `conftest' on 8+3 filesystems.
27523         Suggestion from Eli Zaretskii.
27524
27525 1999-08-04  Jim Meyering  <meyering@ascend.com>
27526
27527         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
27528         fileutils and sh-utils (textutils's getline test was inadequate).
27529         (AM_FUNC_GETLINE): Run this test.
27530         (AC_CHECK_FUNCS): Check for getdelim.
27531         Reported by Bob Proulx.
27532
27533 1999-08-02  Jim Meyering  <meyering@ascend.com>
27534
27535         * m4/jm-macros.m4: Add a comment.
27536
27537 1999-08-01  Paul Eggert  <eggert@twinsun.com>
27538
27539         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
27540         <inttypes.h> defines strtoumax as a macro (and not as a
27541         function).
27542
27543 1999-08-01  Paul Eggert  <eggert@twinsun.com>
27544
27545         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
27546         that we can shift, multiply and divide unsigned long long
27547         values; Ultrix cc can't do it.
27548
27549 1999-08-01  Paul Eggert  <eggert@twinsun.com>
27550
27551         * m4/mktime.m4: New file, which is a preview of what should appear
27552         in the next public autoconf release.
27553
27554 1999-08-01  Paul Eggert  <eggert@twinsun.com>
27555
27556         * m4/lfs.m4: Remove this file.
27557         * m4/largefile.m4: New file.  It contains the old contents of
27558         lfs.m4, except that all names with prefix AC_LFS have been
27559         changed to use the prefix AC_SYS_LARGEFILE instead, to be
27560         compatible with future autoconf versions.  Also, some minor m4
27561         quoting problems have been fixed.
27562
27563 1999-08-01  Paul Eggert  <eggert@twinsun.com>
27564
27565         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
27566         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
27567         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
27568         and simplify the shell code.
27569
27570 1999-08-01  Jim Meyering  <meyering@ascend.com>
27571
27572         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
27573         m4.
27574
27575 1999-07-20  Jim Meyering  <meyering@ascend.com>
27576
27577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
27578
27579 1999-07-15  Jim Meyering  <meyering@ascend.com>
27580
27581         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
27582
27583 1999-05-22  Jim Meyering  <meyering@ascend.com>
27584
27585         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
27586
27587 1999-05-20  Jim Meyering  <meyering@ascend.com>
27588
27589         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
27590         Add a colon after each `then' in case $4 is empty.
27591
27592 1999-05-16  Jim Meyering  <meyering@ascend.com>
27593
27594         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
27595
27596 1999-05-10  Jim Meyering  <meyering@ascend.com>
27597
27598         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
27599
27600         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
27601         AC_FUNC_MKTIME.
27602
27603 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
27604
27605         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
27606
27607 1999-05-04  Paul Eggert  <eggert@twinsun.com>
27608
27609         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
27610         not CPPFLAGS, so that linking works correctly in IRIX.
27611
27612 1999-04-30  Paul Eggert  <eggert@twinsun.com>
27613
27614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
27615
27616 1999-04-20  Paul Eggert  <eggert@twinsun.com>
27617
27618         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
27619         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
27620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
27621         jm_AC_TYPE_UNSIGNED_LONG_LONG.
27622         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
27623
27624         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
27625
27626 1999-04-20  Jim Meyering  <meyering@ascend.com>
27627
27628         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
27629         AC_REPLACE xstroull if necessary.  From Paul Eggert.
27630         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
27631
27632 1999-04-18  Jim Meyering  <meyering@ascend.com>
27633
27634         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
27635         * m4/jm-macros.m4: Use it.
27636
27637 1999-04-06  Jim Meyering  <meyering@ascend.com>
27638
27639         * m4/strftime.m4: Remove test for %f.
27640
27641 1999-03-29  Jim Meyering  <meyering@ascend.com>
27642
27643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
27644         superset of the AC_TYPE_* checks in the textutils, fileutils,
27645         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
27646         AC_TYPE_PID_T.
27647
27648 1999-03-28  Jim Meyering  <meyering@ascend.com>
27649
27650         * m4/jm-macros.m4: Define GNU_PACKAGE here.
27651         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
27652         replaced e.g., in the *.sh files of the sh-utils.
27653
27654 1999-03-20  Jim Meyering  <meyering@ascend.com>
27655
27656         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
27657         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
27658         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
27659
27660 1999-03-19  Jim Meyering  <meyering@ascend.com>
27661
27662         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
27663
27664 1999-03-12  Jim Meyering  <meyering@ascend.com>
27665
27666         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
27667
27668 1999-03-07  Jim Meyering  <meyering@ascend.com>
27669
27670         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
27671         declared.
27672
27673 1999-02-17  Jim Meyering  <meyering@ascend.com>
27674
27675         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
27676         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
27677
27678 1999-02-07  Jim Meyering  <meyering@ascend.com>
27679
27680         * m4/group-member.m4: New file -- extracted from sh-utils'
27681         configure.in.
27682
27683         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
27684         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
27685
27686 1999-02-06  Jim Meyering  <meyering@ascend.com>
27687
27688         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
27689         * m4/fnmatch.m4: Likewise.
27690         * m4/getgroups.m4: Likewise.
27691         * m4/lstat.m4: Likewise.
27692         * m4/malloc.m4: Likewise.
27693         * m4/putenv.m4: Likewise.
27694         * m4/realloc.m4: Likewise.
27695         * m4/regex.m4: Likewise.
27696         * m4/stat.m4: Likewise.
27697         * m4/strftime.m4: Likewise.
27698         Suggestion from Alain Magloire.
27699
27700         * m4/chown.m4: Use `.$ac_objext', not `.o'.
27701         * m4/fnmatch.m4: Likewise.
27702         * m4/getgroups.m4: Likewise.
27703         * m4/getline.m4: Likewise.
27704         * m4/lstat.m4: Likewise.
27705         * m4/malloc.m4: Likewise.
27706         * m4/memcmp.m4: Likewise.
27707         * m4/putenv.m4: Likewise.
27708         * m4/realloc.m4: Likewise.
27709         * m4/regex.m4: Likewise.
27710         * m4/stat.m4: Likewise.
27711         * m4/strftime.m4: Likewise.
27712         Suggestion from Alain Magloire.
27713
27714         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
27715         an argument.
27716
27717         * m4/regex.m4: Add a run-time Test for proper operation of
27718         re_compile_pattern.
27719
27720 1999-01-31  Jim Meyering  <meyering@ascend.com>
27721
27722         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
27723
27724 1999-01-30  Jim Meyering  <meyering@ascend.com>
27725
27726         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
27727
27728         * m4/jm-mktime.m4: Make this a wrapper around the official
27729         AM_FUNC_MKTIME rather than my private copy, now that the official one
27730         is up to date.
27731         * m4/mktime.m4: Remove file.
27732
27733         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
27734         * m4/uptime.m4: Likewise.
27735         * m4/uintmax_t.m4: Likewise.
27736
27737 1999-01-28  Jim Meyering  <meyering@ascend.com>
27738
27739         * m4/jm-macros.m4: Use jm_AFS.
27740         * m4/afs.m4: New file (from fileutils' configure.in).
27741
27742         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
27743         * m4/chown.m4: Likewise.
27744         * m4/d-ino.m4: Likewise.
27745         * m4/d-type.m4: Likewise.
27746         * m4/fnmatch.m4: Likewise.
27747         * m4/getgroups.m4: Likewise.
27748         * m4/gettext.m4: Likewise.
27749         * m4/jm-mktime.m4: Likewise.
27750         * m4/jm-winsz2.m4: Likewise.
27751         * m4/lcmessage.m4: Likewise.
27752         * m4/ls-mntd-fs.m4: Likewise.
27753         * m4/malloc.m4: Likewise.
27754         * m4/memcmp.m4: Likewise.
27755         * m4/putenv.m4: Likewise.
27756         * m4/realloc.m4: Likewise.
27757         * m4/st_mtim.m4: Likewise.
27758         * m4/strftime.m4: Likewise.
27759
27760 1999-01-16  Jim Meyering  <meyering@ascend.com>
27761
27762         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
27763         (ARGMATCH_DIE_DECL): Define.
27764
27765 1999-01-12  Jim Meyering  <meyering@ascend.com>
27766
27767         * m4/Makefile.am.in: Rewrite to avoid using fmt.
27768         Reported by Lars Hecking.
27769
27770 1999-01-10  Jim Meyering  <meyering@ascend.com>
27771
27772         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
27773         gross kludge.
27774         * m4/inttypes_h.m4: Likewise.
27775         * m4/lstat.m4: Likewise.
27776         * m4/malloc.m4: Likewise.
27777         * m4/readdir.m4: Likewise.
27778         * m4/realloc.m4: Likewise.
27779         * m4/st_dm_mode.m4: Likewise.
27780         * m4/stat.m4: Likewise.
27781         * m4/utimbuf.m4: Likewise.
27782         * m4/utimes.m4: Likewise.
27783
27784         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
27785         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
27786         comments in config.h.in are meaningful.
27787
27788         * m4/jm-macros.m4: Require autoconf-2.13 here.
27789
27790         * m4/regex.m4: By default, don't use the included regex.c on systems
27791         with glibc 2.  Suggestion from Uli Drepper.
27792
27793 1999-01-02  Jim Meyering  <meyering@ascend.com>
27794
27795         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
27796
27797 1998-12-18  Jim Meyering  <meyering@ascend.com>
27798
27799         * m4/Makefile.am.in (Makefile.am): Simplify rule.
27800         Based on a suggestion from Lars Hecking.
27801
27802 1998-11-16  Paul Eggert  <eggert@twinsun.com>
27803
27804         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
27805
27806 1998-11-16  Jim Meyering  <meyering@ascend.com>
27807
27808         * m4/lfs.m4: Double-quote the `uname...` expression.
27809
27810 1998-11-14  Jim Meyering  <meyering@ascend.com>
27811
27812         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
27813         * m4/stat.m4: Likewise.
27814
27815 1998-11-03  Jim Meyering  <meyering@ascend.com>
27816
27817         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
27818         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
27819
27820 1998-10-18  Jim Meyering  <meyering@ascend.com>
27821
27822         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
27823
27824 1998-10-17  Jim Meyering  <meyering@ascend.com>
27825
27826         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
27827         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
27828         calls for those previously hard-coded headers.  Instead, take a new
27829         parameter.
27830         (jm_CHECK_DECLARATIONS): Reflect interface change.
27831         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
27832         (jm_CHECK_DECL_LOCALTIME_R): New macro.
27833
27834         * m4/mktime.m4: Test for spring-forward gap before long-running test.
27835
27836 1998-10-14  Jim Meyering  <meyering@ascend.com>
27837
27838         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
27839         instead of "TZ=America/Vancouver".  From Paul Eggert.
27840
27841 1998-10-11  Jim Meyering  <meyering@ascend.com>
27842
27843         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
27844         This adds a test for a recently added compatibility fix for mktime.c.
27845         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
27846
27847 1998-09-27  Jim Meyering  <meyering@ascend.com>
27848
27849         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
27850
27851         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
27852         ../configure.in, including a change from Gordon Matzigkeit to allow
27853         cross-compiling for the Hurd.
27854
27855         * m4/glibc.m4: New file/macro to test for the GNU C Library
27856         versions 1 and 2.  From Gordon Matzigkeit.
27857         Indent.
27858
27859 1998-09-21  Jim Meyering  <meyering@ascend.com>
27860
27861         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
27862
27863 1998-08-18  Paul Eggert  <eggert@twinsun.com>
27864
27865         Port nanosecond-resolution times to UnixWare 2.1.2 and
27866         pedantic Solaris 2.6.
27867
27868         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
27869         AC_STRUCT_ST_MTIM.
27870         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
27871         Generate name of ns member, instead of just 1 or undef.
27872         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
27873
27874 1998-08-15  Jim Meyering  <meyering@ascend.com>
27875
27876         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
27877         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
27878         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
27879         instead of jm_TYPE_SSIZE_T.
27880
27881 1998-08-12  Jim Meyering  <meyering@ascend.com>
27882
27883         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
27884
27885 1998-08-02  Jim Meyering  <meyering@ascend.com>
27886
27887         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
27888         in acconfig.h manually.
27889
27890 1998-07-31  Paul Eggert  <eggert@twinsun.com>
27891
27892         * m4/st_mtim.m4: New file.
27893
27894 1998-07-28  Jim Meyering  <meyering@ascend.com>
27895
27896         * m4/utimes.m4: Undef stat.
27897
27898 1998-07-25  Jim Meyering  <meyering@ascend.com>
27899
27900         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
27901         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
27902
27903 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
27904
27905         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
27906         uid and gid actually remain unchanged.
27907
27908 1998-07-07  Jim Meyering  <meyering@ascend.com>
27909
27910         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
27911
27912 1998-07-04  Jim Meyering  <meyering@ascend.com>
27913
27914         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
27915         to prove that this macro can be used in packages without regex.c.
27916
27917 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
27918
27919         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
27920         is to be used.
27921
27922 1998-07-03  Jim Meyering  <meyering@ascend.com>
27923
27924         * m4/gettext.m4: Add -lintl if it's found to be necessary.
27925
27926         * m4/gettext.m4: New file -- from gettext-0.10.35.
27927         * m4/lcmessage.m4: Likewise.
27928         * m4/progtest.m4: Likewise.
27929
27930         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
27931         * m4/jm-macros.m4: Require the new macro.
27932
27933 1998-06-29  Jim Meyering  <meyering@ascend.com>
27934
27935         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
27936         for the definition of NGROUPS (used in a system header included
27937         by sys/mount.h).
27938
27939 1998-06-28  Jim Meyering  <meyering@ascend.com>
27940
27941         * m4/ls-mntd-fs.m4: New file.
27942         * m4/fstypename.m4: New file.
27943
27944         * m4/jm-macros.m4: Require the new macro.
27945         * m4/jm-glibc-io.m4: New file.
27946
27947 1998-05-19  Jim Meyering  <meyering@ascend.com>
27948
27949         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
27950         * m4/lchown.m4: New file.
27951
27952         * m4/Makefile.am.in: New file.
27953         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
27954
27955 1998-05-14  Jim Meyering  <meyering@ascend.com>
27956
27957         * m4/Makefile.am (EXTRA_DIST): Add them.
27958         * m4/jm-macros.m4: New file.
27959         * m4/utimbuf.m4: New file.
27960
27961 1998-05-12  Jim Meyering  <meyering@ascend.com>
27962
27963         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
27964
27965 1998-05-11  Jim Meyering  <meyering@ascend.com>
27966
27967         * m4/isc-posix.m4: New file.
27968
27969 1998-05-10  Jim Meyering  <meyering@ascend.com>
27970
27971         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
27972
27973 1998-05-09  Jim Meyering  <meyering@ascend.com>
27974
27975         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
27976         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
27977         with automake.
27978
27979         * m4/ssize_t.m4: New file.
27980         * m4/mktime.m4: Remove file -- the new automake has this now.
27981
27982 1998-04-26  Jim Meyering  <meyering@ascend.com>
27983
27984         * m4/assert.m4: New file.
27985         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
27986
27987 1998-04-05  Jim Meyering  <meyering@ascend.com>
27988
27989         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
27990         (jm_PREREQ): Use it here.
27991
27992 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
27993
27994         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
27995         in acconfig.h.
27996
27997 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
27998
27999         * m4/prereq.m4: New file.
28000         * m4/error.m4: New file.
28001         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
28002
28003 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
28004
28005         * m4/getline.m4: Don't set am_cv_func_working_getline before the
28006         cache-check for the same variable -- that defeated the purpose of
28007         the test; the test program was never run.  This was a problem only
28008         on systems with losing getline functions -- HP-UX 10.20 is one.
28009         Reported by Bjorn Helgaas.
28010
28011 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
28012
28013         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
28014
28015 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
28016
28017         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
28018
28019         * m4/const.m4: New file.  Use an initializer in this declaration
28020         typedef int charset[2]; const charset x;
28021         Reported by Bob Glickstein.
28022
28023 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
28024
28025         * m4/chown.m4: Fix reversed types on -1 args to chown.
28026         From Kaveh Ghazi.
28027
28028 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
28029
28030         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
28031         Add lseek and memchr.
28032
28033         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
28034         T.E.Dickey <dickey@clark.net> said that some older preprocessors
28035         have a 20-character limit on names.
28036
28037 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
28038
28039         * m4/inttypes_h.m4: New file.
28040         * m4/uintmax_t.m4: New file.
28041         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
28042
28043 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
28044   Free Software Foundation, Inc.
28045 Copying and distribution of this file, with or without modification,
28046 are permitted provided the copyright notice and this notice are preserved.